@fox-js/foxui-pc 4.1.1-21 → 4.1.1-22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),ft=require("@fox-js/validator"),S=require("element-plus"),Ie=require("@element-plus/icons-vue"),Ae=require("@fox-js/i18n"),_t=window,Sa=typeof window<"u";function Ta(){return typeof _t<"u"?_t.requestAnimationFrame||_t.webkitRequestAnimationFrame||function(e){_t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ca(e){Sa?cancelAnimationFrame(e):clearTimeout(e)}const br=Ta();function nn(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=Pe(e),n=Pe(n),[e,n]=gl(Pe(e),Pe(n)),o==1&&(t==1?e=Bn(e):n=Bn(n));let r=xr(e,n);return o?o==2?"-"+Pe(r):e.length<r.length?Pe(r.substring(1)):"-"+Pe(Bn(r)):Pe(r)}function Bn(e){let n="",o=e.length,t=e.split(".")[1],r=t?t.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return xr(n,a)}function Pe(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 gl(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 xr(e,n){[e,n]=gl(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 Dt(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],i=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let s=a.substr(0,a.length-n);return e=s+"."+a.substr(a.length-n)+i,s=Dt(e,0,o),(t?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return a.length,ho(r[1],a,t,o)?(t?"-":"")+qn(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");i=r[1].substring(0,n);let u=r[1].substring(n);return u&&ho(u,i,t,o)&&(i=qn(i),i.length>n)?(t?"-":"")+qn(a,parseInt(i[0]))+"."+i.substring(1):(t?"-":"")+a+"."+i}function ho(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 qn(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 Zn(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=$t(e),n=$t(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=$t(e.replace(".","")),n=$t(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let i=n.length,u=0,s=[],c=i-1,f="";for(let m=0;m<i;m++)s[m]=e.length-1;for(let m=0;m<2*e.length;m++){let v=0;for(let b=n.length-1;b>=c&&b>=0;b--)s[b]>-1&&s[b]<e.length&&(v+=parseInt(e[s[b]--])*parseInt(n[b]));v+=u,u=Math.floor(v/10),f=v%10+f,c--}return f=$t($a(f,a)),o==1&&(f="-"+f),f}function $a(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 $t(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 Qn(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=Pe(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Pe(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Pe(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let f=e.length-c+r;e=Pe(e.substring(0,f)+"."+e.substring(f))}else r==c&&(e=Pe(e.replace(".","")))}let a=0,i=n.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(o=o+2;a<=o;){let c=0;for(;parseInt(s)>=parseInt(n);)s=nn(s,"-"+n),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?"-":"")+Pe(Dt(u,o-2))}function Jn(e,n){return e=e.toString(),n=n.toString(),n=el(n),nn(e,n)}function el(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function mo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),go(e),go(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let t=Jn(e,Zn(n,Dt(Qn(e,n),0,be.FLOOR)));return o+t}function go(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function vo(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]=gl(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=Pe(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+Pe(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 i="",u=a;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<a-o&&u>=0?t:"")+i;return(r?"-":"")+i+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 Dt(n,o,t)}round(n=0,o=be.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(Dt(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),nn(n,o)}add(n){return new fe(nn(this.value,n.getValue()))}static subtract(n,o){return n=fe.validate(n),o=fe.validate(o),Jn(n,o)}subtract(n){return new fe(Jn(this.value,n.getValue()))}static multiply(n,o){return n=fe.validate(n),o=fe.validate(o),Zn(n,o)}multiply(n){return new fe(Zn(this.value,n.getValue()))}static divide(n,o,t){return n=fe.validate(n),o=fe.validate(o),Qn(n,o,t)}divide(n,o){return new fe(Qn(this.value,n.getValue(),o))}static modulus(n,o){return n=fe.validate(n),o=fe.validate(o),mo(n,o)}modulus(n){return new fe(mo(this.value,n.getValue()))}static compareTo(n,o){return n=fe.validate(n),o=fe.validate(o),vo(n,o)}compareTo(n){return vo(this.value,n.getValue())}static negate(n){return n=fe.validate(n),el(n)}negate(){return new fe(el(this.value))}}function wr(e,n){return fe.multiply(`${e}`,`${n}`)}function vl(e,n,o=8){return fe.divide(`${e}`,`${n}`,o)}function tl(e,n){return e=`${e}`,n=`${n}`,fe.compareTo(e,n)}function Sr(e){return fe.negate(e)}function cn(e,n=-1,o=!1,t=3,r=","){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)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let f;if(t>0){let m="",v=u.split("").reverse();for(let b=0;b<v.length;b++)m+=v[b]+((b+1)%t==0&&b+1!=v.length?r:"");s.length==0?f=`${i}${m.split("").reverse().join("")}`:f=`${i}${m.split("").reverse().join("")}.${s}`}else s.length==0?f=`${i}${u}`:f=`${i}${u}.${s}`;return f}function Tr(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let t=n.replace(/[^\d\.-]/g,"");return`${o}${t}`}const pl=br,Na=Array.isArray,ka=e=>fn(e)==="[object Map]",Ea=e=>fn(e)==="[object Set]",Pa=e=>e instanceof Date,nl=e=>typeof e=="function",Cr=e=>typeof e=="string",Ia=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",$r=e=>Ge(e)&&nl(e.then)&&nl(e.catch),Nr=Object.prototype.toString,fn=e=>Nr.call(e),ll=e=>fn(e)==="[object Object]",kr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Oa(e){return e.__esModule||kr&&e[Symbol.toStringTag]==="Module"}const Da=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ht(...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 i in a){let u=n[i],s=a[i];if(u!==s)if(r===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},n[i]=ht(r,c,s)}else s!==void 0&&(n[i]=s)}}return n}function ol(e,n,o=!1){if(!o)ht(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!ll(i))continue;a=ol(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const t=Object.getOwnPropertySymbols(n);for(let r of t){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!ll(i))continue;a=ol(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const _n=Da?Promise.resolve():null;function Va(e,...n){_n!==null?n&&n.length>0?_n.then(()=>{e(n)}):_n.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Ce(e){return typeof e=="number"?e:Number(e)}const Ra={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function ln(e){let o=Object.prototype.toString.call(e);return e==null?String(e):Ra[o]||"object"}function Er(e){return e&&typeof e=="object"&&"setInterval"in e}function Pr(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 Ir(e){let n=!!e&&"length"in e&&e.length,o=ln(e);return o==="function"||Er(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Or(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 Fa(e,n=[]){let o=n;return e!=null&&(Ir(Object(e))?Or(o,typeof e=="string"?[e]:e):o.push(e)),o}function tt(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=ln(e),t=ln(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 i=0;i<r.length;i++){let u=r[i],s=e[u],c=n[u];if(!tt(s,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],i=n[r];if(!tt(a,i))return!1}return!0}return!1}const at=typeof window<"u";function dn(e){return e==null}function rl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null||typeof e!="string"?!1:e.length===0;function Dr(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 Vr(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 Rr(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 po(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 Aa(e,n=!0,o=!0){n?e=po(e,".",/\./g):e=e.replace(/\./g,""),o?e=po(e,"-",/-/g):e=e.replace(/-/,"");const t=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(t,"")}function Ma(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(tt(e,o))return!0}):n.indexOf(e)}function La(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(t=>{if(tt(e,t))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function At(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function xt(e,...n){const o={};return n.forEach(t=>{for(const r in t)o[r]=e[r]}),o}function Oe(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 Ba=(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==="+"||rl(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 i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...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 i=n.resolve,u=n.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...c)};n.resolve=s}n.cachePolicy="None"}let r=!1;!n.name||n.name==="*"?r=!0:n.name==="+"?(r=!1,n.name="*"):rl(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 i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...t]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...t]);s!=null&&a.push(s)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...a),n.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...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,i=n.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...s)};n.resolve=u}n.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},o,...t]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(n,o){this.callbacks.set(n,o)}}function hn(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 qa(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 i in n)a.on(i,n[i]);return t[xe]=a,l.provide(xe,a),l.onUnmounted(()=>{a.destroy(),t[xe]=void 0}),a}function Pt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[xe]??l.inject(xe,null):l.inject(xe,null)}class _a{error(n,o){const t=o,r=o||l.hasInjectionContext()?Pt(o):null;r?r.emit({name:"*"},"setErrorTip",n):typeof t.setErrorTip=="function"&&t.setErrorTip(n)}reset(n){const o=n,t=n||l.hasInjectionContext()?Pt(n):null;t?t.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,t=n||l.hasInjectionContext()?Pt(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()?Pt(t):null,i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(t))}getValue(n){return n.modelValue}}let It=new _a;function ja(e){It=e}function za(e){It?Object.assign(It,e):It=e}function Ha(e,n){ft.Schema.setValidator(e,n)}function Ka(e){ft.Schema.deleteValidator(e)}let Fr=["blur","clear"];function Wa(e){Fr=e}function Ar(){return Fr}let Mr=["focus","change","setValue"];function Ya(e){Mr=e}function Lr(){return Mr}function Ua(e){ft.Schema.messages(e)}function Nt(...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 jt(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 Ue=Symbol("ValidateSchemaKey");class Br{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=jt(Nt(this.attrRules,this.rules)),t=[];for(let a in n){let i=n[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=jt(t);const r=Nt(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=It;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?ft.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?ft.Schema.deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return ft.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=Nt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=jt(n):this.rules=jt([n]);const t=Nt(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=Nt(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${t}`]:o},a=this.getValue(),i={[`${t}`]:a},u=new ft.Schema(r),s=this.proxy??i;return u.validate(i,{context:s}).then(f=>{if(f.pass)this.success();else{let m="error";Array.isArray(f.errors)&&f.errors.length>0&&(m=f.errors[0].message??m,f.errors=[f.errors[0]],f.errors[0].ref=s),this.error(m)}return f}).catch(f=>{const m=f.message??`${f}`;return this.error(m),f})}}return Promise.resolve({pass:!0})}}function mn(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 Br(n,o,e)}const on=Symbol.for("EventEmitterKey");class qr{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 He(e,n){let o=null;return function(...t){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...t])},n)}}function _r(e,n){let o=0;return function(...t){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...t]))}}function Ga(e,n){const o=He((t,r)=>{e=t,r()},n);return l.customRef((t,r)=>({get(){return t(),e},set(a){o(a,r)}}))}function Xa(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function gn(e,n,o,t=0,r=!0,a){let i=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 s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}i+=t,setTimeout(s,i)};setTimeout(s,i)}const Be=Symbol("DomainKey"),gt=Symbol("DataItemsKey");class vn{_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 Za=new vn;function pt(){return Za}function it(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Be]??l.inject(Be,null):l.inject(Be,null)}const jn=Symbol("OriginalDateKey");function bl(e,n,o=[],t){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Be,null);i===null&&(i=pt());const u=e||n.prop||n.name;let s=new vn(u);s.parent=i;const c=d=>{a[jn]||v(d),s?.set("modelValue",d)},f=()=>s?.getForSelf("modelValue")??null,m=()=>a[jn]??null,v=d=>{const h={};ht(!0,h,l.toRaw(d)),a[jn]=h};l.isReactive(n)||typeof n=="function"?l.watch(n,d=>{s?.merge(d,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&v(n.modelValue);const b=(d,h)=>{s?.set(d,h)},x=d=>s?.getForSelf(d)??null;if(a[Be]=s,l.provide(Be,s),r!==null){const d=l.inject(xe,null),h=hn(a,d,u,t);s.broadcast=h,a[xe]=h,l.provide(xe,h),a.broadcast=(p,L,...q)=>Reflect.apply(h.emit,h,[p,L,...q]);const P=l.inject(Ue,null),w=mn(a,P,{componentName:""});s.validateSchema=w,a[Ue]=w,l.provide(Ue,w),a[gt]=new Map,a.validate=(p=!0)=>{const L=[];let q=null;const M={deep:!1};if(p===!0)q={name:"*"};else if(Array.isArray(p)&&p.length>0){const I=p;q={name:$=>$?I.indexOf($)!==-1:!1}}else if(p!=null&&typeof p=="object"){const I=p;if(Object.assign(M,I),Array.isArray(I.include)&&I.include.length>0){const $=I.include;q={name:y=>y?$.indexOf(y)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const $=I.exclude;q={name:y=>y?$.indexOf(y)===-1:!1}}else q={name:"*"}}if(q){const I=h?.emitToChildren(q,"validate",M);I&&Reflect.apply([].push,L,I)}return L.length==1?L[0]:L.length>1?Promise.all(L).then(I=>{let $=[];return I.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&($=[...$,...y.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(p,L=!0,q=!1)=>{if(q===!0){Reflect.ownKeys(p).forEach(I=>{let $=String(I);const y={componentName:"",fieldName:$,pureDataValidate:!0};if(s){const _=zr(s,$,y,h,w);a[gt].set($,_);const g=p[$];g&&_.validateSchema.setRule(g)}});return}if(L){const M=Reflect.ownKeys(p),I={name:$=>M.includes($),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(I,"setNameValidateRules",p,!1)}},a.clearValidate=(p=!0)=>{let L=null;if(p===!0)L={name:"*"};else if(Array.isArray(p)&&p.length>0){const q=p;L={name:M=>M?q.indexOf(M)!==-1:!1}}else if(p!=null&&typeof p=="object"){const q=p;if(Array.isArray(q.include)&&q.include.length>0){const M=q.include;L={name:I=>I?M.indexOf(I)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const M=q.exclude;L={name:I=>I?M.indexOf(I)===-1:!1}}else L={name:"*"}}L&&h?.emitToChildren(L,"clearValidate",!1)},a.resetFields=p=>{const L=f();if(!L)return;const q={};if(ht(!0,q,m()??{}),Array.isArray(p))p.forEach(M=>{L[M]=q[M]});else if(p&&Array.isArray(p.include))(p.include??[]).forEach(I=>{L[I]=q[I]});else if(p&&Array.isArray(p.exclude)){let M=p.exclude??[];Reflect.ownKeys(q).forEach(I=>{M.includes(I)||(L[I]=q[I])})}else Object.assign(L,q);a.clearValidate(p)},a.setModelValue=(p,L)=>{if(!L||L===u)c(p);else{const q={name:L,messagingPolicy:"Once"};h?.emitToChildren(q,"setModelValue",p)}},a.getModelValue=()=>f(),a.setDomainProperty=(p,L)=>{b(p,L)},a.getDomainProperty=p=>x(p),setTimeout(function(){h?.pull()},0)}return l.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[Ue]=void 0,l.provide(Ue,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[xe]=void 0,l.provide(xe,null)),s?.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,s=null,a=null}),s}function jr(e,n,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Be,null);a===null&&(a=pt());const i=e||n.prop||n.name;let u=new vn(i);return u.parent=a,l.isReactive(n)||typeof n=="function"?l.watch(n,s=>{u?.merge(s,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 ke(e,n,o){const r=l.getCurrentInstance()?.proxy,a=n??"",i=l.inject(xe,null);let u=hn(r,i,a,o);r[xe]=u,l.provide(xe,u),r.broadcast=(x,d,...h)=>u?Reflect.apply(u.emit,u,[x,d,...h]):null;const s=l.inject(Ue,null);e.fieldName=e.fieldName??a;let c=mn(r,s,e);r[Ue]=c,l.provide(Ue,c),r.validate=(x=null)=>{if(!c)return Promise.resolve({pass:!0});const d=[];let h=!1,P=!1;if(Array.isArray(x)&&x.indexOf(a)!==-1)P=!0,h=!0;else if(x&&typeof x=="object"){const w=x,p=w.ignoreDisabled??!0,L=w.ignoreReadonly??!0,q=w.ignoreHidden??!0;p===!0&&e.disabled===!0||L===!0&&e.readonly===!0||q===!0&&Pr(r.$el)?P=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),P=!0),h=w.deep??!1}else typeof x=="boolean"&&(h=x),P=!0;if(P){const w=c?.validate();d.push(w)}if(h){let w=null;const p={deep:!1};if(x===!0)w={name:"*"};else if(Array.isArray(x)&&x.length>0){const L=x;w={name:q=>q?L.indexOf(q)!==-1:!1}}else if(x!=null&&typeof x=="object"){const L=x;if(Object.assign(p,L),Array.isArray(L.include)&&L.include.length>0){const q=L.include;w={name:M=>M?q.indexOf(M)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const q=L.exclude;w={name:M=>M?q.indexOf(M)===-1:!1}}else w={name:"*"}}if(w&&u){const L=u.emitToChildren(w,"validate",p);Reflect.apply([].push,d,L)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(w=>{let p=[];return w.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(p=[...p,...L.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=x=>c?.setRule(x),r.setNameValidateRules=(x,d=!1)=>{const h=x[a];if(h&&c?.setRule(h),d&&u){const P={name:w=>Reflect.ownKeys(x).includes(w)};u.emitToChildren(P,"setNameValidateRules",x,!1)}},r.clearValidate=(x=null)=>{(!Array.isArray(x)||x.indexOf(n??"")!==-1)&&c?.clear();let d=null;if(x===!0)d={name:"*"};else if(Array.isArray(x)&&x.length>0){const h=x;d={name:P=>P?h.indexOf(P)!==-1:!1}}else if(x!=null&&typeof x=="object"){const h=x;if(Array.isArray(h.include)&&h.include.length>0){const P=h.include;d={name:w=>w?P.indexOf(w)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const P=h.exclude;d={name:w=>w?P.indexOf(w)===-1:!1}}else d={name:"*"}}d&&u&&u.emitToChildren(d,"clearValidate",!1)};let f=new qr(r);r[on]=f;const m=He((x="validate")=>{c&&(x==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ar()).forEach(x=>{f&&f.on(x,d=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Lr()).forEach(x=>{f&&f.on(x,d=>{m("reset")})}),setTimeout(function(){u?.pull()},0),l.onUnmounted(()=>{u?.destroy(),r[xe]=void 0,l.provide(xe,null),u=null,c?.destroy(),r[Ue]=void 0,l.provide(Ue,null),c=null,f?.destroy(),r[on]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(x,...d)=>{f&&Reflect.apply(f.emit,f,[x,...d])},onEvent:(x,d)=>{f&&Reflect.apply(f.on,f,[d])},offEvent:(x,d)=>{f&&Reflect.apply(f.off,f,[d])}}}function zr(e,n,o,t,r){const a={},i=n??"",u={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};o.fieldName=i,o.validateHandler={getValue(f){return u.getValue()}};let s=mn({},r,o);a.validate=(f=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const m=[];let v=!1,b=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)b=!0,v=!0;else if(f&&typeof f=="object"){const x=f;Array.isArray(x.include)&&x.include.indexOf(i)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(i),b=!0,v=x.deep??!1}else typeof f=="boolean"&&(v=f),b=!0;if(b&&s){const x=s.validate();m.push(x)}if(v){let x=null;const d={deep:!1};if(f===!0)x={name:"*"};else if(Array.isArray(f)&&f.length>0){const h=f;x={name:P=>P?h.indexOf(P)!==-1:!1}}else if(f!=null&&typeof f=="object"){const h=f;if(Object.assign(d,h),Array.isArray(h.include)&&h.include.length>0){const P=h.include;x={name:w=>w?P.indexOf(w)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const P=h.exclude;x={name:w=>w?P.indexOf(w)===-1:!1}}else x={name:"*"}}if(x&&c){const h=c.emitToChildren(x,"validate",d);Reflect.apply([].push,m,h)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(x=>{let d=[];return x.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(d=[...d,...h.errors])}),d.length>0?{pass:!1,errors:d}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>s?.setRule(f),a.setNameValidateRules=f=>{const m=f[i];m&&s?.setRule(m)};let c=hn(null,t,i,a);return l.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Hr(){let n=l.getCurrentInstance()?.proxy,o=new qr(n);return n[on]=o,l.onUnmounted(()=>{o?.destroy(),n[on]=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 ye=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ge(e,n)}px`:"",Qa=ye;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(at){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(a=Number(i.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 rt="PageStateKey";function Qe(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 al(e,n,o={},t=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=ge(o.headerHeight??n.headerHeight??-1),e.headerPadding=Qe(o.headerPadding??n.headerPadding),e.footerHeight=ge(o.footerHeight??n.footerHeight??-1),e.footerPadding=Qe(o.footerPadding??n.footerPadding),e.contentPadding=Qe(o.contentPadding??n.contentPadding),t){const s=o.height??n.height;s?e.height=ge(s,a):e.height=ge(a)-ge(i,a)-ge(u,a),e.width=ge(o.width??n.width??0,r)}}function Kr(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 i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;al(t,a,n,!0,i,u,s,c);const f=l.reactive(t),m=e.getForParent(rt);m&&(t.height=rn(e,m),t.width=an(e,m),l.watch([()=>rn(e,m),()=>an(e,m)],([b,x])=>{f.height=b,f.width=x}));const v=!m;return l.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([b,x,d=-1,h=-1,P=0,w=0])=>{al(f,x,n,v,d,h,P,w)}),e.set(rt,f),f}function pn(e){return e.get(rt)}function yn(e,n){if(n=n??e.get(rt),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function bn(e,n){if(n=n??e.get(rt),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function rn(e,n){if(n=n??e.get(rt),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=yn(e,n),t=bn(e,n);return n.height-o-t-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function an(e,n){return n=n??e.get(rt),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Ja(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function ei(e){return!!e.getForParent(rt)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function zt(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Fe(e,n,o=1,t){const r=it();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(n);for(let u=a.length-1;u>=0;u--){const s=a[u];if(zt(s,t))return s}const i=e.value;return zt(i,t)?i:null}):l.computed(()=>{const a=e.value;if(zt(a,t))return a;const i=r.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(zt(s,t))return s}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 i=l.ref(a);return l.watch(r,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,t&&t("setValue",s))}else u!==i.value&&(i.value=u,t&&t("setValue",u))}),i}const Wr=new Map,sn=new Map;let il=null;function ti(e){il=e}function Yr(e,n,o){if(o){let t=sn.get(o);t||(t=new Map,sn.set(o,t)),t.set(e,n)}else Wr.set(e,n)}function je(e,n,o){!o&&il&&(o=il(e)??void 0);let t=null;if(o){let r=sn.get(o);r&&(t=r.get(n))}return t||(t=Wr.get(n)),t}function ni(e,n){for(let o in e){const t=e[o];Yr(o,t,n)}}function li(e){sn.delete(e)}function oi(){return{top:0,left:0,bottom:0,right:0}}function ri(){if(at){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 ai(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class ii{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=ai(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=He(()=>{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=ht({},oi(),n.safeAreaInset),i=ri(),u=ht({},i.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",i.rootWidth),o.set("rootHeight",i.rootHeight);const s=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const c in n)s.indexOf(c)===-1&&o.set(c,n[c])}setScopeGetter(n){ti(n)}setAPI(n,o,t){Yr(n,o,t)}getAPI(n,o,t){return je(n,o,t)}batchSetAPI(n,o){ni(n,o)}clearScopeAPI(n){li(n)}getRootDomain(){return pt()}}const si=[S.ElAffix,S.ElAlert,S.ElAutocomplete,S.ElAutoResizer,S.ElAvatar,S.ElBacktop,S.ElBadge,S.ElBreadcrumb,S.ElBreadcrumbItem,S.ElButton,S.ElButtonGroup,S.ElCalendar,S.ElCard,S.ElCarousel,S.ElCarouselItem,S.ElCascader,S.ElCascaderPanel,S.ElCheckTag,S.ElCheckbox,S.ElCheckboxButton,S.ElCheckboxGroup,S.ElCol,S.ElCollapse,S.ElCollapseItem,S.ElCollapseTransition,S.ElColorPicker,S.ElConfigProvider,S.ElContainer,S.ElAside,S.ElFooter,S.ElHeader,S.ElMain,S.ElDatePicker,S.ElDescriptions,S.ElDescriptionsItem,S.ElDialog,S.ElDivider,S.ElDrawer,S.ElDropdown,S.ElDropdownItem,S.ElDropdownMenu,S.ElEmpty,S.ElForm,S.ElFormItem,S.ElIcon,S.ElImage,S.ElImageViewer,S.ElInput,S.ElInputNumber,S.ElLink,S.ElMenu,S.ElSubMenu,S.ElMenuItem,S.ElMenuItemGroup,S.ElPageHeader,S.ElPagination,S.ElPopconfirm,S.ElPopover,S.ElPopper,S.ElProgress,S.ElRadio,S.ElRadioButton,S.ElRadioGroup,S.ElRate,S.ElResult,S.ElRow,S.ElScrollbar,S.ElSelect,S.ElOption,S.ElOptionGroup,S.ElSelectV2,S.ElSkeleton,S.ElSkeletonItem,S.ElSlider,S.ElSpace,S.ElSteps,S.ElStep,S.ElSwitch,S.ElTable,S.ElTableColumn,S.ElTableV2,S.ElTabs,S.ElTabPane,S.ElTag,S.ElTimePicker,S.ElTimeSelect,S.ElTimeline,S.ElTimelineItem,S.ElTooltip,S.ElTransfer,S.ElTree,S.ElTreeSelect,S.ElTreeV2,S.ElUpload,S.ElStatistic,S.ElCountdown,S.ElSegmented,S.ElAnchor,S.ElAnchorLink,S.ElWatermark,S.ElMessageBox,S.ElMessage,S.ElNotification],ui=[S.ElInfiniteScroll,S.ElLoading,S.ElMessage,S.ElMessageBox,S.ElNotification,S.ElPopoverDirective],ci=(e,n={})=>{const o=n.componentPrefix??"fox",t=o[0].toUpperCase()+o.slice(1);si.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${t}${a.slice(2)}`,e.component(a,r)):e.use(r)}),ui.forEach(r=>{e.use(r)})};function ae(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 $e={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}},De={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}},Ur={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Gr={name:{type:String,required:!1},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}},Xr=[];for(const e in Gr)Xr.push(e);const Zr=Symbol.for("InnerPageScopeKey"),fi={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}},di=(e,n)=>({inheritAttrs:!0,props:{...$e,...Ur,...fi},setup(o,{slots:t}){const r=bl(o.name,o),a=l.inject(Zr,!1);if(r){const f=Kr(r,o);Se({getPageContentHeight:()=>rn(r,f),getPageContentWidth:()=>an(r,f),getPageHeaderHeight:()=>yn(r,f),getPageFooterHeight:()=>bn(r,f)}),f&&a&&(f.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),u=l.computed(()=>({})),s=l.getCurrentInstance(),c=(f,m=!1)=>{const v=s?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(f,!0,m)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,m],[v,b])=>{if(f&&v){const x=l.toRaw(v),d=l.toRaw(f),h=d?Reflect.ownKeys(d):[];(x?Reflect.ownKeys(x):[]).forEach(w=>{h.includes(w)||(d[w]=[])}),c(d)}if(m&&b){const x=l.toRaw(b),d=l.toRaw(m),h=d?Reflect.ownKeys(d):[];(x?Reflect.ownKeys(x):[]).forEach(w=>{h.includes(w)||(d[w]=[])}),c(d,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);c(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);c(f,!0)}}),()=>{const f={class:i.value,style:u.value};return l.h("div",f,[t?.default?.()])}}}),{componentName:hi,create:mi}=ae("page"),xl=mi(di(hi));function wl(e){const n=l.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function xn(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")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-t-r,height:n.clientHeight-a-i}}const gi=(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 i=it(),u=i?pn(i):null;u&&(u.headerMounted=!0);const s=e,c=l.computed(()=>({[s]:!0,[`${s}--border`]:r.border,[`${s}--fixed`]:r.fixed,[`${s}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),m=r.height!==null&&r.height!==void 0?ge(r.height):null,v=l.computed(()=>{const g={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const A=Qe(r.padding??u.headerPadding);return Object.assign(g,A),m&&(u.headerHeight=m),u.headerHeight>0&&(g.height=u.headerHeight),g.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,g.safeAreaTop>0&&(g.top=g.safeAreaTop+(A.top??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaTop)),g}if(m&&(g.height=m),r.padding){const A=Qe(r.padding);Object.assign(g,A)}return g}),b=l.ref(null),x=()=>{if(u&&b.value&&b.value.offsetParent!==null){if(!t){const g=wl(b.value);u.headerAllHeight=g.height}return u.headerMounted=!0,!0}return!1},d=He(x,120);let h=null;l.onMounted(()=>{u&&(gn(x,50,5,50,!0),window.ResizeObserver&&b.value&&(h=new window.ResizeObserver(d),h.observe(b.value)))}),l.onUnmounted(()=>{u&&(u.headerMounted=!1,h&&(h.disconnect(),h=null))});const P=l.computed(()=>{const g={};return v.value.height!==null&&v.value.height!==void 0&&(g.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(g.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(g.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(g.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(g.paddingBottom=`${v.value.bottom}px`),g}),w=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function p(){a.emit("back")}function L(){a.emit("click-title")}function q(){a.emit("click-right")}function M(){a.emit("click-right-text")}const I=()=>{if(!r.leftShow)return null;const g=[];if(a.slots.left)g.push(a.slots.left());else{if(a.slots.leftIcon){const A=l.h("view",{class:"left-icon",onClick:p},[a.slots.leftIcon()]);g.push(A)}else if(r.leftIcon){const A=l.h("view",{class:"left-icon",onClick:p},[l.h(r.leftIcon)]);g.push(A)}if(r.leftText){const A=l.h("view",{class:"left-text",onClick:p},[r.leftText]);g.push(A)}}return g.length===0?null:l.h("view",{class:"fox-header-bar__left"},g)},$=()=>{if(!r.rightShow)return null;const g=[];if(a.slots.right)g.push(a.slots.right());else{if(r.rightText){const A=l.h("view",{class:"right-text",onClick:M},[r.rightText]);g.push(A)}if(a.slots.rightIcon){const A=l.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);g.push(A)}else if(r.rightIcon){const A=l.h("view",{class:"right-icon",onClick:q},[l.h(r.rightIcon)]);g.push(A)}}return g.length===0?null:l.h("view",{class:"fox-header-bar__right"},g)},y=()=>{if(!r.titleShow)return null;const g=[],A=a.slots.default?a.slots.default():null;if(A)g.push(A);else{if(r.title){const W=l.h("view",{class:"title-text"},[r.title]);g.push(W)}if(a.slots.titleIcon){const W=l.h("view",{class:"title-icon",onClick:L},[a.slots.titleIcon()]);g.push(W)}else if(r.titleIcon){const W=l.h("view",{class:"title-icon",onClick:L},[l.h(r.titleIcon)]);g.push(W)}}return g.length===0?null:l.h("view",{class:"fox-header-bar__title"},g)},_=()=>{const g=[],A=a.slots.bottom?a.slots.bottom():null;return A&&g.push(A),g.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},g)};return()=>{if(!w.value)return null;const g=[];if(a.slots.all)g.push(a.slots.all());else{const W=[],D=I();D&&W.push(D);const N=y();N&&W.push(N);const V=$();if(V&&W.push(V),W.length>0){const G=l.h("view",{class:f.value},W);g.push(G)}const j=_();j&&g.push(j)}if(g.length===0)return null;const A={class:c.value,style:P.value,ref:b};return l.h("view",A,g)}}}),{componentName:vi,create:pi,scope:yi}=ae("header-bar"),Sl=pi(gi(vi,yi,Ie.ArrowLeft));function bi(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=it(),i=a?pn(a):null,u=l.computed(()=>{const d=e;return{[d]:!0,[`${d}--${t.align}`]:!0,[`${d}--border`]:t.border,[`${d}--fixed`]:t.fixed,[`${d}--safe-area-inset-bottom`]:t.safeAreaInsetBottom}}),s=t.height!==null&&t.height!==void 0?ge(t.height):null,c=l.computed(()=>{const d={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Qe(t.padding??i.footerPadding);return Object.assign(d,h),s&&(i.footerHeight=s),i.footerHeight>0&&(d.height=i.footerHeight),d.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,d.safeAreaBottom>0&&(d.bottom=d.safeAreaBottom+(h.bottom??0),d.height&&d.height>0&&(d.height=d.height+d.safeAreaBottom)),d}if(s&&(d.height=s),t.padding){const h=Qe(t.padding);Object.assign(d,h)}return d}),f=l.ref(null),m=()=>{if(i&&f.value&&f.value.offsetParent!==null){if(!o){const d=wl(f.value);i.footerAllHeight=d.height}return i.footerMounted=!0,!0}return!1},v=He(m,120);let b=null;l.onMounted(()=>{i&&(gn(m,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(v),b.observe(f.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const x=l.computed(()=>{const d={};return c.value.height!==null&&c.value.height!==void 0&&(d.height=ye(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(d.paddingTop=ye(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(d.paddingLeft=ye(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(d.paddingRight=ye(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(d.paddingBottom=ye(c.value.bottom)),d});return()=>{const d=r.slots.default?r.slots.default():[],h={ref:f,class:u.value,style:x.value};return l.h("view",h,d)}}}}const{componentName:xi,create:wi}=ae("footer-bar"),Tl=wi(bi(xi));function Si(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:t,attrs:r}){const a=it(),i=l.computed(()=>({[e]:!0})),u=a?pn(a):null,s=l.computed(()=>{const b={};if(a&&u){if(o.padding){const q=Qe(o.padding);Object.assign(u.contentPadding,q)}const x=yn(a,u),d=bn(a,u);let h="";u.contentHeight?h=`${u.contentHeight}`:h=`${u.height}px`,b.height=h;let P=(u&&u.contentPadding&&u.contentPadding.top)??-1;(P>=0||x>0)&&(P=P<0?0:P,b.paddingTop=`${x+P}px`);let w=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(w>=0||d>0)&&(w=w<0?0:w,b.paddingBottom=`${d+w}px`);const p=(u&&u.contentPadding&&u.contentPadding.left)??-1;p>=0&&(b.paddingLeft=`${p}px`);const L=(u&&u.contentPadding&&u.contentPadding.right)??-1;return L>=0&&(b.paddingRight=`${L}px`),b}if(o.padding){const x=Qe(o.padding);x.left&&(b.paddingLeft=`${x.left}px`),x.top&&(b.paddingTop=`${x.top}px`),x.right&&(b.paddingRight=`${x.right}px`),x.bottom&&(b.paddingBottom=`${x.bottom}px`)}return b}),c=l.ref(null),f=()=>{if(u&&c.value){const b=xn(c.value);u.contentInnerHeight=b.height,u.contentInnerWidth=b.width}},m=He(f,120);let v=null;return l.onMounted(()=>{requestAnimationFrame(f),window.ResizeObserver&&c.value&&(v=new window.ResizeObserver(m),v.observe(c.value))}),l.onUnmounted(()=>{v&&(v.disconnect(),v=null)}),()=>{const b=o.tag??"view",x={...r,ref:c,class:i.value,style:s.value};return l.h(b,x,t)}}}}const{componentName:Ti,create:Ci}=ae("content"),Cl=Ci(Si(Ti)),wt="GroupStateKey",Qr=Symbol.for("GroupScopeKey");function wn(){return l.inject(Qr,!1)}function Sn(e=!0){l.provide(Qr,e)}function $i(e,n={}){Reflect.ownKeys(n).forEach(t=>{if(typeof t!="string")return;const r=n[t];dn(r)||(e[t]=r)})}function Ni(e,n={}){const t={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};$i(t,n);const r=l.shallowRef(t),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(wt,a),a}function zn(e,n,o=-1,t=-1,r=!1,a,i,u){const s=e.get(wt);if(!s)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),t===-1&&(t=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const f=ge(a),m=ge(i);u||(u=c.type??"grid");const v=()=>{const b=n===""||n===-1,x=ge(n);let d=Ce(o);const h=ge(t);if(!b){let p=(x-(d-1)*h)/d;for(;m!==-1&&p>m;)d++,p=(x-(d-1)*h)/d;for(;f!==-1&&d>1&&p<f;)d--,p=(x-(d-1)*h)/d}let P=!1;const w=s.layout;w.value.width=n,w.value.column!==d&&(w.value.column=d,P=!0),w.value.gutter!==h&&(w.value.gutter=h,P=!0),w.value.type!==u&&(w.value.type=u,P=!0),P&&l.triggerRef(w)};if(r)v();else{const b=++s.passport;setTimeout(()=>{b===s.passport&&v()},50)}}function Tn(e,n=!1){let o;return n?o=e.getForParent(wt):o=e.get(wt),o.layout}function Cn(e,n=!1){let o;return n?o=e.getForParent(wt):o=e.get(wt),o.order}function yo(e,n=1){if(n==="stretch")return-1;const o=Ce(n);return o===-1?100:100*o/e}function $n(e,n,o=1,t=0,r){const a={};let i=0;r?i=ge(r):i=yo(n.column,o),i>0&&(a.width=`${i}%`);const u=yo(n.column,t);u>0&&(a["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function Nn(e,n,o=1,t=0){if(o==="stretch"){const s=e.index%n.column,c=s+(n.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=Ce(o);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const a=Ce(t)%n.column;let i=(e.index+a)%n.column,u=i+r;return u>n.column?(i=0,u=i+r,e.index=e.index+(n.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Jr=Symbol("RollingStateKey");function ki(e){l.provide(Jr,e)}function Ei(){return l.inject(Jr,null)}function sl(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 Pi(e){let n=sl(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=sl(o),document.body.removeChild(o)}return n}function Ii(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 i=(t-(r-1)*a)/r;return i>0?`${i}px`:"1fr"}const Oi={...$e,...Ur,...Gr};function Di(e,n,o){return{props:Oi,emits:["update:collapse","header-click"],setup(t,r){const a=bl(t.prop??t.name,t,Xr),i=Ni(a,{type:t.type}),u=wn();Sn(!0);const s=t.rollingDisplay?Ei():null,c=l.ref(null),f=l.computed(()=>t.rollingDisplay?s&&!s.disabled:!1),m=l.computed(()=>u&&a?Tn(a,!0).value:null),v=l.getCurrentInstance(),b=(E,K=!1)=>{const Q=v?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(E,!0,K)};l.watch([()=>t.rules,()=>t.pureDataRules],([E,K],[Q,O])=>{if(E&&Q){const z=l.toRaw(Q),Z=l.toRaw(E),ne=Z?Reflect.ownKeys(Z):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{ne.includes(ce)||(Z[ce]=[])}),b(Z)}if(K&&O){const z=l.toRaw(O),Z=l.toRaw(K),ne=Z?Reflect.ownKeys(Z):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{ne.includes(ce)||(Z[ce]=[])}),b(Z,!0)}},{deep:!0});const x=e,d=l.computed(()=>{const E={};E.height=N.value;const K=u?Cn(a,!0):null;if(m.value&&K){if(m.value.type==="grid"){const Q=Nn(K,m.value,t.span,t.offset);Object.assign(E,Q)}else if(m.value.type==="flow"){const Q=$n(K,m.value,t.span,t.offset,t.width);Object.assign(E,Q)}}else if(t.width){const Q=ye(t.width);E.width=Q}return E}),h=l.computed(()=>{const E=i.layout.value.type;return E==="grid"||E==="flow"?{[`${x}--${E}`]:!0,[`${x}--${E}-justify-${t.justify}`]:!0,[`${x}--${E}-align-${t.align}`]:!0,[`${x}--gutter`]:!0}:{[`${x}--${E}`]:!0,[`${x}--gutter`]:!0}}),P=l.computed(()=>{if(i.layout.value.type==="grid"){let K="";if(t.columnWidth)K=`repeat(auto-fill, ${t.columnWidth})`;else{const Q=Ii($.value,i.layout.value.column,i.layout.value.gutter);K=`repeat(${i.layout.value.column}, ${Q})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":K}}}),w=l.toRef(t,"gutter"),p=l.toRef(t,"column"),L=l.computed(()=>u||f.value?!0:ue(t.isWrap)),q=[],M=E=>{q.push(E)},I=()=>{let E=q.length;q.splice(0,E)},$=l.ref(-1),y=E=>{const K=xn(E).width;K>0&&K!==$.value&&($.value=K)};zn(a,$.value,p.value,w.value,!0,t.minItemWidth,t.maxItemWidth,t.type),t.autoLayout&&l.watch([$,p,w],([E,K,Q])=>{i.order.index=0,zn(a,E,K,Q,!1,t.minItemWidth,t.maxItemWidth,t.type)});const _=l.computed(()=>V.value?t.expandText??"":t.collapseText??""),g=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),A=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),W=l.ref(),D=l.ref(),N=l.computed(()=>j.value||ye(t.height)||""),V=l.ref(!1),j=l.ref(""),G=l.ref(!1);let J=-1;const B=(E,K=!0)=>{const Q=W.value;if(Q&&V.value!==E){if(J=J===-1?Pi(Q):J,G.value=!0,K)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",E||(j.value="",G.value=!1)},E){let O=0;t.collapseHeight?O=t.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(O=D.value.offsetHeight),j.value=`${J}px`,l.nextTick(()=>{j.value=`${O}px`})}else j.value=`${J}px`;else if(E){let O=0;t.collapseHeight?O=t.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(O=D.value.offsetHeight),j.value=`${O}px`}else G.value=!1,j.value=`${J}px`;V.value=E,r.emit("update:collapse",E)}};l.watch(()=>t.collapse,E=>{B(E)});const ee=E=>{r.emit("header-click",E)},k=()=>{C()},C=E=>{E=E??!V.value,B(E)};Se({toggleCollapse:C,doLayout:()=>{q[0]&&(y(q[0]),zn(a,$.value,p.value,w.value,!0,t.minItemWidth,t.maxItemWidth,t.type))}});let R=null,T=!0;const H=E=>{if(t.rules){const K=l.toRaw(t.rules);b(K)}if(t.pureDataRules){const K=l.toRaw(t.pureDataRules);b(K,!0)}if(at&&(E&&B(ue(t.collapse),!1),t.autoLayout&&Array.isArray(q)&&q.length>0)){const K=q[0];if(y(K),window.ResizeObserver){const Q=He(()=>y(K),120);R=new window.ResizeObserver(Q),R.observe(K)}}},X=()=>{R?.disconnect(),R=null},le=!f.value||s?.acquire();le&&(c.value=f.value?!0:null),l.onMounted(()=>{if(le&&(H(T),T=!1),f.value&&s){let E=null,K=s.initialHeight;s.observe(W.value,Q=>{if(Q!==c.value)if(Q)c.value=!0,V.value||(j.value=""),E=setTimeout(()=>{E=null,c.value!==!1&&(H(T),T=!1)},100);else{if(E!==null&&clearTimeout(E),c.value=!1,!V.value)if(T)j.value=s.initialHeight;else{let O=sl(W.value);O<=0?j.value=K:(j.value=`${O}px`,K=j.value)}T||X()}})}}),l.onUnmounted(()=>{R?.disconnect(),s&&s.unobserve(W.value)});const U=(E="right")=>{const K=[];if(_.value){const z={class:g.value},Z=l.h("span",z,[_.value]);K.push(Z)}const Q={class:A.value},O=o(t.collapseIcon,Q);return O&&K.push(O),K.length>0?l.h("div",{class:{[`${x}__header-collapse`]:!0,[`is-${E}`]:!0},onClick:k},K):null},Y=(E,K,Q,O)=>{const z={...h.value};if(K===0&&(z[`${x}__first`]=!0),Q>=O-1&&(z[`${x}__last`]=!0),L.value===!1){const Z=r.attrs.class;Z&&(z[`${Z}`]=!0)}return l.h("div",{ref:M,key:`${K}`,class:z,style:P.value},E)};return()=>{if(f.value&&c.value!==!0){const z=t.tag||"div";return l.h(z,{ref:W,prop:t.name,class:{[`${x}`]:!0,"is-collapse":G.value},style:d.value},[])}i.order.index=0;const E=[];let K=0;if(r.slots.header){const z={key:`${K++}`,ref:D,class:{[`${x}__header`]:!0,[`${x}__first`]:!0},onClick:ee},Z=l.h("div",z,[r.slots.header()]);E.push(Z)}else{const z=[],Z=t.collapsePosition==="left";if(Z&&t.showCollapse){const ne=U("left");ne&&z.push(ne)}if(t.title||r.slots.title){if(t.showMark){const ne={class:{[`${x}__header-mark`]:!0}};t.markColor&&(ne.style={background:t.markColor});const ie=l.h("div",ne);z.push(ie)}if(r.slots.title){const ne=l.h("div",{class:{[`${x}__header-title`]:!0}},[r.slots.title()]);z.push(ne)}else if(t.title){const ne=l.h("div",{class:{[`${x}__header-title`]:!0}},[t.title]);z.push(ne)}}if(r.slots.toolbar&&z.push(r.slots.toolbar()),!Z&&t.showCollapse){const ne=U("right");ne&&z.push(ne)}if(z.length>0){const ne={key:`${K++}`,ref:D,class:{[`${x}__header`]:!0,[`${x}__first`]:!0},onClick:ee},ie=l.h("div",ne,z);E.push(ie)}}I();const Q=r.slots.default?r.slots.default():[],O=i.layout.value.type;if(O==="grid"){const z=Y(Q,K++,0,Q.length);E.push(z)}else if(O==="flow"){const z=Y(Q,K++,0,Q.length);E.push(z)}else for(let z=0;z<Q.length;z++){const Z=Q[z],ne=Y([Z],K++,z,Q.length);E.push(ne)}if(L.value){const z=t.tag||"div";return l.h(z,{ref:W,prop:t.name,class:{[`${x}`]:!0,"is-collapse":G.value},style:d.value},[E])}else return E}}}}const{componentName:Vi,create:Ri,scope:Fi}=ae("group"),Ai=(e,n)=>(e=e??Ie.ArrowUp,l.h(S.ElIcon,n,{default:()=>[l.h(e)]})),$l=Ri(Di(Vi,Fi,Ai));function Mi(e){return e===window}const Li=/matrix\((.+)\)/,Nl=e=>{const n=l.unref(e);if(!n)return{x:0,y:0};if(Mi(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,i=0,u=0,s=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const f=Li.exec(c);if(f){let v=f[1].split(/\s*,\s*/);v.length==6&&(u+=Number(v[4]),s+=Number(v[5]))}}r=r.parentNode}return o-=a,t-=i,o+=u,t+=s,{x:o,y:t}};class Bi{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 qi{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 Bi,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 Ot=new qi,ea={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:_i,create:ji}=ae("price"),zi=ji({props:{...ea},setup(e){const n=l.computed(()=>({[_i]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),t=l.computed(()=>At(e.price)==0?"":cn(e.price,e.decimalLength,!0,Ce(e.digits),e.separator)),r=l.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=l.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:o,intText:r,decimalText:a}}}),Xe=(e,n)=>{const o=e.__vccOpts||e;for(const[t,r]of n)o[t]=r;return o},Hi=["innerHTML"],Ki=["innerHTML"];function Wi(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,Hi)):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,Ki)):l.createCommentVNode("",!0)],2)}const kn=Xe(zi,[["render",Wi]]),{componentName:Hn,create:Yi}=ae("hint-text"),Ui=Yi({components:{Price:kn},props:{...ea,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),i=l.ref(e.placement),u=l.ref(!1),s=l.ref(null),c=(g,A,W,D,N,V)=>{const j=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,J=g.split("-");let B=[];J[0]==="top"?B=["top","bottom","right","left"]:J[0]==="bottom"?B=["bottom","top","right","left"]:J[0]==="left"?B=["left","top","bottom","right"]:J[0]==="right"&&(B=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},k=[];for(let C=0;C<B.length;C++){const F=B[C];if(k[0]=F,J[1]&&(k[1]=J[1]),F==="top"){const R=A.y-V-e.arrowSize-e.offset;if(R>=0){ee.top=R;let T=0;J[1]==="start"?T=A.x:J[1]==="end"?T=A.x+W-N:T=A.x+W/2-N/2;const H=j-T-N;H<0?(T+=H,m.value=-H):m.value=0,ee.left=T<0?0:T;break}}else if(F==="bottom"){const R=A.y+D+e.arrowSize+e.offset;if(R+V<=G){ee.top=R;let T=0;J[1]==="start"?T=A.x:J[1]==="end"?T=A.x+W-N:T=A.x+W/2-N/2;const H=j-T-N;H<0?(T+=H,m.value=-H):m.value=0,ee.left=T<0?0:T;break}}else if(F==="left"){const R=A.x-N-e.arrowSize-e.offset;if(R>=0){ee.left=R;let T=0;J[1]==="start"?T=A.y:J[1]==="end"?T=A.y+D-V:T=A.y+D/2-V/2,ee.top=T<0?0:T;break}}else if(F==="right"){const R=A.x+W+e.arrowSize+e.offset;if(R+N<=j){ee.left=R;let T=0;J[1]==="start"?T=A.y:J[1]==="end"?T=A.y+D-V:T=A.y+D/2-V/2,ee.top=T<0?0:T;break}}}return{bestPlacement:k.join("-"),bestInsetRect:ee}},f=(g,A,W=10)=>{if(!at||A===!1||!g)return;t.value=Nl(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const D=s.value.offsetHeight,N=s.value.offsetWidth,{bestPlacement:V,bestInsetRect:j}=c(e.placement,t.value,r.value,a.value,N,D);i.value=V,o.value=j,u.value=!0},m=l.ref(0),v=He(()=>{f(e.message,e.visible)},10),b=l.ref(e.visible);l.watch(()=>e.visible,g=>{b.value=g});const x=l.computed(()=>b.value&&d.value),d=l.ref(!0),h=He(g=>{const A=g[0];A&&(d.value=A.isIntersecting)},10),P=new IntersectionObserver(h);l.watch([()=>e.message,()=>e.visible],([g,A])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Ot.watch(e.reference,v),P.observe(e.reference)}),l.onBeforeUnmount(()=>{Ot.unwatch(e.reference,v),P.unobserve(e.reference),P.disconnect()});const w=l.computed(()=>{const g={[Hn]:!0};return i.value.startsWith("top")?g["is-top"]=!0:i.value.startsWith("right")?g["is-right"]=!0:i.value.startsWith("bottom")?g["is-bottom"]=!0:i.value.startsWith("right")&&(g["is-right"]=!0),e.size==="small"?g["is-small"]=!0:e.size==="large"&&(g["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(g[`${e.customClass}`]=!0),g}),p=l.computed(()=>{const g={};o.value.top!==null&&(g.top=`${o.value.top}px`),o.value.right!==null&&(g.right=`${o.value.right}px`),o.value.bottom!==null&&(g.bottom=`${o.value.bottom}px`),o.value.left!==null&&(g.left=`${o.value.left}px`),e.autoFit&&(g["min-width"]=`${r.value}px`);const A=document.documentElement.clientWidth||document.body.clientWidth;return g["max-width"]=`${A}px`,u.value&&(g.opacity="1"),e.transition||(g.transition="none"),e.zIndex&&(g["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(g,e.customStyle),g}),L=l.computed(()=>{const g=[`${Hn}__content`];return e.customTextClass&&g.push(e.customTextClass),g}),q=l.computed(()=>{const g={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(g,e.customTextStyle),g}),M=l.computed(()=>({[`${Hn}__arrow`]:!0})),I=l.computed(()=>{const g={};return e.showArrow?(g.width=`${e.arrowSize}px`,g.height=`${e.arrowSize}px`,i.value==="top"?(g.left="50%",g.bottom=`-${e.arrowSize}px`,g.transform=" translate(-50%, 0%)"):i.value==="top-start"?(g.left=`${e.arrowOffset+m.value}px`,g.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(g.right=`${e.arrowOffset-m.value}px`,g.bottom=`-${e.arrowSize}px`):i.value==="right"?(g.left=`-${e.arrowSize}px`,g.top="50%",g.transform=" translate(0%, -50%)"):i.value==="right-start"?(g.left=`-${e.arrowSize}px`,g.top=`${e.arrowOffset}px`):i.value==="right-end"?(g.left=`-${e.arrowSize}px`,g.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(g.left="50%",g.top=`-${e.arrowSize}px`,g.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(g.left=`${e.arrowOffset+m.value}px`,g.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(g.right=`${e.arrowOffset-m.value}px`,g.top=`-${e.arrowSize}px`):i.value==="left"?(g.right=`-${e.arrowSize}px`,g.top="50%",g.transform=" translate(0%, -50%)"):i.value==="left-start"?(g.right=`-${e.arrowSize}px`,g.top=`${e.arrowOffset}px`):i.value==="left-end"&&(g.right=`-${e.arrowSize}px`,g.bottom=`-${e.arrowOffset}px`),g):{display:"none"}}),$=l.computed(()=>x.value&&e.closeOnClick),y=l.computed(()=>{const g={};return e.zIndex&&(g["z-index"]=`${e.zIndex}`),g});return{show:x,tipRef:s,classes:w,styles:p,textClasses:L,textStyles:q,arrowClasses:M,arrowStyles:I,overlayShow:$,overlayStyle:y,onClickOverlay:()=>{b.value=!1,n.emit("update:visible",!1)}}}}),Gi=["innerHTML"];function Xi(e,n,o,t,r,a){const i=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(i,{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,Gi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Mt=Xe(Ui,[["render",Xi]]);class ta{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 ul={},Zi=new ta,yt=new Map,un=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()}},Qi=e=>{e.unmount=un;const n=document.getElementById(e.id);if(n){const o=yt.get(e.id);o?e={...ul,...o,...e}:e={...ul,...e},e.transition=!1;const t=l.createVNode(Mt,e);l.render(t,n)}return e.id},Ji=e=>{e.unmount=un;let n=e.id??`hinttext_${Zi.get()}`;e={...ul,...e},e.id=n,yt.set(n,e);const o=document.createElement("div");o.id=e.id;const t=l.createVNode(Mt,e);return l.render(t,o),document.body.appendChild(o),n},es=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Re={show(e,n,o={},t=!0){es(n);const r=o.id;return r&&yt.has(r)?Qi({...o,message:n,reference:e}):(t&&un(),Ji({...o,message:n,reference:e}))},hide(e){un(e)},install(e){e.config.globalProperties.$hintText=Re}};function ts(e,n,o,t=!1){return{inheritAttrs:!0,props:{...$e,...De},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;ke({componentName:e,validate:!1},i);const u=it(),s=wn();Sn(!1);const c=l.computed(()=>s&&u?Tn(u,!1).value:null),f=e,m=l.ref(null),v=l.computed(()=>{const O={[f]:!0,[`${f}__gutter`]:c.value&&c.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:ue(r.hasBorder)};if(O[r.errorMarkClass]=!!V.value,O[r.warnMarkClass]=!!D.value,O[r.infoMarkClass]=!!A.value,typeof m.value=="function"){const z=m.value(i);O[z]=!0}else if(typeof m.value=="string"){const z=m.value;O[z]=!0}return O}),b=l.ref(null),x=l.computed(()=>{const O={};if(r.width)r.width!=="auto"&&(O.width=ye(r.width));else{const z=s&&u?Cn(u,!1):null;if(c.value&&z){if(c.value.type==="grid"){const Z=Nn(z,c.value,r.span,r.offset);Object.assign(O,Z)}else if(c.value.type==="flow"){const Z=$n(z,c.value,r.span,r.offset,r.width);Object.assign(O,Z)}}}if(typeof b.value=="function"){const z=b.value(i);z&&Object.assign(O,z)}else if(b.value&&typeof b.value=="object"){const z=b.value;Object.assign(O,z)}return O}),d=l.ref(null),h=l.computed({get:()=>d.value??ue(r.isRequired),set:O=>{d.value=O}}),P=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Fe(l.toRef(r,"labelPosition"),"labelPosition",_e.Near),p=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),L=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${p.value}`]:!0})),q=l.computed(()=>({label:!0,[`label--${p.value}`]:!0})),M=Fe(l.toRef(r,"labelWidth"),"labelWidth",_e.Near),I=l.computed(()=>M&&M.value?{width:ye(M.value)}:{}),$=l.computed(()=>({"label--string":!0,"label--required":h.value})),y=l.computed(()=>({content:!0,[r.contentClass]:!0})),_=l.computed(()=>({...r.contentStyle})),g=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Se({setRequired(O){h.value=O},setErrorTip(O){g.errorTip=O},setErrorIcon(O){g.errorIcon=O},setWarnTip(O){g.warnTip=O},setWarnIcon(O){g.warnIcon=O},setInfoTip(O){g.infoTip=O},setInfoIcon(O){g.infoIcon=O},setCustomClassName(O){m.value=O},setCustomStyle(O){b.value=O}});const A=l.computed(()=>r.infoTip||g.infoTip),W=l.computed(()=>r.infoIcon||g.infoIcon),D=l.computed(()=>r.warnTip||g.warnTip),N=l.computed(()=>r.warnIcon||g.warnIcon),V=l.computed(()=>r.errorTip||g.errorTip),j=l.computed(()=>r.errorIcon||g.errorIcon),G=l.computed(()=>V.value?"error":D.value?"warn":A.value?"info":""),J=()=>G.value.length>0,B=l.computed(()=>G.value==="error"?V.value:G.value==="warn"?D.value:G.value==="info"?A.value:""),ee=l.computed(()=>G.value==="error"?j.value:G.value==="warn"?N.value:G.value==="info"?W.value:null),k=l.computed(()=>{const O={[`${f}__tip`]:!0,[`${f}__tip--${G.value}`]:!0,[`${f}--animate`]:!0};return G.value==="error"&&r.errorClass?O[`${r.errorClass}`]=!0:G.value==="warn"&&r.warnClass?O[`${r.warnClass}`]=!0:G.value==="info"&&r.infoClass&&(O[`${r.infoClass}`]=!0),O}),C=l.computed(()=>{const O={};return w&&w.value==="top"||!P()?O["padding-left"]="0px":M&&M.value&&(O["padding-left"]=ye(M.value)),O}),F=l.ref();let R="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([O,z,Z,ne])=>{F.value&&(O&&!de(z)?R?o.show(F.value,z,{...ne,id:R,type:Z},!0):R=o.show(F.value,z,{...ne,type:Z},!0):o.hide(R))});let T=null;const H=()=>{T||!F.value||(T=new IntersectionObserver(O=>{let z=!1;for(let Z of O)if(Z.intersectionRatio>0){z=!0,z&&a.emit("appear",Z);break}z||a.emit("disappear")}),T.observe(F.value))},X=()=>{!T||!F.value||(T.unobserve(F.value),T=null)};l.watch(()=>ue(r.appearListen),O=>{O?H():X()}),l.onMounted(()=>{ue(r.appearListen)&&H()}),l.onUnmounted(X);const le=()=>{if(!P())return null;const O=[],z=a.slots?.label?.()??r.label,Z={class:$.value},ne=l.h("div",Z,[z]);if(O.push(ne),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();O.push(ce)}const ie={class:q.value,style:I.value};return l.h("div",ie,O)},U=()=>{const O=[];if(a.slots.prepend){const Z=a.slots.prepend();O.push(Z)}if(a.slots.default){const Z=a.slots.default();O.push(Z)}if(a.slots.append){const Z=a.slots.append();O.push(Z)}if(a.slots.fixedTip){const Z={class:[`${f}__fixed-tip`]},ne=l.h("div",Z,[a.slots.fixedTip()]);O.push(ne)}const z={ref:F,class:y.value,style:_.value};return l.h("div",z,O)},Y=()=>{const O=ee.value;return O?typeof O=="function"?l.h("div",{class:"fox-item__tip--icon"},[O()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(O)]):null},E=()=>{const O=B.value;return O?typeof O=="function"?l.h("div",{class:"fox-item__tip--text"},[O()]):l.h("div",{class:"fox-item__tip--text"},[O]):null},K=()=>{if(!J())return null;const O=[],z=Y();z&&O.push(z);const Z=E();Z&&O.push(Z);const ne={class:k.value,style:C.value};return l.h("div",ne,O)},Q=()=>a.slots?.hide?.()??null;return()=>{const O=[],z=[],Z=le();Z&&z.push(Z);const ne=U();ne&&z.push(ne);const ie={class:L.value},ce=l.h("div",ie,z);O.push(ce);const ve=K();ve&&O.push(ve);const me=Q();me&&O.push(me);const Te={class:v.value,style:x.value,prop:r.prop};return l.h("div",Te,O)}}}}const{componentName:ns,create:ls,scope:os}=ae("item"),Ne=ls(ts(ns,os,Re,!1)),cl={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function rs(e,n){return{props:{...cl},setup(o,t){const r=it(),a=wn();Sn(!1);const i=l.computed(()=>a&&r?Tn(r,!1).value:null),u=e,s=l.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),c=l.computed(()=>{const f={};if(o.width)o.width!=="auto"&&(f.width=ye(o.width));else{const m=a&&r?Cn(r,!1):null;if(i.value&&m)if(i.value.type==="grid"){const v=Nn(m,i.value,o.span,o.offset);Object.assign(f,v)}else if(i.value.type==="flow"){const v=$n(m,i.value,o.span,o.offset,o.width);Object.assign(f,v)}else return o.width&&(f.width=ye(o.width)),f}return f});return()=>{const f={class:s.value,style:c.value};return t.slots&&typeof t.slots.default=="function"?l.h("div",f,t.slots.default()):l.h("div",f)}}}}const{componentName:as,create:is}=ae("slot-item"),En=is(rs(as)),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 ss(e,n){return{props:{...fl},setup(o,t){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=it(),u=wn();Sn(!1);const s=l.computed(()=>{const c={};if(o.width)o.width!=="auto"&&(c.width=ye(o.width));else if(u&&i){const f=Tn(i,!1),m=Cn(i,!1);if(f.value&&m)if(f.value.type==="grid"){const v=Nn(m,f.value,o.span,o.offset);Object.assign(c,v)}else if(f.value.type==="flow"){const v=$n(m,f.value,o.span,o.offset,o.width);Object.assign(c,v)}else o.width&&(c.width=ye(o.width))}return o.gutter&&(c.gap=ye(o.gutter)),c});return()=>{const c=[];if(t.slots.default){const m=t.slots.default();if(o.divide)for(let v=0;v<m.length;v++){if(v>0){const b=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(b)}c.push(m[v])}else Reflect.apply([].push,c,m)}const f={class:a.value,style:s.value};return l.h("div",f,c)}}}}const{componentName:us,create:cs}=ae("row-item"),Pn=cs(ss(us));function fs(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 ds={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 hs(e,n,o,t=!1){return{props:{...ds},emits:["click"],setup(r,a){const i=l.ref(null),u=l.computed(()=>{const p={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(p[`${e}--${r.type??"default"}`]=!0),r.size&&(p[`${e}--${r.size}`]=!0),p}),s=l.computed(()=>{const p={},L=r.textColor??r.color;return L&&(p.color=L),p}),c=(p,L)=>{let q=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const M=r.highlightFilter;if(p.indexOf(M)!==-1){const $=p.replace(new RegExp(M,"g"),`<span>${M}</span>`);L.innerHTML=$,L.class["is-highlight"]=!0,q=l.h(r.tag,L)}}else if(typeof r.highlightFilter=="function"){const M=r.highlightFilter(p);M&&(L.innerHTML=M,L.class["is-highlight"]=!0,q=l.h(r.tag,L))}return q},f=p=>{a.emit("click",p)};let m="";const v=()=>{const p=i.value;if(!p)return;const L=p.clientWidth;fs(p,q=>{const M=p.innerHTML??"";de(M)||q<L||(m?o?.show(p,M,{type:"text",id:m,showArrow:r.showArrow},!0):m=o?.show(p,M,{type:"text",showArrow:r.showArrow},!0)??"")})},b=()=>{m&&o?.hide(m)};let x=null;const d=p=>{x||(x=setTimeout(()=>{v(),x=null},r.showAfter??0))},h=p=>{x&&(clearTimeout(x),x=null),setTimeout(()=>{b()},r.hideAfter??0)},P=()=>{const p=i.value;p&&(p.addEventListener("mouseover",d),p.addEventListener("mouseleave",h))},w=()=>{const p=i.value;p&&(p.removeEventListener("mouseover",d),p.removeEventListener("mouseleave",h))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||P()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||w()}),()=>{const p={onClick:f,class:u.value,style:s.value,ref:i};let L=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const $=a.slots.default();if(Array.isArray($)&&$.length===1){const y=$[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const _=Ce(r.digits),g=Ce(r.decimalLength),A=ue(r.autoPadding);let W=`${$[0].children}`,D=W.split("").reverse().join("");D=cn(D,g,A,_,r.separator),W=D.split("").reverse().join(""),r.highlightFilter!==void 0&&(L=c(W,p)),L||(p.innerHTML=W,L=l.h(r.tag,p))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const $=a.slots.default();if(Array.isArray($)&&$.length===1){const y=$[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const _=`${$[0].children}`;L=c(_,p),L||(p.innerHTML=_,L=l.h(r.tag,p))}}}L||(L=l.h(r.tag,p,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return L;let M=null;if(r.icon){const $={[`${e}__mark-wrap`]:!0};r.type&&($[`${e}__mark-wrap--${r.type}`]=!0);const y={},_=r.color;_&&(y.color=_);const g={onClick:f,class:$,style:y};M=l.h("view",g,l.h(r.icon))}else if(a.slots.mark){const $={[`${e}__mark-wrap`]:!0};r.type&&($[`${e}__mark-wrap--${r.type}`]=!0);const y={},_=r.color;_&&(y.color=_);const g={onClick:f,class:$,style:y};M=l.h("view",g,{default:a.slots.mark})}else{const $={[`${e}__mark`]:!0};r.type&&($[`${e}__mark--${r.type??"default"}`]=!0);const y={},_=r.color;_&&(y["background-color"]=_);const g={onClick:f,class:$,style:y};M=l.h("view",g)}const I={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",I,[M,L])}}}}const{componentName:ms,create:gs,scope:vs}=ae("text"),In=gs(hs(ms,vs,Re,!1)),ps={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 ys(e,n,o=!1){return{props:{...ps},emits:["update:visible"],setup(t,{emit:r,slots:a,expose:i}){const u=l.ref({top:null,right:null,bottom:null,left:null}),s=l.ref(0),c=l.ref(0),f=l.ref(0),m=l.ref(0),v=l.ref(t.placement),b=l.ref(!1),x=l.ref(!1),d=l.ref(null),h=()=>typeof t.reference=="string"?document.querySelector(t.reference):t.reference,P=(B,ee,k,C,F,R,T,H=!0)=>{const X=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight,U=B.split("-");let Y=[];H?U[0]==="top"?Y=["top","bottom","right","left"]:U[0]==="bottom"?Y=["bottom","top","right","left"]:U[0]==="left"?Y=["left","top","bottom","right"]:U[0]==="right"&&(Y=["right","top","bottom","left"]):Y=[B[0]];const E={top:null,right:null,bottom:null,left:null},K=[];for(let Q=0;Q<Y.length;Q++){const O=Y[Q];if(K[0]=O,U[1]&&(K[1]=U[1]),O==="top"){const z=k-T-t.arrowSize/2-t.offset;if(z>=0){E.top=z;let Z=0;U[1]==="start"?Z=ee:U[1]==="end"?Z=ee+C-R:Z=ee+C/2-R/2;const ne=X-Z-R;ne<0?(Z+=ne,p.value=-ne):p.value=0,E.left=Z<0?0:Z;break}}else if(O==="bottom"){const z=k+F+t.arrowSize/2+t.offset;if(z+T<=le){E.top=z;let Z=0;U[1]==="start"?Z=ee:U[1]==="end"?Z=ee+C-R:Z=ee+C/2-R/2;const ne=X-Z-R;ne<0?(Z+=ne,p.value=-ne):p.value=0,E.left=Z<0?0:Z;break}}else if(O==="left"){const z=ee-R-t.arrowSize/2-t.offset;if(z>=0){E.left=z;let Z=0;U[1]==="start"?Z=k:U[1]==="end"?Z=k+F-T:Z=k+F/2-T/2,E.top=Z<0?0:Z;break}}else if(O==="right"){const z=ee+C+t.arrowSize/2+t.offset;if(z+R<=X){E.left=z;let Z=0;U[1]==="start"?Z=k:U[1]==="end"?Z=k+F-T:Z=k+F/2-T/2,E.top=Z<0?0:Z;break}}}return{bestPlacement:K.join("-"),bestInsetRect:E}},w=()=>{const B=t.visible,ee=t.autoFit;if(!at||B===!1)return;if(t.reference){const T=h(),H=Nl(T);s.value=H.x,c.value=H.y,f.value=T.offsetWidth,m.value=T.offsetHeight}else t.referenceInset&&(s.value=t.referenceInset.left,c.value=t.referenceInset.top,f.value=t.referenceInset.right-t.referenceInset.left,m.value=t.referenceInset.bottom-t.referenceInset.top);const k=d.value.offsetWidth,C=d.value.offsetHeight,{bestPlacement:F,bestInsetRect:R}=P(t.placement,s.value,c.value,f.value,m.value,k,C,ee);v.value=F,u.value=R},p=l.ref(0),L=He(()=>{w()},10),q=l.ref(t.visible);l.watch([()=>t.visible],([B])=>{q.value=B,B?(b.value=B,setTimeout(()=>{w(),x.value=!0},0)):x.value=!1});const M=l.computed(()=>q.value&&I.value),I=l.ref(!0),$=He(B=>{const ee=B[0];ee&&(I.value=ee.isIntersecting)},10),y=new IntersectionObserver($);l.watch([()=>t.reference,()=>t.referenceInset],([B,ee],[k,C])=>{!B&&!ee||(setTimeout(()=>{w()},0),t.autoFit&&(k&&(Ot.unwatch(k,L),y.unobserve(k)),B&&(Ot.watch(B,L),y.observe(B))))},{immediate:!0}),l.onBeforeUnmount(()=>{t.reference&&(Ot.unwatch(t.reference,L),y.unobserve(t.reference),y.disconnect())});const _=l.computed(()=>{const B={[e]:!0};return v.value.startsWith("top")?B["is-top"]=!0:v.value.startsWith("right")?B["is-right"]=!0:v.value.startsWith("bottom")?B["is-bottom"]=!0:v.value.startsWith("left")&&(B["is-left"]=!0),B[`is-${t.effect}`]=!0,!x.value&&M.value&&(B["is-opacity"]=!0),x.value&&M.value&&(B["is-show"]=!0),M.value||(B["is-hide"]=!0),t.customClass&&typeof t.customClass=="string"&&(B[`${t.customClass}`]=!0),B}),g=l.computed(()=>{const B={};return u.value.top!==null&&(B.top=`${u.value.top}px`),u.value.right!==null&&(B.right=`${u.value.right}px`),u.value.bottom!==null&&(B.bottom=`${u.value.bottom}px`),u.value.left!==null&&(B.left=`${u.value.left}px`),t.width&&(B.width=t.width),t.zIndex&&(B["z-index"]=`${t.zIndex}`),t.customStyle&&typeof t.customStyle=="object"&&Object.assign(B,t.customStyle),B}),A=()=>{q.value=!1,r("update:visible",!1)},W=()=>{if(!t.showOverlay)return null;const B={class:`${e}__overlay`,onClick:A};return l.h("div",B)},D=()=>{let B=null;return a.title?B=l.h("div",{class:`${e}__title`},{default:a.title}):t.title&&(B=l.h("div",{class:`${e}__title`},[t.title])),B},N=l.computed(()=>({[`${e}__arrow`]:!0})),V=l.computed(()=>{const B={};return t.showArrow?(B.width=`${t.arrowSize}px`,B.height=`${t.arrowSize}px`,v.value==="top"?(B.left="50%",B.bottom="0",B.transform="translate(-50%, 50%)"):v.value==="top-start"?(B.left=`${t.arrowOffset+p.value}px`,B.bottom="0",B.transform="translate(-50%, 50%)"):v.value==="top-end"?(B.right=`${t.arrowOffset-p.value}px`,B.bottom="0",B.transform="translate(-50%, 50%)"):v.value==="right"?(B.left="0",B.top="50%",B.transform="translate(-50%, -50%)"):v.value==="right-start"?(B.left="0",B.top=`${t.arrowOffset}px`,B.transform="translate(-50%, 50%)"):v.value==="right-end"?(B.left="0",B.bottom=`-${t.arrowOffset}px`,B.transform="translate(-50%, 50%)"):v.value==="bottom"?(B.left="50%",B.top="0",B.transform="translate(-50%, -50%)"):v.value==="bottom-start"?(B.left=`${t.arrowOffset+p.value}px`,B.top="0",B.transform="translate(-50%, -50%)"):v.value==="bottom-end"?(B.right=`${t.arrowOffset-p.value}px`,B.top="0",B.transform="translate(-50%, -50%)"):v.value==="left"?(B.right="0",B.top="50%",B.transform="translate(50%, -50%)"):v.value==="left-start"?(B.right="0",B.top=`${t.arrowOffset}px`,B.transform="translate(50%, -50%)"):v.value==="left-end"&&(B.right="0",B.bottom=`-${t.arrowOffset}px`,B.transform="translate(50%, -50%)"),B):{display:"none"}}),j=()=>{const B={class:N.value,style:V.value};return l.h("div",B)},G=()=>{q.value===!1&&(b.value=!1)},J=B=>{if(!d.value||q.value===!1)return;const{relatedTarget:ee}=B;d.value.contains(ee)||(q.value=!1,r("update:visible",!1))};return i({doLayout:w}),()=>{if(!b.value)return null;const B=[],ee=W();ee&&B.push(ee);const k=[],C=D();if(C&&k.push(C),a.default){const X=a.default();k.push(X)}const F=j();F&&k.push(F);const R={ref:d,class:_.value,style:g.value,onAnimationend:G};t.leaveHide&&(R.onMouseleave=J);const T=l.h("div",R,{default:()=>k});return B.push(T),l.h(l.Teleport,{to:t.teleport,disabled:t.teleportDisable},{default:()=>B})}}}}const{componentName:bs,create:xs,scope:ws}=ae("popover-dialog"),On=xs(ys(bs,ws,!1)),Ss={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 Ts(e,n,o){return{props:{...fl,...Ss},emits:["click"],setup(t,{slots:r,attrs:a}){const{toLocaleRefs:i}=Ae.useFoxI18n(n),u=i(t,["moreText"]),s=e,c=l.computed(()=>({[s]:!0}));function f(M){return M.props||{}}function m(M){return!!f(M).disabled}function v(M){return M.children??[]}const b=l.ref(),x=l.computed(()=>b.value?.$el??null),d=l.ref(!1),h=M=>{d.value=M},P=()=>{d.value=!d.value};function w(M,I){return()=>{if(I)return;d.value=!1,f(M)?.onClick?.()}}function p(M,I){const $=v(M),y=m(M),_=w(M,y),g=[`${s}__dropdown-item`];y&&g.push("is-disabled");const A={class:g,onClick:_};return l.h("span",A,$)}const L=M=>{const I=t.maxDisplayCount??M.length;if(I>=M.length)return M;const $=[],y=I-1;for(let V=0;V<y;V++)$.push(M[V]);const _=(r.moreIcon&&r.moreIcon())??(t.moreIcon&&l.h(t.moreIcon))??l.h(o),g={ref:V=>b.value=V,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:t.type,onClick:P},A=l.h(In,g,{default:()=>u.moreText.value,mark:()=>_});$.push(A);const W=[];for(let V=y;V<M.length;V++){const j=p(M[V]);W.push(j)}const D={placement:t.dropdownPlacement,"onUpdate:visible":h,visible:d.value,reference:x.value,"custom-class":`${s}__popover`},N=l.h(On,D,{default:()=>W});return $.push(N),$},q=()=>(r.default?.()||[]).filter(I=>I.type!==Comment);return()=>{const M=q(),I=L(M),$=xt(t,fl);return Object.assign($,a??{}),$.class=c.value,l.h(Pn,$,{default:()=>I})}}}}const{componentName:Cs,create:$s,scope:Ns}=ae("buttons-item"),kl=$s(Ts(Cs,Ns,Ie.ArrowDown)),Ze=(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},bo={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 ks(e,n,o){return{props:{...$e,...De,...bo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Ae.useFoxI18n(n),m=f(t,["placeholder"]),v=l.ref(!1),b=he(t,"modelValue",null,c),x=e,d=l.computed(()=>({[x]:!0,[`${x}__disabled`]:i.value,[`${x}__readonly`]:s.value})),h=N=>{b.value=N,c("update:modelValue",N),c("input",N)},P=N=>{c("change",N)};let w=he(t,"hintText"),p=l.ref(!1);const L=N=>{let j=N.target.value;v.value=!0,de(w.value)||(p.value=!0),c("focus",j,N)},q=N=>{setTimeout(()=>{p.value&&(p.value=!1),v.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)},M=()=>{c("clear","")},I=l.ref(!1);let $=null;const y=()=>{t.showTooltip&&I.value===!1&&($&&clearTimeout($),$=setTimeout(()=>{I.value=!0},150))},_=()=>{$&&(clearTimeout($),I.value=!1,$=null)},g=l.computed(()=>I.value||p.value),A=l.computed(()=>I.value?b.value:w.value),W=l.computed(()=>At(t.unit)>0),D=l.ref();return Se({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const V={...Ze(r.attrs),ref:D,class:d.value,placeholder:m.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:M,onChange:P,onInput:h,onFocus:L,onBlur:q,onMouseover:y,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:W.value&&(j.suffix=()=>[t.unit]);const G=[],J=l.h(S.ElInput,V,j);G.push(J);const B={default:()=>G};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const k={...Oe(t,bo),hintText:A.value,hintVisible:g.value};return t.prop&&(k.prop=`${t.prop}_item`),l.h(o,k,B)}}}}const{componentName:Es,create:Ps,scope:Is}=ae("input-item"),El=Ps(ks(Es,Is,Ne));function ot(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Vt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function na(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Os(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ds=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=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Vs(){const e=l.getCurrentInstance();return new Ds(e.proxy)}function la(e,n,o){const t=ot(e,n),r=ot(e,o);if(t!==r)return!1;const a=Vt(e,n),i=Vt(e,o);return a===i}function oa(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 i of t){const u=na(e,i);if(Array.isArray(u)&&u.length>0){const s=oa(e,a,o,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(o==="text")s=ot(e,i)===a;else if(o==="item")s=la(e,i,a);else{let c=Vt(e,i);c==null&&(c=ot(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function Rs(e){return{text:e,value:e}}const xo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Fs(e,n,o){return{props:{...$e,...De,...xo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Ae.useFoxI18n(n),m=f(t,["placeholder"]),v=l.ref(null),b=l.ref([]),x=l.computed(()=>b.value?b.value.map(K=>ot(t,K)).join(" "):""),d=(E,K,Q,O=!0)=>{if(!Q||Q.length==0){v.value=E,O&&(c("update:modelValue",E),c("change",E));return}const z=oa(t,E,K,Q);if(z===null){if(b.value===null||b.value.length===0)return;v.value=null,b.value=[],O&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let Z=!0;if(z.length!==b.value.length)Z=!1;else for(let ne=0;ne<z.length;ne++){const ie=z[ne],ce=b.value[ne];if(!la(t,ie,ce)){Z=!1;break}}if(!Z){b.value=z;let ne=[],ie=[],ce=[];z.forEach(st=>{const mt=Vt(t,st),Ke=ot(t,st);ne.push(mt),ce.push(Ke),t.valueType==="text"?ie.push(Ke):t.valueType==="item"?ie.push(st):ie.push(mt)});let ve,me,Te;ue(t.multiple)?(v.value=ne,ve=l.toRaw(ie),me=ce,Te=l.toRaw(z)):(v.value=ne[0]??"",ve=l.toRaw(ie[0]??""),me=ce[0]??"",Te=l.toRaw(z[0])),O&&(c("update:modelValue",ve),c("change",ve,Te)),c("update:text",me)}},h=l.ref(null),P=l.ref(null),w=l.computed(()=>P.value??h.value??[]),p=Fe(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,E=>ue(E)),L=Vs(),q=async(E,K)=>{if(E){const Q=await L.load("select",E,K);if(Q.length>0)if(typeof Q[0]=="string"){let Z=Q.map(ne=>Rs(ne));h.value=Z}else h.value=Q;else h.value=null}};l.watch([()=>t.source,()=>t.params],([E,K])=>{P.value=null,q(E,K)},{immediate:!p.value});let M=!1;const I=()=>{M||(M=!0,q(t.source,t.params))};l.watch([()=>h.value,()=>t.modelValue],([E,K])=>{if(g()&&ue(t.multiple)){tt(K,v.value)||(v.value=K);return}d(K,t.valueType,w.value,!1),c("setValue",K)}),t.source||(v.value=t.modelValue);let $=null,y=l.ref(!1);typeof t.remoteMethod=="function"&&($=async E=>{if(E==null){P.value=null;return}y.value=!0;try{const K=await t.remoteMethod(E);K&&(P.value=K)}catch(K){P.value=null,console.error(K)}y.value=!1});let _=null;typeof t.filterMethod=="function"&&(_=async E=>{if(E==null){P.value=null;return}y.value=!0;try{const K=await t.filterMethod(E,h.value);K&&(P.value=K)}catch(K){P.value=null,console.error(K)}y.value=!1});const g=()=>typeof t.remoteMethod=="function"||typeof t.filterMethod=="function",A=l.ref(!1),W=e,D=l.computed(()=>({[W]:!0})),N=E=>{t.allowCreate||g()&&ue(t.multiple)?(c("update:modelValue",E),c("change",E),c("update:text",E),v.value=E):d(E,"value",w.value,!0)};let V=he(t,"hintText"),j=l.ref(!1);const G=E=>{let Q=E.target.value;A.value=!0,de(V.value)||(j.value=!0),c("focus",Q,E)},J=E=>{setTimeout(()=>{j.value&&(j.value=!1),A.value=!1},0);let Q=E.target.value;t.maxLength&&Q.length>Number(t.maxLength)&&(Q=Q.slice(0,Number(t.maxLength))),H.value||c("blur",Q,E)},B=()=>{c("clear","")},ee=l.ref(!1);let k=null;const C=()=>{t.showTooltip&&ee.value===!1&&(k&&clearTimeout(k),k=setTimeout(()=>{ee.value=!0},150))},F=()=>{k&&(clearTimeout(k),ee.value=!1,k=null)},R=l.computed(()=>ee.value||j.value),T=l.computed(()=>ee.value?x.value:V.value),H=l.ref(!1),X=E=>{H.value=E,c("visible-change",E),E||c("selected")},le=E=>{c("remove-tag",E)},U=(E,K)=>{const Q=[];return E.forEach((O,z)=>{const Z=na(t,O);if(Array.isArray(Z)&&Z.length>0){const ne=U(Z,K),ie=ot(t,O),ve={key:`${ie}_${z}`,label:ie};Q.push(l.h(S.ElOptionGroup,ve,{default:()=>ne}))}else{const ne=Vt(t,O),ie=ot(t,O),ce=Os(t,O),me={key:`${ne}_${z}`,label:ie,disabled:ce,value:ne};if(typeof K=="function")Q.push(l.h(S.ElOption,me,{default:()=>K(O)}));else if(t.optionType==="item"){const Te={class:{"fox-select-item__option-left":!0}},st=l.h("span",Te,[ne]),mt={class:{"fox-select-item__option-right":!0}},Ke=l.h("span",mt,[ie]),qt=l.h("div",{class:{"fox-select-item__option":!0}},[st,Ke]);Q.push(l.h(S.ElOption,me,{default:()=>qt}))}else t.optionType==="value"?Q.push(l.h(S.ElOption,me,{default:()=>[ne]})):Q.push(l.h(S.ElOption,me))}}),Q},Y=l.ref();return Se({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const K={...Ze(r.attrs),ref:Y,class:D.value,clearable:t.clearable,multiple:t.multiple,placeholder:m.placeholder.value,disabled:i.value||s.value,modelValue:v.value,"value-key":t.valueKey,"allow-create":t.allowCreate,onClear:B,onChange:N,onFocus:G,onBlur:J,onVisibleChange:X,onRemoveTag:le};typeof $=="function"&&(K["remote-method"]=$,K.loading=y.value),typeof _=="function"&&(K["filter-method"]=_,K.loading=y.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=()=>U(w.value,r.slots.option);const O=[],z=l.h(S.ElSelect,K,Q);O.push(z);const Z={default:()=>O};Z.label=r.slots.default,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const ie={...Oe(t,xo),hintText:T.value,hintVisible:R.value,onMouseover:C,onMouseleave:F};return t.prop&&(ie.prop=`${t.prop}_item`),p.value&&(ie["appear-listen"]=!0,ie.onAppear=I),l.h(o,ie,Z)}}}}const{componentName:As,create:Ms,scope:Ls}=ae("select-item"),Pl=Ms(Fs(As,Ls,Ne));function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yt={exports:{}},Bs=Yt.exports,wo;function qs(){return wo||(wo=1,(function(e,n){(function(o,t){e.exports=t()})(Bs,(function(){var o=1e3,t=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",f="week",m="month",v="quarter",b="year",x="date",d="Invalid Date",h=/^(\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,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var N=["th","st","nd","rd"],V=D%100;return"["+D+(N[(V-20)%10]||N[V]||N[0])+"]"}},p=function(D,N,V){var j=String(D);return!j||j.length>=N?D:""+Array(N+1-j.length).join(V)+D},L={s:p,z:function(D){var N=-D.utcOffset(),V=Math.abs(N),j=Math.floor(V/60),G=V%60;return(N<=0?"+":"-")+p(j,2,"0")+":"+p(G,2,"0")},m:function D(N,V){if(N.date()<V.date())return-D(V,N);var j=12*(V.year()-N.year())+(V.month()-N.month()),G=N.clone().add(j,m),J=V-G<0,B=N.clone().add(j+(J?-1:1),m);return+(-(j+(V-G)/(J?G-B:B-G))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:m,y:b,w:f,d:c,D:x,h:s,m:u,s:i,ms:a,Q:v}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},q="en",M={};M[q]=w;var I="$isDayjsObject",$=function(D){return D instanceof A||!(!D||!D[I])},y=function D(N,V,j){var G;if(!N)return q;if(typeof N=="string"){var J=N.toLowerCase();M[J]&&(G=J),V&&(M[J]=V,G=J);var B=N.split("-");if(!G&&B.length>1)return D(B[0])}else{var ee=N.name;M[ee]=N,G=ee}return!j&&G&&(q=G),G||!j&&q},_=function(D,N){if($(D))return D.clone();var V=typeof N=="object"?N:{};return V.date=D,V.args=arguments,new A(V)},g=L;g.l=y,g.i=$,g.w=function(D,N){return _(D,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var A=(function(){function D(V){this.$L=y(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[I]=!0}var N=D.prototype;return N.parse=function(V){this.$d=(function(j){var G=j.date,J=j.utc;if(G===null)return new Date(NaN);if(g.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var B=G.match(h);if(B){var ee=B[2]-1||0,k=(B[7]||"0").substring(0,3);return J?new Date(Date.UTC(B[1],ee,B[3]||1,B[4]||0,B[5]||0,B[6]||0,k)):new Date(B[1],ee,B[3]||1,B[4]||0,B[5]||0,B[6]||0,k)}}return new Date(G)})(V),this.init()},N.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},N.$utils=function(){return g},N.isValid=function(){return this.$d.toString()!==d},N.isSame=function(V,j){var G=_(V);return this.startOf(j)<=G&&G<=this.endOf(j)},N.isAfter=function(V,j){return _(V)<this.startOf(j)},N.isBefore=function(V,j){return this.endOf(j)<_(V)},N.$g=function(V,j,G){return g.u(V)?this[j]:this.set(G,V)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(V,j){var G=this,J=!!g.u(j)||j,B=g.p(V),ee=function(le,U){var Y=g.w(G.$u?Date.UTC(G.$y,U,le):new Date(G.$y,U,le),G);return J?Y:Y.endOf(c)},k=function(le,U){return g.w(G.toDate()[le].apply(G.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(U)),G)},C=this.$W,F=this.$M,R=this.$D,T="set"+(this.$u?"UTC":"");switch(B){case b:return J?ee(1,0):ee(31,11);case m:return J?ee(1,F):ee(0,F+1);case f:var H=this.$locale().weekStart||0,X=(C<H?C+7:C)-H;return ee(J?R-X:R+(6-X),F);case c:case x:return k(T+"Hours",0);case s:return k(T+"Minutes",1);case u:return k(T+"Seconds",2);case i:return k(T+"Milliseconds",3);default:return this.clone()}},N.endOf=function(V){return this.startOf(V,!1)},N.$set=function(V,j){var G,J=g.p(V),B="set"+(this.$u?"UTC":""),ee=(G={},G[c]=B+"Date",G[x]=B+"Date",G[m]=B+"Month",G[b]=B+"FullYear",G[s]=B+"Hours",G[u]=B+"Minutes",G[i]=B+"Seconds",G[a]=B+"Milliseconds",G)[J],k=J===c?this.$D+(j-this.$W):j;if(J===m||J===b){var C=this.clone().set(x,1);C.$d[ee](k),C.init(),this.$d=C.set(x,Math.min(this.$D,C.daysInMonth())).$d}else ee&&this.$d[ee](k);return this.init(),this},N.set=function(V,j){return this.clone().$set(V,j)},N.get=function(V){return this[g.p(V)]()},N.add=function(V,j){var G,J=this;V=Number(V);var B=g.p(j),ee=function(F){var R=_(J);return g.w(R.date(R.date()+Math.round(F*V)),J)};if(B===m)return this.set(m,this.$M+V);if(B===b)return this.set(b,this.$y+V);if(B===c)return ee(1);if(B===f)return ee(7);var k=(G={},G[u]=t,G[s]=r,G[i]=o,G)[B]||1,C=this.$d.getTime()+V*k;return g.w(C,this)},N.subtract=function(V,j){return this.add(-1*V,j)},N.format=function(V){var j=this,G=this.$locale();if(!this.isValid())return G.invalidDate||d;var J=V||"YYYY-MM-DDTHH:mm:ssZ",B=g.z(this),ee=this.$H,k=this.$m,C=this.$M,F=G.weekdays,R=G.months,T=G.meridiem,H=function(U,Y,E,K){return U&&(U[Y]||U(j,J))||E[Y].slice(0,K)},X=function(U){return g.s(ee%12||12,U,"0")},le=T||function(U,Y,E){var K=U<12?"AM":"PM";return E?K.toLowerCase():K};return J.replace(P,(function(U,Y){return Y||(function(E){switch(E){case"YY":return String(j.$y).slice(-2);case"YYYY":return g.s(j.$y,4,"0");case"M":return C+1;case"MM":return g.s(C+1,2,"0");case"MMM":return H(G.monthsShort,C,R,3);case"MMMM":return H(R,C);case"D":return j.$D;case"DD":return g.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return H(G.weekdaysMin,j.$W,F,2);case"ddd":return H(G.weekdaysShort,j.$W,F,3);case"dddd":return F[j.$W];case"H":return String(ee);case"HH":return g.s(ee,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return le(ee,k,!0);case"A":return le(ee,k,!1);case"m":return String(k);case"mm":return g.s(k,2,"0");case"s":return String(j.$s);case"ss":return g.s(j.$s,2,"0");case"SSS":return g.s(j.$ms,3,"0");case"Z":return B}return null})(U)||B.replace(":","")}))},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(V,j,G){var J,B=this,ee=g.p(j),k=_(V),C=(k.utcOffset()-this.utcOffset())*t,F=this-k,R=function(){return g.m(B,k)};switch(ee){case b:J=R()/12;break;case m:J=R();break;case v:J=R()/3;break;case f:J=(F-C)/6048e5;break;case c:J=(F-C)/864e5;break;case s:J=F/r;break;case u:J=F/t;break;case i:J=F/o;break;default:J=F}return G?J:g.a(J)},N.daysInMonth=function(){return this.endOf(m).$D},N.$locale=function(){return M[this.$L]},N.locale=function(V,j){if(!V)return this.$L;var G=this.clone(),J=y(V,j,!0);return J&&(G.$L=J),G},N.clone=function(){return g.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},D})(),W=A.prototype;return _.prototype=W,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",m],["$y",b],["$D",x]].forEach((function(D){W[D[1]]=function(N){return this.$g(N,D[0],D[1])}})),_.extend=function(D,N){return D.$i||(D(N,A,_),D.$i=!0),_},_.locale=y,_.isDayjs=$,_.unix=function(D){return _(1e3*D)},_.en=M[q],_.Ls=M,_.p={},_}))})(Yt)),Yt.exports}var _s=qs();const Je=nt(_s);var Ut={exports:{}},js=Ut.exports,So;function zs(){return So||(So=1,(function(e,n){(function(o,t){e.exports=t()})(js,(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/,i=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},c=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(P){this[h]=+P}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function(P){if(!P||P==="Z")return 0;var w=P.match(/([+-]|\d\d)/g),p=60*w[1]+(+w[2]||0);return p===0?0:w[0]==="+"?-p:p})(h)}],v=function(h){var P=s[h];return P&&(P.indexOf?P:P.s.concat(P.f))},b=function(h,P){var w,p=s.meridiem;if(p){for(var L=1;L<=24;L+=1)if(h.indexOf(p(L,0,P))>-1){w=L>12;break}}else w=h===(P?"pm":"PM");return w},x={A:[u,function(h){this.afternoon=b(h,!1)}],a:[u,function(h){this.afternoon=b(h,!0)}],Q:[r,function(h){this.month=3*(h-1)+1}],S:[r,function(h){this.milliseconds=100*+h}],SS:[a,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[i,f("seconds")],ss:[i,f("seconds")],m:[i,f("minutes")],mm:[i,f("minutes")],H:[i,f("hours")],h:[i,f("hours")],HH:[i,f("hours")],hh:[i,f("hours")],D:[i,f("day")],DD:[a,f("day")],Do:[u,function(h){var P=s.ordinal,w=h.match(/\d+/);if(this.day=w[0],P)for(var p=1;p<=31;p+=1)P(p).replace(/\[|\]/g,"")===h&&(this.day=p)}],w:[i,f("week")],ww:[a,f("week")],M:[i,f("month")],MM:[a,f("month")],MMM:[u,function(h){var P=v("months"),w=(v("monthsShort")||P.map((function(p){return p.slice(0,3)}))).indexOf(h)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[u,function(h){var P=v("months").indexOf(h)+1;if(P<1)throw new Error;this.month=P%12||P}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(h){this.year=c(h)}],YYYY:[/\d{4}/,f("year")],Z:m,ZZ:m};function d(h){var P,w;P=h,w=s&&s.formats;for(var p=(h=P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(_,g,A){var W=A&&A.toUpperCase();return g||w[A]||o[A]||w[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,N,V){return N||V.slice(1)}))}))).match(t),L=p.length,q=0;q<L;q+=1){var M=p[q],I=x[M],$=I&&I[0],y=I&&I[1];p[q]=y?{regex:$,parser:y}:M.replace(/^\[|\]$/g,"")}return function(_){for(var g={},A=0,W=0;A<L;A+=1){var D=p[A];if(typeof D=="string")W+=D.length;else{var N=D.regex,V=D.parser,j=_.slice(W),G=N.exec(j)[0];V.call(g,G),_=_.replace(G,"")}}return(function(J){var B=J.afternoon;if(B!==void 0){var ee=J.hours;B?ee<12&&(J.hours+=12):ee===12&&(J.hours=0),delete J.afternoon}})(g),g}}return function(h,P,w){w.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(c=h.parseTwoDigitYear);var p=P.prototype,L=p.parse;p.parse=function(q){var M=q.date,I=q.utc,$=q.args;this.$u=I;var y=$[1];if(typeof y=="string"){var _=$[2]===!0,g=$[3]===!0,A=_||g,W=$[2];g&&(W=$[2]),s=this.$locale(),!_&&W&&(s=w.Ls[W]),this.$d=(function(j,G,J,B){try{if(["x","X"].indexOf(G)>-1)return new Date((G==="X"?1e3:1)*j);var ee=d(G)(j),k=ee.year,C=ee.month,F=ee.day,R=ee.hours,T=ee.minutes,H=ee.seconds,X=ee.milliseconds,le=ee.zone,U=ee.week,Y=new Date,E=F||(k||C?1:Y.getDate()),K=k||Y.getFullYear(),Q=0;k&&!C||(Q=C>0?C-1:Y.getMonth());var O,z=R||0,Z=T||0,ne=H||0,ie=X||0;return le?new Date(Date.UTC(K,Q,E,z,Z,ne,ie+60*le.offset*1e3)):J?new Date(Date.UTC(K,Q,E,z,Z,ne,ie)):(O=new Date(K,Q,E,z,Z,ne,ie),U&&(O=B(O).week(U).toDate()),O)}catch{return new Date("")}})(M,y,I,w),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),A&&M!=this.format(y)&&(this.$d=new Date("")),s={}}else if(y instanceof Array)for(var D=y.length,N=1;N<=D;N+=1){$[1]=y[N-1];var V=w.apply(this,$);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}N===D&&(this.$d=new Date(""))}else L.call(this,q)}}}))})(Ut)),Ut.exports}var Hs=zs();const Ks=nt(Hs);var Gt={exports:{}},Ws=Gt.exports,To;function Ys(){return To||(To=1,(function(e,n){(function(o,t){e.exports=t()})(Ws,(function(){return function(o,t){var r=t.prototype,a=r.format;r.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),f=(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(m){switch(m){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(),m==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),m==="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 m}}));return a.bind(this)(f)}}}))})(Gt)),Gt.exports}var Us=Ys();const Gs=nt(Us);var Xt={exports:{}},Xs=Xt.exports,Co;function Zs(){return Co||(Co=1,(function(e,n){(function(o,t){e.exports=t()})(Xs,(function(){return function(o,t,r){var a=t.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,v,b,x,d){var h=m.name?m:m.$locale(),P=i(h[v]),w=i(h[b]),p=P||w.map((function(q){return q.slice(0,x)}));if(!d)return p;var L=h.weekStart;return p.map((function(q,M){return p[(M+(L||0))%7]}))},s=function(){return r.Ls[r.locale()]},c=function(m,v){return m.formats[v]||(function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,d,h){return d||h.slice(1)}))})(m.formats[v.toUpperCase()])},f=function(){var m=this;return{months:function(v){return v?v.format("MMMM"):u(m,"months")},monthsShort:function(v){return v?v.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):u(m,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(m.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var m=s();return{firstDayOfWeek:function(){return m.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(v){return c(m,v)},meridiem:m.meridiem,ordinal:m.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(m){return u(s(),"weekdays",null,null,m)},r.weekdaysShort=function(m){return u(s(),"weekdaysShort","weekdays",3,m)},r.weekdaysMin=function(m){return u(s(),"weekdaysMin","weekdays",2,m)}}}))})(Xt)),Xt.exports}var Qs=Zs();const Js=nt(Qs);var Zt={exports:{}},eu=Zt.exports,$o;function tu(){return $o||($o=1,(function(e,n){(function(o,t){e.exports=t()})(eu,(function(){var o="week",t="year";return function(r,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 f=i(this).startOf(t).add(1,t).date(c),m=i(this).endOf(o);if(f.isBefore(m))return 1}var v=i(this).startOf(t).date(c).startOf(o).subtract(1,"millisecond"),b=this.diff(v,o,!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)}}}))})(Zt)),Zt.exports}var nu=tu();const lu=nt(nu);var Qt={exports:{}},ou=Qt.exports,No;function ru(){return No||(No=1,(function(e,n){(function(o,t){e.exports=t()})(ou,(function(){return function(o,t){t.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}}))})(Qt)),Qt.exports}var au=ru();const iu=nt(au);var Jt={exports:{}},su=Jt.exports,ko;function uu(){return ko||(ko=1,(function(e,n){(function(o,t){e.exports=t()})(su,(function(){return function(o,t,r){t.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}}))})(Jt)),Jt.exports}var cu=uu();const fu=nt(cu);var en={exports:{}},du=en.exports,Eo;function hu(){return Eo||(Eo=1,(function(e,n){(function(o,t){e.exports=t()})(du,(function(){return function(o,t){t.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}}))})(en)),en.exports}var mu=hu();const gu=nt(mu);var tn={exports:{}},vu=tn.exports,Po;function pu(){return Po||(Po=1,(function(e,n){(function(o,t){e.exports=t()})(vu,(function(){return function(o,t){t.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}}))})(tn)),tn.exports}var yu=pu();const bu=nt(yu);Je.extend(Js);Je.extend(Gs);Je.extend(Ks);Je.extend(lu);Je.extend(iu);Je.extend(fu);Je.extend(gu);Je.extend(bu);const qe={format(e,n){return Je(e).format(n)},parser(e,n){return Je(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(),i=r.getDate(),u=6-a;return t!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+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),i=Math.round((r.valueOf()-a.valueOf())/864e5);let u=r.getDay(),s=6-u;return t!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=r.getTime();let i=r.getDay();if(t===0){const s=a-i*864e5,c=a+(6-i)*864e5,f=this.date2Str(new Date(s)),m=this.date2Str(new Date(c));return[f,m]}else{i=i==0?7:i;const u=1440*60*1e3,s=a-(i-1)*u,c=a+(7-i)*u,f=this.date2Str(new Date(s)),m=this.date2Str(new Date(c));return[f,m]}},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(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,n,o){const t=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Io={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"}},Oo={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 xu(e,n,o){return{props:{...$e,...De,...Io,...Oo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Ae.useFoxI18n(n),m=f(t,["placeholder"]),v=l.ref(!1),b=he(t,"modelValue",null,c),x=l.computed(()=>j.value&&Array.isArray(b.value)&&b.value.length==2?b.value[0]:b.value),d=l.computed(()=>j.value?"longTermKey":"normalKey"),h=Y=>{if(j.value&&t.type==="daterange"){const E=[...b.value];E[0]=Y,b.value=E}else b.value=Y;c("update:modelValue",b.value),c("change",b.value)},P=l.computed(()=>j.value&&t.type==="daterange"?"date":t.type),w=e,p=l.computed(()=>({[`${w}`]:!0,"is-long":j.value,"is-readonly":s.value,"is-disabled":i.value}));let L=he(t,"hintText"),q=l.ref(!1);const M=Y=>{let K=Y.target.value;v.value=!0,de(L.value)||(q.value=!0),c("focus",K,Y)},I=Y=>{setTimeout(()=>{q.value&&(q.value=!1),v.value=!1},0);let K=Y.target.value;t.maxLength&&K.length>Number(t.maxLength)&&(K=K.slice(0,Number(t.maxLength))),c("blur",K,Y)},$=()=>{c("clear","")},y=Y=>{c("calendar-change",Y)},_=(Y,E,K)=>{c("panel-change",Y,E,K)},g=Y=>{c("visible-change",Y)},A=Fe(l.computed(()=>t.longTermText),"longTermText",_e.Near),W=Fe(l.computed(()=>t.longTermActionLabel),"longTermActionLabel",_e.Near),D=Fe(l.computed(()=>t.longTermValue),"longTermValue",_e.Near),N=Fe(l.computed(()=>t.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let V=null;const j=l.ref(ue(t.longTerm)),G=Y=>{if(j.value=Y,c("update:longTerm",Y),Y){if(V=b.value,t.type==="daterange"){const E=[];Array.isArray(D.value)?(E[0]=b.value?b.value[0]??D.value[0]:null,E[1]=D.value[1]??D.value[0]):(E[0]=b.value?b.value[0]??D.value:null,E[1]=j.value),E[0]||(E[0]=t.valueFormat?qe.format(new Date,t.valueFormat):new Date),E[1]||(E[1]=t.valueFormat?qe.format(new Date,t.valueFormat):new Date),b.value=E}else Array.isArray(D.value)?b.value=D.value[1]??D.value[0]:b.value=D.value,b.value||(b.value=t.valueFormat?qe.format(new Date,t.valueFormat):new Date);c("update:modelValue",b.value)}else{if(t.type==="daterange"){const E=[];E[0]=Array.isArray(b.value)?b.value[0]:b.value,Array.isArray(V)?E[1]=V[1]:E[1]=V,E[0]||(E[0]=t.valueFormat?qe.format(new Date,t.valueFormat):new Date),E[1]||(E[1]=t.valueFormat?qe.format(new Date,t.valueFormat):new Date),b.value=E}else b.value=V;c("update:modelValue",b.value),setTimeout(()=>{le()},100)}},J=ue(t.isLongTerm);if(J){const Y=()=>{if(j.value===!0){if(V=b.value,t.type==="daterange"){const E=[b.value[0]];Array.isArray(D.value)?E[1]=D.value[1]??D.value[0]:E[1]=j.value,E[0]||(E[0]=t.valueFormat?qe.format(new Date,t.valueFormat):new Date),E[1]||(E[1]=t.valueFormat?qe.format(new Date,t.valueFormat):new Date),b.value=E}else b.value=D.value;c("update:modelValue",b.value)}else tt(D.value,b.value)&&(j.value=!0)};Y(),l.watch([()=>t.longTerm],([E])=>{j.value!==E&&Y()}),l.watch([()=>b.value],([E])=>{let K=!1;if(t.type==="daterange"&&Array.isArray(E))try{let Q=E[1];if(!Q)return;if(E[0]==null){c("update:modelValue",[]);return}typeof Q!="string"&&t.valueFormat&&(Q=qe.format(Q,t.valueFormat));let O=Array.isArray(D.value)?D.value[1]:D.value;(Q===O||Array.isArray(N.value)&&N.value.findIndex(Z=>Q==Z)!==-1)&&(K=!0)}catch(Q){console.error(Q)}j.value!==K&&(j.value=K)},{immediate:!0})}const B=l.computed(()=>({"fox-date-item__long":!0,"is-active":v.value})),ee=l.ref(),k=l.ref(),C=/^\d+$/,F=(Y,E)=>typeof t.flashFillThreshold=="function"?t.flashFillThreshold(Y,E):C.test(Y)&&Y.length===t.flashFillThreshold,R=(Y,E)=>{let K;if(typeof t.flashFillFormat=="function")K=t.flashFillFormat(Y,E);else{const O=t.flashFillFormat??"YYYYMMDD";K=qe.parser(Y,O)}const Q=t.valueFormat??"YYYY-MM-DD";return qe.format(K,Q)},T=Y=>Y?Y.endsWith("range"):!1,H=Y=>{if(!Y.target)return;const E=Y.target.value??"";if(F(E,t.type)){const K=R(E,t.type);if(T(t.type)){const Q=Array.isArray(b.value)?[...b.value]:[];Q[0]=K,h(Q)}else h(K)}},X=Y=>{if(!Y.target)return;const E=Y.target.value??"";if(F(E,t.type)){const K=R(E,t.type);if(T(t.type)){const Q=Array.isArray(b.value)?[...b.value]:[];Q[1]=K,h(Q)}else h(K)}},le=()=>{if(t.flashFill&&ee.value&&ee.value.$el)if(T(t.type)){const Y=ee.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].addEventListener("input",H),Y[1]&&Y[1].addEventListener("input",X)}else{const Y=ee.value.$el.querySelector("input.el-input__inner");Y&&Y.addEventListener("input",H)}},U=()=>{if(t.flashFill&&ee.value&&ee.value.$el)if(T(t.type)){const Y=ee.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].removeEventListener("input",H),Y[1]&&Y[1].removeEventListener("input",X)}else{const Y=ee.value.$el.querySelector("input.el-input__inner");Y&&Y.removeEventListener("input",H)}};return l.onMounted(le),l.onBeforeUnmount(U),Se({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},handleOpen:()=>{k?.value.handleOpen()},handleClose:()=>{k?.value.handleClose()},setDisabled:Y=>{a.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const E={...r.attrs,key:d.value,type:P.value,ref:k,class:p.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:x.value,valueFormat:t.valueFormat,format:t.format,"onUpdate:modelValue":h,onClear:$,onFocus:M,onBlur:I,onCalendarChange:y,onPanelChange:_,onVisibleChange:g},K={};r.slots["range-separator"]&&(K["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(K.default=r.slots.cell);const Q=[],O=l.h(S.ElDatePicker,E,K);Q.push(O);const z={default:()=>Q};if(z.label=r.slots.default,z.fixedPreTip=r.slots.fixedPreTip,z.fixedTip=r.slots.fixedTip,J){if(j.value){const ce=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ve=l.h("input",{class:["fox-date-item__long-text"],value:A.value,readonly:!0}),me={class:B.value},Te=l.h("div",me,{default:()=>[ce,ve]});Q.push(Te)}if(!s.value&&!i.value){const ce={label:W.value||A.value,disabled:s.value||i.value,modelValue:j.value,"onUpdate:modelValue":G},ve=l.h(S.ElCheckbox,ce),me=l.h("div",{class:{[`${w}__append`]:!0}},[ve]);z.append=()=>me}}const ne={...Oe(t,Io,Oo),ref:ee,class:{[`${w}__wrapper`]:!0,"has-append":J},hintText:L.value,hintVisible:q.value};return t.prop&&(ne.prop=`${t.prop}_item`),l.h(o,ne,z)}}}}const{componentName:wu,create:Su,scope:Tu}=ae("date-item"),Il=Su(xu(wu,Tu,Ne)),Do={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Cu(e,n,o){return{props:{...$e,...De,...Do},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Ae.useFoxI18n(n),m=f(t,["placeholder"]),v=l.ref(!1),b=he(t,"modelValue",null,c),x=e,d=l.computed(()=>({[x]:!0})),h=$=>{b.value=$,c("update:modelValue",$),c("change",$)};let P=he(t,"hintText"),w=l.ref(!1);const p=$=>{let _=$.target.value;v.value=!0,de(P.value)||(w.value=!0),c("focus",_,$)},L=$=>{setTimeout(()=>{w.value&&(w.value=!1),v.value=!1},0);let _=$.target.value;t.maxLength&&_.length>Number(t.maxLength)&&(_=_.slice(0,Number(t.maxLength))),c("blur",_,$)},q=()=>{c("clear","")},M=$=>{c("visible-change",$)},I=l.ref();return Se({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()},setDisabled:$=>{a.value=$},setReadonly:$=>{u.value=$}}),()=>{const y={...r.attrs,ref:I,class:d.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:b.value,"onUpdate:modelValue":h,onClear:q,onFocus:p,onBlur:L,onVisibleChange:M},_={},g=[],A=l.h(S.ElTimePicker,y,_);g.push(A);const W={default:()=>g};W.label=r.slots.default,W.fixedPreTip=r.slots.fixedPreTip,W.fixedTip=r.slots.fixedTip;const N={...Oe(t,Do),hintText:P.value,hintVisible:w.value};return t.prop&&(N.prop=`${t.prop}_item`),l.h(o,N,W)}}}}const{componentName:$u,create:Nu,scope:ku}=ae("time-item"),Ol=Nu(Cu($u,ku,Ne)),Vo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Eu(e,n,o){return{props:{...$e,...De,...Vo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Ae.useFoxI18n(n),m=f(t,["placeholder"]),v=l.ref(!1),b=he(t,"modelValue",null,c),x=e,d=l.computed(()=>({[x]:!0})),h=I=>{b.value=I,c("update:modelValue",I),c("change",I)};let P=he(t,"hintText"),w=l.ref(!1);const p=I=>{let y=I.target.value;v.value=!0,de(P.value)||(w.value=!0),c("focus",y,I)},L=I=>{setTimeout(()=>{w.value&&(w.value=!1),v.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)},q=()=>{c("clear","")},M=l.ref();return Se({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},handleOpen:()=>{M?.value.handleOpen()},handleClose:()=>{M?.value.handleClose()},setDisabled:I=>{a.value=I},setReadonly:I=>{u.value=I}}),()=>{const $={...r.attrs,ref:M,class:d.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:b.value,"onUpdate:modelValue":h,onClear:q,onFocus:p,onBlur:L},y={},_=[],g=l.h(S.ElTimeSelect,$,y);_.push(g);const A={default:()=>_};A.label=r.slots.default,A.fixedPreTip=r.slots.fixedPreTip,A.fixedTip=r.slots.fixedTip;const D={...Oe(t,Vo),hintText:P.value,hintVisible:w.value};return t.prop&&(D.prop=`${t.prop}_item`),l.h(o,D,A)}}}}const{componentName:Pu,create:Iu,scope:Ou}=ae("time-select-item"),Dl=Iu(Eu(Pu,Ou,Ne));function Ro(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 Fo(e,n,o=20){if(typeof n=="string"&&(n=Ce(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let t=wr(`${e}`,`${n}`);return Ro(t)}else{let t=vl(`${e}`,Sr(`${n}`),20);return Ro(t)}}function Du(e,n=-1,o=!1,t=3,r=","){return cn(e,n,o,t,r)}function Ao(e,n,o,t,r=!0){if(e==="")return"";if(e=Tr(e),n=Ce(n),n==1)return e;if(t)e=Fo(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(Ce(o)+2,"0"):e=vl(e,1,Ce(o)));else{let a=-1*n;e=Fo(e,a)}return e}function Mo(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let t=ue(n.minInclude),r=tl(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=ue(n.maxInclude),r=tl(e,n.max);(t&&r==1||!t&&(r==0||r==1))&&(o.maxValid=!1)}return o}const Lo={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 Vu(e,n,o){return{props:{...$e,...De,...Lo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),f=l.ref(!1),m=he(t,"modelValue",null,c),v=l.ref("");l.watch([()=>m.value,()=>t.rates,()=>t.precision],([N,V,j])=>{if(de(N)){v.value="";return}const G=Ao(N,V,j,!1);v.value!==G&&(v.value=G)},{immediate:!0});const b=l.computed(()=>{let N="";return f.value&&(N=v.value),N}),{t:x}=Ae.useFoxI18n(n),d=l.computed(()=>{let N=t.placeholder??"";return!f.value&&!de(v.value)?N=Du(v.value,t.decimalLength,t.autoPadding,t.digits,t.separator):N=x(["placeholder",N]),N}),h=e,P=l.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:v.value.length>0})),w=Fe(l.computed(()=>t.textAlign),"textAlign");l.computed(()=>f.value?{textAlign:"left"}:{textAlign:w.value??"right"});const p=l.ref(""),L=l.computed(()=>{let N=p.value;return de(N)&&(N=t.errorTip??""),N}),q=l.ref(""),M=l.ref(!1),I=(N,V)=>{if(N=`${N}`,de(N)){v.value="",m.value="",V.forEach(j=>{c(j,"")}),ue(t.showTip)&&M.value&&(M.value=!1);return}if(N.length>=2){let j=N;if(j.charAt(0)=="-"&&(j=j.substring(1)),j.length>=2&&j.charAt(0)=="0"&&j.charAt(1)!="."){l.triggerRef(v);return}}if(N!="-"){if(!Dr(N)){l.triggerRef(v);return}if(t.integerLength!=-1&&Vr(N)>Number(t.integerLength)){l.triggerRef(v);return}if(t.decimalLength&&t.decimalLength!=-1&&Rr(N)>Number(t.decimalLength)){l.triggerRef(v);return}let j=Mo(N,t);if(j.maxValid===!1){p.value=j.message,l.triggerRef(v);return}}else if(t.min!=null&&Ce(t.min)>=0){l.triggerRef(v);return}q.value=N,ue(t.showTip)&&(M.value=N.length>0),v.value=N,m.value=Ao(N,t.rates,t.precision,!0),V.forEach(j=>{c(j,m.value)})},$=N=>{I(N,["update:modelValue","input"])},y=N=>{I(N,["update:modelValue","change"])},_=N=>{if(f.value=!0,ue(t.showTip)){let V=v.value;de(V)&&(V=t.hintText),de(V)||(q.value=V,M.value=!0)}p.value="",c("focus",m.value,N)},g=N=>{if(setTimeout(()=>{f.value=!1,ue(t.showTip)&&M.value===!0&&(M.value=!1)},0),!de(v.value)){let V=Mo(v.value,t);if(V.minValid===!1||V.maxValid===!1){p.value=V.message;return}}c("update:modelValue",m.value,N),c("blur",m.value,N)},A=()=>{c("clear","")},W=l.computed(()=>At(t.unit)>0),D=l.ref();return Se({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const V={...Ze(r.attrs),ref:D,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:A,onInput:$,onChange:y,onFocus:_,onBlur:g},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:W.value&&(j.suffix=()=>[t.unit]);const G=[],J=l.h(S.ElInput,V,j);G.push(J);const B={default:()=>G};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const k={...Oe(t,Lo),errorTip:L.value,hintText:q.value,hintVisible:M.value,hintType:"number"};return t.prop&&(k.prop=`${t.prop}_item`),l.h(o,k,B)}}}}const{componentName:Ru,create:Fu,scope:Au}=ae("money-item"),Vl=Fu(Vu(Ru,Au,Ne)),Bo={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 Mu(e,n,o){return{props:{...$e,...De,...Bo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Ae.useFoxI18n(n),m=f(t,["placeholder"]),v=l.ref(!1),b=he(t,"modelValue",null,c),x=e,d=l.computed(()=>({[x]:!0,[`${x}__append`]:$.value})),h=l.computed(()=>({[`${x}__unit`]:!0})),P=_=>{b.value=_,c("update:modelValue",_),c("input",_)},w=_=>{c("change",_)};let p=he(t,"hintText"),L=l.ref(!1);const q=_=>{let A=_.target.value;v.value=!0,de(p.value)||(L.value=!0),c("focus",A,_)},M=_=>{setTimeout(()=>{L.value&&(L.value=!1),v.value=!1},0);let A=_.target.value;t.maxLength&&A.length>Number(t.maxLength)&&(A=A.slice(0,Number(t.maxLength))),c("blur",A,_)},I=()=>{c("clear","")},$=l.computed(()=>At(t.unit)>0),y=l.ref();return Se({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},setDisabled:_=>{a.value=_},setReadonly:_=>{u.value=_}}),()=>{const g={...Ze(r.attrs),ref:y,class:d.value,placeholder:m.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:w,onInput:P,onFocus:q,onBlur:M},A={},W=[],D=l.h(S.ElInputNumber,g,A);W.push(D);const N={default:()=>W};N.label=r.slots.default,N.fixedPreTip=r.slots.fixedPreTip,N.fixedTip=r.slots.fixedTip;const j={...Oe(t,Bo),hintText:p.value,hintVisible:L.value};if(t.prop&&(j.prop=`${t.prop}_item`),r.slots.append)N.append=r.slots.append;else if($.value){const J={class:h.value},B=l.h("div",J,[t.unit]);N.append=()=>B}return l.h(o,j,N)}}}}const{componentName:Lu,create:Bu,scope:qu}=ae("input-number-item"),Rl=Bu(Mu(Lu,qu,Ne));function et(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function dt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function _u(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let ju=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=je(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await a(o,t,r))}};function zu(){const e=l.getCurrentInstance();return new ju(e.proxy)}function dl(e,n,o){const t=et(e,n),r=et(e,o);if(t!==r)return!1;const a=dt(e,n),i=dt(e,o);return a===i}function ra(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 i=0;Array.isArray(a)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=ra(e,u,o,t);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=et(e,c)===u;else if(o==="item")s=dl(e,c,u);else{let f=dt(e,c);f==null&&(f=et(e,c)),s=f===u}if(s){r.push(c),a=_u(e,c);break}}if(!s)break}}return r}function Hu(e){return{text:e,value:e}}const qo={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 Ku(e,n,o){return{props:{...$e,...De,...qo},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),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Ae.useFoxI18n(n),m=f(t,["placeholder"]),v=l.ref(null),b=l.ref([]),x=l.computed(()=>b.value?b.value.map(Y=>Array.isArray(Y)?Y.map(K=>et(t,K)).join(" "):et(t,Y)).join(" "):""),d=(U,Y,E,K=!0)=>{if(t.props&&t.props.lazy===!0||t.lazy===!0){if(v.value===U)return;v.value=U;const Z=l.toRaw(U);if(K){const ne=le?.value.getCheckedNodes();if(ne)if(t.multiple){const ie=[];ne.forEach(ce=>{const me=(ce.pathNodes??[]).map(Te=>Te.data);ie.push(me)}),c("update:pathNodes",ie)}else{const ce=(ne[0]?.pathNodes??[]).map(ve=>ve.data);c("update:pathNodes",ce)}c("update:modelValue",Z),c("change",Z)}return}const Q=ra(t,U,Y,E);if(Q===null){if(b.value.length===0||b.value===null)return;b.value=[],v.value=null,K&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const O=Q[Q.length-1];if(A.value.checkStrictly!==!0&&O&&!Array.isArray(O)&&Array.isArray(O.children)&&O.children.length>0){const Z=[];Q.forEach(ne=>{const ie=`${et(t,ne)}`;Z.push(ie)}),Z.length>0&&(_.value=Z.join(t.separator))}else _.value=null;let z=!0;if(Q.length!==b.value.length)z=!1;else for(let Z=0;Z<Q.length;Z++){const ne=Q[Z],ie=b.value[Z];if(Array.isArray(ne)){if(!Array.isArray(ie)||ne.length!==ie.length)z=!1;else for(let ce=0;ce<ne.length;ce++)if(!dl(t,ne[ce],ie[ce])){z=!1;break}}else dl(t,ne,ie)||(z=!1);if(!z)break}if(!z){b.value=Q;let Z=[],ne=[];Q.forEach(ce=>{if(Array.isArray(ce)){let ve=[],me=[];for(let Te of ce)ve.push(dt(t,Te)),t.valueType==="text"?me.push(et(t,Te)):t.valueType==="item"?me.push(Te):me.push(dt(t,Te));Z.push(ve),ne.push(me)}else Z.push(dt(t,ce)),t.valueType==="text"?ne.push(et(t,ce)):t.valueType==="item"?ne.push(ce):ne.push(dt(t,ce))}),v.value=Z;const ie=l.toRaw(ne);K&&(c("update:pathNodes",Q),c("update:modelValue",ie),c("change",ie))}},h=l.ref([]),P=Fe(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,U=>ue(U)),w=zu(),p=async(U,Y)=>{if(U){const E=await w.load("cascader",U,Y);if(E.length>0)if(typeof E[0]=="string"){let O=E.map(z=>Hu(z));h.value=O}else h.value=E}};l.watch([()=>t.source,()=>t.params],async([U,Y])=>{p(U,Y)},{immediate:!(P.value||t.lazy)});let L=!1;const q=()=>{L||(L=!0,p(t.source,t.params))};l.watch([()=>h.value,()=>t.modelValue],([U,Y])=>{d(Y,t.valueType,U,!1),c("setValue",Y)}),t.lazy&&d(t.modelValue,"value",[],!1);let M=null,I=l.ref(!1);typeof t.remoteMethod=="function"&&(M=async U=>{if(U!=null){I.value=!0;try{const Y=await t.remoteMethod(U);h.value=Y}catch(Y){console.error(Y)}I.value=!1}});const $=l.ref(!1),y=e,_=l.ref(null),g=l.computed(()=>({[y]:!0,"is-incomplete":_.value&&_.value.length>0})),A=l.computed(()=>{let U={label:t.textKey,value:t.valueKey,children:t.childrenKey};return t.multiple===!0&&(U.multiple=!0),t.props&&Object.assign(U,t.props),t.lazy&&(U.lazy=!0,typeof t.lazyLoad=="function"?U.lazyLoad=t.lazyLoad:U.lazyLoad=async(Y,E)=>{let K={};t.params&&Object.assign(K,t.params),Y&&Object.assign(K,Y);const Q=await w.load("cascader",t.source,K,!0);if(Y?.config?.checkStrictly!==!0&&Array.isArray(v.value)&&v.value.length===Y.level){const O=Y.pathLabels??[];let z=[];O.forEach(Z=>{Z&&z.push(Z)}),z.length>0&&(_.value=z.join(t.separator))}else _.value=null;E(Q)}),U}),W=U=>{t.allowCreate?(c("update:modelValue",U),c("change",U),v.value=U):d(U,"value",h.value,!0)};let D=he(t,"hintText"),N=l.ref(!1);const V=U=>{let E=U.target.value;$.value=!0,de(D.value)||(N.value=!0),c("focus",E,U)},j=U=>{setTimeout(()=>{N.value&&(N.value=!1),$.value=!1},0);let E=U.target.value;t.maxLength&&E.length>Number(t.maxLength)&&(E=E.slice(0,Number(t.maxLength))),R.value||c("blur",E,U)},G=()=>{c("clear","")},J=l.ref(!1);let B=null;const ee=()=>{t.showTooltip&&J.value===!1&&(B&&clearTimeout(B),B=setTimeout(()=>{J.value=!0},150))},k=()=>{B&&(clearTimeout(B),J.value=!1,B=null)},C=l.computed(()=>J.value||N.value),F=l.computed(()=>J.value?x.value:D.value),R=l.ref(!1),T=U=>{R.value=U,c("visible-change",U),U||c("selected")},H=U=>{c("remove-tag",U)},X=U=>{c("expand-change",U)},le=l.ref();return Se({focus:()=>{le?.value.focus()},blur:()=>{le?.value.blur()},getCheckedNodes:()=>le?.value.getCheckedNodes(),setDisabled:U=>{a.value=U},setReadonly:U=>{u.value=U}}),()=>{const Y={...r.attrs,ref:le,class:g.value,props:A.value,clearable:t.clearable,placeholder:_.value||m.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:v.value,separator:t.separator,onClear:G,onChange:W,onFocus:V,onBlur:j,onVisibleChange:T,onRemoveTag:H,expandChange:X};typeof M=="function"&&(Y["remote-method"]=M,Y.loading=I.value);const E={};r.slots.option&&(E.default=r.slots.option),r.slots.empty&&(E.empty=r.slots.empty);const K=[],Q=l.h(S.ElCascader,Y,E);K.push(Q);const O={default:()=>K};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const Z={...Oe(t,qo),hintText:F.value,hintVisible:C.value,onMouseover:ee,onMouseleave:k};return t.prop&&(Z.prop=`${t.prop}_item`),P.value&&!t.lazy&&(Z["appear-listen"]=!0,Z.onAppear=q),l.h(o,Z,O)}}}}const{componentName:Wu,create:Yu,scope:Uu}=ae("cascader-item"),Fl=Yu(Ku(Wu,Uu,Ne)),_o={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Gu(e,n,o){return{props:{...$e,...De,..._o},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Ae.useFoxI18n(n),m=f(t,["placeholder"]),v=l.ref(!1),b=he(t,"modelValue",null,c),x=e,d=l.computed(()=>({[x]:!0})),h=y=>{b.value=y,c("update:modelValue",y),c("input",y)},P=y=>{c("change",y)},w=y=>{c("select",y)};let p=he(t,"hintText"),L=l.ref(!1);const q=y=>{let g=y.target.value;v.value=!0,de(p.value)||(L.value=!0),c("focus",g,y)},M=y=>{setTimeout(()=>{L.value&&(L.value=!1),v.value=!1},0);let g=y.target.value;t.maxLength&&g.length>Number(t.maxLength)&&(g=g.slice(0,Number(t.maxLength))),c("blur",g,y)},I=()=>{c("clear","")},$=l.ref();return Se({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()},setDisabled:y=>{a.value=y},setReadonly:y=>{u.value=y}}),()=>{const _={...r.attrs,ref:$,class:d.value,placeholder:m.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,onClear:I,onChange:P,onInput:h,onFocus:q,onBlur:M,onSelect:w},g={};r.slots.prepend&&(g.prepend=r.slots.prepend),r.slots.append&&(g.append=r.slots.append),r.slots.prefix&&(g.prefix=r.slots.prefix),r.slots.suffix&&(g.suffix=r.slots.suffix),r.slots.option&&(g.default=r.slots.option);const A=[],W=l.h(S.ElAutocomplete,_,g);A.push(W);const D={default:()=>A};D.label=r.slots.default,D.fixedPreTip=r.slots.fixedPreTip,D.fixedTip=r.slots.fixedTip;const V={...Oe(t,_o),hintText:p.value,hintVisible:L.value};return t.prop&&(V.prop=`${t.prop}_item`),l.h(o,V,D)}}}}const{componentName:Xu,create:Zu,scope:Qu}=ae("autocomplete-item"),Al=Zu(Gu(Xu,Qu,Ne));function Ju(e,n,o,t,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let c=0;s&&c<a.length;c++){let f=a[c],m=s.find(v=>v[t]===f);if(!m)break;i.push(m[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<a.length;s++){let c=n[s],f=a[s];const m=c.find(v=>v[t]===f);if(!m)break;i.push(m[o])}else{let s=n;for(let c=0;s&&c<a.length;c++){let f=a[c],m=s.find(v=>v[t]===f);if(!m)break;i.push(m[o]),s=m[r]}}return i}let ec=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=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function tc(){const e=l.getCurrentInstance();return new ec(e.proxy)}const aa={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 nc(e,n){return{props:{...aa},setup(o,{attrs:t,slots:r}){const a=tc(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([s,c])=>{i.value=await a.load(o.sourceType,s,c)},{immediate:!0});const u=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return o.emptyText;let s=Ju(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return s.length==0?o.emptyText??"":s.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${s[0]}`:s[0]:s.join(o.separator)});return()=>{const s={...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,s,{default:()=>u.value}):l.h(c,s,[u.value])}}}}const{create:lc}=ae("mapping"),Rt=lc(nc());function oc(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],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 f=parseInt(c);if(i==0){let m=a.substring(0,u);t=t[m][f]}else t=t[f];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function rc(e,n){return{props:{...aa},setup(o,{attrs:t,slots:r}){return()=>{const a={default:i=>{const u=oc(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:u},{default:r.default}):l.h(Rt,{...o,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(S.ElTableColumn,{...t},a)}}}}const{create:ac}=ae("table-mapping-column"),Ml=ac(rc()),ic=Symbol.for("TableStateKey");function jo(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],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 f=parseInt(c);if(i==0){let m=a.substring(0,u);t=t[m][f]}else t=t[f];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function sc(e,n){return{props:{},setup(o,{attrs:t}){const r=l.inject(ic,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=jo(u.row,u.column.property),c=a?jo(a,u.column.property):null,f=s===c,m={class:{"el-radio__input":!0,"is-checked":f}},v=l.h("span",m,[l.h("span",{class:{"el-radio__inner":!0}})]),b={class:{"el-radio":!0,"is-checked":f}};return l.h("label",b,[v])}};return l.h(S.ElTableColumn,{...t},i)}}}}const{create:uc}=ae("table-radio-column"),Ll=uc(sc()),cc={},fc={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 dc(e,n){return l.openBlock(),l.createElementBlock("svg",fc,[...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 hc=Xe(cc,[["render",dc]]),{create:mc}=ae("table-setting"),gc={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:"不固定"}},vc=mc({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:hc,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...gc},setup(e,{emit:n,attrs:o}){let t=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(T=>T.label===""||T.type?!1:T.fixed===""||T.fixed===!0||T.fixed==="left")),i=l.computed(()=>r.value.filter(T=>T.label===""||T.type?!1:T.fixed==="right")),u=l.computed(()=>r.value.filter(T=>!(T.label===""||T.type||T.fixed!==void 0))),s=l.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=l.computed(()=>a.value.length>0),f=l.computed(()=>i.value.length>0),m=T=>T.length>1,v=(T,H)=>{Array.isArray(T)&&Array.isArray(H)&&T.forEach(U=>{H.some(Y=>Y.prop===U.prop?(U.label=Y.label,!0):!1)});const X=[];r.value=T.map((U,Y)=>(!(U.label===""||U.type)&&U.visible!==!1&&X.push(U.prop),{...U,sortIndex:Y})),u.value.length+a.value.length+i.value.length===X.length?w.value=!0:X.length>0&&(p.value=!0),M.value=X},b=T=>T?T.type?T.type:T.label?T.prop:"":"",x=(T,H)=>{if(T.length!==H.length)return!1;const X=T.map(le=>b(le));for(let le of H){const U=b(le);if(X.indexOf(U)===-1)return!1}return!0},d=T=>{if(!T){const H=e.tableRef.getColumnSetting(),X=H.srcColumnPropertyList;t=X.map((le,U)=>({...le,sortIndex:U})),T=H.columnPropertyList,T&&T.length>0&&x(X,T)||(T=X)}v(T,t)},h=()=>{e.tableRef.setColumnSetting(r.value)},P=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),p=l.ref(!1),L=T=>{const H=[];r.value.forEach(le=>{T&&!(le.label===""||le.type)&&H.push(le.prop),le.visible=T}),w.value=!1,p.value=!1,u.value.length+a.value.length+i.value.length===H.length?w.value=!0:H.length>0&&(p.value=!0),M.value=H,h()},q=()=>{d(t),h()},M=l.ref([]),I=T=>{r.value.forEach(X=>{if(X.label===""||X.type)return;const le=T.indexOf(X.prop)!==-1;X.visible=le}),w.value=!1,p.value=!1;const H=u.value.length+a.value.length+i.value.length;T.length===H?w.value=!0:T.length>0&&(p.value=!0),h()},$=()=>{d()};l.onMounted(()=>{setTimeout(()=>{d()},50)});const y={currentRow:null,index:null,roleType:null},_=T=>T?T.dataset&&T.dataset.role==="row"?T:T.tagName.toLowerCase()!=="body"?(T=T.parentElement,_(T)):null:null,g=T=>{const H=T.currentTarget;H&&H.dataset&&(y.roleType=H.dataset.roleType,y.index=H.dataset.index)},A=T=>{y.currentRow&&(y.currentRow.classList.remove("is-dragover"),y.currentRow=null),y.index=null,y.roleType=null},W=T=>{const H=T.currentTarget;T.relatedTarget;const X=_(H);if(!X)return;const le=X.dataset&&X.dataset.roleType;y.roleType===le&&(T.preventDefault(),y.currentRow&&y.currentRow!==X&&y.currentRow.classList.remove("is-dragover"),X.classList.add("is-dragover"),y.currentRow=X)},D=T=>{T.preventDefault(),y.currentRow&&(y.currentRow.classList.remove("is-dragover"),y.currentRow=null)},N=T=>{const H=T.currentTarget,X=_(H);if(!X)return;const le=X.dataset&&X.dataset.roleType;if(y.roleType!==le)return;T.preventDefault();const U=Number(y.index),Y=Number(X.dataset.index);if(U!==Y){if(U<Y){const E=r.value[U];r.value.splice(U,1),r.value.splice(Y,0,E)}else{const E=r.value[U];r.value.splice(U,1),r.value.splice(Y+1,0,E)}v(r.value,t),h()}},V=T=>{const H=r.value[T];H.fixed="left",h()},j=T=>{const H=r.value[T];H.fixed="right",h()},G=T=>{const H=r.value[T];H.fixed=void 0,h()},J=new Map;let B=null;function ee(T){const H=document.createRange();return H.setStart(T,0),H.setEnd(T,T.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:m,isCheckAll:w,isIndeterminate:p,handleCheckAllChange:L,handleReset:q,checkedValue:M,handleCheckChange:I,onShow:$,onDragStart:g,onDragEnd:A,onDragOver:W,onDragLeave:D,onDrop:N,toLeftFixed:V,toRightFixed:j,toUnFixed:G,checkboxLabelStyle:P,onMouseOverForOverflowText:(T,H,X)=>{const le=T.currentTarget;if(le){const U=Math.floor(le.offsetWidth);if(Math.floor(ee(le))>U){let E=J.get(H);if(E){if(E===B)return;Re.hide(E)}E=Re.show(le,X,{type:"text",placement:"top",closeOnClick:!1}),E&&(J.set(H,E),B=E)}}},onMouseLeaveForOverflowText:(T,H)=>{const X=J.get(H);X&&(Re.hide(X),X===B&&(B=null))},onMouseOverForTip:(T,H)=>{const X=T.currentTarget;X&&(B&&Re.hide(B),B=Re.show(X,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:T=>{B&&(Re.hide(B),B=null)}}}}),pc={class:"fox-table-setting"},yc={class:"fox-table-setting__header"},bc={class:"fox-table-setting__body"},xc={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},wc={key:0,class:"fox-table-setting__body-title"},Sc=["data-index","draggable"],Tc=["onMouseover","onMouseleave"],Cc={class:"tools-item"},$c={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Nc={key:0,class:"fox-table-setting__body-title"},kc=["data-index","draggable"],Ec=["onMouseover","onMouseleave"],Pc={class:"tools-item"},Ic={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Oc={key:0,class:"fox-table-setting__body-title"},Dc=["data-index","draggable"],Vc=["onMouseover","onMouseleave"],Rc={class:"tools-item"};function Fc(e,n,o,t,r,a){const i=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),s=l.resolveComponent("DragIcon"),c=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),m=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),b=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",pc,[l.createElementVNode("div",yc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=d=>e.isCheckAll=d),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",bc,[l.createVNode(b,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=d=>e.checkedValue=d),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",xc,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",wc,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,d=>(l.openBlock(),l.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:n[5]||(n[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[6]||(n[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[7]||(n[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[8]||(n[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[9]||(n[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",value:d.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,d.prop,d.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,d.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(d.label),45,Tc)]),_:2},1032,["value"]),l.createElementVNode("div",Cc,[l.createVNode(f,{onClick:h=>e.toUnFixed(d.sortIndex),onMouseover:n[1]||(n[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[2]||(n[2]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(c)]),_:1},8,["onClick"]),l.createVNode(f,{onClick:h=>e.toRightFixed(d.sortIndex),onMouseover:n[3]||(n[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[4]||(n[4]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(m)]),_:1},8,["onClick"])])],40,Sc))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",$c,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Nc,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,d=>(l.openBlock(),l.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:n[14]||(n[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[15]||(n[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[16]||(n[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[17]||(n[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[18]||(n[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",value:d.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,d.prop,d.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,d.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(d.label),45,Ec)]),_:2},1032,["value"]),l.createElementVNode("div",Pc,[l.createVNode(f,{onClick:h=>e.toLeftFixed(d.sortIndex),onMouseover:n[10]||(n[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(m)]),_:1},8,["onClick"]),l.createVNode(f,{onClick:h=>e.toRightFixed(d.sortIndex),onMouseover:n[12]||(n[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[13]||(n[13]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(m)]),_:1},8,["onClick"])])],40,kc))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ic,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Oc,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,d=>(l.openBlock(),l.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:n[23]||(n[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[24]||(n[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[25]||(n[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[26]||(n[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[27]||(n[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:d.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,d.prop,d.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,d.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(d.label),45,Vc)]),_:2},1032,["label"]),l.createElementVNode("div",Rc,[l.createVNode(f,{onClick:h=>e.toUnFixed(d.sortIndex),onMouseover:n[19]||(n[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[20]||(n[20]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(c)]),_:1},8,["onClick"]),l.createVNode(f,{onClick:h=>e.toLeftFixed(d.sortIndex),onMouseover:n[21]||(n[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(m)]),_:1},8,["onClick"])])],40,Dc))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Dn=Xe(vc,[["render",Fc]]);let Ac=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a,i,u){if(Array.isArray(o)){let c=(t-1)*r,f=c+r;f>o.length&&(f=o.length);const m=o.slice(c,f);return{totalSize:o.length,page:m}}if(typeof o=="function")return await Reflect.apply(o,null,[t,r,a,i,u]);const s=je(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ge(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(s,null,[o,t,r,a,i,u]))}};function Mc(){const e=l.getCurrentInstance();return new Ac(e.proxy)}class Lc{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const t=je(this.proxy,"tableSetting");return typeof t=="function"&&(o=await Reflect.apply(t,null,["load",n])),o}save(n,o){const t=je(this.proxy,"tableSetting");typeof t=="function"&&Reflect.apply(t,null,["save",n,o])}remove(n){const o=je(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function ia(){const e=l.getCurrentInstance();return new Lc(e.proxy)}const Bc=Symbol.for("TableStateKey"),zo={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"}},Ho={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}},Kn={popoverWidth:{type:[String,Number],required:!1,default:()=>280},popoverPlacement:{type:[String],required:!1,default:()=>"top-start"},title:{type:[String],required:!1,default:()=>"列设置"},resetText:{type:[String],required:!1,default:()=>"重置"},leftFixedTitle:{type:[String],required:!1,default:()=>"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:()=>"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:()=>"不固定"},fixedLeftText:{type:[String],required:!1,default:()=>"固定到列头"},fixedRightText:{type:[String],required:!1,default:()=>"固定到列尾"},unFixedText:{type:[String],required:!1,default:()=>"不固定"}},qc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String},noMoreText:{type:String}};function _c(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],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 f=parseInt(c);if(i==0){let m=a.substring(0,u);t=t[m][f]}else t=t[f];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function Wn(e,n){return e.filter(t=>{for(let r in n){const a=n[r],i=_c(t,r);if(a!==i)return!1}return!0})}function jc(e,n,o){return{props:{...$e,...De,...zo,...Ho,...Kn,...qc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(t,r){const{locale:a,toLocaleRefs:i}=Ae.useFoxI18n(n),u=i(t,["loadText","noMoreText"]),{emitEvent:s,broadcast:c}=ke({componentName:e,validateHandler:{getValue(...te){return y.value}}},t.prop??r.attrs.name),f=e,m=l.computed(()=>({[f]:!0})),v=l.computed(()=>({[`${f}__setting`]:!0})),b=l.computed(()=>({[`${f}__footer`]:!0,[`${f}__footer__${t.footerAlign}`]:!0})),x=l.computed(()=>({[`${f}__pagination`]:!0,[`${f}__pagination__${t.paginationAlign}`]:!0})),d=l.shallowRef({}),h=l.computed(()=>({...d.value,...t.params??{},...t.baseParams??{}})),P=l.ref(t.infiniteLoad===!0?0:t.pageIndex),w=l.ref(t.pageSize),p=ue(t.infiniteLoad);p||(l.watch(()=>t.pageIndex,te=>{P.value=te}),l.watch(()=>t.pageSize,te=>{w.value=te}),l.watch([P,w],([te,oe],[re,se])=>{oe!==se&&(P.value=1,te=1),W(t.data,te,oe,h.value)}));const L=()=>Array.isArray(t.data)?!0:ue(t.autoLoad);L()&&l.watch([()=>t.data,h],async([te,oe],[re,se])=>{L()&&(te!==re&&(g=!0),!(!Array.isArray(te)&&tt(te,re)&&tt(oe,se))&&(p?(P.value=0,I.value=!0,y.value=[],N()):P.value===1?W(te,P.value,w.value,oe):P.value=1))},{deep:!0});const q=te=>{P.value=te,s("page-index-change",te)},M=te=>{w.value=te,s("page-size-change",te)},I=l.ref(!0),$=l.ref(0),y=l.ref(),_=Mc();let g=!0;const A=Fe(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,te=>ue(te)),W=async(te,oe,re,se,Ee)=>{g=!1;try{if(Ee===!0){if(!I.value)return!1;const pe=await _.load("table",te,oe,re,se,g,a.value);return $.value=pe.totalSize,!pe.page||!Array.isArray(pe.page)||(Reflect.apply([].push,y.value,pe.page),setTimeout(()=>{s("loaded-data")},250),(y.value?.length??0)>=$.value)||pe.page.length<re?(I.value=!1,!1):!0}else{const pe=await _.load("table",te,oe,re,se,g,a.value);return $.value=pe.totalSize,y.value=pe.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(pe){console.error("[FoxUI] Load Table Data Fail",pe),$.value=0,y.value=[]}return!1};let D=!1;const N=async()=>{if(!D){if(D=!0,!I.value){D=!1;return}P.value+=1,await W(t.data,P.value,w.value,h.value,!0),D=!1}},V=(te={},oe=!1)=>new Promise(async re=>{d.value={...l.toRaw(te??{})},oe||(P.value=t.pageIndex??1),p===!0?(P.value=0,y.value=[],I.value=!0,await N()):await W(t.data,P.value,w.value,h.value),re()}),j=()=>{$.value=0,y.value=[],p===!0&&(P.value=0,I.value=!0)};let G=!1;const J=()=>{G||(G=!0,V())},B=l.ref(null);if(p===!0){let te=null;const oe=()=>{B.value&&(te=new IntersectionObserver(se=>{let Ee=!1;for(let pe of se)if(pe.intersectionRatio>0){Ee=!0;break}Ee&&N()}),te.observe(B.value))},re=()=>{!te||!B.value||(te.unobserve(B.value),te=null)};l.onMounted(oe),l.onBeforeUnmount(re)}L()&&!A.value&&V();const ee=l.ref(null);l.provide(Bc,{currentRow:ee});const k=(te,oe)=>{ee.value=te,s("current-change",te,oe)},C=(te,oe,re)=>{s("row-click",te,oe,re),ue(t.rowClickSelectable)===!0&&we?.value.toggleRowSelection(te)},F=[],R=(te,oe)=>{if(s("expand-change",te,oe),ue(t.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=F.length;F.splice(0,re)}else{F.forEach(se=>{se!==te&&we?.value.toggleRowExpansion(se,!1)});const re=F.length;F.splice(0,re,te)}},T=r.attrs.id??t.prop??r.attrs.name,H=ia(),X=l.ref([]);let le=[];const U=()=>({srcColumnPropertyList:le.map(oe=>({...oe})),columnPropertyList:X.value}),Y=te=>{X.value=[...te],K()},E=async()=>{const te=await H.load(T);te&&(X.value=te)},K=()=>{H.save(T,X.value)},Q=()=>{H.remove(T)};E();const O=te=>te?te.type?te.type:te.label?te.prop:"":"",z=(te,oe={})=>{for(let re in oe){const se=oe[re];typeof se!="function"&&(te[re]=se)}},Z=te=>{const oe=te?te():[],re=new Map;if(le=[],oe.forEach(se=>{const pe=se;if(!pe.props)return;const We=O(pe.props);re.set(We,pe);const ze={label:"",prop:""};z(ze,pe.props),le.push(ze)}),X.value.length===le.length){const se=[];for(let Ee of X.value){const pe=O(Ee),We=re.get(pe);if(!We)return oe;if(Ee.visible===!1)continue;const ze=We;ze.props.fixed=Ee.fixed,se.push(ze)}return se}return oe},ne=l.shallowRef(new Map),ie=({row:te,column:oe,rowIndex:re,columnIndex:se})=>{const Ee=`${re}_${oe.property}`,pe=`${re}_${se}`;let We=ne.value.get(Ee);return We||(We=ne.value.get(pe)),typeof We=="string"?We:""},ce=te=>te?oe=>{const re=[];let se=ie(oe);return se&&re.push(se),se=se=typeof te=="function"?te(oe):te,se&&re.push(se),re.length===0?"":re.join(" ")}:ie,ve=(te=!1)=>{ne.value.forEach((oe,re)=>{me(re,oe,te)})},me=(te,oe,re=!1)=>{const se=`${te}_item`;re?(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,re)=>{const se=`${te}_${oe}`;re?(ne.value.set(se,re),me(se,re)):(ne.value.delete(se),me(se,"",!0)),l.triggerRef(ne)},st=te=>{ve(!0),ne.value.clear(),te.forEach(oe=>{const re=`${oe.rowIndex}_${oe.column}`;Array.isArray(oe.children)?ne.value.set(re,oe.children):typeof oe.cellClassName=="string"&&ne.value.set(re,oe.cellClassName)}),ve(),l.triggerRef(ne)},mt=()=>{ve(),ne.value.clear(),l.triggerRef(ne)},Ke=l.shallowRef(new Map),qt=({rowIndex:te})=>{const oe=`${te}`;return Ke.value.get(oe)??""},ya=te=>te?oe=>{const re=[];let se=qt(oe);return se&&re.push(se),se=typeof te=="function"?te(oe):te,se&&re.push(se),re.length===0?"":re.join(" ")}:qt,ba=(te,oe)=>{const re=`${te}`;oe?Ke.value.set(re,oe):Ke.value.delete(re),l.triggerRef(Ke)},xa=()=>{Ke.value.clear(),l.triggerRef(Ke)},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(!y.value)return;const re=Wn(y.value,te);re.length!==0&&re.forEach(se=>{we?.value.toggleRowSelection(se,oe)})},toggleAllSelection:()=>{we?.value.toggleAllSelection()},toggleRowExpansion:(te,oe)=>{we?.value.toggleRowExpansion(te,oe)},toggleRowExpansionByProp:(te,oe)=>{if(!y.value)return;const re=Wn(y.value,te);re.length!==0&&re.forEach(se=>{we?.value.toggleRowExpansion(se,oe)})},setCurrentRow:te=>{we?.value.setCurrentRow(te)},setCurrentRowByProp:te=>{if(!y.value)return;const oe=Wn(y.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:V,clearData:j,getData(){return y.value},getTotalSize(){return $.value},getPageIndex(){return P.value},getPageSize(){return w.value},getColumnSetting:U,setColumnSetting:Y,removeColumnSetting:Q,setCellClassName:Te,setCellClassNames:st,clearCellClassName:mt,setRowClassName:ba,clearRowClassName:xa}),()=>{const oe={...Ze(r.attrs),onCurrentChange:k,onRowClick:C,onExpandChange:R,data:y.value,ref:we,class:m.value,"cell-class-name":ce(t.cellClassName),"row-class-name":ya(t.rowClassName)},re={};if(r.slots.default&&(re.default=()=>Z(r.slots.default)),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),p===!0){const Ye=[];if(I.value){const Ct=l.h(Ie.Loading,{class:`${f}__infinite-icon`});Ye.push(Ct);const Ln=l.h("span",{class:`${f}__infinite-text`},[u.loadText.value]);Ye.push(Ln)}else{const Ct=l.h("span",{class:`${f}__infinite-text`},[u.noMoreText.value]);Ye.push(Ct)}const ut={ref:B,class:`${f}__infinite`},Mn=l.h("div",ut,Ye);re.append=()=>Mn}const se=l.h(S.ElTable,oe,re),Ee=[];if(Ee.push(se),!p){let Ye=null;if(typeof r.slots.pagination=="function")Ye=r.slots.pagination();else if(t.showPagination){const ut={class:x.value,total:$.value,pageSize:w.value,"onUpdate:pageSize":M,pageSizes:t.pageSizes,currentPage:P.value,"onUpdate:currentPage":q,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};Ye=l.h(S.ElPagination,ut)}if(t.showSetting){const ut=[];Ye&&ut.push(Ye);const Mn=l.h(S.ElIcon,{class:v.value},{default:()=>l.h(Ie.Setting)}),Ct=xt(t,Kn),Ln=l.h(Dn,{...Ct,tableRef:{getColumnSetting:U,setColumnSetting:Y,removeColumnSetting:Q}},{default:()=>Mn});ut.push(Ln);const wa=l.h("div",{class:b.value},ut);Ee.push(wa)}else Ye&&Ee.push(Ye)}const pe={default:()=>Ee},ze={...Oe(t,zo,Ho,Kn)};return t.prop&&(ze.prop=`${t.prop}_item`),ze.contentClass=`${f}__wrap`,ze.errorMarkClass="is-table-error",A.value&&L()&&(ze["appear-listen"]=!0,ze.onAppear=J),l.h(o,ze,pe)}}}}const{componentName:zc,create:Hc,scope:Kc}=ae("table-item"),Bl=Hc(jc(zc,Kc,Ne));function St(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Wc(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Yc=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=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Uc(){const e=l.getCurrentInstance();return new Yc(e.proxy)}function sa(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=St(e,n),r=St(e,o);if(t!==r)return!1;const a=Ft(e,n),i=Ft(e,o);return a===i}function Gc(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 i=!1;if(o==="text")i=St(e,a)===n;else if(o==="item")i=sa(e,a,n);else{let u=Ft(e,a);u==null&&(u=St(e,a)),i=u===n}if(i){r=a;break}}return r}function Xc(e){return{text:e,value:e}}function Zc(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Ko={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 Qc(e,n,o){return{inheritAttrs:!0,props:{...$e,...De,...Ko},emits:["change","update:modelValue","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),f=l.ref(null),m=l.ref(null),v=(y,_,g,A=!0)=>{const W=Gc(t,y,_,g);if(W===null){if(m.value===null)return;m.value=null,f.value=null,A&&(c("update:modelValue",null),c("change",null));return}if(!sa(t,W,m.value)){f.value=y;const N=l.toRaw(W);m.value=N;let V=null;t.valueType==="text"?V=St(t,N):t.valueType==="item"?V=N:V=Ft(t,N),A&&(c("update:modelValue",V),c("change",V))}},b=l.ref([]),x=Fe(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,y=>ue(y)),d=Uc(),h=async(y,_)=>{if(y){const g=await d.load("radio",y,_);if(g.length>0)if(typeof g[0]=="string"){let D=g.map(N=>Xc(N));b.value=D}else b.value=g}};l.watch([()=>t.source,()=>t.params],async([y,_])=>{h(y,_)},{immediate:!x.value});let P=!1;const w=()=>{P||(P=!0,h(t.source,t.params))};l.watch([()=>b.value,()=>t.modelValue],([y,_])=>{v(_,t.valueType,y,!1),c("setValue",_)});const p=e,L=l.computed(()=>({[p]:!0,[`is-${t.direction}`]:!0})),q=y=>{v(y,"value",b.value,!0)};let M=he(t,"hintText"),I=he(t,"hintVisible");const $=(y,_)=>{const g=[];return y.forEach((A,W)=>{const D=Ft(t,A),N=St(t,A);let V=Wc(t,A);i.value===!0&&(V=i.value),s.value===!0&&(V=s.value);const j=Zc(t,A,W)??{},G=`${D}_${W}`,J={...j,key:G,value:D,size:t.size,border:ue(t.border)};V&&(J.disabled=V),t.itemType==="button"?g.push(l.h(S.ElRadioButton,J,{default:()=>[N]})):typeof _=="function"?g.push(l.h(S.ElRadio,J,{default:()=>_(A)})):g.push(l.h(S.ElRadio,J,{default:()=>[N]}))}),g};return Se({setDisabled:y=>{a.value=y},setReadonly:y=>{u.value=y}}),()=>{const _={...Ze(r.attrs),class:L.value,disabled:i.value||s.value,modelValue:f.value,"text-color":t.textColor,fill:t.fill,onChange:q},g=[],A={};r.slots.options?A.default=r.slots.options:A.default=()=>$(b.value,r.slots.text);const W=l.h(S.ElRadioGroup,_,A);g.push(W);const D={default:()=>g};D.label=r.slots.default,D.fixedPreTip=r.slots.fixedPreTip,D.fixedTip=r.slots.fixedTip;const V={...Oe(t,Ko),hintText:M.value,hintVisible:I.value};return t.prop&&(V.prop=`${t.prop}_item`),x.value&&(V["appear-listen"]=!0,V.onAppear=w),l.h(o,V,D)}}}}const{componentName:Jc,create:ef,scope:tf}=ae("radio-item"),ql=ef(Qc(Jc,tf,Ne));function Tt(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 nf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let lf=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=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function of(){const e=l.getCurrentInstance();return new lf(e.proxy)}function ua(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=bt(e,n),i=bt(e,o);return a===i}function rf(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 i of t){let u=!1;if(o==="text")u=Tt(e,i)===a;else if(o==="item")u=ua(e,i,a);else{let s=bt(e,i);s==null&&(s=Tt(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function af(e){return{text:e,value:e}}function sf(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Wo={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 uf(e,n,o){return{inheritAttrs:!0,props:{...$e,...De,...Wo},emits:["change","update:modelValue","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),f=l.ref([]),m=l.ref([]),v=(y,_,g,A=!0)=>{const W=rf(t,y,_,g);if(W===null){if(m.value===null||m.value.length===0)return;f.value=[],m.value=[],A&&(c("update:modelValue",[]),c("change",[]));return}let D=!0;if(W.length!==m.value.length)D=!1;else for(let N=0;N<W.length;N++){const V=W[N],j=m.value[N];if(!ua(t,V,j)){D=!1;break}}if(!D){m.value=W;let N=[],V=[];W.forEach(G=>{N.push(bt(t,G)),t.valueType==="text"?V.push(Tt(t,G)):t.valueType==="item"?V.push(G):V.push(bt(t,G))}),f.value=N;const j=l.toRaw(V);A&&(c("update:modelValue",j),c("change",j))}},b=l.ref([]),x=Fe(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,y=>ue(y)),d=of(),h=async(y,_)=>{if(y){const g=await d.load("checkbox",y,_);if(g.length>0)if(typeof g[0]=="string"){let D=g.map(N=>af(N));b.value=D}else b.value=g}};l.watch([()=>t.source,()=>t.params],async([y,_])=>{h(y,_)},{immediate:!x.value});let P=!1;const w=()=>{P||(P=!0,h(t.source,t.params))};l.watch([()=>b.value,()=>t.modelValue],([y,_])=>{v(_,t.valueType,y,!1),c("setValue",_)});const p=e,L=l.computed(()=>({[p]:!0,[`is-${t.direction}`]:!0})),q=y=>{v(y,"value",b.value,!0)};let M=he(t,"hintText"),I=he(t,"hintVisible");const $=(y,_)=>{const g=[];return y.forEach((A,W)=>{const D=bt(t,A),N=Tt(t,A);let V=nf(t,A);i.value===!0&&(V=i.value),s.value===!0&&(V=s.value);const j=sf(t,A,W)??{},G=`${D}_${W}`,J={...j,key:G,class:t.itemClass,value:D,size:t.size,border:ue(t.border)};V&&(J.disabled=V),t.itemType==="button"?g.push(l.h(S.ElCheckboxButton,J,{default:()=>[N]})):typeof _=="function"?g.push(l.h(S.ElCheckbox,J,{default:()=>_(A)})):g.push(l.h(S.ElCheckbox,J,{default:()=>[N]}))}),g};return Se({setDisabled:y=>{a.value=y},setReadonly:y=>{u.value=y}}),()=>{const _={...Ze(r.attrs),class:L.value,disabled:i.value||s.value,modelValue:f.value,"text-color":t.textColor,fill:t.fill,max:Ce(t.max),min:Ce(t.min),onChange:q},g=[],A={};r.slots.options?A.default=r.slots.options:A.default=()=>$(b.value,r.slots.text);const W=l.h(S.ElCheckboxGroup,_,A);g.push(W);const D={default:()=>g};D.label=r.slots.default,D.fixedPreTip=r.slots.fixedPreTip,D.fixedTip=r.slots.fixedTip;const V={...Oe(t,Wo),hintText:M.value,hintVisible:I.value};return t.prop&&(V.prop=`${t.prop}_item`),x.value&&(V["appear-listen"]=!0,V.onAppear=w),l.h(o,V,D)}}}}const{componentName:cf,create:ff,scope:df}=ae("checkbox-item"),_l=ff(uf(cf,df,Ne)),Yo={modelValue:{type:[Number,String],required:!1}};function hf(e,n,o){return{props:{...$e,...De,...Yo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),f=he(t,"modelValue",P=>Ce(P),c),m=e,v=l.computed(()=>({[m]:!0})),b=P=>{c("update:modelValue",P),c("change",P)};let x=he(t,"hintText"),d=l.ref(!1);const h=l.ref();return Se({setDisabled:P=>{a.value=P},setReadonly:P=>{u.value=P}}),()=>{const w={...Ze(r.attrs),ref:h,class:v.value,readonly:s.value||i.value,modelValue:f.value,onChange:b},p={},L=[],q=l.h(S.ElRate,w,p);L.push(q);const M={default:()=>L};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const $={...Oe(t,Yo),hintText:x.value,hintVisible:d.value};return t.prop&&($.prop=`${t.prop}_item`),l.h(o,$,M)}}}}const{componentName:mf,create:gf,scope:vf}=ae("rate-item"),jl=gf(hf(mf,vf,Ne)),Uo={modelValue:{type:[Boolean,String,Number],required:!1}};function pf(e,n,o){return{props:{...$e,...De,...Uo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),f=he(t,"modelValue",null,c),m=e,v=l.computed(()=>({[m]:!0})),b=P=>{c("update:modelValue",P),c("change",P)};let x=he(t,"hintText"),d=he(t,"hintVisible");const h=l.ref();return Se({setDisabled:P=>{a.value=P},setReadonly:P=>{u.value=P}}),()=>{const w={...Ze(r.attrs),ref:h,class:v.value,readonly:s.value,disabled:i.value,modelValue:f.value,onChange:b},p={},L=[],q=l.h(S.ElSwitch,w,p);L.push(q);const M={default:()=>L};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const $={...Oe(t,Uo),hintText:x.value,hintVisible:d.value};return t.prop&&($.prop=`${t.prop}_item`),l.h(o,$,M)}}}}const{componentName:yf,create:bf,scope:xf}=ae("switch-item"),zl=bf(pf(yf,xf,Ne)),Go={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 wf=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 i=je(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await i(o,t,r))}};function Sf(){const e=l.getCurrentInstance();return new wf(e.proxy)}const Xo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Tf(e,n,o){return{props:{...$e,...De,...Xo,...Go},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),c=l.ref(!1),{emitEvent:f}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),m=he(t,"modelValue",null,f),v=e,b=l.computed(()=>({[v]:!0})),x=A=>{m.value=A,f("update:modelValue",A),f("change",A)};let d=he(t,"hintText"),h=l.ref(!1);const P=A=>{let D=A.target.value;c.value=!0,de(d.value)||(h.value=!0),f("focus",D,A)},w=A=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let D=A.target.value;t.maxLength&&D.length>Number(t.maxLength)&&(D=D.slice(0,Number(t.maxLength))),L.value||f("blur",D,A)},p=()=>{f("clear","")},L=l.ref(!1),q=A=>{L.value=A,f("visible-change",A),A||f("selected")},M=l.ref([]),I=Sf(),$=async(A,W)=>{try{const D=await I.load("treeselect",A,W);M.value=D}catch(D){console.error(D)}};l.watch([()=>t.data,()=>t.params,()=>t.lazy],([A,W,D])=>{!A||D||$(A,W)},{immediate:!0});let y=null;t.lazy&&(typeof t.load=="function"?y=t.load:y=async(A,W)=>{debugger;let D={};t.params&&Object.assign(D,t.params),A&&Object.assign(D,A);const N=await I.load("treeselect",t.data,D,!0);W(N)});let _={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey};const g=l.ref();return Se({focus:()=>{g?.value.focus()},blur:()=>{g?.value.blur()},setDisabled:A=>{a.value=A},setReadonly:A=>{u.value=A}}),()=>{const W={...Ze(r.attrs),ref:g,class:b.value,disabled:i.value||s.value,modelValue:m.value,"onUpdate:modelValue":x,lazy:t.lazy,props:_,onClear:p,onFocus:P,onBlur:w,onVisibleChange:q};y?W.load=y:W.data=M.value;const D={};r.slots.option&&(D.default=r.slots.option);const N=[],V=l.h(S.ElTreeSelect,W,D);N.push(V);const j={default:()=>N};j.label=r.slots.default,j.fixedPreTip=r.slots.fixedPreTip,j.fixedTip=r.slots.fixedTip;const J={...Oe(t,Xo,Go),hintText:d.value,hintVisible:h.value};return t.prop&&(J.prop=`${t.prop}_item`),l.h(o,J,j)}}}}const{componentName:Cf,create:$f,scope:Nf}=ae("tree-select-item"),Hl=$f(Tf(Cf,Nf,Ne)),kf={},Ef={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 Pf(e,n){return l.openBlock(),l.createElementBlock("svg",Ef,[...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 If=Xe(kf,[["render",Pf]]),{create:Of}=ae("group-setting"),Df={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:"到底部"}},Vf=Of({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:If,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Df},emits:["change"],setup(e,{emit:n,attrs:o,expose:t}){let r=null;const a=l.ref([]),i=ia(),u=k=>k.length>1,s=()=>{const k=[],C=[...a.value];a.value=C.map((R,T)=>(R.visible!==!1&&k.push(R.prop),{...R,sortIndex:T})),a.value.length===k.length?d.value=!0:k.length>0&&(h.value=!0),p.value=k},c=k=>{let C=null;if(typeof k=="string")C=document.querySelectorAll(`.fox-group[prop="${k}"] > div > .fox-item[prop]`);else if(k&&typeof k=="object"){const R=k.$el??k;typeof R.querySelectorAll=="function"&&(C=R.querySelectorAll(".fox-item[prop]"))}if(!C)return[];const F=[];return C.forEach(R=>{const T=R.querySelector(".label--string");let H="";T&&(H=T.textContent??"");const X=R.getAttribute("prop")??"",U=window.getComputedStyle(R,null).getPropertyValue("display");F.push({label:H,prop:X,sortIndex:0,visible:U!=="none"})}),F},f=()=>{if(!r){const k=c(e.groupRef??e.groupProp);if(k.length===0)return!1;r=k}return!0},m=async(k=!1)=>{const C=await i.load(e.groupProp),F=R=>{if(!R||!r)return;const T=r.map(H=>({...H}));Array.isArray(C)&&C.forEach(H=>{T.some(X=>{if(X.prop===H.prop){const le=X.label;return Object.assign(X,H),X.label=le,!0}return!1})}),a.value=T.sort((H,X)=>H.sortIndex-X.sortIndex),s(),k&&b(!1)};r?F(!0):gn(f,e.initDelay,5,50,!1,F)},v=()=>{const k=r??[];a.value=k.map(C=>({...C})),s(),b()},b=(k=!0)=>{k&&i.save(e.groupProp,a.value);const C=a.value.map(F=>({...F}));n("change",C)},x=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),d=l.ref(!1),h=l.ref(!1),P=k=>{const C=[];a.value.forEach(R=>{k&&C.push(R.prop),R.visible=k}),d.value=!1,h.value=!1,a.value.length===C.length?d.value=!0:C.length>0&&(h.value=!0),p.value=C,b()},w=()=>{v()},p=l.ref([]),L=k=>{a.value.forEach(F=>{const R=k.indexOf(F.prop)!==-1;F.visible=R}),d.value=!1,h.value=!1;const C=a.value.length;k.length===C?d.value=!0:k.length>0&&(h.value=!0),b()},q=()=>{m()};l.onMounted(()=>{m(!0)});const M={currentRow:null,index:null},I=k=>k?k.dataset&&k.dataset.role==="row"?k:k.tagName.toLowerCase()!=="body"?(k=k.parentElement,I(k)):null:null,$=k=>{const C=k.currentTarget;C&&C.dataset&&(M.index=C.dataset.index)},y=k=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null},_=k=>{const C=k.currentTarget;k.relatedTarget;const F=I(C);F&&(k.preventDefault(),M.currentRow&&M.currentRow!==F&&M.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),M.currentRow=F)},g=k=>{k.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},A=k=>{const C=k.currentTarget,F=I(C);if(!F)return;k.preventDefault();const R=Number(M.index),T=Number(F.dataset.index);if(R!==T){if(R<T){const H=a.value[R];a.value.splice(R,1),a.value.splice(T,0,H)}else{const H=a.value[R];a.value.splice(R,1),a.value.splice(T+1,0,H)}s(),b()}},W=k=>{const C=a.value[k];a.value.splice(k,1),a.value.splice(0,0,C),s(),b()},D=k=>{const C=a.value[k];a.value.splice(k,1),a.value.push(C),s(),b()};t({refresh:()=>{r=null,m(!1)}});const N=new Map;let V=null;function j(k){const C=document.createRange();return C.setStart(k,0),C.setEnd(k,k.childNodes.length),C.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:u,isCheckAll:d,isIndeterminate:h,handleCheckAllChange:P,handleReset:w,checkedValue:p,handleCheckChange:L,onShow:q,onDragStart:$,onDragEnd:y,onDragOver:_,onDragLeave:g,onDrop:A,checkboxLabelStyle:x,toTop:W,toBottom:D,onMouseOverForOverflowText:(k,C,F)=>{const R=k.currentTarget;if(R){const T=Math.floor(R.offsetWidth);if(Math.floor(j(R))>T){let X=N.get(C);if(X){if(X===V)return;Re.hide(X)}X=Re.show(R,F,{type:"text",placement:"top",closeOnClick:!1}),N.set(C,X),V=X}}},onMouseLeaveForOverflowText:(k,C)=>{const F=N.get(C);F&&(Re.hide(F),F===V&&(V=null))},onMouseOverForTip:(k,C)=>{const F=k.currentTarget;F&&(V&&Re.hide(V),V=Re.show(F,C,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:k=>{V&&(Re.hide(V),V=null)}}}}),Rf={class:"fox-group-setting"},Ff={class:"fox-group-setting__header"},Af={class:"fox-group-setting__body"},Mf={class:"fox-group-setting__body-list","data-role":"container"},Lf=["data-index","draggable"],Bf=["onMouseover","onMouseleave"],qf={class:"tools-item"};function _f(e,n,o,t,r,a){const i=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),s=l.resolveComponent("DragIcon"),c=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),m=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,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",Rf,[l.createElementVNode("div",Ff,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=b=>e.isCheckAll=b),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",Af,[l.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=b=>e.checkedValue=b),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Mf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,b=>(l.openBlock(),l.createElementBlock("div",{key:b.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":b.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(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:b.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:x=>e.onMouseOverForOverflowText(x,b.prop,b.label),onMouseleave:x=>e.onMouseLeaveForOverflowText(x,b.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(b.label),45,Bf)]),_:2},1032,["label"]),l.createElementVNode("div",qf,[l.createVNode(f,{onClick:x=>e.toTop(b.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(f,{onClick:x=>e.toBottom(b.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,Lf))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Kl=Xe(Vf,[["render",_f]]),jf={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 zf=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 i=je(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await i(o,t,r))}};function Hf(){const e=l.getCurrentInstance();return new zf(e.proxy)}function Kf(e,n,o){return{props:{...cl,...jf},setup(t,r){const a=e,i=l.computed(()=>({[a]:!0})),u=l.ref([]),s=Hf(),c=async(p,L)=>{try{const q=await s.load("tree",p,L);u.value=q}catch(q){console.error(q)}},f=l.shallowRef({}),m=l.computed(()=>({...f.value,...t.params??{}}));(Array.isArray(t.data)?!0:t.lazy?!1:ue(t.autoLoad))&&l.watch([()=>t.data,()=>m.value],([p,L])=>{p&&c(p,L)},{immediate:!0,deep:!0});let b=null;t.lazy&&(typeof t.load=="function"?b=t.load:b=async(p,L)=>{let q={};t.params&&Object.assign(q,t.params),p&&Object.assign(q,p);const M=await s.load("treeselect",t.data,q,!0);L(M)});const x={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey,disabled:t.disabedKey,...t.props??{}},d=(p={})=>new Promise(async L=>{f.value={...l.toRaw(p??{})},await c(t.data,m.value),L()}),h=function(p,L){if(typeof t.filterNodeMethod=="function")return t.filterNodeMethod(p,L);if(!t.filterKeyword)return!0;const q=`${L[x.label]}`,M=`${p}`;return q.includes(M)},P=l.ref();l.watch(()=>t.filterKeyword,p=>{P.value.filter(p)});const w=p=>(...L)=>{const q=P.value[p];return Reflect.apply(q,P.value,[...L])};return r.expose({loadData:d,filter:w("filter"),updateKeyChildren:w("updateKeyChildren"),getCheckedNodes:w("getCheckedNodes"),setCheckedNodes:w("setCheckedNodes"),getCheckedKeys:w("getCheckedKeys"),setCheckedKeys:w("setCheckedKeys"),setChecked:w("setChecked"),getHalfCheckedNodes:w("getHalfCheckedNodes"),getHalfCheckedKeys:w("getHalfCheckedKeys"),getCurrentKey:w("getCurrentKey"),getCurrentNode:w("getCurrentNode"),setCurrentKey:w("setCurrentKey"),setCurrentNode:w("setCurrentNode"),getNode:w("getNode"),remove:w("remove"),append:w("append"),insertBefore:w("insertBefore"),insertAfter:w("insertAfter")}),()=>{const L={...Ze(r.attrs),class:i.value,lazy:t.lazy,props:x,ref:g=>P.value=g};b?L.load=b:L.data=u.value,L["filter-node-method"]=h;const q=[],M=l.h(S.ElTree,L,r.slots);q.push(M);const I={default:()=>q},y={...xt(t,cl)};return l.h(o,y,I)}}}}const{componentName:Wf,create:Yf,scope:Uf}=ae("tree-item"),Wl=Yf(Kf(Wf,Uf,En)),Gf=["aria-labelledby"],Xf=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),Zf=[Xf],Qf=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=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.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"},Zf,14,Gf))}}),Jf=["aria-labelledby"],ed=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),td=[ed],nd=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=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.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"},td,14,Jf))}}),ld=["aria-labelledby"],od=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),rd=[od],Yl=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=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.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"},rd,14,ld))}}),ad=["aria-labelledby"],id=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),sd=[id],ud=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=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.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"},sd,14,ad))}}),cd=["aria-labelledby"],fd=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),dd=[fd],hd=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=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.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"},dd,14,cd))}}),md=["aria-labelledby"],gd=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),vd=[gd],pd=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=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.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"},vd,14,md))}}),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},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}},Zo=(e,n)=>n[e.textKey],kt=(e,n)=>n[e.valueKey],yd=(e,n)=>n[e.visibleKey],Qo=(e,n)=>n[e.disabledKey],bd=(e,n)=>{const o=n[e.doitKey];return ue(o)},xd=(e,n)=>{const o=n[e.numKey];return o==null?null:Ce(n[o])},Jo=(e,n,o)=>{const t=e.itemOptions;return typeof t=="function"?t(n,o):t||null};function wd(e,n,o,t=!1){return{props:{...hl},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=l.computed(()=>{const k={};return k[`${e}`]=!0,k}),s=l.computed(()=>{const k={};return k[`${e}__titles`]=!0,k[`${r.direction}`]=!0,r.align==="left"&&(k.left=!0),r.scroll===!0&&(k.scrollable=!0),r.shape&&(k[`${r.shape}`]=!0),k}),c=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const k=ge(r.gutter);return k<=0?0:k}),m=l.ref(r.modelValue);l.watch(()=>r.modelValue,k=>{m.value!==k&&(m.value=k,j(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=l.computed(()=>{const k={};return d.value||(k.display="none"),k}),x=l.ref(),d=l.ref(!1),h=()=>{const k=!d.value;P(k)},P=k=>{const C=k;C?(d.value=C,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,x.value?x.value.addEventListener("transitionend",()=>{d.value=!1},{once:!0}):setTimeout(()=>{d.value=!1},0))},w=l.ref(),p=l.ref([]),L=(k,C)=>{p.value[C]=k},q=k=>C=>{L(C,k)},M=(k,C)=>{const F=w.value,R=p.value;if(!F||!R||!R[k])return;const T=R[k];let H=0;r.direction==="vertical"?H=T.offsetTop-(F.offsetHeight-T.offsetHeight)/2:H=T.offsetLeft-(F.offsetWidth-T.offsetWidth)/2,I(F,H,C?0:.3,r.direction)},I=(k,C,F,R)=>{let T=0;const H=R==="horizontal"?k.scrollLeft:k.scrollTop,X=F===0?1:Math.round(F*1e3/16);function le(){R==="horizontal"?k.scrollLeft+=(C-H)/X:k.scrollTop+=(C-H)/X,++T<X&&pl(le)}le()},$=(k,C)=>{const F=kt(r,k),R={};return R[`${e}__titles-item`]=!0,R.disabled=Qo(r,k),R.active=F===m.value,r.shape&&(R[`${r.shape}`]=!0),r.ellipsis&&(R.ellipsis=!0),C&&(C.class&&(R[`${C.class}`]=!0),C.disabled===!0&&(R.disabled=C.disabled)),R},y=(k,C)=>{const F={};if(f.value>0){const R=Math.abs(f.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 C&&C.style&&Object.assign(F,C.style),F},_=(k,C)=>`${kt(r,k)??C}`,g=(k,C)=>{const F=kt(r,k),R={};R[`${e}__popup-item`]=!0,R.disabled=Qo(r,k),R.active=F===m.value,r.shape&&(R[`${r.shape}`]=!0);const T=Jo(r,k,C);return T&&T.disabled===!0&&(R.disabled=T.disabled),R},A=l.computed(()=>(r.data??[]).filter(C=>yd(r,C)!==!1)),W=(k,C)=>{const F=kt(r,k);if(m.value==F)return;const R=()=>{m.value=F,r.scroll&&M(C,!1),i("update:modelValue",F),i("change",k,C)};if(typeof r.beforeChange=="function"){const T=r.beforeChange(k,C);$r(T)?T.then(H=>{H!==!1&&R()}).catch(()=>{R()}):T!==!1&&R()}else R()},D=(k,C)=>function(){W(k,C)},N=(k,C)=>{W(k,C),P(!1)},V=(k,C)=>function(){N(k,C)},j=k=>{if(!Array.isArray(r.data)||!r.scroll)return;const C=r.data.findIndex(F=>kt(r,F)===m.value);C!==-1&&M(C,k)};l.watch(()=>r.data,()=>{setTimeout(j,0)}),l.onMounted(()=>{j(!0)});const G=(k,C)=>{if(a.item)return a.item({item:k,index:C});const F=Jo(r,k,C),R=[];if(a.text){const le=a.text({item:k,index:C});R.push(le)}else{const le=[];if(F?.doit===!0||bd(r,k)){const K={class:[`${e}__titles-item-tip`,"doit"]},Q=l.h("view",K);le.push(Q)}const U=F?.num??xd(r,k);if(U){let K="";const Q=Ce(U);Q>=100?K="99+":K=`${Q}`;const O={class:[`${e}__titles-item-tip`,"num"]},z=l.h("view",O,[K]);le.push(z)}const Y={class:`${e}__titles-item-text`};le.push(Zo(r,k));const E=l.h("view",Y,le);R.push(E)}const T={class:`${e}__titles-item-line`},H=l.h("view",T);R.push(H);const X={ref:q(C),class:$(k,F),style:y(k,F),key:_(k,C),onClick:D(k,C)};return l.h("view",X,R)},J=()=>{const k=a.default?a.default():[];if(k.length===0)for(let F=0;F<A.value.length;F++){const R=A.value[F],T=G(R,F);k.push(T)}const C={ref:w,class:s.value,style:c.value};return l.h("view",C,k)},B=()=>{let k=null;a.navigation?k=a.navigation():k=l.h(o);const C={class:`${e}__navigation`,onClick:h};return l.h("view",C,[k])},ee=()=>{const k=[];for(let F=0;F<A.value.length;F++){const R=A.value[F];let T=null;a.popupItem?T=a.popupItem({item:R,index:F}):T=Zo(r,R);const H={class:g(R,F),key:_(R,F),onClick:V(R,F)},X=l.h("view",H,[T]);k.push(X)}const C={class:v.value,style:b.value};return l.h("view",C,k)};return()=>{const k=[],C=J();if(k.push(C),r.showQuickNavigation){const R=B();k.push(R);const T=ee();k.push(T)}const F={class:u.value};return l.h("view",F,k)}}}}const{create:Sd,componentName:Td,scope:Cd}=ae("tabs-bar"),Vn=Sd(wd(Td,Cd,nd,!1)),ca=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]}},er=10;function fa(e,n){return e>n&&e>er?"horizontal":n>e&&n>er?"vertical":""}function Lt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bt(){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:(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=fa(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:n,isHorizontal:o,state:e}}function $d(){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),i=l.ref(0),u=l.ref(0),s=l.ref(0),c=l.ref(0),f=l.ref(""),m=()=>f.value==="vertical",v=()=>f.value==="horizontal",b=()=>{i.value=0,u.value=0,s.value=0,c.value=0,f.value="",o.value=0};return{move:(h=>{if(h.touches){const p=h.touches[0];i.value=p.clientX-e.value,u.value=p.clientY-n.value,r.value=p.clientX,a.value=p.clientY}else{const w=h;i.value=w.clientX-e.value,u.value=w.clientY-n.value,r.value=w.clientX,a.value=w.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),t.value=Date.now()-o.value,f.value||(f.value=fa(s.value,c.value))}),start:(h=>{if(b(),h.touches){const p=h.touches[0];e.value=p.clientX,n.value=p.clientY}else{const w=h;e.value=w.clientX,n.value=w.clientY}o.value=Date.now()}),reset:b,startX:e,startY:n,startTime:o,duration:t,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:f,isVertical:m,isHorizontal:v}}const Nd=15,kd=300,Ed=200;function Pd(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function tr(e,n=0,o,t,r=Ed){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 Id=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=Lt()}open(n){this.el=n;const o=Bt(),t=(r,a,i)=>{const u={delta:r,direction:a,type:i};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<kd&&Math.abs(r)>Nd?(r=Pd(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 Od(e,n,o,t=1){return new Id(e,n,o,t)}function Dd(e,n,o=!1){return{props:{...ml},emits:["update:modelValue","change"],setup(t,{emit:r,slots:a}){const i=l.shallowRef([]),u={current:l.ref(t.modelValue??""),direction:l.ref(t.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:I=>{const $={name:I};u.current.value===I&&($.loaded=!0),i.value.push($),l.triggerRef(i)},remove:I=>{const $=i.value.findIndex(y=>y.name===I);$!==-1&&i.value.splice($,1)},isLoaded:I=>{if(!t.lazy)return!0;const $=i.value.findIndex(y=>y.name===I);return $!==-1?u.current.value?i.value[$].loaded??!1:$===0:!1}};l.provide(ca,u);const s=I=>{const $=i.value.findIndex(y=>y.name===I);$!==-1&&(i.value[$].loaded=!0,l.triggerRef(i))};l.watch([()=>t.modelValue,()=>t.direction],([I,$])=>{u.current.value!==I&&(u.current.value=I??"",s(I??"")),u.direction.value!==$&&(u.direction.value=$)});const c=l.ref(null),f=l.ref(null),m=l.computed(()=>({[e]:!0,[`${t.direction}`]:!0})),v=l.computed(()=>{const I={};if(t.width){const $=ye(t.width);$&&(I.width=$)}if(t.height){const $=ye(t.height);$&&(I.height=$)}return I});let b=!0;const x=l.computed(()=>{const I={},$=i.value.length;if($<=0)return I;const y=i.value.findIndex(_=>_.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(I.height=`${$*u.tabHeight.value}px`,y!==-1&&(I.transform=`translate(0, -${y*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(I.width=`${$*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},h=I=>{const $=i.value.length,y=i.value.findIndex(_=>_.name===u.current.value);d.moved=0,I.direction==="vertical"?(d.min=-1*(u.tabHeight.value*($-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*($-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 $=f.value;if(!$)return;let y=d.start+I.delta;if(y>d.max?y=d.max:y<d.min&&(y=d.min),I.type==="move")tr($,y,"move",I.direction,300);else if(I.type==="end"){let _=Math.floor(Math.abs(y)*1/d.itemDistance);const g=Math.abs(y)%d.itemDistance;d.start>y?g>=d.itemDistance*d.triggerAutoMoveRatio&&(_+=1):g>d.itemDistance-d.itemDistance*d.triggerAutoMoveRatio&&(_+=1),y=-1*_*d.itemDistance,tr($,y,"end",I.direction,300),d.moved=y;const A=i.value[_].name;u.current.value=A??"",s(A??""),r("update:modelValue",A)}},w=()=>{},p=()=>{if(!c.value)return;const I=xn(c.value);u.tabWidth.value=I.width,u.tabHeight.value=I.height},L=_r(p,250);let q=null,M=null;return l.onMounted(()=>{c.value&&(p(),window.ResizeObserver&&(M=new window.ResizeObserver(L),M.observe(c.value)),t.draggle&&(q=Od(h,P,w),q.open(f.value)))}),l.onBeforeUnmount(()=>{M&&(M.disconnect(),M=null),q&&q.close()}),()=>{const I={class:`${e}__panes`,style:x.value,ref:f},$=l.h("view",I,[a?.default?.()]),y={class:m.value,style:v.value,ref:c};return l.h("view",y,[$])}}}}const{create:Vd,componentName:Rd,scope:Fd}=ae("tabs-container"),Rn=Vd(Dd(Rd,Fd,!1)),Ad={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 Md(e,n,o){return{props:{...Ad},setup(t,{emit:r,slots:a}){const i=l.inject(ca);l.onMounted(()=>{i.add(t.paneKey)}),l.onBeforeUnmount(()=>{i.remove(t.paneKey)});const u=l.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=l.computed(()=>t.loaded!=null?ue(t.loaded):i.isLoaded(t.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const m={class:`${e}__empty-icon`},v=t.emptyIcon??o,b=l.h(v,m),x={class:`${e}__empty-text`},d=t.emptyText??"Loading",h=l.h("view",x,[d]),P={class:`${e}__empty`},w=l.h("view",P,[b,h]);c.push(w)}const f={class:`${e}`,style:u.value};return l.h("view",f,c)}}}}const{create:Ld,componentName:Bd,scope:qd}=ae("tabs-pane"),Ul=Ld(Md(Bd,qd,Yl));function _d(e,n,o,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(r,{emit:a,slots:i}){const u=e,s=l.computed(()=>{const d=[`${u}`];return r.direction==="vertical"?d.push("vertical-tabbar"):d.push("horizontal-tabbar"),d}),c=l.computed(()=>{const d={};if(r.width){const h=ye(r.width);h&&(d.width=h)}if(r.height){const h=ye(r.height);h&&(d.height=h)}return d}),f=l.computed(()=>[`${u}__bars`]),m=l.computed(()=>[`${u}__container`]),v=l.ref(r.modelValue);l.watch(()=>r.modelValue,d=>{v.value!==d&&(v.value=d)});const b=d=>{a("change",d)},x=d=>{v.value!==d&&(v.value=d,a("update:modelValue",d))};return()=>{const d=i.default?.()??[],h=[];if(Array.isArray(r.data))h.push(...r.data);else for(let $=0;$<d.length;$++){const y=d[$].props??{},_={text:y.label??"",value:y["pane-key"]??y.paneKey??""};h.push(_)}const P={};for(let $ in i)$!=="default"&&(P[$]=i[$]);const w=xt(r,hl);Object.assign(w,{data:h,class:f.value,modelValue:v.value,direction:r.direction,onChange:b,"onUpdate:modelValue":x});const p=l.h(o,w,P),L={default:i.default},q=xt(r,ml);Object.assign(q,{class:m.value,modelValue:v.value,onChange:b,"onUpdate:modelValue":x});const M=l.h(t,q,L),I={class:s.value,style:c.value};return l.h("view",I,[p,M])}}}}const{create:jd,componentName:zd,scope:Hd}=ae("tabs-frame"),Gl=jd(_d(zd,Hd,Vn,Rn)),Kd={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Wd(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function nr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function lr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Yd(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Yn(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function or(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function rr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Un(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class Ud{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=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await Reflect.apply(r,null,[o,t]))}}function Gd(){const e=l.getCurrentInstance();return new Ud(e.proxy)}function Xd(e,n,o,t){return{props:{...Kd},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=Gd(),c=l.ref([]),f=l.computed(()=>c.value.filter(C=>Yd(r,C)!==!1)),m=l.ref(-1),v=()=>{const C=r.modelValue,F=f.value.findIndex(R=>nr(r,R)===C);m.value!==F&&(m.value=F,r.scroll&&ee(F))};l.watch([()=>r.modelValue,f],()=>{v()});const b=C=>m.value===C,x=C=>{if(C<0&&C>=f.value.length)return!1;const F=f.value[C],T=(Un(r,F,C)??{}).status??Yn(r,F);return b(C)||T},d=l.computed(()=>{const C={[u]:!0};return r.mode?C[`is-${r.mode}`]=!0:r.direction&&(C[`is-${r.direction}`]=!0),r.scroll&&(C["is-scroll"]=!0),C}),h=l.computed(()=>({})),P=(C,F,R,T,H)=>{const X={[`${u}__step`]:!0};return H&&(X[`${H}`]=!0),X[`${w.value}`]=!0,T&&(X["is-doit"]=!0),C===m.value?X["is-active"]=!0:F==="done"?X["is-done"]=!0:F==="error"?X["is-error"]=!0:F==="half"?X["is-half"]=!0:R?X["is-disabled"]=!0:X["is-normal"]=!0,X},w=l.computed(()=>{if(r.mode==="simple")return"start";let C=r.align;return C||(r.direction==="vertical"?C="start":C="center"),C}),p=(C,F={})=>{const R={...F};return w.value==="start"&&C===f.value.length-1?R.flex="0 0 auto":r.step?r.direction==="vertical"?R.height=r.step:R.width=r.step:R.flex="1 1 100%",R},L=(C,F)=>{let R={};if(F<f.value.length-1){const T=F+1;x(F)&&x(T)?r.direction==="vertical"?R.height="100%":R.width="100%":R.opacity="0"}return R},q=C=>f.value.length-1===C,M=(C,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>m.value||m.value===F)return;const R=m.value,T=F;m.value=F,r.scroll&&ee(F);const H=nr(r,C);i("update:modelValue",H);const X={fromIndex:R,currentIndex:T,item:C,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,X)},I=l.ref(!0),$=async(C,F)=>{try{const R=await s.load("stesbar",C,F);Array.isArray(R)&&(c.value=R),I.value=!1}catch(R){console.error("[FoxUI] Load StepsBar Data Fail",R),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([C,F])=>{C&&$(C,F)},{immediate:!0});const y=(C,F,R,T,H)=>{let X=null;if(a.icon)X=a.icon({item:C,index:F,status:T});else if(T==="done"){const U={};r.iconSize&&(U.width=r.iconSize,U.height=r.iconSize);const Y=r.icon??o;X=l.h(Y,U)}else{const U=R??`${F+1}`;X=l.h("span",{},[U])}const le={class:"fox-steps-bar__icon",onClick:()=>{H||M(C,F)}};return l.h("view",le,[X])},_=(C,F,R)=>{const T=l.h("i",{class:"fox-steps-bar__line-inner",style:L(C,F)});return l.h("view",{class:"fox-steps-bar__line"},[T])},g=()=>{let C=null;if(a.markIcon)C=a.markIcon();else{const R={};r.iconSize&&(R.width=r.markIconSize,R.height=r.markIconSize);const T=r.markIcon??t;C=l.h(T,R)}return l.h("view",{class:"fox-steps-bar__mark"},[C])},A=(C,F,R,T,H)=>{const X=[];if(!q(F)){const Y=_(C,F);X.push(Y)}const le=y(C,F,R,T,H);X.push(le);const U={class:"fox-steps-bar__head"};return l.h("view",U,X)},W=(C,F,R,T)=>{let H=null;a.main?H=a.main({item:C,index:F,status:R}):H=Wd(r,C);const X={class:"fox-steps-bar__main",onClick:()=>{T||M(C,F)}};return l.h("view",X,[H])},D=(C,F,R)=>{let T=null;if(a.sub){T=a.sub({item:C,index:F,status:R});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[T])}return null},N=(C,F)=>{const R=Un(r,C,F)??{},T=R.status??Yn(r,C);let H=lr(r,C);R.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const X=R.label??rr(r,C),le=[],U=y(C,F,X,T,H);U&&le.push(U);const Y=W(C,F,T,H);if(Y&&le.push(Y),!q(F)){const Z=_(C,F);Z&&le.push(Z)}const E=l.h("view",{class:"fox-steps-bar__head"},le),K=R.class,Q=R.style??{};let O=or(r,C);R.doit===!0&&(O=!0);const z={ref:B(F),class:P(F,T,H,O,K),style:p(F,Q)};return l.h("view",z,[E])},V=(C,F)=>{const R=Un(r,C,F)??{},T=R.status??Yn(r,C);let H=lr(r,C);R.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const X=R.label??rr(r,C),le=[],U=r.layout;for(let O of U)if(O==="head"){const z=A(C,F,X,T,H);le.push(z)}else if(O==="main"){const z=W(C,F,T,H);le.push(z)}else if(O==="sub"){const z=D(C,F,T);le.push(z)}else if(O==="mark"){const z=g();le.push(z)}const Y=R.class,E=R.style??{};let K=or(r,C);R.doit===!0&&(K=!0);const Q={ref:B(F),class:P(F,T,H,K,Y),style:p(F,E)};return l.h("view",Q,le)},j=l.ref(),G=l.ref([]),J=(C,F)=>{G.value[F]=C},B=C=>F=>{J(F,C)},ee=(C,F)=>{const R=j.value,T=G.value;if(!R||!T||!T[C])return;const H=T[C];let X=0;r.direction==="vertical"?X=H.offsetTop-(R.offsetHeight-H.offsetHeight)/2:X=H.offsetLeft-(R.offsetWidth-H.offsetWidth)/2,k(R,X,.3,r.direction)},k=(C,F,R,T)=>{let H=0;const X=T==="horizontal"?C.scrollLeft:C.scrollTop,le=Math.round(R*1e3/16);function U(){T==="horizontal"?C.scrollLeft+=(F-X)/le:C.scrollTop+=(F-X)/le,++H<le&&pl(U)}U()};return()=>{const C=[];if(r.mode==="simple")for(let R=0;R<f.value.length;R++){const T=f.value[R],H=N(T,R);C.push(H)}else for(let R=0;R<f.value.length;R++){const T=f.value[R],H=V(T,R);C.push(H)}const F={ref:j,class:d.value,style:h.value};return l.h("view",F,C)}}}}const{componentName:Zd,create:Qd,scope:Jd}=ae("steps-bar"),Xl=Qd(Xd(Zd,Jd,hd,pd)),eh=Symbol.for("InnerPageScopeKey"),th=Symbol.for("PageWrapperKey");function nh(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){l.provide(eh,!0);const r={};l.provide(th,r);const a=c=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),u=c=>{i.value=c},s=l.computed(()=>{const c={};return o.height&&(c["--fox-dialog-item-body-height"]=ye(o.height)),c});return()=>{const f={...t.attrs,style:s.value,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},m=["fox-dialog-item "];o.hideHeader&&m.push("hide-header"),o.class&&m.push(o.class),f.class=m.join(" ");const v={};return typeof t.slots.default=="function"&&(v.default=t.slots.default),l.h(S.ElDialog,f,v)}}}}const{create:lh}=ae("dialog-item"),Zl=lh(nh());let Et=0;const ar="fox-overflow-hidden",ir=()=>at?document.body:{classList:[]},oh=e=>[()=>{if(e())try{!Et&&ir().classList.add(ar),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&ir().classList.remove(ar)}catch{}}],rh={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:ah,create:ih}=ae("overlay"),sh=ih({props:{...rh},emits:["click","update:visible"],setup(e,{emit:n}){const[o,t]=oh(()=>e.lockScroll),r=l.computed(()=>({[ah]:!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 uh(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((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const Fn=Xe(sh,[["render",uh]]),ch={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:{}}},da=2e3;let sr=da;const fh=(e,n)=>({components:n,props:{...ch},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})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{o.zIndex!==da&&(sr=Number(o.zIndex)),t("update:visible",!0),r.zIndex=++sr,o.destroyOnClose&&(r.showSlot=!0),t("open")},c=()=>{t("update:visible",!1),t("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=d=>{t("click-pop",d)},m=d=>{d.stopPropagation(),t("click-close-icon",d),t("update:visible",!1)},v=d=>{t("click-overlay",d),o.closeOnClickOverlay&&t("update:visible",!1)},b=d=>{t("opend",d)},x=d=>{t("closed",d)};return l.watch(()=>o.visible,d=>{o.visible?s():c()}),l.watch(()=>o.closeable,d=>{r.closed=d}),{...l.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:f,onClickCloseIcon:m,onClickOverlay:v,onOpened:b,onClosed:x}}}),{componentName:dh,create:hh}=ae("popup"),mh=hh(fh(dh,{FoxOverLay:Fn,Close:ud}));function gh(e,n,o,t,r,a){const i=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(i,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]=(...s)=>e.onClick&&e.onClick(...s))},[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]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),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 Ql=Xe(mh,[["render",gh]]),{create:vh}=ae("toast"),ph=vh({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},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),l.watch(()=>e.duration,b=>{b&&i()});const s=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const b=ge(e.iconSize);return l.h(e.icon,{width:b,height:b,color:e.iconColor})},f=l.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]),m=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:t,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:f,toastIconWrapperClass:m,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),yh={key:1,class:"fox-toast-title"},bh=["innerHTML"];function xh(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]=(...i)=>e.clickCover&&e.clickCover(...i))},[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",yh,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,bh)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Jl=Xe(ph,[["render",xh]]),wh={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"}},Sh=(e,n,o)=>({props:{...wh},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}=Hr(),{toLocaleRefs:i}=Ae.useFoxI18n(n),u=i(t,["placeholder"]),s=l.reactive({active:!1}),c=l.computed(()=>({background:t.background})),f=l.computed(()=>({background:t.inputBackground})),m=y=>{let g=y.target.value;t.maxLength&&g.length>Number(t.maxLength)&&(g=g.slice(0,Number(t.maxLength))),a("update:modelValue",g,y),a("change",g,y)},v=l.ref({}),b=y=>{let g=y.target.value;s.active=!0,v.value=t.focusStyle,a("focus",g,y)},x=y=>{setTimeout(()=>{s.active=!1},0);let g=y.target.value;t.maxLength&&g.length>Number(t.maxLength)&&(g=g.slice(0,Number(t.maxLength))),v.value={},a("blur",g,y)},d=y=>{a("update:modelValue","",y),a("change","",y),a("clear","")},h=l.computed(()=>String(t.modelValue).length>0),P=l.computed(()=>{const y={};return h.value||(y.display="none"),y}),w=()=>{a("search",t.modelValue)},p=y=>{a("keyup-input",y),y.key.toLocaleUpperCase()==="ENTER"&&w()},L=y=>{a("click-input",y)},q=y=>{a("click-left-icon",t.modelValue,y)},M=l.computed(()=>({textAlign:t.inputAlign})),I=l.ref(null);l.onMounted(()=>{t.autofocus&&I.value.focus()});const $=()=>{const y=[];if(r.leftin){const D={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:q},N=l.h("view",D,[r.leftin()]);y.push(N)}const _={ref:I,class:[`${e}__input-inner`],style:M.value,type:t.inputType,maxlengt:t.maxLength,placeholder:u.placeholder.value,value:t.modelValue,disabled:t.disabled,readonly:t.readonly,onClick:L,onInput:m,onFocus:b,onBlur:x,onkeyup:p},g=l.h("input",_);y.push(g);const A=[];if(t.clearable){const D={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:P.value,onClick:d},N=r?.clear?.()??t.clearIcon??o,V=l.h("view",D,[l.h(N)]);A.push(V)}if(r.rightin){const D={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},N=l.h("view",D,[r.rightin()]);A.push(N)}if(A.length>0){const D={class:`${e}__input-inner-right`},N=l.h("view",D,A);y.push(N)}const W={class:[`${e}__search-input`,`${t.shape}`],style:{...f.value,...v.value}};return l.h("view",W,y)};return()=>{const y=[];if(t.label){const A={class:`${e}__search-label`},W=l.h("span",A,[t.label]);y.push(W)}if(r.leftout){const A={class:[`${e}__search-icon`,`${e}__left-search-icon`]},W=l.h("view",A,[r.leftout()]);y.push(W)}const _=$();if(y.push(_),r.rightout){const A={class:[`${e}__search-icon`,`${e}__right-search-icon`]},W=l.h("view",A,[r.rightout()]);y.push(W)}const g={class:`${e}`,style:c.value};return l.h("view",g,y)}}}),{componentName:Th,create:Ch,scope:$h}=ae("searchbar"),eo=Ch(Sh(Th,$h,Ie.CircleClose)),Nh=/scroll|auto|overlay/i,ha=window;function kh(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Eh(e,n=ha){let o=e;for(;o&&o!==n&&kh(o);){const{overflowY:t}=window.getComputedStyle(o);if(Nh.test(t))return o;o=o.parentNode}return n}function ma(e,n=ha){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Eh(e.value,n))}),o}const ga=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Ph={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 Ih(e,n,o){return{props:{...Ph},emits:["scroll-change","load-more","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=Ae.useFoxI18n(n),u=i(t,["pullText","loadText","noMoreText"]),s=l.ref(),c=ma(s),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),m=l.computed(()=>({[e]:!0})),v=w=>w?w.offsetTop+v(w.offsetParent):0,b=()=>{let w=0,p=0,L="down";if(c.value==window){const q=ga();s.value&&(w=v(s.value)+s.value.offsetHeight-q-window.innerHeight),p=q}else{const{scrollHeight:q,clientHeight:M,scrollTop:I}=c.value;w=q-M-I,p=I}return f.beforeScrollTop>p?L="up":L="down",f.beforeScrollTop=p,r("scroll-change",p),w<=t.threshold&&L=="down"},x=()=>{br(()=>{if(!b()||!t.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},d=()=>{c.value&&c.value.addEventListener("scroll",x,t.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",x,t.useCapture)};l.onMounted(()=>{d(),t.immediate&&x()}),l.onUnmounted(()=>{h()});const P=l.ref(!1);return l.onActivated(()=>{P.value&&(P.value=!1,d())}),l.onDeactivated(()=>{P.value=!0,h()}),l.watch(()=>t.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},p=l.h("view",w,[a?.default?.()]),L=[];if(f.isInfiniting){let $=a?.loading?.()??null;if(!$){let g=a?.loadingIcon?.()??null;if(!g){const D={class:["fox-infinite__bottom-box__img"]};g=l.h(o,D)}const A={class:"fox-infinite__bottom-box__text"},W=l.h("view",A,[u.loadText.value]);$=[g,W]}const y={class:"fox-infinite__bottom-box"},_=l.h("view",y,$);L.push(_)}else if(!t.hasMore){let $=a?.finished?.()??null;if(!$){const y={class:"fox-infinite__bottom-tips"};$=l.h("view",y,[u.noMoreText.value]),L.push($)}}const q={class:"fox-infinite__bottom"},M=l.h("view",q,L),I={class:m.value,ref:s};return l.h("view",I,[p,M])}}}}const{componentName:Oh,create:Dh,scope:Vh}=ae("infinite-loading"),to=Dh(Ih(Oh,Vh,Yl)),Rh={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}},Fh=(e,n,o)=>({props:{...Rh},emits:["change","refresh","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=Ae.useFoxI18n(n),u=i(t,["pullingText","loosingText","loadingText"]),s=Bt(),c=l.ref(),f=ma(c),m=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),b=l.computed(()=>{switch(m.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:m.distance?`translate3d(0,${m.distance}px, 0)`:""})),d=l.computed(()=>{const I={};return t.headHeight!=50&&(I.height=ye(t.headHeight)),I}),h=I=>{const $=+(t.pullDistance||t.headHeight);let y=I;return I>$&&(I<$*2?y=(I+$)/2:y=$+I/4),Math.round(y)},P=(I,$)=>{const y=+(t.pullDistance||t.headHeight);m.distance=I,$?m.status="loading":I===0?m.status="normal":I<y?m.status="pulling":m.status="loosing",r("change",{status:m.status,distance:I})},w=()=>m.status!=="loading"&&m.status!=="complete",p=()=>f.value==window?ga()==0:f.value&&f.value.scrollTop==0,L=I=>{w()&&(p()?(s.start(I),m.isPullRefresh=!0,m.moving=!0):(m.distance=0,m.isPullRefresh=!1))},q=I=>{w()&&m.moving&&(s.move(I),s.isVertical()&&s.state.deltaY>0&&m.isPullRefresh&&(I.cancelable&&I.preventDefault(),P(h(s.state.deltaY))))},M=()=>{m.moving=!1,m.isPullRefresh&&w()&&s.state.deltaY&&(m.status==="loosing"?(P(+t.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):P(0)),setTimeout(()=>{s.reset()},0)};return l.watch(()=>t.modelValue,I=>{I?P(+t.headHeight,!0):P(0)}),()=>{const I=[];let $=null;if(m.status==="loading"){if($=a?.loading?.()??null,!$){const V={class:["fox-pull-refresh-container-topbox-icon"]};$=l.h(o,V)}}else m.status==="pulling"?$=a?.pulling?.()??null:m.status==="loosing"&&($=a?.loosing?.()??null);$&&I.push($);const y={class:["fox-pull-refresh-container-topbox-text"]},_=l.h("dive",y,[b.value]);I.push(_);const g={class:["fox-pull-refresh-container-topbox"],style:d.value},A=l.h("div",g,I),W={class:"fox-pull-refresh-container",style:x.value},D=l.h("div",W,[A,a?.default?.()]),N={ref:c,class:v.value};return Lt()?Object.assign(N,{onTouchstart:L,onTouchmove:q,onTouchend:M}):Object.assign(N,{onMousedown:L,onMousemove:q,onMouseup:M}),l.h("div",N,[D])}}}),{componentName:Ah,create:Mh,scope:Lh}=ae("pull-refresh"),no=Mh(Fh(Ah,Lh,Yl)),Bh={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 qh(e,n,o){return{props:{...Bh},emits:["click","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=Ae.useFoxI18n(n),u=i(t,["collapseText","expandText"]),s=l.computed(()=>{const x={[`${e}`]:!0};return t.disabled?x[`${e}--disabled`]=!0:x[`${e}--${t.type}`]=!0,x}),c=he(t,"modelValue"),f=l.computed(()=>c.value?u.expandText.value??"":u.collapseText.value??""),m=l.computed(()=>({[`${e}__text`]:!0})),v=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!c.value,"is-collapse":c.value})),b=()=>{r("update:modelValue",!c.value)};return()=>{const x=[];if(f.value){const w={class:m.value},p=l.h("span",w,[f.value]);x.push(p)}const d={class:v.value},h=(a.icon&&a.icon())??(t.icon&&l.h(t.icon))??l.h(o);if(h){const w=l.h("div",d,[h]);x.push(w)}return t.textPosition==="right"&&x.reverse(),l.h("div",{class:s.value,onClick:b},x)}}}}const{componentName:_h,create:jh,scope:zh}=ae("more-button"),lo=jh(qh(_h,zh,Ie.ArrowUp));function Hh(e){e.stopPropagation()}let Kh=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=Lt()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Bt(),t=(r,a,i,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),Hh(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 Wh(e,n){return new Kh(e,n)}const Yh={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]}},Uh=(e,n,o,t=!1)=>({props:{...Yh},emits:["click"],setup(r,{slots:a,emit:i}){const u=l.reactive({top:r.top,right:r.right,bottom:r.bottom,left:r.left}),s=l.computed(()=>{const w=[`${e}`];return r.customClass&&w.push(r.customClass),w}),c=l.computed(()=>{const w={};return de(u.top)||(w.top=u.top),de(u.right)||(w.right=u.right),de(u.bottom)||(w.bottom=u.bottom),de(u.left)||(w.left=u.left),de(r.width)||(w.width=r.width),de(r.height)||(w.height=r.height),de(r.color)||(w.color=r.color),de(r.background)||(w.background=r.background),de(r.borderRadius)||(w["border-radius"]=r.borderRadius),de(r.zIndex)||(w["z-index"]=r.zIndex),w}),f=l.computed(()=>({[`${e}__icon`]:!0})),m=()=>{i("click")},v=l.ref(null),b=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},x={x:0,y:0},P=Wh(w=>{if(!v.value)return;const p=v.value;b(),u.left=p.offsetLeft,u.top=p.offsetTop,p.style.left=`${u.left}px`,p.style.top=`${u.top}px`,p.style.right=null,p.style.bottom=null,x.x=u.left,x.y=u.top},w=>{if(!v.value)return;const p=v.value;b(),u.left=x.x+w.x,u.top=x.y+w.y,p.style.left=`${u.left}px`,p.style.top=`${u.top}px`});return l.onMounted(()=>{if(r.draggable&&v.value){const w=[v.value];P.open(w)}}),l.onBeforeUnmount(()=>{r.draggable&&v.value&&P.close()}),()=>{let w=[];const p=typeof a.default=="function"?a.default():[];if(p&&p.length>0)w=p;else{const q=l.h(o,{class:f.value});w.push(q)}const L={ref:q=>{v.value=q},class:s.value,style:c.value,onClick:m};return l.h("view",L,w)}}}),{componentName:Gh,create:Xh,scope:Zh}=ae("floating-button"),oo=Xh(Uh(Gh,Zh,Qf,!1)),Ve=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ct=e=>e==null;class Qh{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=Lt()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Bt(),t=(r,a,i,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 ur(e,n){return new Qh(e,n)}const cr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let vt=[];const fr=e=>{const n=e;n.key==="Escape"&&vt.forEach(o=>o(n))},Jh=e=>{l.onMounted(()=>{vt.length===0&&document.addEventListener("keydown",fr),cr&&vt.push(e)}),l.onBeforeUnmount(()=>{vt=vt.filter(n=>n!==e),vt.length===0&&cr&&document.removeEventListener("keydown",fr)})},Gn="fox-focus-trap.focus-after-trapped",Xn="fox-focus-trap.focus-after-released",em="fox-focus-trap.focusout-prevented",dr={cancelable:!0,bubbles:!1},tm={cancelable:!0,bubbles:!1},hr="foxFocusAfterTrapped",mr="foxFocusAfterReleased",nm=Symbol("foxFocusTrap"),ro=l.ref(),An=l.ref(0),ao=l.ref(0);let Ht=0;const va=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},lm=(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},gr=(e,n)=>{for(const o of e)if(!lm(o,n))return o},om=e=>{const n=va(e),o=gr(n,e),t=gr(n.reverse(),e);return[o,t]},rm=e=>e instanceof HTMLInputElement&&"select"in e,lt=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),ao.value=window.performance.now(),e!==o&&rm(e)&&n&&e.select()}};function vr(e,n){const o=[...e],t=e.indexOf(n);return t!==-1&&o.splice(t,1),o}const am=()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=vr(e,t),e.unshift(t)},remove:t=>{e=vr(e,t),e[0]?.resume?.()}}},im=(e,n=!1)=>{const o=document.activeElement;for(const t of e)if(lt(t,n),document.activeElement!==o)return},pr=am(),sm=()=>An.value>ao.value,Kt=()=>{ro.value="pointer",An.value=window.performance.now()},yr=()=>{ro.value="keyboard",An.value=window.performance.now()},um=()=>(l.onMounted(()=>{Ht===0&&(document.addEventListener("mousedown",Kt),document.addEventListener("touchstart",Kt),document.addEventListener("keydown",yr)),Ht++}),l.onBeforeUnmount(()=>{Ht--,Ht<=0&&(document.removeEventListener("mousedown",Kt),document.removeEventListener("touchstart",Kt),document.removeEventListener("keydown",yr))}),{focusReason:ro,lastUserFocusTimestamp:An,lastAutomatedFocusTimestamp:ao}),Wt=e=>new CustomEvent(em,{...tm,detail:e}),{create:cm}=ae("focus-trap"),fm={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"}},dm=cm({props:fm,emits:[hr,mr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const t=l.ref();let r,a;const{focusReason:i}=um();Jh(d=>{ue(e.trapped)&&!u.paused&&o("release-requested",d)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=d=>{if(!e.loop&&!ue(e.trapped)||u.paused)return;const{key:h,altKey:P,ctrlKey:w,metaKey:p,currentTarget:L,shiftKey:q}=d,{loop:M}=e,I=h==="Tab"&&!P&&!w&&!p,$=document.activeElement;if(I&&$){const y=L,[_,g]=om(y);if(_&&g){if(!q&&$===g){const W=Wt({focusReason:i.value});o("focusout-prevented",W),W.defaultPrevented||(d.preventDefault(),M&&lt(_,!0))}else if(q&&[_,y].includes($)){const W=Wt({focusReason:i.value});o("focusout-prevented",W),W.defaultPrevented||(d.preventDefault(),M&&lt(g,!0))}}else if($===y){const W=Wt({focusReason:i.value});o("focusout-prevented",W),W.defaultPrevented||d.preventDefault()}}};l.provide(nm,{focusTrapRef:t,onKeydown:s}),l.watch(()=>e.focusTrapEl,d=>{d&&(t.value=d)},{immediate:!0}),l.watch([t],([d],[h])=>{d&&(d.addEventListener("keydown",s),d.addEventListener("focusin",m),d.addEventListener("focusout",v)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",m),h.removeEventListener("focusout",v))});const c=d=>{o(hr,d)},f=d=>o(mr,d),m=d=>{const h=l.unref(t);if(!h)return;const P=d.target,w=d.relatedTarget,p=P&&h.contains(P);ue(e.trapped)||w&&h.contains(w)||(r=w),p&&o("focusin",d),!u.paused&&ue(e.trapped)&&(p?a=P:lt(a,!0))},v=d=>{const h=l.unref(t);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const P=d.relatedTarget;!dn(P)&&!h.contains(P)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const w=Wt({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||lt(a,!0)}},0)}else{const P=d.target;P&&h.contains(P)||o("focusout",d)}};async function b(){await l.nextTick();const d=l.unref(t);if(d){pr.push(u);const h=d.contains(document.activeElement)?r:document.activeElement;if(r=h,!d.contains(h)){const w=new Event(Gn,dr);d.addEventListener(Gn,c),d.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let p=e.focusStartEl;Cr(p)||(lt(p),document.activeElement!==p&&(p="first")),p==="first"&&im(va(d),!0),(document.activeElement===h||p==="container")&&lt(d)})}}}function x(){const d=l.unref(t);if(d){d.removeEventListener(Gn,c);const h=new CustomEvent(Xn,{...dr,detail:{focusReason:i.value}});d.addEventListener(Xn,f),d.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!sm())&&lt(r??document.body,!0),d.removeEventListener(Xn,c),pr.remove(u)}}return l.onMounted(()=>{ue(e.trapped)&&b(),l.watch(()=>e.trapped,d=>{ue(d)?b():x()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&x()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:hm,create:mm}=ae("floating-window"),gm=Symbol.for("InnerPageScopeKey"),vm=Symbol.for("PageWrapperKey"),pm={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}},ym=mm({inheritAttrs:!1,components:{FoxIcon:S.ElIcon,FocusTrap:dm},props:{...pm},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=hm,t=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,O=>{t.value=O});const a=l.computed(()=>t.value===!1?!1:!$.value),i=l.ref(e.left),u=l.ref(e.top),s=l.ref(e.right),c=l.ref(e.bottom),f=l.computed(()=>{const O=["fox-floating-window"];return e.customClass&&O.push(e.customClass),O}),m=l.computed(()=>{const O={};return ct(i.value)?O.left="auto":O.left=Ve(i.value),ct(u.value)?O.top="auto":O.top=Ve(u.value),ct(s.value)?O.right="auto":O.right=Ve(s.value),ct(c.value)?O.bottom="auto":O.bottom=Ve(c.value),ct(e.zIndex)||(O["z-index"]=Ve(e.zIndex)),ct(M.value)||(O.height=M.value),ct(I.value)||(O.width=I.value),O}),v=l.computed(()=>e.closeIcon??Ie.Close),b=l.computed(()=>e.collapseIcon??Ie.ArrowUp),x=l.computed(()=>e.collapseText??""),d=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),h=l.computed(()=>e.expandText??e.title??"展开"),P=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!$.value,"is-collapse":$.value})),p=l.ref(),L=l.ref(null),q=l.ref(null),M=l.computed(()=>Ve(e.height)||""),I=l.computed(()=>Ve(e.width)||""),$=l.ref(ue(e.collapse)),y=(O,z=!0)=>{$.value!==O&&($.value=O,O?C():F(),n("update:collapse",O),O&&typeof A.onHide=="function"?A.onHide():!O&&typeof A.onShow=="function"&&A.onShow())};l.watch(()=>e.collapse,O=>{y(O)});const _=()=>{g()},g=O=>{O=O??!$.value,y(O)};l.provide(gm,!0);const A={setCollapse:y,setFixedNavVisible:O=>{B.value=O}};l.provide(vm,A);const W=()=>{typeof A.beforeClose=="function"?A.beforeClose(()=>{t.value=!1}):t.value=!1},D=l.ref(null),N=l.computed(()=>!e.fixedNavTeleport),V=l.computed(()=>{const O=["fox-floating-window__fixednav"];return e.expandClass&&O.push(e.expandClass),e.collapsePosition==="left"?O.push("is-left"):e.collapsePosition==="right"&&O.push("is-right"),O}),j=l.ref(""),G=l.computed(()=>{const O={};return j.value?O.top=j.value:e.collapseTop&&(O.top=e.collapseTop),O}),J=l.ref($.value),B=l.computed({set:O=>{J.value=O},get:()=>t.value===!1?!1:J.value});let ee=null;const k=()=>{typeof ee=="function"&&(ee(),ee=null)},C=()=>{D.value&&D.value.classList.add("slide-in"),B.value=!0,ee=()=>{D.value&&D.value.classList.remove("slide-in")}},F=()=>{D.value&&D.value.classList.add("slide-out"),ee=()=>{D.value&&D.value.classList.remove("slide-out"),B.value=!1}},R=()=>{i.value=null,u.value=null,s.value=null,c.value=null},T={x:0,y:0},le=ur(O=>{if(!p.value)return;const z=p.value;if(R(),e.origin==="left-top")i.value=z.offsetLeft,u.value=z.offsetTop,T.x=i.value,T.y=u.value;else if(e.origin==="left-bottom"){const Z=document.documentElement.clientHeight||document.body.clientHeight;i.value=z.offsetLeft,c.value=Z-(z.offsetTop+z.offsetHeight),T.x=i.value,T.y=c.value}else if(e.origin==="right-bottom"){const Z=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight;s.value=Z-(z.offsetLeft+z.offsetWidth),c.value=ne-(z.offsetTop+z.offsetHeight),T.x=s.value,T.y=c.value}else{const Z=document.documentElement.clientWidth||document.body.clientWidth;s.value=Z-(z.offsetLeft+z.offsetWidth),u.value=z.offsetTop,T.x=s.value,T.y=u.value}},O=>{if(!p.value)return;const z=p.value;R(),e.origin==="left-top"?(i.value=T.x+O.x,u.value=T.y+O.y,z.style.left=Ve(i.value),z.style.top=Ve(u.value)):e.origin==="left-bottom"?(i.value=T.x+O.x,c.value=T.y-O.y,z.style.left=Ve(i.value),z.style.bottom=Ve(c.value)):e.origin==="right-bottom"?(s.value=T.x-O.x,c.value=T.y-O.y,z.style.right=Ve(s.value),z.style.bottom=Ve(c.value)):(s.value=T.x-O.x,u.value=T.y+O.y,z.style.right=Ve(s.value),z.style.top=Ve(u.value))}),U={x:0,y:0},K=ur(O=>{D.value&&(U.x=D.value.offsetLeft,U.y=D.value.offsetTop)},O=>{if(!D.value)return;const z=U.y+O.y;j.value=`${z}px`}),Q=()=>{if(p.value){const O=p.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");q.value=O}};return l.onMounted(()=>{if(e.draggable&&p.value){const O=[];L.value&&O.push(L.value),e.footerDraggable&&(Q(),q.value&&O.push(q.value)),le.open(O)}e.collapse===!0&&y(e.collapse,!1),D.value&&K.open(D.value)}),l.onBeforeUnmount(()=>{e.draggable&&L.value&&le.close(),D.value&&K.close()}),{classes:f,styles:m,isShow:a,closeIcon:v,onClose:W,dialogRef:p,headerRef:L,onClickToggle:_,collapseIcon:b,collapseText:x,collapseTextClasses:P,collapseIconClasses:w,expandIcon:d,expandText:h,isShowFixedNav:B,fixedNavRef:D,fixedNavClasses:V,fixedNavStyles:G,onAnimationEnd:k,teleportDisabled:r,fixedNavTeleportDisabled:N}}}),bm={ref:"headerRef",class:"fox-floating-window__header"},xm={class:"fox-floating-window__title"},wm={class:"fox-floating-window__tools"},Sm={class:"fox-floating-window__body"},Tm={class:"fox-floating-window__fixednav__text"};function Cm(e,n,o,t,r,a){const i=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",bm,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",xm,l.toDisplayString(e.title),1),l.createElementVNode("div",wm,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{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(i,{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",Sm,[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]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",Tm,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const io=Xe(ym,[["render",Cm]]);function $m(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})),i=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),s=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(t.mark)f=t.mark()[0];else{const d={class:i.value,style:u.value};f=l.h(o.icon??"div",d)}const m={class:s.value,style:c.value},v=t.default?t.default():[],b=l.h("div",m,v),x={class:a.value};return o.textPosition==="right"?l.h("div",x,[f,b]):l.h("div",x,[b,f])}}}}const{componentName:Nm,create:km}=ae("indicator"),so=km($m(Nm));function Em(e){return e===window}const pa=e=>{const n=l.unref(e);if(Em(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:Pm,create:Im}=ae("tour"),Om=Im({components:{Close:Ie.Close,ElPopover:S.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=Pm,t=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:x,maskWidth:d,maskHeight:h}=e,{width:P,height:w,left:p,top:L}=r.value,q=e.steps[t.active].offset??x,M=[p+P/2,L+w/2],I=Number(d||P),$=Number(h||w);return{width:`${I+ +q.left+q.right}px`,height:`${$+q.top+q.bottom}px`,top:`${M[1]-$/2-+q.top}px`,left:`${M[0]-I/2-+q.left}px`}}),u=x=>{x=="next"?t.active=t.active+1:t.active=t.active-1,t.showPopup=!1,l.nextTick(()=>{t.showPopup=!0,f()}),n("change",t.active)},s=x=>x.popoverWidth??e.width,c=x=>x.location??e.location,f=()=>{const x=document.querySelector(`${e.steps[t.active].target}`),d=pa(x);r.value={x:d.left,y:d.top,top:d.top,left:d.left,width:d.width,height:d.height}},m=()=>{t.showTour=!1,t.showPopup=!1,n("close",t.active),n("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&m()},b=(x,d=0)=>{x&&f(),e.steps,t.active=d,t.showTour=x,t.showPopup=x};return l.onMounted(()=>{b(e.modelValue,e.current)}),l.watch(()=>e.modelValue,x=>{b(x)}),{...l.toRefs(t),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:m,handleClickMask:v}}}),Dm={key:0,class:"fox-tour__content"},Vm={key:0,class:"fox-tour__content-top"},Rm={class:"fox-tour__content-inner"},Fm={class:"fox-tour__content-bottom"},Am={class:"fox-tour__content-bottom-init"},Mm={class:"fox-tour__content-bottom-operate"},Lm={key:1,class:"fox-tour__content fox-tour__content-tile"},Bm={class:"fox-tour__content-inner"};function qm(e,n,o,t,r,a){const i=l.resolveComponent("Close"),u=l.resolveComponent("fox-button"),s=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,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(s,{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",Dm,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Vm,[l.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Rm,l.toDisplayString(c.content),1),l.createElementVNode("div",Fm,[l.createElementVNode("div",Am,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Mm,[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]=m=>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]=m=>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",Lm,[l.createElementVNode("div",Bm,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const uo=Xe(Om,[["render",qm]]);function _m(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1}},setup(o,{slots:t}){return jr(o.name,()=>o.config),dn(o.innerPageScope)||l.provide(Zr,o.innerPageScope),()=>typeof t.default=="function"?t.default():null}}}const{create:jm}=ae("domain-provider"),co=jm(_m()),zm={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 Hm(e,n){return{inheritAttrs:!1,props:zm,setup(o,{slots:t}){if(at&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,b)=>{if(f===null){a.set(v,{visible:null,callback:b});return}r.has(v)&&f.unobserve(v),r.set(v,{visible:null,callback:b}),f.observe(v)},u=v=>{if(f===null){a.delete(v);return}r.has(v)&&(r.delete(v),f.unobserve(v))};let s=o.initialVisibleObserverSize;ki({acquire:()=>{const v=s>0;return s--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let f=null;const m=(v,b,x)=>{f=new IntersectionObserver(d=>{for(let h of d){let P=!1;h.intersectionRatio>0&&(P=!0);const w=r.get(h.target);if(w)try{if(o.loadPolicy==="lazy"&&!P&&w.visible!==null)return;w.visible=P,w.callback(P)}catch(p){console.error(p)}}},{root:v,rootMargin:b,threshold:x}),a.forEach((d,h)=>{r.set(h,d),f?.observe(h)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,b])=>{if(b||!v||f)return;let x=null;typeof v=="string"?x=document.querySelector(v):x=v,x&&m(x,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof t.default=="function"?t.default():null}}}const{create:Km}=ae("rolling-provider"),fo=Km(Hm()),Wm=[xl,Sl,Tl,Cl,$l,Ne,En,Pn,kl,Mt,El,Pl,Il,Ol,Dl,Vl,Rl,Fl,Al,Ml,Ll,Dn,Bl,ql,_l,jl,zl,Hl,Kl,Wl,Vn,Rn,Ul,Gl,Xl,Zl,Fn,Ql,Jl,eo,to,no,lo,oo,io,On,Rt,kn,so,In,uo,co,fo],Ym=new ii(Wm,[ci],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>S.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>S.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>S.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>S.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>S.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>S.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>S.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>S.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>S.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>S.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>S.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>S.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>S.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>S.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>S.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>S.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>S.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>S.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>S.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>S.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>S.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>S.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>S.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>S.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>S.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>S.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>S.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>S.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>S.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>S.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>S.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>S.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>S.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>S.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>S.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>S.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>S.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>S.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>S.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>S.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>S.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>S.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>S.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>S.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>S.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>S.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>S.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>S.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>S.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>S.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>S.ElInputNumber});Object.defineProperty(exports,"FoxInputTag",{enumerable:!0,get:()=>S.ElInputTag});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>S.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>S.ElMain});Object.defineProperty(exports,"FoxMention",{enumerable:!0,get:()=>S.ElMention});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>S.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>S.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>S.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>S.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>S.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>S.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>S.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>S.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>S.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>S.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>S.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>S.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>S.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>S.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>S.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>S.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>S.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>S.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>S.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>S.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>S.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>S.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>S.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>S.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>S.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>S.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>S.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>S.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>S.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>S.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>S.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>S.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>S.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>S.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>S.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>S.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>S.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>S.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>S.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>S.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>S.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>S.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>S.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>S.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>S.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>S.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>S.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>S.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>S.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>S.ElWatermark});exports.AutocompleteItem=Al;exports.Broadcast=yl;exports.BroadcastKey=xe;exports.ButtonsItem=kl;exports.CascaderItem=Fl;exports.CheckboxItem=_l;exports.Content=Cl;exports.DataItemsKey=gt;exports.DateItem=Il;exports.DateUtils=qe;exports.DialogItem=Zl;exports.Domain=vn;exports.DomainKey=Be;exports.DomainProvider=co;exports.FloatingButton=oo;exports.FloatingWindow=io;exports.FooterBar=Tl;exports.FoxAutocompleteItem=Al;exports.FoxButtonsItem=kl;exports.FoxCascaderItem=Fl;exports.FoxCheckboxItem=_l;exports.FoxContent=Cl;exports.FoxDateItem=Il;exports.FoxDialogItem=Zl;exports.FoxDomainProvider=co;exports.FoxFloatingButton=oo;exports.FoxFloatingWindow=io;exports.FoxFooterBar=Tl;exports.FoxGroup=$l;exports.FoxGroupSetting=Kl;exports.FoxHeaderBar=Sl;exports.FoxHintText=Mt;exports.FoxIndicator=so;exports.FoxInfiniteLoading=to;exports.FoxInputItem=El;exports.FoxInputNumberItem=Rl;exports.FoxItem=Ne;exports.FoxMapping=Rt;exports.FoxMoneyItem=Vl;exports.FoxMoreButton=lo;exports.FoxOverLay=Fn;exports.FoxPage=xl;exports.FoxPopoverDialog=On;exports.FoxPopup=Ql;exports.FoxPrice=kn;exports.FoxPullRefresh=no;exports.FoxRadioItem=ql;exports.FoxRateItem=jl;exports.FoxRollingProvider=fo;exports.FoxRowItem=Pn;exports.FoxSearchBar=eo;exports.FoxSelectItem=Pl;exports.FoxSlotItem=En;exports.FoxStepsBar=Xl;exports.FoxSwitchItem=zl;exports.FoxTableItem=Bl;exports.FoxTableMappingColumn=Ml;exports.FoxTableRadioColumn=Ll;exports.FoxTableSetting=Dn;exports.FoxTabsBar=Vn;exports.FoxTabsContainer=Rn;exports.FoxTabsFrame=Gl;exports.FoxTabsPane=Ul;exports.FoxText=In;exports.FoxTimeItem=Ol;exports.FoxTimeSelectItem=Dl;exports.FoxToast=Jl;exports.FoxTour=uo;exports.FoxTreeItem=Wl;exports.FoxTreeSelectItem=Hl;exports.Group=$l;exports.GroupSetting=Kl;exports.HeaderBar=Sl;exports.HintText=Mt;exports.Indicator=so;exports.InfiniteLoading=to;exports.InputItem=El;exports.InputNumberItem=Rl;exports.Item=Ne;exports.Mapping=Rt;exports.MoneyItem=Vl;exports.MoreButton=lo;exports.OverLay=Fn;exports.Page=xl;exports.PopoverDialog=On;exports.Popup=Ql;exports.Price=kn;exports.PriorityPolicy=_e;exports.PullRefresh=no;exports.RadioItem=ql;exports.RateItem=jl;exports.RollingProvider=fo;exports.RowItem=Pn;exports.SearchBar=eo;exports.SelectItem=Pl;exports.SlotItem=En;exports.StepsBar=Xl;exports.SwitchItem=zl;exports.TableItem=Bl;exports.TableMappingColumn=Ml;exports.TableRadioColumn=Ll;exports.TableSetting=Dn;exports.TabsBar=Vn;exports.TabsContainer=Rn;exports.TabsFrame=Gl;exports.TabsPane=Ul;exports.Text=In;exports.TimeItem=Ol;exports.TimeSelectItem=Dl;exports.Toast=Jl;exports.Tour=uo;exports.TreeItem=Wl;exports.TreeSelectItem=Hl;exports.UniqueID=ta;exports.ValidateSchema=Br;exports.ValidateSchemaKey=Ue;exports.cancelRaf=Ca;exports.clearNonNumber=Aa;exports.clone=ol;exports.compareTo=tl;exports.createBroadcast=hn;exports.createValidateSchema=mn;exports.debounce=He;exports.debounceRef=Ga;exports.decimalLength=Rr;exports.default=Ym;exports.defineBroadcast=qa;exports.defineConfigDomain=jr;exports.defineDataItem=zr;exports.defineDomain=bl;exports.defineItem=ke;exports.definePageState=Kr;exports.defineSimpleItem=Hr;exports.deleteGlobalValidator=Ka;exports.disabledProperty=Le;exports.divide=vl;exports.excludeProps=Oe;exports.extend=ht;exports.floatData=Ba;exports.getGlobalValidateCheckEvents=Ar;exports.getGlobalValidateResetEvents=Lr;exports.getPageContentAreaHeight=rn;exports.getPageContentAreaWidth=an;exports.getPageFooterAreaHeight=bn;exports.getPageHeaderAreaHeight=yn;exports.getRootDomain=pt;exports.hasSymbol=kr;exports.includeProps=xt;exports.indexOf=Ma;exports.integerLength=Vr;exports.isArray=Na;exports.isArrayLike=Ir;exports.isBrowser=at;exports.isDate=Pa;exports.isESModule=Oa;exports.isEmptyString=de;exports.isEqual=tt;exports.isFunction=nl;exports.isHidden=Pr;exports.isInnerPage=Ja;exports.isMap=ka;exports.isNil=dn;exports.isNumberString=Dr;exports.isObject=Ge;exports.isPlainObject=ll;exports.isPromise=$r;exports.isRegExp=rl;exports.isSet=Ea;exports.isString=Cr;exports.isSubPage=ei;exports.isSymbol=Ia;exports.isTouch=Lt;exports.isWindow=Er;exports.lastIndexOf=La;exports.makeArray=Fa;exports.merge=Or;exports.multiply=wr;exports.negate=Sr;exports.nextTick=Va;exports.numberFormat=cn;exports.objectToString=Nr;exports.once=Xa;exports.overrideGlobalValidateHandler=za;exports.property=Fe;exports.raf=pl;exports.readonlyProperty=Me;exports.setGlobalValidateCheckEvents=Wa;exports.setGlobalValidateHandler=ja;exports.setGlobalValidateMessages=Ua;exports.setGlobalValidateResetEvents=Ya;exports.setGlobalValidator=Ha;exports.throttle=_r;exports.toBoolean=ue;exports.toNumber=Ce;exports.toPadding=Qe;exports.toPx=ge;exports.toPxDesc=Qa;exports.toPxString=ye;exports.toTypeString=fn;exports.toValue=he;exports.tryTimes=gn;exports.typeOf=ln;exports.unNumberFormat=Tr;exports.updatePageState=al;exports.useBroadcast=Pt;exports.useDomain=it;exports.useExpose=Se;exports.useInnerSize=xn;exports.usePageState=pn;exports.usePosition=Nl;exports.useRawTouch=Bt;exports.useRect=pa;exports.useSize=wl;exports.useTouch=$d;exports.valueLength=At;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),dt=require("@fox-js/validator"),T=require("element-plus"),Ie=require("@element-plus/icons-vue"),Ae=require("@fox-js/i18n"),Ht=window,Pa=typeof window<"u";function Ia(){return typeof Ht<"u"?Ht.requestAnimationFrame||Ht.webkitRequestAnimationFrame||function(e){Ht.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Oa(e){Pa?cancelAnimationFrame(e):clearTimeout(e)}const Cr=Ia();function rn(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=Pe(e),n=Pe(n),[e,n]=pl(Pe(e),Pe(n)),o==1&&(t==1?e=_n(e):n=_n(n));let r=$r(e,n);return o?o==2?"-"+Pe(r):e.length<r.length?Pe(r.substring(1)):"-"+Pe(_n(r)):Pe(r)}function _n(e){let n="",o=e.length,t=e.split(".")[1],r=t?t.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return $r(n,a)}function Pe(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 pl(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 $r(e,n){[e,n]=pl(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],i=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let s=a.substr(0,a.length-n);return e=s+"."+a.substr(a.length-n)+i,s=Vt(e,0,o),(t?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return a.length,yo(r[1],a,t,o)?(t?"-":"")+jn(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");i=r[1].substring(0,n);let u=r[1].substring(n);return u&&yo(u,i,t,o)&&(i=jn(i),i.length>n)?(t?"-":"")+jn(a,parseInt(i[0]))+"."+i.substring(1):(t?"-":"")+a+"."+i}function yo(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 jn(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 Jn(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 i=n.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 w=0;for(let y=n.length-1;y>=c&&y>=0;y--)s[y]>-1&&s[y]<e.length&&(w+=parseInt(e[s[y]--])*parseInt(n[y]));w+=u,u=Math.floor(w/10),m=w%10+m,c--}return m=Nt(Da(m,a)),o==1&&(m="-"+m),m}function Da(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 el(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=Pe(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Pe(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Pe(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let m=e.length-c+r;e=Pe(e.substring(0,m)+"."+e.substring(m))}else r==c&&(e=Pe(e.replace(".","")))}let a=0,i=n.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(o=o+2;a<=o;){let c=0;for(;parseInt(s)>=parseInt(n);)s=rn(s,"-"+n),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?"-":"")+Pe(Vt(u,o-2))}function tl(e,n){return e=e.toString(),n=n.toString(),n=nl(n),rn(e,n)}function nl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function bo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),xo(e),xo(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let t=tl(e,Jn(n,Vt(el(e,n),0,be.FLOOR)));return o+t}function xo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function wo(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]=pl(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=Pe(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+Pe(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 i="",u=a;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<a-o&&u>=0?t:"")+i;return(r?"-":"")+i+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),rn(n,o)}add(n){return new fe(rn(this.value,n.getValue()))}static subtract(n,o){return n=fe.validate(n),o=fe.validate(o),tl(n,o)}subtract(n){return new fe(tl(this.value,n.getValue()))}static multiply(n,o){return n=fe.validate(n),o=fe.validate(o),Jn(n,o)}multiply(n){return new fe(Jn(this.value,n.getValue()))}static divide(n,o,t){return n=fe.validate(n),o=fe.validate(o),el(n,o,t)}divide(n,o){return new fe(el(this.value,n.getValue(),o))}static modulus(n,o){return n=fe.validate(n),o=fe.validate(o),bo(n,o)}modulus(n){return new fe(bo(this.value,n.getValue()))}static compareTo(n,o){return n=fe.validate(n),o=fe.validate(o),wo(n,o)}compareTo(n){return wo(this.value,n.getValue())}static negate(n){return n=fe.validate(n),nl(n)}negate(){return new fe(nl(this.value))}}function Nr(e,n){return fe.multiply(`${e}`,`${n}`)}function yl(e,n,o=8){return fe.divide(`${e}`,`${n}`,o)}function ll(e,n){return e=`${e}`,n=`${n}`,fe.compareTo(e,n)}function kr(e){return fe.negate(e)}function hn(e,n=-1,o=!1,t=3,r=","){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)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.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:"");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 Er(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let t=n.replace(/[^\d\.-]/g,"");return`${o}${t}`}const bl=Cr,Va=Array.isArray,Ra=e=>mn(e)==="[object Map]",Fa=e=>mn(e)==="[object Set]",Aa=e=>e instanceof Date,ol=e=>typeof e=="function",Pr=e=>typeof e=="string",Ma=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",Ir=e=>Xe(e)&&ol(e.then)&&ol(e.catch),Or=Object.prototype.toString,mn=e=>Or.call(e),rl=e=>mn(e)==="[object Object]",Dr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function La(e){return e.__esModule||Dr&&e[Symbol.toStringTag]==="Module"}const Ba=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function mt(...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 i in a){let u=n[i],s=a[i];if(u!==s)if(r===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},n[i]=mt(r,c,s)}else s!==void 0&&(n[i]=s)}}return n}function al(e,n,o=!1){if(!o)mt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!rl(i))continue;a=al(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const t=Object.getOwnPropertySymbols(n);for(let r of t){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!rl(i))continue;a=al(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const zn=Ba?Promise.resolve():null;function qa(e,...n){zn!==null?n&&n.length>0?zn.then(()=>{e(n)}):zn.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 Ce(e){return typeof e=="number"?e:Number(e)}const _a={"[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 an(e){let o=Object.prototype.toString.call(e);return e==null?String(e):_a[o]||"object"}function Vr(e){return e&&typeof e=="object"&&"setInterval"in e}function Rr(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 Fr(e){let n=!!e&&"length"in e&&e.length,o=an(e);return o==="function"||Vr(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ar(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 ja(e,n=[]){let o=n;return e!=null&&(Fr(Object(e))?Ar(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=an(e),t=an(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 i=0;i<r.length;i++){let u=r[i],s=e[u],c=n[u];if(!nt(s,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],i=n[r];if(!nt(a,i))return!1}return!0}return!1}const it=typeof window<"u";function _e(e){return e==null}function il(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null||typeof e!="string"?!1:e.length===0;function Mr(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 Lr(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 Br(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 So(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 za(e,n=!0,o=!0){n?e=So(e,".",/\./g):e=e.replace(/\./g,""),o?e=So(e,"-",/-/g):e=e.replace(/-/,"");const t=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(t,"")}function Ha(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(nt(e,o))return!0}):n.indexOf(e)}function Ka(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 Oe(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 Wa=(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 xl{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==="+"||il(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 i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...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 i=n.resolve,u=n.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...c)};n.resolve=s}n.cachePolicy="None"}let r=!1;!n.name||n.name==="*"?r=!0:n.name==="+"?(r=!1,n.name="*"):il(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 i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...t]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...t]);s!=null&&a.push(s)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...a),n.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...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,i=n.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...s)};n.resolve=u}n.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},o,...t]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(n,o){this.callbacks.set(n,o)}}function gn(e,n,o,t){const r=new xl(n,e,o);if(t&&typeof t=="object")for(const a in t)r.on(a,t[a]);return r}function Ya(e,n,o){const t=o;if(t[xe])return t[xe];const r=l.inject(xe,null),a=new xl(r,o,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);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 Ua{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,i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!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 Ua;function Ga(e){Ot=e}function Xa(e){Ot?Object.assign(Ot,e):Ot=e}function Za(e,n){dt.Schema.setValidator(e,n)}function Qa(e){dt.Schema.deleteValidator(e)}let qr=["blur","clear"];function Ja(e){qr=e}function _r(){return qr}let jr=["focus","change","setValue"];function ei(e){jr=e}function zr(){return jr}function ti(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 Kt(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 Hr{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=Kt(kt(this.attrRules,this.rules)),t=[];for(let a in n){let i=n[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=Kt(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=Kt(n):this.rules=Kt([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(),i={[`${t}`]:a},u=new dt.Schema(r),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 vn(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 Hr(n,o,e)}const sn=Symbol.for("EventEmitterKey");class Kr{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 Wr(e,n){let o=0;return function(...t){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...t]))}}function ni(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 li(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function pn(e,n,o,t=0,r=!0,a){let i=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 s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}i+=t,setTimeout(s,i)};setTimeout(s,i)}const Be=Symbol("DomainKey"),vt=Symbol("DataItemsKey");class yn{_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 oi=new yn;function yt(){return oi}function st(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Be]??l.inject(Be,null):l.inject(Be,null)}const Hn=Symbol("OriginalDateKey");function wl(e,n,o=[],t){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Be,null);i===null&&(i=yt());const u=e||n.prop||n.name;let s=new yn(u);s.parent=i;const c=f=>{a[Hn]||w(f),s?.set("modelValue",f)},m=()=>s?.getForSelf("modelValue")??null,h=()=>a[Hn]??null,w=f=>{const d={};mt(!0,d,l.toRaw(f)),a[Hn]=d};l.isReactive(n)||typeof n=="function"?l.watch(n,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&w(n.modelValue);const y=(f,d)=>{s?.set(f,d)},x=f=>s?.getForSelf(f)??null;if(a[Be]=s,l.provide(Be,s),r!==null){const f=l.inject(xe,null),d=gn(a,f,u,t);s.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=vn(a,P,{componentName:""});s.validateSchema=v,a[Ge]=v,l.provide(Ge,v),a[vt]=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(s){const _=Ur(s,k,p,d,v);a[vt].set(k,_);const C=g[k];C&&_.validateSchema.setRule(C)}});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(mt(!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(){s?.validateSchema&&(s.validateSchema.destroy(),a[Ge]=void 0,l.provide(Ge,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[xe]=void 0,l.provide(xe,null)),s?.destroy(),a[Be]=void 0,l.provide(Be,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 Yr(e,n,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Be,null);a===null&&(a=yt());const i=e||n.prop||n.name;let u=new yn(i);return u.parent=a,l.isReactive(n)||typeof n=="function"?l.watch(n,s=>{u?.merge(s,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 ke(e,n,o){const r=l.getCurrentInstance()?.proxy,a=n??"",i=l.inject(xe,null);let u=gn(r,i,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 s=l.inject(Ge,null);e.fieldName=e.fieldName??a;let c=vn(r,s,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&&Rr(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 Kr(r);r[sn]=m;const h=Ke((x="validate")=>{c&&(x==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:_r()).forEach(x=>{m&&m.on(x,f=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:zr()).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[sn]=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 Ur(e,n,o,t,r){const a={},i=n??"",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}};o.fieldName=i,o.validateHandler={getValue(m){return u.getValue()}};let s=vn({},r,o);a.validate=(m=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const h=[];let w=!1,y=!1;if(Array.isArray(m)&&m.indexOf(i)!==-1)y=!0,w=!0;else if(m&&typeof m=="object"){const x=m;Array.isArray(x.include)&&x.include.indexOf(i)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(i),y=!0,w=x.deep??!1}else typeof m=="boolean"&&(w=m),y=!0;if(y&&s){const x=s.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=>s?.setRule(m),a.setNameValidateRules=m=>{const h=m[i];h&&s?.setRule(h)};let c=gn(null,t,i,a);return l.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Gr(){let n=l.getCurrentInstance()?.proxy,o=new Kr(n);return n[sn]=o,l.onUnmounted(()=>{o?.destroy(),n[sn]=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 ye=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ge(e,n)}px`:"",ri=ye;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:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(a=Number(i.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 sl(e,n,o={},t=!0,r=-1,a=-1,i=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 s=o.height??n.height;s?e.height=ge(s,a):e.height=ge(a)-ge(i,a)-ge(u,a),e.width=ge(o.width??n.width??0,r)}}function Xr(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 i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;sl(t,a,n,!0,i,u,s,c);const m=l.reactive(t),h=e.getForParent(at);h&&(t.height=un(e,h),t.width=cn(e,h),l.watch([()=>un(e,h),()=>cn(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])=>{sl(m,x,n,w,f,d,P,v)}),e.set(at,m),m}function bn(e){return e.get(at)}function xn(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 wn(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 un(e,n){if(n=n??e.get(at),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=xn(e,n),t=wn(e,n);return n.height-o-t-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function cn(e,n){return n=n??e.get(at),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ai(e){return!!e.getForParent(at)}const Sl=Symbol.for("InnerPageScopeKey");function Tl(e){l.provide(Sl,e)}function Lt(e=!1){return l.inject(Sl,e)}const Cl=Symbol.for("AbstractPageScopeKey");function Zr(e){l.provide(Cl,e)}function Bt(e=!1){return l.inject(Cl,e)}var je=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(je||{});function Wt(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 s=a[u];if(Wt(s,t))return s}const i=e.value;return Wt(i,t)?i:null}):l.computed(()=>{const a=e.value;if(Wt(a,t))return a;const i=r.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(Wt(s,t))return s}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 i=l.ref(a);return l.watch(r,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,t&&t("setValue",s))}else u!==i.value&&(i.value=u,t&&t("setValue",u))}),i}const Qr=new Map,fn=new Map;let ul=null;function ii(e){ul=e}function Jr(e,n,o){if(o){let t=fn.get(o);t||(t=new Map,fn.set(o,t)),t.set(e,n)}else Qr.set(e,n)}function ze(e,n,o){!o&&ul&&(o=ul(e)??void 0);let t=null;if(o){let r=fn.get(o);r&&(t=r.get(n))}return t||(t=Qr.get(n)),t}function si(e,n){for(let o in e){const t=e[o];Jr(o,t,n)}}function ui(e){fn.delete(e)}function ci(){return{top:0,left:0,bottom:0,right:0}}function fi(){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 di(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class hi{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=di(r.name,o);n.component(a,r)}}),this.installers.forEach(r=>{r(n,o)}));const t=yt();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=mt({},ci(),n.safeAreaInset),i=fi(),u=mt({},i.pageLayout,n.pageLayout);o=o??yt(),o.set("safeAreaInset",a),o.set("headerBarHeight",t),o.set("footerBarHeight",r),o.set("pageLayout",u),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight);const s=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const c in n)s.indexOf(c)===-1&&o.set(c,n[c])}setScopeGetter(n){ii(n)}setAPI(n,o,t){Jr(n,o,t)}getAPI(n,o,t){return ze(n,o,t)}batchSetAPI(n,o){si(n,o)}clearScopeAPI(n){ui(n)}getRootDomain(){return yt()}}const mi=[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],gi=[T.ElInfiniteScroll,T.ElLoading,T.ElMessage,T.ElMessageBox,T.ElNotification,T.ElPopoverDirective],vi=(e,n={})=>{const o=n.componentPrefix??"fox",t=o[0].toUpperCase()+o.slice(1);mi.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${t}${a.slice(2)}`,e.component(a,r)):e.use(r)}),gi.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 $e={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}},De={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}},ea={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}},ta={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}},na=[];for(const e in ta)na.push(e);const pi={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}},yi=(e,n)=>({inheritAttrs:!0,props:{...$e,...ea,...pi},setup(o,{slots:t}){const r=Bt(!1),a=Lt(!1),i=wl(o.name,o);if(i){const h=Xr(i,o);Se({getPageContentHeight:()=>un(i,h),getPageContentWidth:()=>cn(i,h),getPageHeaderHeight:()=>xn(i,h),getPageFooterHeight:()=>wn(i,h)}),h&&a&&(h.contentHeight="100%")}const u=l.computed(()=>({[e]:!0,"is-inner":a})),s=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:s.value};return l.h("div",h,[t?.default?.()])}}}}),{componentName:bi,create:xi}=ie("page"),$l=xi(yi(bi));function Nl(e){const n=l.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Sn(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")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-t-r,height:n.clientHeight-a-i}}const la={headerbar:{},radio:{},checkbox:{}};function wi(e){Object.assign(la,e)}function oa(){return la}const Si=(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 i=Bt(!1),u=Lt(!1),s=i?null:st(),c=s?bn(s):null;c&&(c.headerMounted=!0);const m=oa(),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(i)return b;if(s&&c){const S=Je(r.padding??c.headerPadding);return Object.assign(b,S),_e(x)||(c.headerHeight=x),b.height=c.headerHeight,b.safeAreaTop=c.safeAreaTop===-1?0:c.safeAreaTop,b.safeAreaTop>0&&(b.top=b.safeAreaTop+(S.top??0),b.height&&b.height>0&&(b.height=b.height+b.safeAreaTop)),b}if(_e(x)||(b.height=x),r.padding){const S=Je(r.padding);Object.assign(b,S)}return b}),d=l.ref(null),P=()=>{if(c&&d.value&&d.value.offsetParent!==null){if(!t){const b=Nl(d.value);c.headerAllHeight=b.height}return c.headerMounted=!0,!0}return!1},v=Ke(P,120);let g=null;l.onMounted(()=>{i||c&&(pn(P,50,5,50,!0),window.ResizeObserver&&d.value&&(g=new window.ResizeObserver(v),g.observe(d.value)))}),l.onUnmounted(()=>{i||c&&(c.headerMounted=!1,g&&(g.disconnect(),g=null))});const M=l.computed(()=>{const b={};return i||(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 S=l.h("view",{class:"left-icon",onClick:A},[a.slots.leftIcon()]);b.push(S)}else{const S=r.leftIcon??m.headerbar.Left??o,D=l.h("view",{class:"left-icon",onClick:A},[l.h(S)]);b.push(D)}if(r.leftText){const S=l.h("view",{class:"left-text",onClick:A},[r.leftText]);b.push(S)}}return b.length===0?null:l.h("view",{class:"fox-header-bar__left"},b)},C=()=>{if(!r.rightShow)return null;const b=[];if(a.slots.right)b.push(a.slots.right());else{if(r.rightText){const S=l.h("view",{class:"right-text",onClick:p},[r.rightText]);b.push(S)}if(a.slots.rightIcon){const S=l.h("view",{class:"right-icon",onClick:k},[a.slots.rightIcon()]);b.push(S)}else if(r.rightIcon){const S=l.h("view",{class:"right-icon",onClick:k},[l.h(r.rightIcon)]);b.push(S)}}return b.length===0?null:l.h("view",{class:"fox-header-bar__right"},b)},q=()=>{if(!r.titleShow)return null;const b=[],S=a.slots.default?a.slots.default():null;if(S)b.push(S);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=[],S=a.slots.bottom?a.slots.bottom():null;return S&&b.push(S),b.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},b)};return()=>{if(i||!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=C();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 S={class:w.value,style:M.value,ref:d};return l.h("view",S,b)}}}),{componentName:Ti,create:Ci,scope:$i}=ie("header-bar"),kl=Ci(Si(Ti,$i,Ie.ArrowLeft));function Ni(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),i=Lt(!1),u=a?null:st(),s=u?bn(u):null,c=l.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=_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&&s){const g=Je(t.padding??s.footerPadding);return Object.assign(v,g),_e(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(_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(s&&y.value&&y.value.offsetParent!==null){if(!o){const v=Nl(y.value);s.footerAllHeight=v.height}return s.footerMounted=!0,!0}return!1},f=Ke(x,120);let d=null;l.onMounted(()=>{a||s&&(pn(x,50,5,50,!0),window.ResizeObserver&&y.value&&(d=new window.ResizeObserver(f),d.observe(y.value)))}),l.onUnmounted(()=>{a||s&&(s.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=ye(h.value.height)),h.value.top!==null&&h.value.top!==void 0&&(v.paddingTop=ye(h.value.top)),h.value.left!==null&&h.value.left!==void 0&&(v.paddingLeft=ye(h.value.left)),h.value.right!==null&&h.value.right!==void 0&&(v.paddingRight=ye(h.value.right)),h.value.bottom!==null&&h.value.bottom!==void 0&&(v.paddingBottom=ye(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:ki,create:Ei}=ie("footer-bar"),El=Ei(Ni(ki));function Pi(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),i=Lt(!1),u=a?null:st(),s=l.computed(()=>({[e]:!0})),c=u?bn(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=xn(u,c),P=wn(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=Sn(h.value);c.contentInnerHeight=f.height,c.contentInnerWidth=f.width}},y=Ke(w,120);let x=null;return l.onMounted(()=>{i||a||(requestAnimationFrame(w),window.ResizeObserver&&h.value&&(x=new window.ResizeObserver(y),x.observe(h.value)))}),l.onUnmounted(()=>{i||a||x&&(x.disconnect(),x=null)}),()=>{if(a)return t.default?.();{const f=o.tag??"view",d={...r,ref:h,class:s.value,style:m.value};return l.h(f,d,t)}}}}}const{componentName:Ii,create:Oi}=ie("content"),Pl=Oi(Pi(Ii)),St="GroupStateKey",ra=Symbol.for("GroupScopeKey");function Tn(){return l.inject(ra,!1)}function Cn(e=!0){l.provide(ra,e)}function Di(e,n={}){Reflect.ownKeys(n).forEach(t=>{if(typeof t!="string")return;const r=n[t];_e(r)||(e[t]=r)})}function Vi(e,n={}){const t={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Di(t,n);const r=l.shallowRef(t),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(St,a),a}function Kn(e,n,o=-1,t=-1,r=!1,a,i,u){const s=e.get(St);if(!s)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),t===-1&&(t=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const m=ge(a),h=ge(i);u||(u=c.type??"grid");const w=()=>{const y=n===""||n===-1,x=ge(n);let f=Ce(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=s.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=++s.passport;setTimeout(()=>{y===s.passport&&w()},50)}}function $n(e,n=!1){let o;return n?o=e.getForParent(St):o=e.get(St),o.layout}function Nn(e,n=!1){let o;return n?o=e.getForParent(St):o=e.get(St),o.order}function To(e,n=1){if(n==="stretch")return-1;const o=Ce(n);return o===-1?100:100*o/e}function kn(e,n,o=1,t=0,r){const a={};let i=0;r?i=ge(r):i=To(n.column,o),i>0&&(a.width=`${i}%`);const u=To(n.column,t);u>0&&(a["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function En(e,n,o=1,t=0){if(o==="stretch"){const s=e.index%n.column,c=s+(n.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=Ce(o);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const a=Ce(t)%n.column;let i=(e.index+a)%n.column,u=i+r;return u>n.column?(i=0,u=i+r,e.index=e.index+(n.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const aa=Symbol("RollingStateKey");function Ri(e){l.provide(aa,e)}function Fi(){return l.inject(aa,null)}function cl(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 Ai(e){let n=cl(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=cl(o),document.body.removeChild(o)}return n}function Mi(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 i=(t-(r-1)*a)/r;return i>0?`${i}px`:"1fr"}const Li={...$e,...ea,...ta};function Bi(e,n,o){return{props:Li,emits:["update:collapse","header-click"],setup(t,r){const a=wl(t.prop??t.name,t,na),i=Vi(a,{type:t.type}),u=Tn();Cn(!0);const s=t.rollingDisplay?Fi():null,c=l.ref(null),m=l.computed(()=>t.rollingDisplay?s&&!s.disabled:!1),h=l.computed(()=>u&&a?$n(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=S.value;const z=u?Nn(a,!0):null;if(h.value&&z){if(h.value.type==="grid"){const Q=En(z,h.value,t.span,t.offset);Object.assign(V,Q)}else if(h.value.type==="flow"){const Q=kn(z,h.value,t.span,t.offset,t.width);Object.assign(V,Q)}}else if(t.width){const Q=ye(t.width);V.width=Q}return V}),d=l.computed(()=>{const V=i.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(i.layout.value.type==="grid"){let z="";if(t.columnWidth)z=`repeat(auto-fill, ${t.columnWidth})`;else{const Q=Mi(k.value,i.layout.value.column,i.layout.value.gutter);z=`repeat(${i.layout.value.column}, ${Q})`}return{"column-gap":`${i.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=Sn(V).width;z>0&&z!==k.value&&(k.value=z)};Kn(a,k.value,g.value,v.value,!0,t.minItemWidth,t.maxItemWidth,t.type),t.autoLayout&&l.watch([k,g,v],([V,z,Q])=>{i.order.index=0,Kn(a,V,z,Q,!1,t.minItemWidth,t.maxItemWidth,t.type)});const _=l.computed(()=>D.value?t.expandText??"":t.collapseText??""),C=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(),S=l.computed(()=>j.value||ye(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?Ai(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]),Kn(a,k.value,g.value,v.value,!0,t.minItemWidth,t.maxItemWidth,t.type))}});let R=null,$=!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||s?.acquire();ne&&(c.value=m.value?!0:null),l.onMounted(()=>{if(ne&&(H($),$=!1),m.value&&s){let V=null,z=s.initialHeight;s.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($),$=!1)},100);else{if(V!==null&&clearTimeout(V),c.value=!1,!D.value)if($)j.value=s.initialHeight;else{let I=cl(X.value);I<=0?j.value=z:(j.value=`${I}px`,z=j.value)}$||Z()}})}}),l.onUnmounted(()=>{R?.disconnect(),s&&s.unobserve(X.value)});const Y=(V="right")=>{const z=[];if(_.value){const G={class:C.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},[])}i.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=i.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:qi,create:_i,scope:ji}=ie("group"),zi=(e,n)=>(e=e??Ie.ArrowUp,l.h(T.ElIcon,n,{default:()=>[l.h(e)]})),Il=_i(Bi(qi,ji,zi));function Hi(e){return e===window}const Ki=/matrix\((.+)\)/,Ol=e=>{const n=l.unref(e);if(!n)return{x:0,y:0};if(Hi(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,i=0,u=0,s=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const m=Ki.exec(c);if(m){let w=m[1].split(/\s*,\s*/);w.length==6&&(u+=Number(w[4]),s+=Number(w[5]))}}r=r.parentNode}return o-=a,t-=i,o+=u,t+=s,{x:o,y:t}};class Wi{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 Yi{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 Wi,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 Yi,ia={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ui,create:Gi}=ie("price"),Xi=Gi({props:{...ia},setup(e){const n=l.computed(()=>({[Ui]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),t=l.computed(()=>Mt(e.price)==0?"":hn(e.price,e.decimalLength,!0,Ce(e.digits),e.separator)),r=l.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=l.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.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},Zi=["innerHTML"],Qi=["innerHTML"];function Ji(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,Zi)):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,Qi)):l.createCommentVNode("",!0)],2)}const Pn=Ze(Xi,[["render",Ji]]),{componentName:Wn,create:es}=ie("hint-text"),ts=es({components:{Price:Pn},props:{...ia,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),i=l.ref(e.placement),u=l.ref(!1),s=l.ref(null),c=(C,q,X,b,S,D)=>{const j=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,J=C.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 $=0;J[1]==="start"?$=q.x:J[1]==="end"?$=q.x+X-S:$=q.x+X/2-S/2;const H=j-$-S;H<0?($+=H,h.value=-H):h.value=0,ee.left=$<0?0:$;break}}else if(F==="bottom"){const R=q.y+b+e.arrowSize+e.offset;if(R+D<=U){ee.top=R;let $=0;J[1]==="start"?$=q.x:J[1]==="end"?$=q.x+X-S:$=q.x+X/2-S/2;const H=j-$-S;H<0?($+=H,h.value=-H):h.value=0,ee.left=$<0?0:$;break}}else if(F==="left"){const R=q.x-S-e.arrowSize-e.offset;if(R>=0){ee.left=R;let $=0;J[1]==="start"?$=q.y:J[1]==="end"?$=q.y+b-D:$=q.y+b/2-D/2,ee.top=$<0?0:$;break}}else if(F==="right"){const R=q.x+X+e.arrowSize+e.offset;if(R+S<=j){ee.left=R;let $=0;J[1]==="start"?$=q.y:J[1]==="end"?$=q.y+b-D:$=q.y+b/2-D/2,ee.top=$<0?0:$;break}}}return{bestPlacement:E.join("-"),bestInsetRect:ee}},m=(C,q,X=10)=>{if(!it||q===!1||!C)return;t.value=Ol(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const b=s.value.offsetHeight,S=s.value.offsetWidth,{bestPlacement:D,bestInsetRect:j}=c(e.placement,t.value,r.value,a.value,S,b);i.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,C=>{y.value=C});const x=l.computed(()=>y.value&&f.value),f=l.ref(!0),d=Ke(C=>{const q=C[0];q&&(f.value=q.isIntersecting)},10),P=new IntersectionObserver(d);l.watch([()=>e.message,()=>e.visible],([C,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 C={[Wn]:!0};return i.value.startsWith("top")?C["is-top"]=!0:i.value.startsWith("right")?C["is-right"]=!0:i.value.startsWith("bottom")?C["is-bottom"]=!0:i.value.startsWith("right")&&(C["is-right"]=!0),e.size==="small"?C["is-small"]=!0:e.size==="large"&&(C["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(C[`${e.customClass}`]=!0),C}),g=l.computed(()=>{const C={};o.value.top!==null&&(C.top=`${o.value.top}px`),o.value.right!==null&&(C.right=`${o.value.right}px`),o.value.bottom!==null&&(C.bottom=`${o.value.bottom}px`),o.value.left!==null&&(C.left=`${o.value.left}px`),e.autoFit&&(C["min-width"]=`${r.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return C["max-width"]=`${q}px`,u.value&&(C.opacity="1"),e.transition||(C.transition="none"),e.zIndex&&(C["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(C,e.customStyle),C}),M=l.computed(()=>{const C=[`${Wn}__content`];return e.customTextClass&&C.push(e.customTextClass),C}),B=l.computed(()=>{const C={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(C,e.customTextStyle),C}),A=l.computed(()=>({[`${Wn}__arrow`]:!0})),O=l.computed(()=>{const C={};return e.showArrow?(C.width=`${e.arrowSize}px`,C.height=`${e.arrowSize}px`,i.value==="top"?(C.left="50%",C.bottom=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):i.value==="top-start"?(C.left=`${e.arrowOffset+h.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(C.right=`${e.arrowOffset-h.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="right"?(C.left=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):i.value==="right-start"?(C.left=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):i.value==="right-end"?(C.left=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(C.left="50%",C.top=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(C.left=`${e.arrowOffset+h.value}px`,C.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(C.right=`${e.arrowOffset-h.value}px`,C.top=`-${e.arrowSize}px`):i.value==="left"?(C.right=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):i.value==="left-start"?(C.right=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):i.value==="left-end"&&(C.right=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`),C):{display:"none"}}),k=l.computed(()=>x.value&&e.closeOnClick),p=l.computed(()=>{const C={};return e.zIndex&&(C["z-index"]=`${e.zIndex}`),C});return{show:x,tipRef:s,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)}}}}),ns=["innerHTML"];function ls(e,n,o,t,r,a){const i=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(i,{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,ns))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const qt=Ze(ts,[["render",ls]]);class sa{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 fl={},os=new sa,bt=new Map,dn=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of bt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}bt.clear()}},rs=e=>{e.unmount=dn;const n=document.getElementById(e.id);if(n){const o=bt.get(e.id);o?e={...fl,...o,...e}:e={...fl,...e},e.transition=!1;const t=l.createVNode(qt,e);l.render(t,n)}return e.id},as=e=>{e.unmount=dn;let n=e.id??`hinttext_${os.get()}`;e={...fl,...e},e.id=n,bt.set(n,e);const o=document.createElement("div");o.id=e.id;const t=l.createVNode(qt,e);return l.render(t,o),document.body.appendChild(o),n},is=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Re={show(e,n,o={},t=!0){is(n);const r=o.id;return r&&bt.has(r)?rs({...o,message:n,reference:e}):(t&&dn(),as({...o,message:n,reference:e}))},hide(e){dn(e)},install(e){e.config.globalProperties.$hintText=Re}};function ss(e,n,o,t=!1){return{inheritAttrs:!0,props:{...$e,...De},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;ke({componentName:e,validate:!1},i);const u=st(),s=Tn();Cn(!1);const c=l.computed(()=>s&&u?$n(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(i);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=ye(r.width));else{const G=s&&u?Nn(u,!1):null;if(c.value&&G){if(c.value.type==="grid"){const K=En(G,c.value,r.span,r.offset);Object.assign(I,K)}else if(c.value.type==="flow"){const K=kn(G,c.value,r.span,r.offset,r.width);Object.assign(I,K)}}}if(typeof y.value=="function"){const G=y.value(i);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:ye(A.value)}:{}),k=l.computed(()=>({"label--string":!0,"label--required":d.value})),p=l.computed(()=>({content:!0,[r.contentClass]:!0})),_=l.computed(()=>({...r.contentStyle})),C=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Se({setRequired(I){d.value=I},setErrorTip(I){C.errorTip=I},setErrorIcon(I){C.errorIcon=I},setWarnTip(I){C.warnTip=I},setWarnIcon(I){C.warnIcon=I},setInfoTip(I){C.infoTip=I},setInfoIcon(I){C.infoIcon=I},setCustomClassName(I){h.value=I},setCustomStyle(I){y.value=I}});const q=l.computed(()=>r.infoTip||C.infoTip),X=l.computed(()=>r.infoIcon||C.infoIcon),b=l.computed(()=>r.warnTip||C.warnTip),S=l.computed(()=>r.warnIcon||C.warnIcon),D=l.computed(()=>r.errorTip||C.errorTip),j=l.computed(()=>r.errorIcon||C.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"?S.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"]=ye(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 $=null;const H=()=>{$||!F.value||($=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")}),$.observe(F.value))},Z=()=>{!$||!F.value||($.unobserve(F.value),$=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:us,create:cs,scope:fs}=ie("item"),Ne=cs(ss(us,fs,Re,!1)),dl={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function ds(e,n){return{props:{...dl},setup(o,t){const r=st(),a=Tn();Cn(!1);const i=l.computed(()=>a&&r?$n(r,!1).value:null),u=e,s=l.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),c=l.computed(()=>{const m={};if(o.width)o.width!=="auto"&&(m.width=ye(o.width));else{const h=a&&r?Nn(r,!1):null;if(i.value&&h)if(i.value.type==="grid"){const w=En(h,i.value,o.span,o.offset);Object.assign(m,w)}else if(i.value.type==="flow"){const w=kn(h,i.value,o.span,o.offset,o.width);Object.assign(m,w)}else return o.width&&(m.width=ye(o.width)),m}return m});return()=>{const m={class:s.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:hs,create:ms}=ie("slot-item"),In=ms(ds(hs)),hl={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 gs(e,n){return{props:{...hl},setup(o,t){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=st(),u=Tn();Cn(!1);const s=l.computed(()=>{const c={};if(o.width)o.width!=="auto"&&(c.width=ye(o.width));else if(u&&i){const m=$n(i,!1),h=Nn(i,!1);if(m.value&&h)if(m.value.type==="grid"){const w=En(h,m.value,o.span,o.offset);Object.assign(c,w)}else if(m.value.type==="flow"){const w=kn(h,m.value,o.span,o.offset,o.width);Object.assign(c,w)}else o.width&&(c.width=ye(o.width))}return o.gutter&&(c.gap=ye(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:s.value};return l.h("div",m,c)}}}}const{componentName:vs,create:ps}=ie("row-item"),On=ps(gs(vs));function ys(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 bs={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 xs(e,n,o,t=!1){return{props:{...bs},emits:["click"],setup(r,a){const i=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}),s=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=i.value;if(!g)return;const M=g.clientWidth;ys(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=i.value;g&&(g.addEventListener("mouseover",f),g.addEventListener("mouseleave",d))},v=()=>{const g=i.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:s.value,ref:i};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 _=Ce(r.digits),C=Ce(r.decimalLength),q=ce(r.autoPadding);let X=`${k[0].children}`,b=X.split("").reverse().join("");b=hn(b,C,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 C={onClick:m,class:k,style:p};A=l.h("view",C,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 C={onClick:m,class:k,style:p};A=l.h("view",C,{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 C={onClick:m,class:k,style:p};A=l.h("view",C)}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:ws,create:Ss,scope:Ts}=ie("text"),Dn=Ss(xs(ws,Ts,Re,!1)),Cs={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 $s(e,n,o=!1){return{props:{...Cs},emits:["update:visible"],setup(t,{emit:r,slots:a,expose:i}){const u=l.ref({top:null,right:null,bottom:null,left:null}),s=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,$,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-$-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+$<=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-$:K=E+F/2-$/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-$:K=E+F/2-$/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 $=d(),H=Ol($);s.value=H.x,c.value=H.y,m.value=$.offsetWidth,h.value=$.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 E=f.value.offsetWidth,N=f.value.offsetHeight,{bestPlacement:F,bestInsetRect:R}=P(t.placement,s.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}),C=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},S=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:S.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 i({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:C.value,onAnimationend:U};t.leaveHide&&(R.onMouseleave=J);const $=l.h("div",R,{default:()=>E});return L.push($),l.h(l.Teleport,{to:t.teleport,disabled:t.teleportDisable},{default:()=>L})}}}}const{componentName:Ns,create:ks,scope:Es}=ie("popover-dialog"),Vn=ks($s(Ns,Es,!1)),Ps={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 Is(e,n,o){return{props:{...hl,...Ps},emits:["click"],setup(t,{slots:r,attrs:a}){const{toLocaleRefs:i}=Ae.useFoxI18n(n),u=i(t,["moreText"]),s=e,c=l.computed(()=>({[s]:!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),C=[`${s}__dropdown-item`];p&&C.push("is-disabled");const q={class:C,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),C={ref:D=>y.value=D,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:t.type,onClick:P},q=l.h(Dn,C,{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":`${s}__popover`},S=l.h(Vn,b,{default:()=>X});return k.push(S),k},B=()=>(r.default?.()||[]).filter(O=>O.type!==Comment);return()=>{const A=B(),O=M(A),k=wt(t,hl);return Object.assign(k,a??{}),k.class=c.value,l.h(On,k,{default:()=>O})}}}}const{componentName:Os,create:Ds,scope:Vs}=ie("buttons-item"),Dl=Ds(Is(Os,Vs,Ie.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},Co={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 Rs(e,n,o){return{props:{...$e,...De,...Co},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.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`]:i.value,[`${x}__readonly`]:s.value})),d=S=>{y.value=S,c("update:modelValue",S),c("input",S)},P=S=>{c("change",S)};let v=he(t,"hintText"),g=l.ref(!1);const M=S=>{let j=S.target.value;w.value=!0,de(v.value)||(g.value=!0),c("focus",j,S)},B=S=>{setTimeout(()=>{g.value&&(g.value=!1),w.value=!1},0);let j=S.target.value;t.maxLength&&j.length>Number(t.maxLength)&&(j=j.slice(0,Number(t.maxLength))),c("blur",j,S)},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)},C=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:S=>{a.value=S},setReadonly:S=>{u.value=S}}),()=>{const D={...Qe(r.attrs),ref:b,class:f.value,placeholder:h.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.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(T.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={...Oe(t,Co),hintText:q.value,hintVisible:C.value};return t.prop&&(E.prop=`${t.prop}_item`),l.h(o,E,L)}}}}const{componentName:Fs,create:As,scope:Ms}=ie("input-item"),Vl=As(Rs(Fs,Ms,Ne));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 ua(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Ls(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Bs=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 qs(){const e=l.getCurrentInstance();return new Bs(e.proxy)}function ca(e,n,o){const t=rt(e,n),r=rt(e,o);if(t!==r)return!1;const a=Rt(e,n),i=Rt(e,o);return a===i}function fa(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 i of t){const u=ua(e,i);if(Array.isArray(u)&&u.length>0){const s=fa(e,a,o,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(o==="text")s=rt(e,i)===a;else if(o==="item")s=ca(e,i,a);else{let c=Rt(e,i);c==null&&(c=rt(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function _s(e){return{text:e,value:e}}const $o={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 js(e,n,o){return{props:{...$e,...De,...$o},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.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=fa(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(!ca(t,re,ue)){K=!1;break}}if(!K){y.value=G;let le=[],re=[],ue=[];G.forEach(ut=>{const gt=Rt(t,ut),We=rt(t,ut);le.push(gt),ue.push(We),t.valueType==="text"?re.push(We):t.valueType==="item"?re.push(ut):re.push(gt)});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=qs(),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=>_s(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(C()&&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 C=()=>typeof t.remoteMethod=="function"||typeof t.filterMethod=="function",q=l.ref(!1),X=e,b=l.computed(()=>({[X]:!0})),S=V=>{t.allowCreate||C()&&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),$=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=ua(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(T.ElOptionGroup,ve,{default:()=>le}))}else{const le=Rt(t,I),re=rt(t,I),ue=Ls(t,I),me={key:`${le}_${G}`,label:re,disabled:ue,value:le};if(typeof z=="function")Q.push(l.h(T.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]),gt={class:{"fox-select-item__option-right":!0}},We=l.h("span",gt,[re]),zt=l.h("div",{class:{"fox-select-item__option":!0}},[ut,We]);Q.push(l.h(T.ElOption,me,{default:()=>zt}))}else t.optionType==="value"?Q.push(l.h(T.ElOption,me,{default:()=>[le]})):Q.push(l.h(T.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:i.value||s.value,modelValue:w.value,"value-key":t.valueKey,"allow-create":t.allowCreate,onClear:L,onChange:S,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(T.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={...Oe(t,$o),hintText:$.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:zs,create:Hs,scope:Ks}=ie("select-item"),Rl=Hs(js(zs,Ks,Ne));function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt={exports:{}},Ws=Xt.exports,No;function Ys(){return No||(No=1,(function(e,n){(function(o,t){e.exports=t()})(Ws,(function(){var o=1e3,t=6e4,r=36e5,a="millisecond",i="second",u="minute",s="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 S=["th","st","nd","rd"],D=b%100;return"["+b+(S[(D-20)%10]||S[D]||S[0])+"]"}},g=function(b,S,D){var j=String(b);return!j||j.length>=S?b:""+Array(S+1-j.length).join(D)+b},M={s:g,z:function(b){var S=-b.utcOffset(),D=Math.abs(S),j=Math.floor(D/60),U=D%60;return(S<=0?"+":"-")+g(j,2,"0")+":"+g(U,2,"0")},m:function b(S,D){if(S.date()<D.date())return-b(D,S);var j=12*(D.year()-S.year())+(D.month()-S.month()),U=S.clone().add(j,h),J=D-U<0,L=S.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:s,m:u,s:i,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(S,D,j){var U;if(!S)return B;if(typeof S=="string"){var J=S.toLowerCase();A[J]&&(U=J),D&&(A[J]=D,U=J);var L=S.split("-");if(!U&&L.length>1)return b(L[0])}else{var ee=S.name;A[ee]=S,U=ee}return!j&&U&&(B=U),U||!j&&B},_=function(b,S){if(k(b))return b.clone();var D=typeof S=="object"?S:{};return D.date=b,D.args=arguments,new q(D)},C=M;C.l=p,C.i=k,C.w=function(b,S){return _(b,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$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 S=b.prototype;return S.parse=function(D){this.$d=(function(j){var U=j.date,J=j.utc;if(U===null)return new Date(NaN);if(C.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()},S.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()},S.$utils=function(){return C},S.isValid=function(){return this.$d.toString()!==f},S.isSame=function(D,j){var U=_(D);return this.startOf(j)<=U&&U<=this.endOf(j)},S.isAfter=function(D,j){return _(D)<this.startOf(j)},S.isBefore=function(D,j){return this.endOf(j)<_(D)},S.$g=function(D,j,U){return C.u(D)?this[j]:this.set(U,D)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(D,j){var U=this,J=!!C.u(j)||j,L=C.p(D),ee=function(ne,Y){var W=C.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 C.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,$="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($+"Hours",0);case s:return E($+"Minutes",1);case u:return E($+"Seconds",2);case i:return E($+"Milliseconds",3);default:return this.clone()}},S.endOf=function(D){return this.startOf(D,!1)},S.$set=function(D,j){var U,J=C.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[s]=L+"Hours",U[u]=L+"Minutes",U[i]=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},S.set=function(D,j){return this.clone().$set(D,j)},S.get=function(D){return this[C.p(D)]()},S.add=function(D,j){var U,J=this;D=Number(D);var L=C.p(j),ee=function(F){var R=_(J);return C.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[s]=r,U[i]=o,U)[L]||1,N=this.$d.getTime()+D*E;return C.w(N,this)},S.subtract=function(D,j){return this.add(-1*D,j)},S.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=C.z(this),ee=this.$H,E=this.$m,N=this.$M,F=U.weekdays,R=U.months,$=U.meridiem,H=function(Y,W,V,z){return Y&&(Y[W]||Y(j,J))||V[W].slice(0,z)},Z=function(Y){return C.s(ee%12||12,Y,"0")},ne=$||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 C.s(j.$y,4,"0");case"M":return N+1;case"MM":return C.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 C.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 C.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 C.s(E,2,"0");case"s":return String(j.$s);case"ss":return C.s(j.$s,2,"0");case"SSS":return C.s(j.$ms,3,"0");case"Z":return L}return null})(Y)||L.replace(":","")}))},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(D,j,U){var J,L=this,ee=C.p(j),E=_(D),N=(E.utcOffset()-this.utcOffset())*t,F=this-E,R=function(){return C.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 s:J=F/r;break;case u:J=F/t;break;case i:J=F/o;break;default:J=F}return U?J:C.a(J)},S.daysInMonth=function(){return this.endOf(h).$D},S.$locale=function(){return A[this.$L]},S.locale=function(D,j){if(!D)return this.$L;var U=this.clone(),J=p(D,j,!0);return J&&(U.$L=J),U},S.clone=function(){return C.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()},b})(),X=q.prototype;return _.prototype=X,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",h],["$y",y],["$D",x]].forEach((function(b){X[b[1]]=function(S){return this.$g(S,b[0],b[1])}})),_.extend=function(b,S){return b.$i||(b(S,q,_),b.$i=!0),_},_.locale=p,_.isDayjs=k,_.unix=function(b){return _(1e3*b)},_.en=A[B],_.Ls=A,_.p={},_}))})(Xt)),Xt.exports}var Us=Ys();const et=lt(Us);var Zt={exports:{}},Gs=Zt.exports,ko;function Xs(){return ko||(ko=1,(function(e,n){(function(o,t){e.exports=t()})(Gs,(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/,i=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},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=s[d];return P&&(P.indexOf?P:P.s.concat(P.f))},y=function(d,P){var v,g=s.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:[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(d){var P=s.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:[i,m("week")],ww:[a,m("week")],M:[i,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=s&&s.formats;for(var g=(d=P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(_,C,q){var X=q&&q.toUpperCase();return C||v[q]||o[q]||v[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,S,D){return S||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 C={},q=0,X=0;q<M;q+=1){var b=g[q];if(typeof b=="string")X+=b.length;else{var S=b.regex,D=b.parser,j=_.slice(X),U=S.exec(j)[0];D.call(C,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}})(C),C}}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,C=k[3]===!0,q=_||C,X=k[2];C&&(X=k[2]),s=this.$locale(),!_&&X&&(s=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,$=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=$||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("")),s={}}else if(p instanceof Array)for(var b=p.length,S=1;S<=b;S+=1){k[1]=p[S-1];var D=v.apply(this,k);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}S===b&&(this.$d=new Date(""))}else M.call(this,B)}}}))})(Zt)),Zt.exports}var Zs=Xs();const Qs=lt(Zs);var Qt={exports:{}},Js=Qt.exports,Eo;function eu(){return Eo||(Eo=1,(function(e,n){(function(o,t){e.exports=t()})(Js,(function(){return function(o,t){var r=t.prototype,a=r.format;r.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 tu=eu();const nu=lt(tu);var Jt={exports:{}},lu=Jt.exports,Po;function ou(){return Po||(Po=1,(function(e,n){(function(o,t){e.exports=t()})(lu,(function(){return function(o,t,r){var a=t.prototype,i=function(h){return h&&(h.indexOf?h:h.s)},u=function(h,w,y,x,f){var d=h.name?h:h.$locale(),P=i(d[w]),v=i(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]}))},s=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=s();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(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(h){return u(s(),"weekdays",null,null,h)},r.weekdaysShort=function(h){return u(s(),"weekdaysShort","weekdays",3,h)},r.weekdaysMin=function(h){return u(s(),"weekdaysMin","weekdays",2,h)}}}))})(Jt)),Jt.exports}var ru=ou();const au=lt(ru);var en={exports:{}},iu=en.exports,Io;function su(){return Io||(Io=1,(function(e,n){(function(o,t){e.exports=t()})(iu,(function(){var o="week",t="year";return function(r,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(o);if(m.isBefore(h))return 1}var w=i(this).startOf(t).date(c).startOf(o).subtract(1,"millisecond"),y=this.diff(w,o,!0);return y<0?i(this).startOf("week").week():Math.ceil(y)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})(en)),en.exports}var uu=su();const cu=lt(uu);var tn={exports:{}},fu=tn.exports,Oo;function du(){return Oo||(Oo=1,(function(e,n){(function(o,t){e.exports=t()})(fu,(function(){return function(o,t){t.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}}))})(tn)),tn.exports}var hu=du();const mu=lt(hu);var nn={exports:{}},gu=nn.exports,Do;function vu(){return Do||(Do=1,(function(e,n){(function(o,t){e.exports=t()})(gu,(function(){return function(o,t,r){t.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}}))})(nn)),nn.exports}var pu=vu();const yu=lt(pu);var ln={exports:{}},bu=ln.exports,Vo;function xu(){return Vo||(Vo=1,(function(e,n){(function(o,t){e.exports=t()})(bu,(function(){return function(o,t){t.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}}))})(ln)),ln.exports}var wu=xu();const Su=lt(wu);var on={exports:{}},Tu=on.exports,Ro;function Cu(){return Ro||(Ro=1,(function(e,n){(function(o,t){e.exports=t()})(Tu,(function(){return function(o,t){t.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}}))})(on)),on.exports}var $u=Cu();const Nu=lt($u);et.extend(au);et.extend(nu);et.extend(Qs);et.extend(cu);et.extend(mu);et.extend(yu);et.extend(Su);et.extend(Nu);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(),i=r.getDate(),u=6-a;return t!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+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),i=Math.round((r.valueOf()-a.valueOf())/864e5);let u=r.getDay(),s=6-u;return t!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=r.getTime();let i=r.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 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(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,n,o){const t=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Fo={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"}},Ao={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 ku(e,n,o){return{props:{...$e,...De,...Fo,...Ao},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.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":s.value,"is-disabled":i.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)},C=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),S=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(S.value)&&S.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)},$=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($(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($(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($(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($(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:i.value,readonly:s.value,modelValue:x.value,valueFormat:t.valueFormat,format:t.format,"onUpdate:modelValue":d,onClear:k,onFocus:A,onBlur:O,onCalendarChange:p,onPanelChange:_,onVisibleChange:C},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(T.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(!s.value&&!i.value){const ue={label:X.value||q.value,disabled:s.value||i.value,modelValue:j.value,"onUpdate:modelValue":U},ve=l.h(T.ElCheckbox,ue),me=l.h("div",{class:{[`${v}__append`]:!0}},[ve]);G.append=()=>me}}const le={...Oe(t,Fo,Ao),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:Eu,create:Pu,scope:Iu}=ie("date-item"),Fl=Pu(ku(Eu,Iu,Ne)),Mo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ou(e,n,o){return{props:{...$e,...De,...Mo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.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:i.value,readonly:s.value,modelValue:y.value,"onUpdate:modelValue":d,onClear:B,onFocus:g,onBlur:M,onVisibleChange:A},_={},C=[],q=l.h(T.ElTimePicker,p,_);C.push(q);const X={default:()=>C};X.label=r.slots.default,X.fixedPreTip=r.slots.fixedPreTip,X.fixedTip=r.slots.fixedTip;const S={...Oe(t,Mo),hintText:P.value,hintVisible:v.value};return t.prop&&(S.prop=`${t.prop}_item`),l.h(o,S,X)}}}}const{componentName:Du,create:Vu,scope:Ru}=ie("time-item"),Al=Vu(Ou(Du,Ru,Ne)),Lo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Fu(e,n,o){return{props:{...$e,...De,...Lo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.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:i.value,readonly:s.value,modelValue:y.value,"onUpdate:modelValue":d,onClear:B,onFocus:g,onBlur:M},p={},_=[],C=l.h(T.ElTimeSelect,k,p);_.push(C);const q={default:()=>_};q.label=r.slots.default,q.fixedPreTip=r.slots.fixedPreTip,q.fixedTip=r.slots.fixedTip;const b={...Oe(t,Lo),hintText:P.value,hintVisible:v.value};return t.prop&&(b.prop=`${t.prop}_item`),l.h(o,b,q)}}}}const{componentName:Au,create:Mu,scope:Lu}=ie("time-select-item"),Ml=Mu(Fu(Au,Lu,Ne));function Bo(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 qo(e,n,o=20){if(typeof n=="string"&&(n=Ce(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let t=Nr(`${e}`,`${n}`);return Bo(t)}else{let t=yl(`${e}`,kr(`${n}`),20);return Bo(t)}}function Bu(e,n=-1,o=!1,t=3,r=","){return hn(e,n,o,t,r)}function _o(e,n,o,t,r=!0){if(e==="")return"";if(e=Er(e),n=Ce(n),n==1)return e;if(t)e=qo(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(Ce(o)+2,"0"):e=yl(e,1,Ce(o)));else{let a=-1*n;e=qo(e,a)}return e}function jo(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let t=ce(n.minInclude),r=ll(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=ll(e,n.max);(t&&r==1||!t&&(r==0||r==1))&&(o.maxValid=!1)}return o}const zo={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 qu(e,n,o){return{props:{...$e,...De,...zo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.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],([S,D,j])=>{if(de(S)){w.value="";return}const U=_o(S,D,j,!1);w.value!==U&&(w.value=U)},{immediate:!0});const y=l.computed(()=>{let S="";return m.value&&(S=w.value),S}),{t:x}=Ae.useFoxI18n(n),f=l.computed(()=>{let S=t.placeholder??"";return!m.value&&!de(w.value)?S=Bu(w.value,t.decimalLength,t.autoPadding,t.digits,t.separator):S=x(["placeholder",S]),S}),d=e,P=l.computed(()=>({[d]:!0,[`${d}__disabled`]:i.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 S=g.value;return de(S)&&(S=t.errorTip??""),S}),B=l.ref(""),A=l.ref(!1),O=(S,D)=>{if(S=`${S}`,de(S)){w.value="",h.value="",D.forEach(j=>{c(j,"")}),ce(t.showTip)&&A.value&&(A.value=!1);return}if(S.length>=2){let j=S;if(j.charAt(0)=="-"&&(j=j.substring(1)),j.length>=2&&j.charAt(0)=="0"&&j.charAt(1)!="."){l.triggerRef(w);return}}if(S!="-"){if(!Mr(S)){l.triggerRef(w);return}if(t.integerLength!=-1&&Lr(S)>Number(t.integerLength)){l.triggerRef(w);return}if(t.decimalLength&&t.decimalLength!=-1&&Br(S)>Number(t.decimalLength)){l.triggerRef(w);return}let j=jo(S,t);if(j.maxValid===!1){g.value=j.message,l.triggerRef(w);return}}else if(t.min!=null&&Ce(t.min)>=0){l.triggerRef(w);return}B.value=S,ce(t.showTip)&&(A.value=S.length>0),w.value=S,h.value=_o(S,t.rates,t.precision,!0),D.forEach(j=>{c(j,h.value)})},k=S=>{O(S,["update:modelValue","input"])},p=S=>{O(S,["update:modelValue","change"])},_=S=>{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,S)},C=S=>{if(setTimeout(()=>{m.value=!1,ce(t.showTip)&&A.value===!0&&(A.value=!1)},0),!de(w.value)){let D=jo(w.value,t);if(D.minValid===!1||D.maxValid===!1){g.value=D.message;return}}c("update:modelValue",h.value,S),c("blur",h.value,S)},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:S=>{a.value=S},setReadonly:S=>{u.value=S}}),()=>{const D={...Qe(r.attrs),ref:b,class:P.value,type:"digit",maxlength:t.maxLength,placeholder:f.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:q,onInput:k,onChange:p,onFocus:_,onBlur:C},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(T.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={...Oe(t,zo),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:_u,create:ju,scope:zu}=ie("money-item"),Ll=ju(qu(_u,zu,Ne)),Ho={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 Hu(e,n,o){return{props:{...$e,...De,...Ho},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.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 C={...Qe(r.attrs),ref:p,class:f.value,placeholder:h.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.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(T.ElInputNumber,C,q);X.push(b);const S={default:()=>X};S.label=r.slots.default,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const j={...Oe(t,Ho),hintText:g.value,hintVisible:M.value};if(t.prop&&(j.prop=`${t.prop}_item`),r.slots.append)S.append=r.slots.append;else if(k.value){const J={class:d.value},L=l.h("div",J,[t.unit]);S.append=()=>L}return l.h(o,j,S)}}}}const{componentName:Ku,create:Wu,scope:Yu}=ie("input-number-item"),Bl=Wu(Hu(Ku,Yu,Ne));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 Uu(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Gu=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 Xu(){const e=l.getCurrentInstance();return new Gu(e.proxy)}function ml(e,n,o){const t=tt(e,n),r=tt(e,o);if(t!==r)return!1;const a=ht(e,n),i=ht(e,o);return a===i}function da(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 i=0;Array.isArray(a)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=da(e,u,o,t);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=tt(e,c)===u;else if(o==="item")s=ml(e,c,u);else{let m=ht(e,c);m==null&&(m=tt(e,c)),s=m===u}if(s){r.push(c),a=Uu(e,c);break}}if(!s)break}}return r}function Zu(e){return{text:e,value:e}}const Ko={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Qu(e,n,o){return{props:{...$e,...De,...Ko},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),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.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=da(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(!ml(t,le[ue],re[ue])){G=!1;break}}else ml(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=Xu(),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=>Zu(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),C=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"),S=l.ref(!1);const D=Y=>{let V=Y.target.value;k.value=!0,de(b.value)||(S.value=!0),c("focus",V,Y)},j=Y=>{setTimeout(()=>{S.value&&(S.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||S.value),F=l.computed(()=>J.value?x.value:b.value),R=l.ref(!1),$=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:C.value,props:q.value,clearable:t.clearable,placeholder:_.value||h.placeholder.value,disabled:i.value||s.value,options:d.value,modelValue:w.value,separator:t.separator,onClear:U,onChange:X,onFocus:D,onBlur:j,onVisibleChange:$,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(T.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={...Oe(t,Ko),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:Ju,create:ec,scope:tc}=ie("cascader-item"),ql=ec(Qu(Ju,tc,Ne)),Wo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function nc(e,n,o){return{props:{...$e,...De,...Wo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.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 C=p.target.value;w.value=!0,de(g.value)||(M.value=!0),c("focus",C,p)},A=p=>{setTimeout(()=>{M.value&&(M.value=!1),w.value=!1},0);let C=p.target.value;t.maxLength&&C.length>Number(t.maxLength)&&(C=C.slice(0,Number(t.maxLength))),c("blur",C,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:i.value,readonly:s.value,modelValue:y.value,onClear:O,onChange:P,onInput:d,onFocus:B,onBlur:A,onSelect:v},C={};r.slots.prepend&&(C.prepend=r.slots.prepend),r.slots.append&&(C.append=r.slots.append),r.slots.prefix&&(C.prefix=r.slots.prefix),r.slots.suffix&&(C.suffix=r.slots.suffix),r.slots.option&&(C.default=r.slots.option);const q=[],X=l.h(T.ElAutocomplete,_,C);q.push(X);const b={default:()=>q};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const D={...Oe(t,Wo),hintText:g.value,hintVisible:M.value};return t.prop&&(D.prop=`${t.prop}_item`),l.h(o,D,b)}}}}const{componentName:lc,create:oc,scope:rc}=ie("autocomplete-item"),_l=oc(nc(lc,rc,Ne));function ac(e,n,o,t,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let c=0;s&&c<a.length;c++){let m=a[c],h=s.find(w=>w[t]===m);if(!h)break;i.push(h[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<a.length;s++){let c=n[s],m=a[s];const h=c.find(w=>w[t]===m);if(!h)break;i.push(h[o])}else{let s=n;for(let c=0;s&&c<a.length;c++){let m=a[c],h=s.find(w=>w[t]===m);if(!h)break;i.push(h[o]),s=h[r]}}return i}let ic=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 sc(){const e=l.getCurrentInstance();return new ic(e.proxy)}const ha={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 uc(e,n){return{props:{...ha},setup(o,{attrs:t,slots:r}){const a=sc(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([s,c])=>{i.value=await a.load(o.sourceType,s,c)},{immediate:!0});const u=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return o.emptyText;let s=ac(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return s.length==0?o.emptyText??"":s.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${s[0]}`:s[0]:s.join(o.separator)});return()=>{const s={...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,s,{default:()=>u.value}):l.h(c,s,[u.value])}}}}const{create:cc}=ie("mapping"),Ft=cc(uc());function fc(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],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 dc(e,n){return{props:{...ha},setup(o,{attrs:t,slots:r}){return()=>{const a={default:i=>{const u=fc(i.row,i.column.property);return r.default?l.h(Ft,{...o,modelValue:u},{default:r.default}):l.h(Ft,{...o,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(T.ElTableColumn,{...t},a)}}}}const{create:hc}=ie("table-mapping-column"),jl=hc(dc()),mc=Symbol.for("TableStateKey");function Yo(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],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 gc(e,n){return{props:{},setup(o,{attrs:t}){const r=l.inject(mc,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=Yo(u.row,u.column.property),c=a?Yo(a,u.column.property):null,m=s===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(T.ElTableColumn,{...t},i)}}}}const{create:vc}=ie("table-radio-column"),zl=vc(gc()),pc={},yc={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 bc(e,n){return l.openBlock(),l.createElementBlock("svg",yc,[...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 xc=Ze(pc,[["render",bc]]),{create:wc}=ie("table-setting"),Sc={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:"不固定"}},Tc=wc({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:xc,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Sc},setup(e,{emit:n,attrs:o}){let t=[];const r=l.ref([]),a=l.computed(()=>r.value.filter($=>$.label===""||$.type?!1:$.fixed===""||$.fixed===!0||$.fixed==="left")),i=l.computed(()=>r.value.filter($=>$.label===""||$.type?!1:$.fixed==="right")),u=l.computed(()=>r.value.filter($=>!($.label===""||$.type||$.fixed!==void 0))),s=l.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=l.computed(()=>a.value.length>0),m=l.computed(()=>i.value.length>0),h=$=>$.length>1,w=($,H)=>{Array.isArray($)&&Array.isArray(H)&&$.forEach(Y=>{H.some(W=>W.prop===Y.prop?(Y.label=W.label,!0):!1)});const Z=[];r.value=$.map((Y,W)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&Z.push(Y.prop),{...Y,sortIndex:W})),u.value.length+a.value.length+i.value.length===Z.length?v.value=!0:Z.length>0&&(g.value=!0),A.value=Z},y=$=>$?$.type?$.type:$.label?$.prop:"":"",x=($,H)=>{if($.length!==H.length)return!1;const Z=$.map(ne=>y(ne));for(let ne of H){const Y=y(ne);if(Z.indexOf(Y)===-1)return!1}return!0},f=$=>{if(!$){const H=e.tableRef.getColumnSetting(),Z=H.srcColumnPropertyList;t=Z.map((ne,Y)=>({...ne,sortIndex:Y})),$=H.columnPropertyList,$&&$.length>0&&x(Z,$)||($=Z)}w($,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=$=>{const H=[];r.value.forEach(ne=>{$&&!(ne.label===""||ne.type)&&H.push(ne.prop),ne.visible=$}),v.value=!1,g.value=!1,u.value.length+a.value.length+i.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=$=>{r.value.forEach(Z=>{if(Z.label===""||Z.type)return;const ne=$.indexOf(Z.prop)!==-1;Z.visible=ne}),v.value=!1,g.value=!1;const H=u.value.length+a.value.length+i.value.length;$.length===H?v.value=!0:$.length>0&&(g.value=!0),d()},k=()=>{f()};l.onMounted(()=>{setTimeout(()=>{f()},50)});const p={currentRow:null,index:null,roleType:null},_=$=>$?$.dataset&&$.dataset.role==="row"?$:$.tagName.toLowerCase()!=="body"?($=$.parentElement,_($)):null:null,C=$=>{const H=$.currentTarget;H&&H.dataset&&(p.roleType=H.dataset.roleType,p.index=H.dataset.index)},q=$=>{p.currentRow&&(p.currentRow.classList.remove("is-dragover"),p.currentRow=null),p.index=null,p.roleType=null},X=$=>{const H=$.currentTarget;$.relatedTarget;const Z=_(H);if(!Z)return;const ne=Z.dataset&&Z.dataset.roleType;p.roleType===ne&&($.preventDefault(),p.currentRow&&p.currentRow!==Z&&p.currentRow.classList.remove("is-dragover"),Z.classList.add("is-dragover"),p.currentRow=Z)},b=$=>{$.preventDefault(),p.currentRow&&(p.currentRow.classList.remove("is-dragover"),p.currentRow=null)},S=$=>{const H=$.currentTarget,Z=_(H);if(!Z)return;const ne=Z.dataset&&Z.dataset.roleType;if(p.roleType!==ne)return;$.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=$=>{const H=r.value[$];H.fixed="left",d()},j=$=>{const H=r.value[$];H.fixed="right",d()},U=$=>{const H=r.value[$];H.fixed=void 0,d()},J=new Map;let L=null;function ee($){const H=document.createRange();return H.setStart($,0),H.setEnd($,$.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:m,isDraggble:h,isCheckAll:v,isIndeterminate:g,handleCheckAllChange:M,handleReset:B,checkedValue:A,handleCheckChange:O,onShow:k,onDragStart:C,onDragEnd:q,onDragOver:X,onDragLeave:b,onDrop:S,toLeftFixed:D,toRightFixed:j,toUnFixed:U,checkboxLabelStyle:P,onMouseOverForOverflowText:($,H,Z)=>{const ne=$.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;Re.hide(V)}V=Re.show(ne,Z,{type:"text",placement:"top",closeOnClick:!1}),V&&(J.set(H,V),L=V)}}},onMouseLeaveForOverflowText:($,H)=>{const Z=J.get(H);Z&&(Re.hide(Z),Z===L&&(L=null))},onMouseOverForTip:($,H)=>{const Z=$.currentTarget;Z&&(L&&Re.hide(L),L=Re.show(Z,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:$=>{L&&(Re.hide(L),L=null)}}}}),Cc={class:"fox-table-setting"},$c={class:"fox-table-setting__header"},Nc={class:"fox-table-setting__body"},kc={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Ec={key:0,class:"fox-table-setting__body-title"},Pc=["data-index","draggable"],Ic=["onMouseover","onMouseleave"],Oc={class:"tools-item"},Dc={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Vc={key:0,class:"fox-table-setting__body-title"},Rc=["data-index","draggable"],Fc=["onMouseover","onMouseleave"],Ac={class:"tools-item"},Mc={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Lc={key:0,class:"fox-table-setting__body-title"},Bc=["data-index","draggable"],qc=["onMouseover","onMouseleave"],_c={class:"tools-item"};function jc(e,n,o,t,r,a){const i=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),s=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",Cc,[l.createElementVNode("div",$c,[l.createVNode(i,{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",Nc,[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",kc,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Ec,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(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{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,Ic)]),_:2},1032,["value"]),l.createElementVNode("div",Oc,[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,Pc))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Dc,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Vc,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(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{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,Fc)]),_:2},1032,["value"]),l.createElementVNode("div",Ac,[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,Rc))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Mc,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Lc,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(s,{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,qc)]),_:2},1032,["label"]),l.createElementVNode("div",_c,[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,Bc))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Rn=Ze(Tc,[["render",jc]]);let zc=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a,i,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,i,u]);const s=ze(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Xe(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(s,null,[o,t,r,a,i,u]))}};function Hc(){const e=l.getCurrentInstance();return new zc(e.proxy)}class Kc{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 ma(){const e=l.getCurrentInstance();return new Kc(e.proxy)}const Wc=Symbol.for("TableStateKey"),Uo={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"}},Go={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:()=>"不固定"}},Yc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String},noMoreText:{type:String}};function Uc(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],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,n){return e.filter(t=>{for(let r in n){const a=n[r],i=Uc(t,r);if(a!==i)return!1}return!0})}function Gc(e,n,o){return{props:{...$e,...De,...Uo,...Go,...Yn,...Yc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(t,r){const{locale:a,toLocaleRefs:i}=Ae.useFoxI18n(n),u=i(t,["loadText","noMoreText"]),{emitEvent:s,broadcast:c}=ke({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&&(C=!0),!(!Array.isArray(te)&&nt(te,ae)&&nt(oe,se))&&(g?(P.value=0,O.value=!0,p.value=[],S()):P.value===1?X(te,P.value,v.value,oe):P.value=1))},{deep:!0});const B=te=>{P.value=te,s("page-index-change",te)},A=te=>{v.value=te,s("page-size-change",te)},O=l.ref(!0),k=l.ref(0),p=l.ref(),_=Hc();let C=!0;const q=Fe(l.computed(()=>t.appearLoad),"appearLoad",je.Near,te=>ce(te)),X=async(te,oe,ae,se,Ee)=>{C=!1;try{if(Ee===!0){if(!O.value)return!1;const pe=await _.load("table",te,oe,ae,se,C,a.value);return k.value=pe.totalSize,!pe.page||!Array.isArray(pe.page)||(Reflect.apply([].push,p.value,pe.page),setTimeout(()=>{s("loaded-data")},250),(p.value?.length??0)>=k.value)||pe.page.length<ae?(O.value=!1,!1):!0}else{const pe=await _.load("table",te,oe,ae,se,C,a.value);return k.value=pe.totalSize,p.value=pe.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(pe){console.error("[FoxUI] Load Table Data Fail",pe),k.value=0,p.value=[]}return!1};let b=!1;const S=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 S()):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 Ee=!1;for(let pe of se)if(pe.intersectionRatio>0){Ee=!0;break}Ee&&S()}),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(Wc,{currentRow:ee});const E=(te,oe)=>{ee.value=te,s("current-change",te,oe)},N=(te,oe,ae)=>{s("row-click",te,oe,ae),ce(t.rowClickSelectable)===!0&&we?.value.toggleRowSelection(te)},F=[],R=(te,oe)=>{if(s("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)}},$=r.attrs.id??t.prop??r.attrs.name,H=ma(),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($);te&&(Z.value=te)},z=()=>{H.save($,Z.value)},Q=()=>{H.remove($)};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 pe=se;if(!pe.props)return;const Ye=I(pe.props);ae.set(Ye,pe);const He={label:"",prop:""};G(He,pe.props),ne.push(He)}),Z.value.length===ne.length){const se=[];for(let Ee of Z.value){const pe=I(Ee),Ye=ae.get(pe);if(!Ye)return oe;if(Ee.visible===!1)continue;const He=Ye;He.props.fixed=Ee.fixed,se.push(He)}return se}return oe},le=l.shallowRef(new Map),re=({row:te,column:oe,rowIndex:ae,columnIndex:se})=>{const Ee=`${ae}_${oe.property}`,pe=`${ae}_${se}`;let Ye=le.value.get(Ee);return Ye||(Ye=le.value.get(pe)),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)},gt=()=>{ve(),le.value.clear(),l.triggerRef(le)},We=l.shallowRef(new Map),zt=({rowIndex:te})=>{const oe=`${te}`;return We.value.get(oe)??""},$a=te=>te?oe=>{const ae=[];let se=zt(oe);return se&&ae.push(se),se=typeof te=="function"?te(oe):te,se&&ae.push(se),ae.length===0?"":ae.join(" ")}:zt,Na=(te,oe)=>{const ae=`${te}`;oe?We.value.set(ae,oe):We.value.delete(ae),l.triggerRef(We)},ka=()=>{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=Un(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=Un(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=Un(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:gt,setRowClassName:Na,clearRowClassName:ka}),()=>{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":$a(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(Ie.Loading,{class:`${m}__infinite-icon`});Ue.push($t);const qn=l.h("span",{class:`${m}__infinite-text`},[u.loadText.value]);Ue.push(qn)}else{const $t=l.h("span",{class:`${m}__infinite-text`},[u.noMoreText.value]);Ue.push($t)}const ct={ref:L,class:`${m}__infinite`},Bn=l.h("div",ct,Ue);ae.append=()=>Bn}const se=l.h(T.ElTable,oe,ae),Ee=[];if(Ee.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(T.ElPagination,ct)}if(t.showSetting){const ct=[];Ue&&ct.push(Ue);const Bn=l.h(T.ElIcon,{class:w.value},{default:()=>l.h(Ie.Setting)}),$t=wt(t,Yn),qn=l.h(Rn,{...$t,tableRef:{getColumnSetting:Y,setColumnSetting:W,removeColumnSetting:Q}},{default:()=>Bn});ct.push(qn);const Ea=l.h("div",{class:y.value},ct);Ee.push(Ea)}else Ue&&Ee.push(Ue)}const pe={default:()=>Ee},He={...Oe(t,Uo,Go,Yn)};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,pe)}}}}const{componentName:Xc,create:Zc,scope:Qc}=ie("table-item"),Hl=Zc(Gc(Xc,Qc,Ne));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 Jc(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let ef=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 tf(){const e=l.getCurrentInstance();return new ef(e.proxy)}function ga(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),i=At(e,o);return a===i}function nf(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 i=!1;if(o==="text")i=Tt(e,a)===n;else if(o==="item")i=ga(e,a,n);else{let u=At(e,a);u==null&&(u=Tt(e,a)),i=u===n}if(i){r=a;break}}return r}function lf(e){return{text:e,value:e}}function of(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Xo={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,n,o){return{inheritAttrs:!0,props:{...$e,...De,...Xo},emits:["change","update:modelValue","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),m=l.ref(null),h=l.ref(null),w=(p,_,C,q=!0)=>{const X=nf(t,p,_,C);if(X===null){if(h.value===null)return;h.value=null,m.value=null,q&&(c("update:modelValue",null),c("change",null));return}if(!ga(t,X,h.value)){m.value=p;const S=l.toRaw(X);h.value=S;let D=null;t.valueType==="text"?D=Tt(t,S):t.valueType==="item"?D=S:D=At(t,S),q&&(c("update:modelValue",D),c("change",D))}},y=l.ref([]),x=Fe(l.computed(()=>t.appearLoad),"appearLoad",je.Near,p=>ce(p)),f=tf(),d=async(p,_)=>{if(p){const C=await f.load("radio",p,_);if(C.length>0)if(typeof C[0]=="string"){let b=C.map(S=>lf(S));y.value=b}else y.value=C}};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 C=[];return p.forEach((q,X)=>{const b=At(t,q),S=Tt(t,q);let D=Jc(t,q);i.value===!0&&(D=i.value),s.value===!0&&(D=s.value);const j=of(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"?C.push(l.h(T.ElRadioButton,J,{default:()=>[S]})):typeof _=="function"?C.push(l.h(T.ElRadio,J,{default:()=>_(q)})):C.push(l.h(T.ElRadio,J,{default:()=>[S]}))}),C};return Se({setDisabled:p=>{a.value=p},setReadonly:p=>{u.value=p}}),()=>{const _={...Qe(r.attrs),class:M.value,disabled:i.value||s.value,modelValue:m.value,"text-color":t.textColor,fill:t.fill,onChange:B},C=[],q={};r.slots.options?q.default=r.slots.options:q.default=()=>k(y.value,r.slots.text);const X=l.h(T.ElRadioGroup,_,q);C.push(X);const b={default:()=>C};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const D={...Oe(t,Xo),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:af,create:sf,scope:uf}=ie("radio-item"),Kl=sf(rf(af,uf,Ne));function Ct(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function xt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function cf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let ff=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 df(){const e=l.getCurrentInstance();return new ff(e.proxy)}function va(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=xt(e,n),i=xt(e,o);return a===i}function hf(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 i of t){let u=!1;if(o==="text")u=Ct(e,i)===a;else if(o==="item")u=va(e,i,a);else{let s=xt(e,i);s==null&&(s=Ct(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function mf(e){return{text:e,value:e}}function gf(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Zo={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 vf(e,n,o){return{inheritAttrs:!0,props:{...$e,...De,...Zo},emits:["change","update:modelValue","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),m=l.ref([]),h=l.ref([]),w=(p,_,C,q=!0)=>{const X=hf(t,p,_,C);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 S=0;S<X.length;S++){const D=X[S],j=h.value[S];if(!va(t,D,j)){b=!1;break}}if(!b){h.value=X;let S=[],D=[];X.forEach(U=>{S.push(xt(t,U)),t.valueType==="text"?D.push(Ct(t,U)):t.valueType==="item"?D.push(U):D.push(xt(t,U))}),m.value=S;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=df(),d=async(p,_)=>{if(p){const C=await f.load("checkbox",p,_);if(C.length>0)if(typeof C[0]=="string"){let b=C.map(S=>mf(S));y.value=b}else y.value=C}};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 C=[];return p.forEach((q,X)=>{const b=xt(t,q),S=Ct(t,q);let D=cf(t,q);i.value===!0&&(D=i.value),s.value===!0&&(D=s.value);const j=gf(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"?C.push(l.h(T.ElCheckboxButton,J,{default:()=>[S]})):typeof _=="function"?C.push(l.h(T.ElCheckbox,J,{default:()=>_(q)})):C.push(l.h(T.ElCheckbox,J,{default:()=>[S]}))}),C};return Se({setDisabled:p=>{a.value=p},setReadonly:p=>{u.value=p}}),()=>{const _={...Qe(r.attrs),class:M.value,disabled:i.value||s.value,modelValue:m.value,"text-color":t.textColor,fill:t.fill,max:Ce(t.max),min:Ce(t.min),onChange:B},C=[],q={};r.slots.options?q.default=r.slots.options:q.default=()=>k(y.value,r.slots.text);const X=l.h(T.ElCheckboxGroup,_,q);C.push(X);const b={default:()=>C};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const D={...Oe(t,Zo),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:pf,create:yf,scope:bf}=ie("checkbox-item"),Wl=yf(vf(pf,bf,Ne)),Qo={modelValue:{type:[Number,String],required:!1}};function xf(e,n,o){return{props:{...$e,...De,...Qo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),m=he(t,"modelValue",P=>Ce(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:s.value||i.value,modelValue:m.value,onChange:y},g={},M=[],B=l.h(T.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={...Oe(t,Qo),hintText:x.value,hintVisible:f.value};return t.prop&&(k.prop=`${t.prop}_item`),l.h(o,k,A)}}}}const{componentName:wf,create:Sf,scope:Tf}=ie("rate-item"),Yl=Sf(xf(wf,Tf,Ne)),Jo={modelValue:{type:[Boolean,String,Number],required:!1}};function Cf(e,n,o){return{props:{...$e,...De,...Jo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.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:s.value,disabled:i.value,modelValue:m.value,onChange:y},g={},M=[],B=l.h(T.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={...Oe(t,Jo),hintText:x.value,hintVisible:f.value};return t.prop&&(k.prop=`${t.prop}_item`),l.h(o,k,A)}}}}const{componentName:$f,create:Nf,scope:kf}=ie("switch-item"),Ul=Nf(Cf($f,kf,Ne)),er={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 Ef=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 i=ze(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(Xe(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await i(o,t,r))}};function Pf(){const e=l.getCurrentInstance();return new Ef(e.proxy)}const tr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function If(e,n,o){return{props:{...$e,...De,...tr,...er},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Me(l.computed(()=>u.value??t.readonly)),c=l.ref(!1),{emitEvent:m}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.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=Pf(),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 S=await O.load("treeselect",t.data,b,!0);X(S)});let _={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey};const C=l.ref();return Se({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},setDisabled:q=>{a.value=q},setReadonly:q=>{u.value=q}}),()=>{const X={...Qe(r.attrs),ref:C,class:y.value,disabled:i.value||s.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 S=[],D=l.h(T.ElTreeSelect,X,b);S.push(D);const j={default:()=>S};j.label=r.slots.default,j.fixedPreTip=r.slots.fixedPreTip,j.fixedTip=r.slots.fixedTip;const J={...Oe(t,tr,er),hintText:f.value,hintVisible:d.value};return t.prop&&(J.prop=`${t.prop}_item`),l.h(o,J,j)}}}}const{componentName:Of,create:Df,scope:Vf}=ie("tree-select-item"),Gl=Df(If(Of,Vf,Ne)),Rf={},Ff={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 Af(e,n){return l.openBlock(),l.createElementBlock("svg",Ff,[...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 Mf=Ze(Rf,[["render",Af]]),{create:Lf}=ie("group-setting"),Bf={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:"到底部"}},qf=Lf({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:Mf,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Bf},emits:["change"],setup(e,{emit:n,attrs:o,expose:t}){let r=null;const a=l.ref([]),i=ma(),u=E=>E.length>1,s=()=>{const E=[],N=[...a.value];a.value=N.map((R,$)=>(R.visible!==!1&&E.push(R.prop),{...R,sortIndex:$})),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 $=R.querySelector(".label--string");let H="";$&&(H=$.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 i.load(e.groupProp),F=R=>{if(!R||!r)return;const $=r.map(H=>({...H}));Array.isArray(N)&&N.forEach(H=>{$.some(Z=>{if(Z.prop===H.prop){const ne=Z.label;return Object.assign(Z,H),Z.label=ne,!0}return!1})}),a.value=$.sort((H,Z)=>H.sortIndex-Z.sortIndex),s(),E&&y(!1)};r?F(!0):pn(m,e.initDelay,5,50,!1,F)},w=()=>{const E=r??[];a.value=E.map(N=>({...N})),s(),y()},y=(E=!0)=>{E&&i.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)},C=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),$=Number(F.dataset.index);if(R!==$){if(R<$){const H=a.value[R];a.value.splice(R,1),a.value.splice($,0,H)}else{const H=a.value[R];a.value.splice(R,1),a.value.splice($+1,0,H)}s(),y()}},X=E=>{const N=a.value[E];a.value.splice(E,1),a.value.splice(0,0,N),s(),y()},b=E=>{const N=a.value[E];a.value.splice(E,1),a.value.push(N),s(),y()};t({refresh:()=>{r=null,h(!1)}});const S=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:C,onDrop:q,checkboxLabelStyle:x,toTop:X,toBottom:b,onMouseOverForOverflowText:(E,N,F)=>{const R=E.currentTarget;if(R){const $=Math.floor(R.offsetWidth);if(Math.floor(j(R))>$){let Z=S.get(N);if(Z){if(Z===D)return;Re.hide(Z)}Z=Re.show(R,F,{type:"text",placement:"top",closeOnClick:!1}),S.set(N,Z),D=Z}}},onMouseLeaveForOverflowText:(E,N)=>{const F=S.get(N);F&&(Re.hide(F),F===D&&(D=null))},onMouseOverForTip:(E,N)=>{const F=E.currentTarget;F&&(D&&Re.hide(D),D=Re.show(F,N,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:E=>{D&&(Re.hide(D),D=null)}}}}),_f={class:"fox-group-setting"},jf={class:"fox-group-setting__header"},zf={class:"fox-group-setting__body"},Hf={class:"fox-group-setting__body-list","data-role":"container"},Kf=["data-index","draggable"],Wf=["onMouseover","onMouseleave"],Yf={class:"tools-item"};function Uf(e,n,o,t,r,a){const i=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),s=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",_f,[l.createElementVNode("div",jf,[l.createVNode(i,{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",zf,[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",Hf,[(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(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{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,Wf)]),_:2},1032,["label"]),l.createElementVNode("div",Yf,[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,Kf))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Xl=Ze(qf,[["render",Uf]]),Gf={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 Xf=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 i=ze(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(Xe(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await i(o,t,r))}};function Zf(){const e=l.getCurrentInstance();return new Xf(e.proxy)}function Qf(e,n,o){return{props:{...dl,...Gf},setup(t,r){const a=e,i=l.computed(()=>({[a]:!0})),u=l.ref([]),s=Zf(),c=async(g,M)=>{try{const B=await s.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 s.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:i.value,lazy:t.lazy,props:x,ref:C=>P.value=C};y?M.load=y:M.data=u.value,M["filter-node-method"]=d;const B=[],A=l.h(T.ElTree,M,r.slots);B.push(A);const O={default:()=>B},p={...wt(t,dl)};return l.h(o,p,O)}}}}const{componentName:Jf,create:ed,scope:td}=ie("tree-item"),Zl=ed(Qf(Jf,td,In)),nd=["aria-labelledby"],ld=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),od=[ld],rd=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=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.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"},od,14,nd))}}),ad=["aria-labelledby"],id=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),sd=[id],ud=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=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.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,ad))}}),cd=["aria-labelledby"],fd=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),dd=[fd],Ql=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=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.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"},dd,14,cd))}}),hd=["aria-labelledby"],md=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),gd=[md],vd=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=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.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"},gd,14,hd))}}),pd=["aria-labelledby"],yd=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),bd=[yd],xd=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=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.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"},bd,14,pd))}}),wd=["aria-labelledby"],Sd=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),Td=[Sd],Cd=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=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.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"},Td,14,wd))}}),gl={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}},nr=(e,n)=>n[e.textKey],Et=(e,n)=>n[e.valueKey],$d=(e,n)=>n[e.visibleKey],lr=(e,n)=>n[e.disabledKey],Nd=(e,n)=>{const o=n[e.doitKey];return ce(o)},kd=(e,n)=>{const o=n[e.numKey];return o==null?null:Ce(n[o])},or=(e,n,o)=>{const t=e.itemOptions;return typeof t=="function"?t(n,o):t||null};function Ed(e,n,o,t=!1){return{props:{...gl},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=l.computed(()=>{const E={};return E[`${e}`]=!0,E}),s=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 $=R[E];let H=0;r.direction==="vertical"?H=$.offsetTop-(F.offsetHeight-$.offsetHeight)/2:H=$.offsetLeft-(F.offsetWidth-$.offsetWidth)/2,O(F,H,N?0:.3,r.direction)},O=(E,N,F,R)=>{let $=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,++$<Z&&bl(ne)}ne()},k=(E,N)=>{const F=Et(r,E),R={};return R[`${e}__titles-item`]=!0,R.disabled=lr(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}`,C=(E,N)=>{const F=Et(r,E),R={};R[`${e}__popup-item`]=!0,R.disabled=lr(r,E),R.active=F===h.value,r.shape&&(R[`${r.shape}`]=!0);const $=or(r,E,N);return $&&$.disabled===!0&&(R.disabled=$.disabled),R},q=l.computed(()=>(r.data??[]).filter(N=>$d(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),i("update:modelValue",F),i("change",E,N)};if(typeof r.beforeChange=="function"){const $=r.beforeChange(E,N);Ir($)?$.then(H=>{H!==!1&&R()}).catch(()=>{R()}):$!==!1&&R()}else R()},b=(E,N)=>function(){X(E,N)},S=(E,N)=>{X(E,N),P(!1)},D=(E,N)=>function(){S(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=or(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||Nd(r,E)){const z={class:[`${e}__titles-item-tip`,"doit"]},Q=l.h("view",z);ne.push(Q)}const Y=F?.num??kd(r,E);if(Y){let z="";const Q=Ce(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(nr(r,E));const V=l.h("view",W,ne);R.push(V)}const $={class:`${e}__titles-item-line`},H=l.h("view",$);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],$=U(R,F);E.push($)}const N={ref:v,class:s.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 $=null;a.popupItem?$=a.popupItem({item:R,index:F}):$=nr(r,R);const H={class:C(R,F),key:_(R,F),onClick:D(R,F)},Z=l.h("view",H,[$]);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 $=ee();E.push($)}const F={class:u.value};return l.h("view",F,E)}}}}const{create:Pd,componentName:Id,scope:Od}=ie("tabs-bar"),Fn=Pd(Ed(Id,Od,ud,!1)),pa=Symbol("TabsStatesKey"),vl={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]}},rr=10;function ya(e,n){return e>n&&e>rr?"horizontal":n>e&&n>rr?"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:""},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:(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=ya(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:n,isHorizontal:o,state:e}}function Dd(){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),i=l.ref(0),u=l.ref(0),s=l.ref(0),c=l.ref(0),m=l.ref(""),h=()=>m.value==="vertical",w=()=>m.value==="horizontal",y=()=>{i.value=0,u.value=0,s.value=0,c.value=0,m.value="",o.value=0};return{move:(d=>{if(d.touches){const g=d.touches[0];i.value=g.clientX-e.value,u.value=g.clientY-n.value,r.value=g.clientX,a.value=g.clientY}else{const v=d;i.value=v.clientX-e.value,u.value=v.clientY-n.value,r.value=v.clientX,a.value=v.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),t.value=Date.now()-o.value,m.value||(m.value=ya(s.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:i,deltaY:u,offsetX:s,offsetY:c,direction:m,isVertical:h,isHorizontal:w}}const Vd=15,Rd=300,Fd=200;function Ad(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function ar(e,n=0,o,t,r=Fd){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 Md=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=_t()}open(n){this.el=n;const o=jt(),t=(r,a,i)=>{const u={delta:r,direction:a,type:i};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<Rd&&Math.abs(r)>Vd?(r=Ad(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 Ld(e,n,o,t=1){return new Md(e,n,o,t)}function Bd(e,n,o=!1){return{props:{...vl},emits:["update:modelValue","change"],setup(t,{emit:r,slots:a}){const i=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),i.value.push(k),l.triggerRef(i)},remove:O=>{const k=i.value.findIndex(p=>p.name===O);k!==-1&&i.value.splice(k,1)},isLoaded:O=>{if(!t.lazy)return!0;const k=i.value.findIndex(p=>p.name===O);return k!==-1?u.current.value?i.value[k].loaded??!1:k===0:!1}};l.provide(pa,u);const s=O=>{const k=i.value.findIndex(p=>p.name===O);k!==-1&&(i.value[k].loaded=!0,l.triggerRef(i))};l.watch([()=>t.modelValue,()=>t.direction],([O,k])=>{u.current.value!==O&&(u.current.value=O??"",s(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=ye(t.width);k&&(O.width=k)}if(t.height){const k=ye(t.height);k&&(O.height=k)}return O});let y=!0;const x=l.computed(()=>{const O={},k=i.value.length;if(k<=0)return O;const p=i.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=i.value.length,p=i.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")ar(k,p,"move",O.direction,300);else if(O.type==="end"){let _=Math.floor(Math.abs(p)*1/f.itemDistance);const C=Math.abs(p)%f.itemDistance;f.start>p?C>=f.itemDistance*f.triggerAutoMoveRatio&&(_+=1):C>f.itemDistance-f.itemDistance*f.triggerAutoMoveRatio&&(_+=1),p=-1*_*f.itemDistance,ar(k,p,"end",O.direction,300),f.moved=p;const q=i.value[_].name;u.current.value=q??"",s(q??""),r("update:modelValue",q)}},v=()=>{},g=()=>{if(!c.value)return;const O=Sn(c.value);u.tabWidth.value=O.width,u.tabHeight.value=O.height},M=Wr(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=Ld(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:qd,componentName:_d,scope:jd}=ie("tabs-container"),An=qd(Bd(_d,jd,!1)),zd={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 Hd(e,n,o){return{props:{...zd},setup(t,{emit:r,slots:a}){const i=l.inject(pa);l.onMounted(()=>{i.add(t.paneKey)}),l.onBeforeUnmount(()=>{i.remove(t.paneKey)});const u=l.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=l.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`},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:Kd,componentName:Wd,scope:Yd}=ie("tabs-pane"),Jl=Kd(Hd(Wd,Yd,Ql));function Ud(e,n,o,t){return{props:{...gl,...vl,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:i}){const u=e,s=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=ye(r.width);d&&(f.width=d)}if(r.height){const d=ye(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=i.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 i)k!=="default"&&(P[k]=i[k]);const v=wt(r,gl);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,vl);Object.assign(B,{class:h.value,modelValue:w.value,onChange:y,"onUpdate:modelValue":x});const A=l.h(t,B,M),O={class:s.value,style:c.value};return l.h("view",O,[g,A])}}}}const{create:Gd,componentName:Xd,scope:Zd}=ie("tabs-frame"),eo=Gd(Ud(Xd,Zd,Fn,An)),Qd={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Jd(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ir(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function sr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function eh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Gn(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function ur(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function cr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Xn(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class th{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 nh(){const e=l.getCurrentInstance();return new th(e.proxy)}function lh(e,n,o,t){return{props:{...Qd},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=nh(),c=l.ref([]),m=l.computed(()=>c.value.filter(N=>eh(r,N)!==!1)),h=l.ref(-1),w=()=>{const N=r.modelValue,F=m.value.findIndex(R=>ir(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],$=(Xn(r,F,N)??{}).status??Gn(r,F);return y(N)||$},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,$,H)=>{const Z={[`${u}__step`]:!0};return H&&(Z[`${H}`]=!0),Z[`${v.value}`]=!0,$&&(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(()=>{if(r.mode==="simple")return"start";let N=r.align;return N||(r.direction==="vertical"?N="start":N="center"),N}),g=(N,F={})=>{const R={...F};return v.value==="start"&&N===m.value.length-1?R.flex="0 0 auto":r.step?r.direction==="vertical"?R.height=r.step:R.width=r.step:R.flex="1 1 100%",R},M=(N,F)=>{let R={};if(F<m.value.length-1){const $=F+1;x(F)&&x($)?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,$=F;h.value=F,r.scroll&&ee(F);const H=ir(r,N);i("update:modelValue",H);const Z={fromIndex:R,currentIndex:$,item:N,items:m.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,Z)},O=l.ref(!0),k=async(N,F)=>{try{const R=await s.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(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([N,F])=>{N&&k(N,F)},{immediate:!0});const p=(N,F,R,$,H)=>{let Z=null;if(a.icon)Z=a.icon({item:N,index:F,status:$});else if($==="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 $=l.h("i",{class:"fox-steps-bar__line-inner",style:M(N,F)});return l.h("view",{class:"fox-steps-bar__line"},[$])},C=()=>{let N=null;if(a.markIcon)N=a.markIcon();else{const R={};r.iconSize&&(R.width=r.markIconSize,R.height=r.markIconSize);const $=r.markIcon??t;N=l.h($,R)}return l.h("view",{class:"fox-steps-bar__mark"},[N])},q=(N,F,R,$,H)=>{const Z=[];if(!B(F)){const W=_(N,F);Z.push(W)}const ne=p(N,F,R,$,H);Z.push(ne);const Y={class:"fox-steps-bar__head"};return l.h("view",Y,Z)},X=(N,F,R,$)=>{let H=null;a.main?H=a.main({item:N,index:F,status:R}):H=Jd(r,N);const Z={class:"fox-steps-bar__main",onClick:()=>{$||A(N,F)}};return l.h("view",Z,[H])},b=(N,F,R)=>{let $=null;if(a.sub){$=a.sub({item:N,index:F,status:R});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[$])}return null},S=(N,F)=>{const R=Xn(r,N,F)??{},$=R.status??Gn(r,N);let H=sr(r,N);R.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Z=R.label??cr(r,N),ne=[],Y=p(N,F,Z,$,H);Y&&ne.push(Y);const W=X(N,F,$,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=ur(r,N);R.doit===!0&&(I=!0);const G={ref:L(F),class:P(F,$,H,I,z),style:g(F,Q)};return l.h("view",G,[V])},D=(N,F)=>{const R=Xn(r,N,F)??{},$=R.status??Gn(r,N);let H=sr(r,N);R.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Z=R.label??cr(r,N),ne=[],Y=r.layout;for(let I of Y)if(I==="head"){const G=q(N,F,Z,$,H);ne.push(G)}else if(I==="main"){const G=X(N,F,$,H);ne.push(G)}else if(I==="sub"){const G=b(N,F,$);ne.push(G)}else if(I==="mark"){const G=C();ne.push(G)}const W=R.class,V=R.style??{};let z=ur(r,N);R.doit===!0&&(z=!0);const Q={ref:L(F),class:P(F,$,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,$=U.value;if(!R||!$||!$[N])return;const H=$[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,$)=>{let H=0;const Z=$==="horizontal"?N.scrollLeft:N.scrollTop,ne=Math.round(R*1e3/16);function Y(){$==="horizontal"?N.scrollLeft+=(F-Z)/ne:N.scrollTop+=(F-Z)/ne,++H<ne&&bl(Y)}Y()};return()=>{const N=[];if(r.mode==="simple")for(let R=0;R<m.value.length;R++){const $=m.value[R],H=S($,R);N.push(H)}else for(let R=0;R<m.value.length;R++){const $=m.value[R],H=D($,R);N.push(H)}const F={ref:j,class:f.value,style:d.value};return l.h("view",F,N)}}}}const{componentName:oh,create:rh,scope:ah}=ie("steps-bar"),to=rh(lh(oh,ah,xd,Cd)),ih=Symbol.for("PageWrapperKey");function sh(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){Tl(!0);const r={};l.provide(ih,r);const a=c=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),u=c=>{i.value=c},s=l.computed(()=>{const c={};return o.height&&(c["--fox-dialog-item-body-height"]=ye(o.height)),c});return()=>{const m={...t.attrs,style:s.value,title:o.title,draggable:o.draggable,modelValue:i.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(T.ElDialog,m,w)}}}}const{create:uh}=ie("dialog-item"),no=uh(sh());let Pt=0;const fr="fox-overflow-hidden",dr=()=>it?document.body:{classList:[]},ch=e=>[()=>{if(e())try{!Pt&&dr().classList.add(fr),Pt++}catch{}},()=>{if(e()&&Pt)try{Pt--,!Pt&&dr().classList.remove(fr)}catch{}}],fh={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:dh,create:hh}=ie("overlay"),mh=hh({props:{...fh},emits:["click","update:visible"],setup(e,{emit:n}){const[o,t]=ch(()=>e.lockScroll),r=l.computed(()=>({[dh]:!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 gh(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((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const Mn=Ze(mh,[["render",gh]]),vh={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:{}}},ba=2e3;let hr=ba;const ph=(e,n)=>({components:n,props:{...vh},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})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{o.zIndex!==ba&&(hr=Number(o.zIndex)),t("update:visible",!0),r.zIndex=++hr,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?s():c()}),l.watch(()=>o.closeable,f=>{r.closed=f}),{...l.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:m,onClickCloseIcon:h,onClickOverlay:w,onOpened:y,onClosed:x}}}),{componentName:yh,create:bh}=ie("popup"),xh=bh(ph(yh,{FoxOverLay:Mn,Close:vd}));function wh(e,n,o,t,r,a){const i=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(i,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]=(...s)=>e.onClick&&e.onClick(...s))},[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]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),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 lo=Ze(xh,[["render",wh]]),{create:Sh}=ie("toast"),Th=Sh({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},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),l.watch(()=>e.duration,y=>{y&&i()});const s=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":s.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:s,toastBodyClass:m,toastIconWrapperClass:h,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Ch={key:1,class:"fox-toast-title"},$h=["innerHTML"];function Nh(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]=(...i)=>e.clickCover&&e.clickCover(...i))},[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",Ch,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,$h)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const oo=Ze(Th,[["render",Nh]]),kh={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"}},Eh=(e,n,o)=>({props:{...kh},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}=Gr(),{toLocaleRefs:i}=Ae.useFoxI18n(n),u=i(t,["placeholder"]),s=l.reactive({active:!1}),c=l.computed(()=>({background:t.background})),m=l.computed(()=>({background:t.inputBackground})),h=p=>{let C=p.target.value;t.maxLength&&C.length>Number(t.maxLength)&&(C=C.slice(0,Number(t.maxLength))),a("update:modelValue",C,p),a("change",C,p)},w=l.ref({}),y=p=>{let C=p.target.value;s.active=!0,w.value=t.focusStyle,a("focus",C,p)},x=p=>{setTimeout(()=>{s.active=!1},0);let C=p.target.value;t.maxLength&&C.length>Number(t.maxLength)&&(C=C.slice(0,Number(t.maxLength))),w.value={},a("blur",C,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},S=l.h("view",b,[r.leftin()]);p.push(S)}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},C=l.h("input",_);p.push(C);const q=[];if(t.clearable){const b={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:P.value,onClick:f},S=r?.clear?.()??t.clearIcon??o,D=l.h("view",b,[l.h(S)]);q.push(D)}if(r.rightin){const b={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},S=l.h("view",b,[r.rightin()]);q.push(S)}if(q.length>0){const b={class:`${e}__input-inner-right`},S=l.h("view",b,q);p.push(S)}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 C={class:`${e}`,style:c.value};return l.h("view",C,p)}}}),{componentName:Ph,create:Ih,scope:Oh}=ie("searchbar"),ro=Ih(Eh(Ph,Oh,Ie.CircleClose)),Dh=/scroll|auto|overlay/i,xa=window;function Vh(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Rh(e,n=xa){let o=e;for(;o&&o!==n&&Vh(o);){const{overflowY:t}=window.getComputedStyle(o);if(Dh.test(t))return o;o=o.parentNode}return n}function wa(e,n=xa){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Rh(e.value,n))}),o}const Sa=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Fh={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 Ah(e,n,o){return{props:{...Fh},emits:["scroll-change","load-more","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=Ae.useFoxI18n(n),u=i(t,["pullText","loadText","noMoreText"]),s=l.ref(),c=wa(s),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=Sa();s.value&&(v=w(s.value)+s.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=()=>{Cr(()=>{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 C=a?.loadingIcon?.()??null;if(!C){const b={class:["fox-infinite__bottom-box__img"]};C=l.h(o,b)}const q={class:"fox-infinite__bottom-box__text"},X=l.h("view",q,[u.loadText.value]);k=[C,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:s};return l.h("view",O,[g,A])}}}}const{componentName:Mh,create:Lh,scope:Bh}=ie("infinite-loading"),ao=Lh(Ah(Mh,Bh,Ql)),qh={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}},_h=(e,n,o)=>({props:{...qh},emits:["change","refresh","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=Ae.useFoxI18n(n),u=i(t,["pullingText","loosingText","loadingText"]),s=jt(),c=l.ref(),m=wa(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=ye(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?Sa()==0:m.value&&m.value.scrollTop==0,M=O=>{v()&&(g()?(s.start(O),h.isPullRefresh=!0,h.moving=!0):(h.distance=0,h.isPullRefresh=!1))},B=O=>{v()&&h.moving&&(s.move(O),s.isVertical()&&s.state.deltaY>0&&h.isPullRefresh&&(O.cancelable&&O.preventDefault(),P(d(s.state.deltaY))))},A=()=>{h.moving=!1,h.isPullRefresh&&v()&&s.state.deltaY&&(h.status==="loosing"?(P(+t.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):P(0)),setTimeout(()=>{s.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 C={class:["fox-pull-refresh-container-topbox"],style:f.value},q=l.h("div",C,O),X={class:"fox-pull-refresh-container",style:x.value},b=l.h("div",X,[q,a?.default?.()]),S={ref:c,class:w.value};return _t()?Object.assign(S,{onTouchstart:M,onTouchmove:B,onTouchend:A}):Object.assign(S,{onMousedown:M,onMousemove:B,onMouseup:A}),l.h("div",S,[b])}}}),{componentName:jh,create:zh,scope:Hh}=ie("pull-refresh"),io=zh(_h(jh,Hh,Ql)),Kh={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 Wh(e,n,o){return{props:{...Kh},emits:["click","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=Ae.useFoxI18n(n),u=i(t,["collapseText","expandText"]),s=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:s.value,onClick:y},x)}}}}const{componentName:Yh,create:Uh,scope:Gh}=ie("more-button"),so=Uh(Wh(Yh,Gh,Ie.ArrowUp));function Xh(e){e.stopPropagation()}let Zh=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=_t()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=jt(),t=(r,a,i,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),Xh(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 Qh(e,n){return new Zh(e,n)}const Jh={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]}},em=(e,n,o,t=!1)=>({props:{...Jh},emits:["click"],setup(r,{slots:a,emit:i}){const u=l.reactive({top:r.top,right:r.right,bottom:r.bottom,left:r.left}),s=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=()=>{i("click")},w=l.ref(null),y=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},x={x:0,y:0},P=Qh(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:s.value,style:c.value,onClick:h};return l.h("view",M,v)}}}),{componentName:tm,create:nm,scope:lm}=ie("floating-button"),uo=nm(em(tm,lm,rd,!1)),Ve=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ft=e=>e==null;class om{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=_t()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=jt(),t=(r,a,i,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 mr(e,n){return new om(e,n)}const gr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let pt=[];const vr=e=>{const n=e;n.key==="Escape"&&pt.forEach(o=>o(n))},rm=e=>{l.onMounted(()=>{pt.length===0&&document.addEventListener("keydown",vr),gr&&pt.push(e)}),l.onBeforeUnmount(()=>{pt=pt.filter(n=>n!==e),pt.length===0&&gr&&document.removeEventListener("keydown",vr)})},Zn="fox-focus-trap.focus-after-trapped",Qn="fox-focus-trap.focus-after-released",am="fox-focus-trap.focusout-prevented",pr={cancelable:!0,bubbles:!1},im={cancelable:!0,bubbles:!1},yr="foxFocusAfterTrapped",br="foxFocusAfterReleased",sm=Symbol("foxFocusTrap"),co=l.ref(),Ln=l.ref(0),fo=l.ref(0);let Yt=0;const Ta=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},um=(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},xr=(e,n)=>{for(const o of e)if(!um(o,n))return o},cm=e=>{const n=Ta(e),o=xr(n,e),t=xr(n.reverse(),e);return[o,t]},fm=e=>e instanceof HTMLInputElement&&"select"in e,ot=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),fo.value=window.performance.now(),e!==o&&fm(e)&&n&&e.select()}};function wr(e,n){const o=[...e],t=e.indexOf(n);return t!==-1&&o.splice(t,1),o}const dm=()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=wr(e,t),e.unshift(t)},remove:t=>{e=wr(e,t),e[0]?.resume?.()}}},hm=(e,n=!1)=>{const o=document.activeElement;for(const t of e)if(ot(t,n),document.activeElement!==o)return},Sr=dm(),mm=()=>Ln.value>fo.value,Ut=()=>{co.value="pointer",Ln.value=window.performance.now()},Tr=()=>{co.value="keyboard",Ln.value=window.performance.now()},gm=()=>(l.onMounted(()=>{Yt===0&&(document.addEventListener("mousedown",Ut),document.addEventListener("touchstart",Ut),document.addEventListener("keydown",Tr)),Yt++}),l.onBeforeUnmount(()=>{Yt--,Yt<=0&&(document.removeEventListener("mousedown",Ut),document.removeEventListener("touchstart",Ut),document.removeEventListener("keydown",Tr))}),{focusReason:co,lastUserFocusTimestamp:Ln,lastAutomatedFocusTimestamp:fo}),Gt=e=>new CustomEvent(am,{...im,detail:e}),{create:vm}=ie("focus-trap"),pm={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"}},ym=vm({props:pm,emits:[yr,br,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const t=l.ref();let r,a;const{focusReason:i}=gm();rm(f=>{ce(e.trapped)&&!u.paused&&o("release-requested",f)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=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,[_,C]=cm(p);if(_&&C){if(!B&&k===C){const X=Gt({focusReason:i.value});o("focusout-prevented",X),X.defaultPrevented||(f.preventDefault(),A&&ot(_,!0))}else if(B&&[_,p].includes(k)){const X=Gt({focusReason:i.value});o("focusout-prevented",X),X.defaultPrevented||(f.preventDefault(),A&&ot(C,!0))}}else if(k===p){const X=Gt({focusReason:i.value});o("focusout-prevented",X),X.defaultPrevented||f.preventDefault()}}};l.provide(sm,{focusTrapRef:t,onKeydown:s}),l.watch(()=>e.focusTrapEl,f=>{f&&(t.value=f)},{immediate:!0}),l.watch([t],([f],[d])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",h),f.addEventListener("focusout",w)),d&&(d.removeEventListener("keydown",s),d.removeEventListener("focusin",h),d.removeEventListener("focusout",w))});const c=f=>{o(yr,f)},m=f=>o(br,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=Gt({focusReason:i.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){Sr.push(u);const d=f.contains(document.activeElement)?r:document.activeElement;if(r=d,!f.contains(d)){const v=new Event(Zn,pr);f.addEventListener(Zn,c),f.dispatchEvent(v),v.defaultPrevented||l.nextTick(()=>{let g=e.focusStartEl;Pr(g)||(ot(g),document.activeElement!==g&&(g="first")),g==="first"&&hm(Ta(f),!0),(document.activeElement===d||g==="container")&&ot(f)})}}}function x(){const f=l.unref(t);if(f){f.removeEventListener(Zn,c);const d=new CustomEvent(Qn,{...pr,detail:{focusReason:i.value}});f.addEventListener(Qn,m),f.dispatchEvent(d),!d.defaultPrevented&&(i.value=="keyboard"||!mm())&&ot(r??document.body,!0),f.removeEventListener(Qn,c),Sr.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":s}):null}}),{componentName:bm,create:xm}=ie("floating-window"),wm=Symbol.for("InnerPageScopeKey"),Sm=Symbol.for("PageWrapperKey"),Tm={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}},Cm=xm({inheritAttrs:!1,components:{FoxIcon:T.ElIcon,FocusTrap:ym},props:{...Tm},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=bm,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),i=l.ref(e.left),u=l.ref(e.top),s=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(i.value)?I.left="auto":I.left=Ve(i.value),ft(u.value)?I.top="auto":I.top=Ve(u.value),ft(s.value)?I.right="auto":I.right=Ve(s.value),ft(c.value)?I.bottom="auto":I.bottom=Ve(c.value),ft(e.zIndex)||(I["z-index"]=Ve(e.zIndex)),ft(A.value)||(I.height=A.value),ft(O.value)||(I.width=O.value),I}),w=l.computed(()=>e.closeIcon??Ie.Close),y=l.computed(()=>e.collapseIcon??Ie.ArrowUp),x=l.computed(()=>e.collapseText??""),f=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.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(()=>Ve(e.height)||""),O=l.computed(()=>Ve(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 _=()=>{C()},C=I=>{I=I??!k.value,p(I)};l.provide(wm,!0);const q={setCollapse:p,setFixedNavVisible:I=>{L.value=I}};l.provide(Sm,q);const X=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{t.value=!1}):t.value=!1},b=l.ref(null),S=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=()=>{i.value=null,u.value=null,s.value=null,c.value=null},$={x:0,y:0},ne=mr(I=>{if(!g.value)return;const G=g.value;if(R(),e.origin==="left-top")i.value=G.offsetLeft,u.value=G.offsetTop,$.x=i.value,$.y=u.value;else if(e.origin==="left-bottom"){const K=document.documentElement.clientHeight||document.body.clientHeight;i.value=G.offsetLeft,c.value=K-(G.offsetTop+G.offsetHeight),$.x=i.value,$.y=c.value}else if(e.origin==="right-bottom"){const K=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=K-(G.offsetLeft+G.offsetWidth),c.value=le-(G.offsetTop+G.offsetHeight),$.x=s.value,$.y=c.value}else{const K=document.documentElement.clientWidth||document.body.clientWidth;s.value=K-(G.offsetLeft+G.offsetWidth),u.value=G.offsetTop,$.x=s.value,$.y=u.value}},I=>{if(!g.value)return;const G=g.value;R(),e.origin==="left-top"?(i.value=$.x+I.x,u.value=$.y+I.y,G.style.left=Ve(i.value),G.style.top=Ve(u.value)):e.origin==="left-bottom"?(i.value=$.x+I.x,c.value=$.y-I.y,G.style.left=Ve(i.value),G.style.bottom=Ve(c.value)):e.origin==="right-bottom"?(s.value=$.x-I.x,c.value=$.y-I.y,G.style.right=Ve(s.value),G.style.bottom=Ve(c.value)):(s.value=$.x-I.x,u.value=$.y+I.y,G.style.right=Ve(s.value),G.style.top=Ve(u.value))}),Y={x:0,y:0},z=mr(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:S}}}),$m={ref:"headerRef",class:"fox-floating-window__header"},Nm={class:"fox-floating-window__title"},km={class:"fox-floating-window__tools"},Em={class:"fox-floating-window__body"},Pm={class:"fox-floating-window__fixednav__text"};function Im(e,n,o,t,r,a){const i=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",$m,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",Nm,l.toDisplayString(e.title),1),l.createElementVNode("div",km,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{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(i,{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",Em,[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]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",Pm,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ho=Ze(Cm,[["render",Im]]);function Om(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})),i=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),s=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:i.value,style:u.value};m=l.h(o.icon??"div",f)}const h={class:s.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:Dm,create:Vm}=ie("indicator"),mo=Vm(Om(Dm));function Rm(e){return e===window}const Ca=e=>{const n=l.unref(e);if(Rm(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:Fm,create:Am}=ie("tour"),Mm=Am({components:{Close:Ie.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:n}){const o=Fm,t=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=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)},s=x=>x.popoverWidth??e.width,c=x=>x.location??e.location,m=()=>{const x=document.querySelector(`${e.steps[t.active].target}`),f=Ca(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:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:h,handleClickMask:w}}}),Lm={key:0,class:"fox-tour__content"},Bm={key:0,class:"fox-tour__content-top"},qm={class:"fox-tour__content-inner"},_m={class:"fox-tour__content-bottom"},jm={class:"fox-tour__content-bottom-init"},zm={class:"fox-tour__content-bottom-operate"},Hm={key:1,class:"fox-tour__content fox-tour__content-tile"},Km={class:"fox-tour__content-inner"};function Wm(e,n,o,t,r,a){const i=l.resolveComponent("Close"),u=l.resolveComponent("fox-button"),s=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(s,{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",Lm,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Bm,[l.createElementVNode("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",qm,l.toDisplayString(c.content),1),l.createElementVNode("div",_m,[l.createElementVNode("div",jm,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",zm,[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",Hm,[l.createElementVNode("div",Km,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const go=Ze(Mm,[["render",Wm]]);function Ym(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 Yr(o.name,()=>o.config),_e(o.innerPageScope)||Tl(o.innerPageScope),_e(o.abstractPageScope)||Zr(o.abstractPageScope),()=>typeof t.default=="function"?t.default():null}}}const{create:Um}=ie("domain-provider"),vo=Um(Ym()),Gm={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 Xm(e,n){return{inheritAttrs:!1,props:Gm,emits:["change"],setup(o,{slots:t,emit:r}){if(it&&window.IntersectionObserver){const a=new WeakMap;let i=new Map;const u=(y,x)=>{if(h===null){i.set(y,{visible:null,callback:x});return}a.has(y)&&h.unobserve(y),a.set(y,{visible:null,callback:x}),h.observe(y)},s=y=>{if(h===null){i.delete(y);return}a.has(y)&&(a.delete(y),h.unobserve(y))};let c=o.initialVisibleObserverSize;Ri({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:s});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}),i.forEach((d,P)=>{a.set(P,d),h?.observe(P)}),i.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:Zm}=ie("rolling-provider"),po=Zm(Xm()),Qm=[$l,kl,El,Pl,Il,Ne,In,On,Dl,qt,Vl,Rl,Fl,Al,Ml,Ll,Bl,ql,_l,jl,zl,Rn,Hl,Kl,Wl,Yl,Ul,Gl,Xl,Zl,Fn,An,Jl,eo,to,no,Mn,lo,oo,ro,ao,io,so,uo,ho,Vn,Ft,Pn,mo,Dn,go,vo,po],Jm=new hi(Qm,[vi],"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=Cl;exports.AutocompleteItem=_l;exports.Broadcast=xl;exports.BroadcastKey=xe;exports.ButtonsItem=Dl;exports.CascaderItem=ql;exports.CheckboxItem=Wl;exports.Content=Pl;exports.DataItemsKey=vt;exports.DateItem=Fl;exports.DateUtils=qe;exports.DialogItem=no;exports.Domain=yn;exports.DomainKey=Be;exports.DomainProvider=vo;exports.FloatingButton=uo;exports.FloatingWindow=ho;exports.FooterBar=El;exports.FoxAutocompleteItem=_l;exports.FoxButtonsItem=Dl;exports.FoxCascaderItem=ql;exports.FoxCheckboxItem=Wl;exports.FoxContent=Pl;exports.FoxDateItem=Fl;exports.FoxDialogItem=no;exports.FoxDomainProvider=vo;exports.FoxFloatingButton=uo;exports.FoxFloatingWindow=ho;exports.FoxFooterBar=El;exports.FoxGroup=Il;exports.FoxGroupSetting=Xl;exports.FoxHeaderBar=kl;exports.FoxHintText=qt;exports.FoxIndicator=mo;exports.FoxInfiniteLoading=ao;exports.FoxInputItem=Vl;exports.FoxInputNumberItem=Bl;exports.FoxItem=Ne;exports.FoxMapping=Ft;exports.FoxMoneyItem=Ll;exports.FoxMoreButton=so;exports.FoxOverLay=Mn;exports.FoxPage=$l;exports.FoxPopoverDialog=Vn;exports.FoxPopup=lo;exports.FoxPrice=Pn;exports.FoxPullRefresh=io;exports.FoxRadioItem=Kl;exports.FoxRateItem=Yl;exports.FoxRollingProvider=po;exports.FoxRowItem=On;exports.FoxSearchBar=ro;exports.FoxSelectItem=Rl;exports.FoxSlotItem=In;exports.FoxStepsBar=to;exports.FoxSwitchItem=Ul;exports.FoxTableItem=Hl;exports.FoxTableMappingColumn=jl;exports.FoxTableRadioColumn=zl;exports.FoxTableSetting=Rn;exports.FoxTabsBar=Fn;exports.FoxTabsContainer=An;exports.FoxTabsFrame=eo;exports.FoxTabsPane=Jl;exports.FoxText=Dn;exports.FoxTimeItem=Al;exports.FoxTimeSelectItem=Ml;exports.FoxToast=oo;exports.FoxTour=go;exports.FoxTreeItem=Zl;exports.FoxTreeSelectItem=Gl;exports.Group=Il;exports.GroupSetting=Xl;exports.HeaderBar=kl;exports.HintText=qt;exports.Indicator=mo;exports.InfiniteLoading=ao;exports.InnerPageScopeKey=Sl;exports.InputItem=Vl;exports.InputNumberItem=Bl;exports.Item=Ne;exports.Mapping=Ft;exports.MoneyItem=Ll;exports.MoreButton=so;exports.OverLay=Mn;exports.Page=$l;exports.PopoverDialog=Vn;exports.Popup=lo;exports.Price=Pn;exports.PriorityPolicy=je;exports.PullRefresh=io;exports.RadioItem=Kl;exports.RateItem=Yl;exports.RollingProvider=po;exports.RowItem=On;exports.SearchBar=ro;exports.SelectItem=Rl;exports.SlotItem=In;exports.StepsBar=to;exports.SwitchItem=Ul;exports.TableItem=Hl;exports.TableMappingColumn=jl;exports.TableRadioColumn=zl;exports.TableSetting=Rn;exports.TabsBar=Fn;exports.TabsContainer=An;exports.TabsFrame=eo;exports.TabsPane=Jl;exports.Text=Dn;exports.TimeItem=Al;exports.TimeSelectItem=Ml;exports.Toast=oo;exports.Tour=go;exports.TreeItem=Zl;exports.TreeSelectItem=Gl;exports.UniqueID=sa;exports.ValidateSchema=Hr;exports.ValidateSchemaKey=Ge;exports.cancelRaf=Oa;exports.clearNonNumber=za;exports.clone=al;exports.compareTo=ll;exports.createBroadcast=gn;exports.createValidateSchema=vn;exports.debounce=Ke;exports.debounceRef=ni;exports.decimalLength=Br;exports.default=Jm;exports.defineBroadcast=Ya;exports.defineConfigDomain=Yr;exports.defineDataItem=Ur;exports.defineDomain=wl;exports.defineItem=ke;exports.definePageState=Xr;exports.defineSimpleItem=Gr;exports.deleteGlobalValidator=Qa;exports.disabledProperty=Le;exports.divide=yl;exports.excludeProps=Oe;exports.extend=mt;exports.floatData=Wa;exports.getGlobalIcons=oa;exports.getGlobalValidateCheckEvents=_r;exports.getGlobalValidateResetEvents=zr;exports.getPageContentAreaHeight=un;exports.getPageContentAreaWidth=cn;exports.getPageFooterAreaHeight=wn;exports.getPageHeaderAreaHeight=xn;exports.getRootDomain=yt;exports.hasSymbol=Dr;exports.includeProps=wt;exports.indexOf=Ha;exports.injectAbstractPageScope=Bt;exports.injectInnerPageScope=Lt;exports.integerLength=Lr;exports.isArray=Va;exports.isArrayLike=Fr;exports.isBrowser=it;exports.isDate=Aa;exports.isESModule=La;exports.isEmptyString=de;exports.isEqual=nt;exports.isFunction=ol;exports.isHidden=Rr;exports.isMap=Ra;exports.isNil=_e;exports.isNumberString=Mr;exports.isObject=Xe;exports.isPlainObject=rl;exports.isPromise=Ir;exports.isRegExp=il;exports.isSet=Fa;exports.isString=Pr;exports.isSubPage=ai;exports.isSymbol=Ma;exports.isTouch=_t;exports.isWindow=Vr;exports.lastIndexOf=Ka;exports.makeArray=ja;exports.merge=Ar;exports.multiply=Nr;exports.negate=kr;exports.nextTick=qa;exports.numberFormat=hn;exports.objectToString=Or;exports.once=li;exports.overrideGlobalIcons=wi;exports.overrideGlobalValidateHandler=Xa;exports.property=Fe;exports.provideAbstractPageScope=Zr;exports.provideInnerPageScope=Tl;exports.raf=bl;exports.readonlyProperty=Me;exports.setGlobalValidateCheckEvents=Ja;exports.setGlobalValidateHandler=Ga;exports.setGlobalValidateMessages=ti;exports.setGlobalValidateResetEvents=ei;exports.setGlobalValidator=Za;exports.throttle=Wr;exports.toBoolean=ce;exports.toNumber=Ce;exports.toPadding=Je;exports.toPx=ge;exports.toPxDesc=ri;exports.toPxString=ye;exports.toTypeString=mn;exports.toValue=he;exports.tryTimes=pn;exports.typeOf=an;exports.unNumberFormat=Er;exports.updatePageState=sl;exports.useBroadcast=It;exports.useDomain=st;exports.useExpose=Se;exports.useInnerSize=Sn;exports.usePageState=bn;exports.usePosition=Ol;exports.useRawTouch=jt;exports.useRect=Ca;exports.useSize=Nl;exports.useTouch=Dd;exports.valueLength=Mt;