@fox-js/foxui-pad 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
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var si=Object.create,Xr=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,ci=Object.getOwnPropertyNames,di=Object.getPrototypeOf,fi=Object.prototype.hasOwnProperty,it=(e,l)=>()=>(l||e((l={exports:{}}).exports,l),l.exports),mi=(e,l,a,n)=>{if(l&&typeof l=="object"||typeof l=="function")for(var r=ci(l),o=0,s=r.length,u;o<s;o++)u=r[o],!fi.call(e,u)&&u!==a&&Xr(e,u,{get:(i=>l[i]).bind(null,u),enumerable:!(n=ui(l,u))||n.enumerable});return e},st=(e,l,a)=>(a=e!=null?si(di(e)):{},mi(l||!e||!e.__esModule?Xr(a,"default",{value:e,enumerable:!0}):a,e));let t=require("vue"),vt=require("@fox-js/validator"),B=require("element-plus"),$e=require("@element-plus/icons-vue"),Se=require("@fox-js/i18n");var al=window,hi=typeof window<"u";function pi(){return typeof al<"u"?al.requestAnimationFrame||al.webkitRequestAnimationFrame||function(e){al.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function gi(e){hi?cancelAnimationFrame(e):clearTimeout(e)}var Vn=pi();function hl(e,l="0"){let a=0,n=-1;e[0]=="-"&&(a++,n=1,e=e.substring(1),e.length),l[0]=="-"&&(a++,n=2,l=l.substring(1),l.length),e=He(e),l=He(l),[e,l]=Bn(He(e),He(l)),a==1&&(n==1?e=Ql(e):l=Ql(l));let r=Zr(e,l);return a?a==2?"-"+He(r):e.length<r.length?He(r.substring(1)):"-"+He(Ql(r)):He(r)}function Ql(e){let l="",a=e.length,n=e.split(".")[1],r=n?n.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?l+=9-parseInt(e[s]):l+=e[s];let o=r>0?"0."+new Array(r).join("0")+"1":"1";return Zr(l,o)}function He(e){let l=e.split(".");for(l[0]||(l[0]="0");l[0][0]=="0"&&l[0].length>1;)l[0]=l[0].substring(1);return l[0]+(l[1]?"."+l[1]:"")}function Bn(e,l){let a=e.split("."),n=l.split("."),r=a[0].length,o=n[0].length;return r>o?n[0]=new Array(Math.abs(r-o)+1).join("0")+(n[0]?n[0]:""):a[0]=new Array(Math.abs(r-o)+1).join("0")+(a[0]?a[0]:""),r=a[1]?a[1].length:0,o=n[1]?n[1].length:0,(r||o)&&(r>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-o)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(r-o)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),l=n[0]+(n[1]?"."+n[1]:""),[e,l]}function Zr(e,l){[e,l]=Bn(e,l);let a="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){a="."+a;continue}let o=parseInt(e[r])+parseInt(l[r])+n;a=o%10+a,n=Math.floor(o/10)}return n?n.toString()+a:a}var Be=(function(e){return 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})({});function jt(e,l=0,a=Be.HALF_EVEN){if(a===Be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),o=r[0],s=r[1];if(l<0){if(l=-l,o.length<=l)return"0";{let i=o.substr(0,o.length-l);return e=i+"."+o.substr(o.length-l)+s,i=jt(e,0,a),(n?"-":"")+i+new Array(l+1).join("0")}}if(l==0)return o.length,Ha(r[1],o,n,a)?(n?"-":"")+en(o):(n?"-":"")+o;if(r[1]){if(r[1].length<l)return(n?"-":"")+o+"."+r[1]+new Array(l-r[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(l+1).join("0");s=r[1].substring(0,l);let u=r[1].substring(l);return u&&Ha(u,s,n,a)&&(s=en(s),s.length>l)?(n?"-":"")+en(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function Ha(e,l,a,n){if(!e||e===new Array(e.length+1).join("0")||n===Be.DOWN||!a&&n===Be.FLOOR||a&&n===Be.CEILING)return!1;if(n===Be.UP||a&&n===Be.FLOOR||!a&&n===Be.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case Be.HALF_DOWN:return!1;case Be.HALF_UP:return!0;case Be.HALF_EVEN:default:return parseInt(l[l.length-1])%2==1}}function en(e,l=0){l||(l=1),typeof e=="number"&&e.toString();let a=e.length-1,n="";for(let r=a;r>=0;r--){let o=parseInt(e[r])+l;o==10?(l=1,o=0):l=0,n+=o}return l&&(n+=l),n.split("").reverse().join("")}function mn(e,l){e=e.toString(),l=l.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),l[0]=="-"&&(a++,l=l.substr(1)),e=It(e),l=It(l);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),l.indexOf(".")!=-1&&(r=l.length-l.indexOf(".")-1);let o=n+r;if(e=It(e.replace(".","")),l=It(l.replace(".","")),e.length<l.length){let f=e;e=l,l=f}if(l=="0")return"0";let s=l.length,u=0,i=[],d=s-1,m="";for(let f=0;f<s;f++)i[f]=e.length-1;for(let f=0;f<2*e.length;f++){let g=0;for(let b=l.length-1;b>=d&&b>=0;b--)i[b]>-1&&i[b]<e.length&&(g+=parseInt(e[i[b]--])*parseInt(l[b]));g+=u,u=Math.floor(g/10),m=g%10+m,d--}return m=It(vi(m,o)),a==1&&(m="-"+m),m}function vi(e,l){return l==0?e:(e=l>=e.length?new Array(l-e.length+1).join("0")+e:e,e.substr(0,e.length-l)+"."+e.substr(e.length-l,l))}function It(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 hn(e,l,a=8){if(l==0)throw new Error("Cannot divide by 0");if(e=e.toString(),l=l.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),l=l.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;l[0]=="-"&&(l=l.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=l.indexOf(".")>0?l.length-l.indexOf(".")-1:-1;if(l=He(l.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=He(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=He(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let m=e.length-d+r;e=He(e.substring(0,m)+"."+e.substring(m))}else r==d&&(e=He(e.replace(".","")))}let o=0,s=l.length,u="",i=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),i.indexOf(".")>-1){let d=i.length-i.indexOf(".")-1;i=i.replace(".",""),s>i.length&&(d+=s-i.length,i=i+new Array(s-i.length+1).join("0")),o=d,u="0."+new Array(d).join("0")}for(a=a+2;o<=a;){let d=0;for(;parseInt(i)>=parseInt(l);)i=hl(i,"-"+l),d++;u+=d,e?(e[0]=="."&&(u+=".",o++,e=e.substring(1)),i=i+e.substring(0,1),e=e.substring(1)):(o||(u+="."),o++,i=i+"0")}return(n==1?"-":"")+He(jt(u,a-2))}function pn(e,l){return e=e.toString(),l=l.toString(),l=gn(l),hl(e,l)}function gn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function qa(e,l){if(l==0)throw new Error("Cannot divide by 0");e=e.toString(),l=l.toString(),ja(e),ja(l);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),l[0]=="-"&&(l=l.substr(1));let n=pn(e,mn(l,jt(hn(e,l),0,Be.FLOOR)));return a+n}function ja(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ka(e,l){let a=!1;if(e[0]=="-"&&l[0]!="-")return-1;if(e[0]!="-"&&l[0]=="-")return 1;if(e[0]=="-"&&l[0]=="-"&&(e=e.substr(1),l=l.substr(1),a=!0),[e,l]=Bn(e,l),e.localeCompare(l)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=l[n])return e[n]>l[n]?a?-1:1:a?1:-1;return 0}var Gt=class pe{value;static RoundingModes=Be;static validate(l){if(l){if(l=l.toString(),isNaN(l))throw Error("Parameter is not a number: "+l);l[0]=="+"&&(l=l.substring(1))}else l="0";if(l.startsWith(".")?l="0"+l:l.startsWith("-.")&&(l="-0"+l.substr(1)),/e/i.test(l)){let[a,n]=l.split(/[eE]/);a=He(a);let r="";a[0]=="-"&&(r="-",a=a.substring(1)),a.indexOf(".")>=0?(n=parseInt(n)+a.indexOf("."),a=a.replace(".","")):n=parseInt(n)+a.length,a.length<n?l=r+a+new Array(n-a.length+1).join("0"):a.length>=n&&n>0?l=r+He(a.substring(0,n))+(a.length>n?"."+a.substring(n):""):l=r+"0."+new Array(-n+1).join("0")+a}return l}constructor(l="0"){this.value=pe.validate(l)}getValue(){return this.value}static getPrettyValue(l,a,n){if(!(a||n))a=3,n=",";else if(!(a&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");l=pe.validate(l);let r=l.charAt(0)=="-";r&&(l=l.substring(1));var o=l.indexOf(".");o=o>0?o:l.length;for(var s="",u=o;u>0;)u<a?(a=u,u=0):u-=a,s=l.substring(u,u+a)+(u<o-a&&u>=0?n:"")+s;return(r?"-":"")+s+l.substring(o)}getPrettyValue(l,a){return pe.getPrettyValue(this.value,l,a)}static round(l,a=0,n=Be.HALF_EVEN){if(l=pe.validate(l),isNaN(a))throw Error("Precision is not a number: "+a);return jt(l,a,n)}round(l=0,a=Be.HALF_EVEN){if(isNaN(l))throw Error("Precision is not a number: "+l);return new pe(jt(this.value,l,a))}static floor(l){return l=pe.validate(l),l.indexOf(".")===-1?l:pe.round(l,0,Be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Be.FLOOR)}static ceil(l){return l=pe.validate(l),l.indexOf(".")===-1?l:pe.round(l,0,Be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Be.CEILING)}static add(l,a){return l=pe.validate(l),a=pe.validate(a),hl(l,a)}add(l){return new pe(hl(this.value,l.getValue()))}static subtract(l,a){return l=pe.validate(l),a=pe.validate(a),pn(l,a)}subtract(l){return new pe(pn(this.value,l.getValue()))}static multiply(l,a){return l=pe.validate(l),a=pe.validate(a),mn(l,a)}multiply(l){return new pe(mn(this.value,l.getValue()))}static divide(l,a,n){return l=pe.validate(l),a=pe.validate(a),hn(l,a,n)}divide(l,a){return new pe(hn(this.value,l.getValue(),a))}static modulus(l,a){return l=pe.validate(l),a=pe.validate(a),qa(l,a)}modulus(l){return new pe(qa(this.value,l.getValue()))}static compareTo(l,a){return l=pe.validate(l),a=pe.validate(a),Ka(l,a)}compareTo(l){return Ka(this.value,l.getValue())}static negate(l){return l=pe.validate(l),gn(l)}negate(){return new pe(gn(this.value))}};function Jr(e,l){return Gt.multiply(`${e}`,`${l}`)}function Dn(e,l,a=8){return Gt.divide(`${e}`,`${l}`,a)}var Y5=Gt.RoundingModes;function vn(e,l){return e=`${e}`,l=`${l}`,Gt.compareTo(e,l)}function Qr(e){return Gt.negate(e)}function xl(e,l=-1,a=!1,n=3,r=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let u=o,i="",d=o.indexOf(".");d!=-1&&(u=o.substring(0,d),i=o.substring(d+1)),l!=-1&&(l<i.length?i=i.substring(0,l):a&&l>i.length&&(i=i.padEnd(l,"0")));let m;if(n>0){let f="",g=u.split("").reverse();for(let b=0;b<g.length;b++)f+=g[b]+((b+1)%n==0&&b+1!=g.length?r:"");i.length==0?m=`${s}${f.split("").reverse().join("")}`:m=`${s}${f.split("").reverse().join("")}.${i}`}else i.length==0?m=`${s}${u}`:m=`${s}${u}.${i}`;return m}function eo(e){let l=`${e}`,a=l.charAt(0);a=="-"?l=l.substring(1):a="";let n=l.replace(/[^\d\.-]/g,"");return`${a}${n}`}var Mn=Vn,yi=Array.isArray,bi=e=>Cl(e)==="[object Map]",wi=e=>Cl(e)==="[object Set]",ft=e=>e instanceof Date,yn=e=>typeof e=="function",to=e=>typeof e=="string",Si=e=>typeof e=="symbol",Ke=e=>e!==null&&typeof e=="object",pl=e=>Ke(e)&&yn(e.then)&&yn(e.catch),lo=Object.prototype.toString,Cl=e=>lo.call(e),xi=e=>Cl(e)==="[object Object]",no=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ci(e){return e.__esModule||no&&e[Symbol.toStringTag]==="Module"}var Ni=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function _t(...e){let l=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,n=e.length,r=!1;for(typeof l=="boolean"&&(r=l,l=e[a]??{},a++),typeof l!="object"&&(l={});a<n;a++)if(e[a]!==null&&e[a]!==void 0){let o=e[a];for(let s in o){let u=l[s],i=o[s];if(u!==i)if(r===!0&&i&&typeof i=="object"){let d;Array.isArray(i)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},l[s]=_t(r,d,i)}else i!==void 0&&(l[s]=i)}}return l}var tn=Ni?Promise.resolve():null;function ki(e,...l){tn!==null?l&&l.length>0?tn.then(()=>{e(l)}):tn.then(e):l&&l.length>0?setTimeout(()=>{e(l)}):setTimeout(e)}function de(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ve(e){return typeof e=="number"?e:Number(e)}var zi={"[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 gl(e){let l=Object.prototype.toString.call(e);return e==null?String(e):zi[l]||"object"}function ao(e){if(!e||e.nodeType!==1)return!0;let l=e;for(;l;){if(l.hidden)return!0;const a=window.getComputedStyle(l);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;l=l.parentElement}return!1}function In(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let l=e.parentElement;for(;l;){if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function ro(e){return e&&typeof e=="object"&&"setInterval"in e}function oo(e){let l=!!e&&"length"in e&&e.length,a=gl(e);return a==="function"||ro(e)?!1:a==="array"||l===0||typeof l=="number"&&l>0&&l-1 in e}function io(e,l){let a=+l.length,n=0,r=e.length;for(;n<a;n++)e[r++]=l[n];return e.length=r,e}function Ti(e,l=[]){let a=l;return e!=null&&(oo(Object(e))?io(a,typeof e=="string"?[e]:e):a.push(e)),a}function Ue(e,l){if(e==l)return!0;if(e===void 0||l===void 0)return!1;let a=gl(e);if(a!==gl(l))return!1;if(a==="object"){let n=Object.keys(e),r=Object.keys(l);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){let s=n[o],u=e[s],i=l[s];if(!Ue(u,i))return!1}return!0}else if(a==="array"){if(e.length!==l.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],o=l[n];if(!Ue(r,o))return!1}return!0}return!1}var ht=typeof window<"u";function We(e){return e==null}function bn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var fe=e=>e==null||typeof e!="string"?!1:e.length===0;function An(e){return fe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),fe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function so(e){if(e==null)return 0;let l=`${e}`;if(l.length==0)return 0;l.charAt(0)=="-"&&(l=l.substring(1)),l=l.replace(/[^\d\.-]/g,"");const a=l.indexOf(".");return a==-1?l.length:a}function uo(e){if(e==null)return 0;const l=`${e}`;if(l.length==0)return 0;const a=l.indexOf(".");return a==-1?0:l.length-(a+1)}function Ya(e,l,a){const n=e.indexOf(l);return n===-1?e:l==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(a,"")}function Ei(e,l=!0,a=!0){l?e=Ya(e,".",/\./g):e=e.replace(/\./g,""),a?e=Ya(e,"-",/-/g):e=e.replace(/-/,"");const n=l?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function _i(e,l){return typeof e=="object"||Array.isArray(e)?l.findIndex(a=>{if(Ue(e,a))return!0}):l.indexOf(e)}function $i(e,l){if(typeof e=="object"||Array.isArray(e)){let a=l.reverse().findIndex(n=>{if(Ue(e,n))return!0});return a!==-1&&(a=l.length-1-a),a}return l.lastIndexOf(e)}function Je(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function lt(e,...l){const a={};return l.forEach(n=>{for(const r in n)a[r]=e[r]}),a}function Me(e,...l){const a=[];l.forEach(r=>{Reflect.apply([].push,a,Reflect.ownKeys(r))});const n={};for(const r in e)a.includes(r)||(n[r]=e[r]);return n}var Vi=(e,l,a)=>{const n=Object.assign({},e),r=Object.assign({},a);return Object.keys(l).length>0?(Object.keys(n).forEach(o=>{r.hasOwnProperty(o)?typeof r[o]=="string"&&(n[o]=l[r[o]]):l[o]&&(n[o]=l[o])}),n):e};function Bi(e,l){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),l&&e.stopPropagation()}var Di=(e,l=2)=>{for(e+="";e.length<l;)e="0"+e;return e.toString()},Mi=(e,l,a)=>Math.min(Math.max(e,l),a);function Kt(e){return e.split("-").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join("")}function co(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var _e=Symbol.for("BroadcastKey"),Ln=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,l,a){this.parent=e,this.proxy=l,this.name=a,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const l=this.children.findIndex(a=>e===a);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(e,l,a){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const n=e.uniqueId,r={matched:e,action:l,args:a};return this.persistantMessages.set(n,r),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(l=>{e.push(l)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,l){if(!l||l.messagingPolicy==="Once"&&l.resolved===!0)return!1;let a=!1;return!l.name||l.name==="*"||l.name==="+"||bn(l.name)&&e&&l.name.test(e)?a=!0:typeof l.name=="function"?a=Reflect.apply(l.name,null,[e]):l.name===e&&(a=!0),a}trigger(e,l,a){let n=null;const r=this.callbacks.get(l);typeof r=="function"&&(n=Reflect.apply(r,this.proxy,[...a]));const o=this.proxy??{};typeof o[l]=="function"&&(n=Reflect.apply(o[l],o,[...a])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(n)}pull(){let e=this.parent;for(;e;){const l=e.getPersistantMessages();Array.isArray(l)&&l.length>0&&l.forEach(a=>{if(this.isMatched(this.name,a.matched))try{this.trigger(a.matched,a.action,a.args)}catch(n){console.error(n)}}),e=e.parent}}emit(e,l,...a){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,l,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,l,a)){const o=e.resolve,s=e.uniqueId??"",u=(...i)=>{this.deletePersistantMessage(s),typeof o=="function"&&o(...i)};e.resolve=u}e.cachePolicy="None"}let n=!1;!e.name||e.name==="*"?n=!0:e.name==="+"?(n=!1,e.name="*"):bn(e.name)&&this.name&&e.name.test(this.name)?n=!0:typeof e.name=="function"?n=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(n=!0);const r=[];if(n){const o=this.callbacks.get(l);if(typeof o=="function"){const u=Reflect.apply(o,this.proxy,[...a]);u!=null&&r.push(u)}const s=this.proxy??{};if(typeof s[l]=="function"){const u=Reflect.apply(s[l],s,[...a]);u!=null&&r.push(u)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...r),e.messagingPolicy==="Once")return r}return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...e},l,...a]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}emitToChildren(e,l,...a){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,l,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,l,a)){const r=e.resolve,o=e.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(o),typeof r=="function"&&r(...u)};e.resolve=s}e.cachePolicy="None"}const n=[];return this.children.forEach(r=>{const o=Reflect.apply(r.emit,r,[{...e},l,...a]);o!=null&&Array.isArray(o)&&Reflect.apply([].push,n,[...o])}),n}on(e,l){this.callbacks.set(e,l)}};function Nl(e,l,a,n){const r=new Ln(l,e,a);if(n&&typeof n=="object")for(const o in n)r.on(o,n[o]);return r}function Ii(e,l,a){const n=a;if(n[_e])return n[_e];const r=new Ln((0,t.inject)(_e,null),a,e);if(l&&typeof l=="object")for(const o in l)r.on(o,l[o]);return n[_e]=r,(0,t.provide)(_e,r),(0,t.onUnmounted)(()=>{r.destroy(),n[_e]=void 0}),r}function Rt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[_e]??(0,t.inject)(_e,null):(0,t.inject)(_e,null)}var Ai=class{error(e,l){const a=l,n=l||(0,t.hasInjectionContext)()?Rt(l):null;n?n.emit({name:"*"},"setErrorTip",e):typeof a.setErrorTip=="function"&&a.setErrorTip(e)}reset(e){const l=e,a=e||(0,t.hasInjectionContext)()?Rt(e):null;a?a.emit({name:"*"},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(e){const l=e,a=e||(0,t.hasInjectionContext)()?Rt(e):null;a?a.emit({name:"*"},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(e,l,a){Array.isArray(e)||(e=[e]);const n=a,r=a||(0,t.hasInjectionContext)()?Rt(a):null,o=l.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=e.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!o&&s?r?r.emit({name:"*"},"setRequired",!0):typeof n.setRequired=="function"&&n.setRequired(!0):o&&!s&&(r?r.emit({name:"*"},"setRequired",!1):typeof n.setRequired=="function"&&n.setRequired(!1),this.reset(a))}getValue(e){return e.modelValue}},Ot=new Ai;function Li(e){Ot=e}function Pi(e){Ot?Object.assign(Ot,e):Ot=e}function Fi(e,l){vt.Schema.setValidator(e,l)}function Ri(e){vt.Schema.deleteValidator(e)}var fo=["blur","clear"];function Oi(e){fo=e}function mo(){return fo}var ho=["focus","change","setValue"];function Hi(e){ho=e}function po(){return ho}function qi(e){vt.Schema.messages(e)}function At(...e){const l=[];return e.forEach(a=>{a.forEach(n=>{const r=l.findIndex(o=>o.type===n.type);r!==-1&&l.splice(r,1),l.push(n)})}),l}function rl(e){return e.forEach(l=>{l.type==="required"&&(l.required===null||l.required===void 0)&&(l.required=!0),!l.type&&(l.required===!0||l.required===!1)&&(l.type="required")}),e}var Ze=Symbol("ValidateSchemaKey"),go=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,l,a){this.parent=e,this.descriptor=l,this.proxy=a,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let e=this.proxy.$attrs;e&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const l=rl(At(this.attrRules,this.rules)),a=[];for(let r in e){let o=e[r];if(this.hasValidator(r,!0)){if(o===!1)continue;let u={type:r};o!==null&&typeof o=="object"&&Object.assign(u,o),a.push(u);continue}let s=this.getValidator(r);if(s!==null){let u={type:r,validator:s};a.push(u)}}this.attrRules=rl(a);const n=At(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(n,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...l){const a=this.descriptor.validateHandler;if(a&&typeof a[e]=="function")return Reflect.apply(a[e],a,[...l]);const n=Ot;return n&&typeof n[e]=="function"?Reflect.apply(n[e],n,[...l]):null}decorate(e,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(e,l,a=!1){a?vt.Schema.setValidator(e,l):this.validators[e]=l}getValidator(e){let l=this.validators[e]??null;return l||(l=this.parent?.getValidator(e)??null),l}deleteValidator(e,l=!1){l?vt.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,l=!1){if(l)return vt.Schema.hasValidator(e);{let a=Reflect.has(this.validators,e);return!a&&this.parent!==null&&(a=this.parent.hasValidator(e,!1)),a}}setRule(e){const l=At(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=rl(e):this.rules=rl([e]);const a=At(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(a,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=At(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(e.length>0){const a={[`${l}`]:e},n=this.getValue(),r={[`${l}`]:n},o=new vt.Schema(a),s=this.proxy??r;return o.validate(r,{context:s}).then(u=>{if(u.pass)this.success();else{let i="error";Array.isArray(u.errors)&&u.errors.length>0&&(i=u.errors[0].message??i,u.errors=[u.errors[0]],u.errors[0].ref=s),this.error(i)}return u}).catch(u=>{const i=u.message??`${u}`;return this.error(i),u})}}return Promise.resolve({pass:!0})}};function kl(e,l,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const n=a.valueName;a.validateHandler={getValue(r){return r[n]}}}return new go(l,a,e)}var vl=Symbol.for("EventEmitterKey"),vo=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,l){let a=this.register.get(e);if(a&&Array.isArray(a)){let n=a.findIndex(r=>r===l);n!==-1&&a.splice(n,1)}}on(e,l){let a=this.register.get(e);a||(a=new Array,this.register.set(e,a)),a.push(l)}emit(e,...l){const a=this.register.get(e);a&&a.forEach(n=>{try{Reflect.apply(n,null,[e,...l])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...l])}};function Ge(e,l){let a=null;return function(...n){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...n])},l)}}function yo(e,l){let a=0;return function(...n){const r=new Date().getTime();r-a<l||(a=r,Reflect.apply(e,null,[...n]))}}function ji(e,l){const a=Ge((n,r)=>{e=n,r()},l);return(0,t.customRef)((n,r)=>({get(){return n(),e},set(o){a(o,r)}}))}function Ki(e){let l=!1;return function(...a){l||(l=!0,Reflect.apply(e,null,[...a]))}}function zl(e,l,a,n=0,r=!0,o){let s=l,u=0;if(r){const d=e();if(u++,d){typeof o=="function"&&o(!0);return}if(u>a){typeof o=="function"&&o(!1);return}}const i=()=>{const d=e();if(u++,d){typeof o=="function"&&o(!0);return}if(u>a){typeof o=="function"&&o(!1);return}s+=n,setTimeout(i,s)};setTimeout(i,s)}var Ye=Symbol("DomainKey"),Ct=Symbol("DataItemsKey"),Tl=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}_props=(0,t.reactive)({});constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(e,l=[]){for(const a in e){const n=e[a];l.length>0&&l.indexOf(n)!==-1||(this._props[a]=n)}}has(e){if(Reflect.has(this._props,e)){const l=this._props[e];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,l){this._props[e]=l}get(e,l){if(Reflect.has(this._props,e)){const a=this._props[e];if(a!=null)return a}return this.parent==null?l:this.parent.get(e,l)}getForParent(e,l){return this.parent==null?l:this.parent.get(e,l)}getForSelf(e){return this._props[e]}getAll(e){const l=[];let a=this;for(;a!=null;){if(Reflect.has(a._props,e)){const n=a._props[e];l.push(n)}a=a._parent}return l}},Yi=new Tl;function zt(){return Yi}function pt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Ye]??(0,t.inject)(Ye,null):(0,t.inject)(Ye,null)}var ln=Symbol("OriginalDateKey");function Pn(e,l,a=[],n){const r=(0,t.getCurrentInstance)();let o=r?.proxy,s=(0,t.inject)(Ye,null);s===null&&(s=zt());const u=e||l.prop||l.name;let i=new Tl(u);i.parent=s;const d=v=>{o[ln]||g(v),i?.set("modelValue",v)},m=()=>i?.getForSelf("modelValue")??null,f=()=>o[ln]??null,g=v=>{const h={};_t(!0,h,(0,t.toRaw)(v)),o[ln]=h};(0,t.isReactive)(l)||typeof l=="function"?(0,t.watch)(l,v=>{i?.merge(v,a)},{immediate:!0}):i.merge(l,a),l.modelValue&&g(l.modelValue);const b=(v,h)=>{i?.set(v,h)},k=v=>i?.getForSelf(v)??null;if(o[Ye]=i,(0,t.provide)(Ye,i),r!==null){const v=(0,t.inject)(_e,null),h=Nl(o,v,u,n);i.broadcast=h,o[_e]=h,(0,t.provide)(_e,h),o.broadcast=(c,z,...M)=>Reflect.apply(h.emit,h,[c,z,...M]);const $=(0,t.inject)(Ze,null),p=kl(o,$,{componentName:""});i.validateSchema=p,o[Ze]=p,(0,t.provide)(Ze,p),o[Ct]=new Map,o.validate=(c=!0)=>{const z=[];let M=null;const _={deep:!1};if(c===!0)M={name:"*"};else if(Array.isArray(c)&&c.length>0){const S=c;M={name:V=>V?S.indexOf(V)!==-1:!1}}else if(c!=null&&typeof c=="object"){const S=c;if(Object.assign(_,S),Array.isArray(S.include)&&S.include.length>0){const V=S.include;M={name:w=>w?V.indexOf(w)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const V=S.exclude;M={name:w=>w?V.indexOf(w)===-1:!1}}else M={name:"*"}}if(M){const S=h?.emitToChildren(M,"validate",_);S&&Reflect.apply([].push,z,S)}return z.length==1?z[0]:z.length>1?Promise.all(z).then(S=>{let V=[];return S.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(V=[...V,...w.errors])}),V.length>0?{pass:!1,errors:V}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(c,z=!0,M=!1)=>{if(M===!0){Reflect.ownKeys(c).forEach(_=>{let S=String(_);const V={componentName:"",fieldName:S,pureDataValidate:!0};if(i){const w=wo(i,S,V,h,p);o[Ct].set(S,w);const O=c[S];O&&w.validateSchema.setRule(O)}});return}if(z){const _=Reflect.ownKeys(c);h?.emitToChildren({name:S=>_.includes(S),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",c,!1)}},o.clearValidate=(c=!0)=>{let z=null;if(c===!0)z={name:"*"};else if(Array.isArray(c)&&c.length>0){const M=c;z={name:_=>_?M.indexOf(_)!==-1:!1}}else if(c!=null&&typeof c=="object"){const M=c;if(Array.isArray(M.include)&&M.include.length>0){const _=M.include;z={name:S=>S?_.indexOf(S)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const _=M.exclude;z={name:S=>S?_.indexOf(S)===-1:!1}}else z={name:"*"}}z&&h?.emitToChildren(z,"clearValidate",!1)},o.resetFields=c=>{const z=m();if(!z)return;const M={};if(_t(!0,M,f()??{}),Array.isArray(c))c.forEach(_=>{z[_]=M[_]});else if(c&&Array.isArray(c.include))(c.include??[]).forEach(_=>{z[_]=M[_]});else if(c&&Array.isArray(c.exclude)){let _=c.exclude??[];Reflect.ownKeys(M).forEach(S=>{_.includes(S)||(z[S]=M[S])})}else Object.assign(z,M);o.clearValidate(c)},o.setModelValue=(c,z)=>{if(!z||z===u)d(c);else{const M={name:z,messagingPolicy:"Once"};h?.emitToChildren(M,"setModelValue",c)}},o.getModelValue=()=>m(),o.setDomainProperty=(c,z)=>{b(c,z)},o.getDomainProperty=c=>k(c),setTimeout(function(){h?.pull()},0)}return(0,t.onUnmounted)(function(){i?.validateSchema&&(i.validateSchema.destroy(),o[Ze]=void 0,(0,t.provide)(Ze,null)),i?.broadcast&&(i?.broadcast?.destroy(),o[_e]=void 0,(0,t.provide)(_e,null)),i?.destroy(),o[Ye]=void 0,(0,t.provide)(Ye,null),o[Ct]&&(o[Ct].clear(),o[Ct]=void 0),o.broadcast=null,o.validate=null,o.setNameValidateRules=null,o.clearValidate=null,o.resetFields=null,o.setModelValue=null,o.getModelValue=null,o.setDomainProperty=null,o.getDomainProperty=null,i=null,o=null}),i}function bo(e,l,a=[]){let n=(0,t.getCurrentInstance)()?.proxy,r=(0,t.inject)(Ye,null);r===null&&(r=zt());let o=new Tl(e||l.prop||l.name);return o.parent=r,(0,t.isReactive)(l)||typeof l=="function"?(0,t.watch)(l,s=>{o?.merge(s,a)},{immediate:!0}):o.merge(l,a),n[Ye]=o,(0,t.provide)(Ye,o),(0,t.onUnmounted)(()=>{o?.destroy(),n[Ye]=void 0,(0,t.provide)(Ye,null),o=null,n=null}),o}function Te(e,l,a){const n=(0,t.getCurrentInstance)()?.proxy,r=l??"";let o=Nl(n,(0,t.inject)(_e,null),r,a);n[_e]=o,(0,t.provide)(_e,o),n.broadcast=(m,f,...g)=>o?Reflect.apply(o.emit,o,[m,f,...g]):null;const s=(0,t.inject)(Ze,null);e.fieldName=e.fieldName??r;let u=kl(n,s,e);n[Ze]=u,(0,t.provide)(Ze,u),n.validate=(m=null)=>{if(!u)return Promise.resolve({pass:!0});const f=[];let g=!1,b=!1;if(Array.isArray(m)&&m.indexOf(r)!==-1)b=!0,g=!0;else if(m&&typeof m=="object"){const k=m,v=k.ignoreDisabled??!0,h=k.ignoreReadonly??!0,$=k.ignoreHidden??!0;v===!0&&e.disabled===!0||h===!0&&e.readonly===!0||$===!0&&ao(n.$el)?b=!1:(Array.isArray(k.include)&&k.include.indexOf(r)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(r),b=!0),g=k.deep??!1}else typeof m=="boolean"&&(g=m),b=!0;if(b){const k=u?.validate();f.push(k)}if(g){let k=null;const v={deep:!1};if(m===!0)k={name:"*"};else if(Array.isArray(m)&&m.length>0){const h=m;k={name:$=>$?h.indexOf($)!==-1:!1}}else if(m!=null&&typeof m=="object"){const h=m;if(Object.assign(v,h),Array.isArray(h.include)&&h.include.length>0){const $=h.include;k={name:p=>p?$.indexOf(p)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const $=h.exclude;k={name:p=>p?$.indexOf(p)===-1:!1}}else k={name:"*"}}if(k&&o){const h=o.emitToChildren(k,"validate",v);Reflect.apply([].push,f,h)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(k=>{let v=[];return k.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(v=[...v,...h.errors])}),v.length>0?{pass:!1,errors:v}:{pass:!0}}):Promise.resolve({pass:!0})},n.setValidateRule=m=>u?.setRule(m),n.setNameValidateRules=(m,f=!1)=>{const g=m[r];g&&u?.setRule(g),f&&o&&o.emitToChildren({name:b=>Reflect.ownKeys(m).includes(b)},"setNameValidateRules",m,!1)},n.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(l??"")!==-1)&&u?.clear();let f=null;if(m===!0)f={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;f={name:b=>b?g.indexOf(b)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Array.isArray(g.include)&&g.include.length>0){const b=g.include;f={name:k=>k?b.indexOf(k)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const b=g.exclude;f={name:k=>k?b.indexOf(k)===-1:!1}}else f={name:"*"}}f&&o&&o.emitToChildren(f,"clearValidate",!1)};let i=new vo(n);n[vl]=i;const d=Ge((m="validate")=>{u&&(m==="reset"?u.clear():u.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:mo()).forEach(m=>{i&&i.on(m,f=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:po()).forEach(m=>{i&&i.on(m,f=>{d("reset")})}),setTimeout(function(){o?.pull()},0),(0,t.onUnmounted)(()=>{o?.destroy(),n[_e]=void 0,(0,t.provide)(_e,null),o=null,u?.destroy(),n[Ze]=void 0,(0,t.provide)(Ze,null),u=null,i?.destroy(),n[vl]=void 0,i=null,n.broadcast=null,n.validate=null,n.setValidateRule=null,n.setNameValidateRules=null,n.clearValidate=null}),{broadcast:o,validateSchema:u,emitEvent:(m,...f)=>{i&&Reflect.apply(i.emit,i,[m,...f])},onEvent:(m,f)=>{i&&Reflect.apply(i.on,i,[f])},offEvent:(m,f)=>{i&&Reflect.apply(i.off,i,[f])}}}function wo(e,l,a,n,r){const o={},s=l??"",u={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};a.fieldName=s,a.validateHandler={getValue(m){return u.getValue()}};let i=kl({},r,a);o.validate=(m=null)=>{if(!u.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const f=[];let g=!1,b=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)b=!0,g=!0;else if(m&&typeof m=="object"){const k=m;Array.isArray(k.include)&&k.include.indexOf(s)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(s),b=!0,g=k.deep??!1}else typeof m=="boolean"&&(g=m),b=!0;if(b&&i){const k=i.validate();f.push(k)}if(g){let k=null;const v={deep:!1};if(m===!0)k={name:"*"};else if(Array.isArray(m)&&m.length>0){const h=m;k={name:$=>$?h.indexOf($)!==-1:!1}}else if(m!=null&&typeof m=="object"){const h=m;if(Object.assign(v,h),Array.isArray(h.include)&&h.include.length>0){const $=h.include;k={name:p=>p?$.indexOf(p)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const $=h.exclude;k={name:p=>p?$.indexOf(p)===-1:!1}}else k={name:"*"}}if(k&&d){const h=d.emitToChildren(k,"validate",v);Reflect.apply([].push,f,h)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(k=>{let v=[];return k.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(v=[...v,...h.errors])}),v.length>0?{pass:!1,errors:v}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=m=>i?.setRule(m),o.setNameValidateRules=m=>{const f=m[s];f&&i?.setRule(f)};let d=Nl(null,n,s,o);return(0,t.onUnmounted)(()=>{i=null,d=null}),{broadcast:d,validateSchema:i}}function Fn(){let e=(0,t.getCurrentInstance)()?.proxy,l=new vo(e);return e[vl]=l,(0,t.onUnmounted)(()=>{l?.destroy(),e[vl]=void 0,l=null,e=null}),{emitEvent:(a,...n)=>{l&&Reflect.apply(l.emit,l,[a,...n])},onEvent:(a,n)=>{l&&Reflect.apply(l.on,l,[n])},offEvent:(a,n)=>{l&&Reflect.apply(l.off,l,[n])}}}var we=(e,l=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&l<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,l)}px`:"",Wi=we;function me(e,l=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&l>0?e*l:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let r=Number(e.substring(0,a)),o=1;if(ht){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(o=Number(s.substring(0,u)))}return r*=o,r}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*l;const n=Number(e);return isNaN(n)?0:n}var mt="PageStateKey";function tt(e){const l={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(l.top=me(e.top)),e.left!==null&&e.left!==void 0&&(l.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(l.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(l.right=me(e.right))),l}function wn(e,l,a={},n=!0,r=-1,o=-1,s=0,u=0){if(e.headerHeight=me(a.headerHeight??l.headerHeight??-1),e.headerPadding=tt(a.headerPadding??l.headerPadding),e.footerHeight=me(a.footerHeight??l.footerHeight??-1),e.footerPadding=tt(a.footerPadding??l.footerPadding),e.contentPadding=tt(a.contentPadding??l.contentPadding),n){const i=a.height??l.height;i?e.height=me(i,o):e.height=me(o)-me(s,o)-me(u,o),e.width=me(a.width??l.width??0,r)}}function So(e,l={}){const a={top:null,bottom:null,right:null,left:null},n={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},l.safeAreaInset??{});r&&(n.safeAreaTop=me(r.top),n.safeAreaBottom=me(r.bottom),n.safeAreaLeft=me(r.left),n.safeAreaRight=me(r.right));const o=e.get("pageLayout");if(!o)return null;wn(n,o,l,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const s=(0,t.reactive)(n),u=e.getForParent(mt);u&&(n.height=yl(e,u),n.width=bl(e,u),(0,t.watch)([()=>yl(e,u),()=>bl(e,u)],([d,m])=>{s.height=d,s.width=m}));const i=!u;return(0,t.watch)([()=>l.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,m,f=-1,g=-1,b=0,k=0])=>{wn(s,m,l,i,f,g,b,k)}),e.set(mt,s),s}function El(e){return e.get(mt)}function _l(e,l){if(l=l??e.get(mt),l&&l.headerMounted){const a=l.safeAreaTop==-1?0:l.safeAreaTop;return l.headerAllHeight??l.headerHeight+a}return 0}function $l(e,l){if(l=l??e.get(mt),l&&l.footerMounted){const a=l.safeAreaBottom==-1?0:l.safeAreaBottom;return l.footerAllHeight??l.footerHeight+a}return 0}function yl(e,l){if(l=l??e.get(mt),l){if(l.contentInnerHeight)return l.contentInnerHeight;const a=_l(e,l),n=$l(e,l),r=me(l.contentPadding.top??0),o=me(l.contentPadding.bottom??0);return l.height-a-n-r-o}return 0}function bl(e,l){if(l=l??e.get(mt),l){const a=me(l.contentPadding.left??0),n=me(l.contentPadding.right??0);return l.contentInnerWidth??l.width-a-n}return 0}function Ui(e){return!!e.getForParent(mt)}var Rn=Symbol.for("InnerPageScopeKey");function On(e){(0,t.provide)(Rn,e)}function Xt(e=!1){return(0,t.inject)(Rn,e)}var Hn=Symbol.for("AbstractPageScopeKey");function xo(e){(0,t.provide)(Hn,e)}function Zt(e=!1){return(0,t.inject)(Hn,e)}var qe=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function ol(e,l){return e==null?!1:typeof l=="function"?l(e):!0}function De(e,l,a=qe.Near,n){const r=pt();return r==null?e:a===qe.Parent?(0,t.computed)(()=>{const o=r.getAll(l);for(let u=o.length-1;u>=0;u--){const i=o[u];if(ol(i,n))return i}const s=e.value;return ol(s,n)?s:null}):(0,t.computed)(()=>{const o=e.value;if(ol(o,n))return o;const s=r.getAll(l);for(let u=0;u<s.length;u++){const i=s[u];if(ol(i,n))return i}return null})}function Ie(e){return De(e,"readonly",qe.Near)}function Ae(e){return De(e,"disabled",qe.Near)}function ge(e,l="modelValue",a=null,n){const r=(0,t.toRef)(e,l);let o=r.value;typeof a=="function"&&(o=a(r.value));const s=(0,t.ref)(o);return(0,t.watch)(r,u=>{if(typeof a=="function"){const i=a(u);i!==s.value&&(s.value=i,n&&n("setValue",i))}else u!==s.value&&(s.value=u,n&&n("setValue",u))}),s}var Co=new Map,wl=new Map,Sn=null;function Gi(e){Sn=e}function No(e,l,a){if(a){let n=wl.get(a);n||(n=new Map,wl.set(a,n)),n.set(e,l)}else Co.set(e,l)}function Pe(e,l,a){!a&&Sn&&(a=Sn(e)??void 0);let n=null;if(a){let r=wl.get(a);r&&(n=r.get(l))}return n||(n=Co.get(l)),n}function Xi(e,l){for(let a in e){const n=e[a];No(a,n,l)}}function Zi(e){wl.delete(e)}function Ji(){return{top:0,left:0,bottom:0,right:0}}function Qi(){return ht?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function es(e,l){let a=e;if(l.componentPrefix){const n=a.indexOf("-");n!==-1?a=`${l.componentPrefix}${a.slice(n)}`:a=`${l.componentPrefix}-${a}`}return Kt(a)}var ts=class{packages;installers;_version;get version(){return this._version}constructor(e,l,a){this.packages=e,this.installers=l,this._version=a}install(e,l={}){l?.install!==!1&&(this.packages.forEach(n=>{if(n.install)e.use(n,l);else if(n.name){const r=es(n.name,l);e.component(r,n)}}),this.installers.forEach(n=>{n(e,l)}));const a=zt();if(l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const n={...l},r=Ge(()=>{const o={...n};this.updateLayout(o,a)},120);new window.ResizeObserver(r).observe(window.document.body)}this.updateLayout(l,a)}updateLayout(e,l){const a=e.headerBarHeight??0,n=e.footerBarHeight??0,r=_t({},Ji(),e.safeAreaInset),o=Qi(),s=_t({},o.pageLayout,e.pageLayout);l=l??zt(),l.set("safeAreaInset",r),l.set("headerBarHeight",a),l.set("footerBarHeight",n),l.set("pageLayout",s),l.set("rootWidth",o.rootWidth),l.set("rootHeight",o.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const i in e)u.indexOf(i)===-1&&l.set(i,e[i])}setScopeGetter(e){Gi(e)}setAPI(e,l,a){No(e,l,a)}getAPI(e,l,a){return Pe(e,l,a)}batchSetAPI(e,l){Xi(e,l)}clearScopeAPI(e){Zi(e)}getRootDomain(){return zt()}},ls=[B.ElAffix,B.ElAlert,B.ElAutocomplete,B.ElAutoResizer,B.ElAvatar,B.ElBacktop,B.ElBadge,B.ElBreadcrumb,B.ElBreadcrumbItem,B.ElButton,B.ElButtonGroup,B.ElCalendar,B.ElCard,B.ElCarousel,B.ElCarouselItem,B.ElCascader,B.ElCascaderPanel,B.ElCheckTag,B.ElCheckbox,B.ElCheckboxButton,B.ElCheckboxGroup,B.ElCol,B.ElCollapse,B.ElCollapseItem,B.ElCollapseTransition,B.ElColorPicker,B.ElConfigProvider,B.ElContainer,B.ElAside,B.ElFooter,B.ElHeader,B.ElMain,B.ElDatePicker,B.ElDescriptions,B.ElDescriptionsItem,B.ElDialog,B.ElDivider,B.ElDrawer,B.ElDropdown,B.ElDropdownItem,B.ElDropdownMenu,B.ElEmpty,B.ElForm,B.ElFormItem,B.ElIcon,B.ElImage,B.ElImageViewer,B.ElInput,B.ElInputNumber,B.ElLink,B.ElMenu,B.ElSubMenu,B.ElMenuItem,B.ElMenuItemGroup,B.ElPageHeader,B.ElPagination,B.ElPopconfirm,B.ElPopover,B.ElPopper,B.ElProgress,B.ElRadio,B.ElRadioButton,B.ElRadioGroup,B.ElRate,B.ElResult,B.ElRow,B.ElScrollbar,B.ElSelect,B.ElOption,B.ElOptionGroup,B.ElSelectV2,B.ElSkeleton,B.ElSkeletonItem,B.ElSlider,B.ElSpace,B.ElSteps,B.ElStep,B.ElSwitch,B.ElTable,B.ElTableColumn,B.ElTableV2,B.ElTabs,B.ElTabPane,B.ElTag,B.ElTimePicker,B.ElTimeSelect,B.ElTimeline,B.ElTimelineItem,B.ElTooltip,B.ElTransfer,B.ElTree,B.ElTreeSelect,B.ElTreeV2,B.ElUpload,B.ElStatistic,B.ElCountdown,B.ElSegmented,B.ElAnchor,B.ElAnchorLink,B.ElWatermark,B.ElMessageBox,B.ElMessage,B.ElNotification,B.ElSplitter],ns=[B.ElInfiniteScroll,B.ElLoading,B.ElMessage,B.ElMessageBox,B.ElNotification,B.ElPopoverDirective],as=(e,l={})=>{const a=l.componentPrefix??"fox";ls.forEach(n=>{if(typeof n.name=="string"){let r="";const o=co(n.name),s=o.indexOf("-");s!==-1?r=`${a}${o.slice(s)}`:r=`${a}-${o}`,r=Kt(r),e.component(r,n)}else e.use(n)}),ns.forEach(n=>{e.use(n)})};function ie(e){const l=`fox-${e}`,a=Kt(l);return{componentName:l,scope:e.replace("-",""),create(n){return n.baseName=e,n.name=a,n.install=(r,o)=>{let s=n.name;o?.componentPrefix&&(s=`${o.componentPrefix}-${n.baseName}`,s=Kt(s)),r.component(s,n)},(0,t.defineComponent)(n)},createDemo(n){return n.baseName=e,n.name="demo-"+e,(0,t.defineComponent)(n)}}}function be(e,l=null){if(l||(l=(0,t.getCurrentInstance)()),l&&l.proxy){let a=l.proxy;Object.assign(a,e)}}var Ce={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}},ze={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}},ko={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}},zo={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}},To=[];for(const e in zo)To.push(e);var rs={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}},os=(e,l)=>({inheritAttrs:!0,props:{...Ce,...ko,...rs},setup(a,{slots:n}){const r=Zt(!1),o=Xt(!1),s=Pn(a.name,a);if(s){const f=So(s,a);be({getPageContentHeight:()=>yl(s,f),getPageContentWidth:()=>bl(s,f),getPageHeaderHeight:()=>_l(s,f),getPageFooterHeight:()=>$l(s,f)}),f&&o&&(f.contentHeight="100%")}const u=(0,t.computed)(()=>({[e]:!0,"is-inner":o})),i=(0,t.computed)(()=>({})),d=(0,t.getCurrentInstance)(),m=(f,g=!1)=>{const b=d?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(f,!0,g)};return(0,t.watch)([()=>a.rules,()=>a.pureDataRules],([f,g],[b,k])=>{if(f&&b){const v=(0,t.toRaw)(b),h=(0,t.toRaw)(f),$=h?Reflect.ownKeys(h):[];(v?Reflect.ownKeys(v):[]).forEach(p=>{$.includes(p)||(h[p]=[])}),m(h)}if(g&&k){const v=(0,t.toRaw)(k),h=(0,t.toRaw)(g),$=h?Reflect.ownKeys(h):[];(v?Reflect.ownKeys(v):[]).forEach(p=>{$.includes(p)||(h[p]=[])}),m(h,!0)}},{deep:!0}),(0,t.onMounted)(()=>{a.rules&&m((0,t.toRaw)(a.rules)),a.pureDataRules&&m((0,t.toRaw)(a.pureDataRules),!0)}),()=>r?n?.default?.():(0,t.h)("div",{class:u.value,style:i.value},[n?.default?.()])}}),{componentName:is,create:ss,scope:us}=ie("page"),cs=ss(os(is,us)),qn=cs;function jn(e){const l=(0,t.unref)(e);return{width:l.offsetWidth,height:l.offsetHeight}}function Vl(e){const l=(0,t.unref)(e),a=window.getComputedStyle(l,null),n=parseFloat(a.getPropertyValue("padding-left")),r=parseFloat(a.getPropertyValue("padding-right")),o=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:l.clientWidth-n-r,height:l.clientHeight-o-s}}var Eo={headerbar:{},radio:{},checkbox:{}};function ds(e){Object.assign(Eo,e)}function _o(){return Eo}var fs=(e,l,a,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},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,o){const s=Zt(!1),u=Xt(!1),i=s?null:pt(),d=i?El(i):null;d&&(d.headerMounted=!0);const m=_o(),f=e,g=(0,t.computed)(()=>{const N={[f]:!0,[`${f}--border`]:r.border,[`${f}--fixed`]:r.fixed};return u||(N[`${f}--safe-area-inset-top`]=r.safeAreaInsetTop),N}),b=(0,t.computed)(()=>({[`${f}__inner`]:!0,[`${f}__inner--${r.align}`]:!0})),k=We(r.height)?null:me(r.height),v=(0,t.computed)(()=>{const N={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return N;if(i&&d){const T=tt(r.padding??d.headerPadding);if(Object.assign(N,T),We(k)||(d.headerHeight=k),N.height=d.headerHeight,N.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,N.safeAreaTop>0){const L=me(T.top??0);N.top=N.safeAreaTop+L,N.height&&N.height>0&&(N.height=N.height+N.safeAreaTop)}return N}if(We(k)||(N.height=k),r.padding){const T=tt(r.padding);Object.assign(N,T)}return N}),h=(0,t.ref)(null),$=()=>d&&h.value&&!In(h.value)?(n||(d.headerAllHeight=jn(h.value).height),d.headerMounted=!0,!0):!1,p=Ge($,120);let c=null;(0,t.onMounted)(()=>{s||d&&(zl($,50,5,50,!0),window.ResizeObserver&&h.value&&(c=new window.ResizeObserver(p),c.observe(h.value)))}),(0,t.onUnmounted)(()=>{s||d&&(d.headerMounted=!1,c&&(c.disconnect(),c=null))});const z=(0,t.computed)(()=>{const N={};return s||(v.value.height!==null&&v.value.height!==void 0&&(N.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(N.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(N.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(N.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(N.paddingBottom=`${v.value.bottom}px`)),N}),M=(0,t.computed)(()=>{const N=v.value?.height;return We(N)||N<0?!0:N>0});function _(){o.emit("back")}function S(){o.emit("click-title")}function V(){o.emit("click-right")}function w(){o.emit("click-right-text")}const O=()=>{if(!r.leftShow)return null;const N=[];if(o.slots.left)N.push(o.slots.left());else{if(o.slots.leftIcon){const T=(0,t.h)("view",{class:"left-icon",onClick:_},[o.slots.leftIcon()]);N.push(T)}else{const T=r.leftIcon??m.headerbar.Left??a,L=(0,t.h)("view",{class:"left-icon",onClick:_},[(0,t.h)(T)]);N.push(L)}if(r.leftText){const T=(0,t.h)("view",{class:"left-text",onClick:_},[r.leftText]);N.push(T)}}return N.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},N)},C=()=>{if(!r.rightShow)return null;const N=[];if(o.slots.right)N.push(o.slots.right());else{if(r.rightText){const T=(0,t.h)("view",{class:"right-text",onClick:w},[r.rightText]);N.push(T)}if(o.slots.rightIcon){const T=(0,t.h)("view",{class:"right-icon",onClick:V},[o.slots.rightIcon()]);N.push(T)}else if(r.rightIcon){const T=(0,t.h)("view",{class:"right-icon",onClick:V},[(0,t.h)(r.rightIcon)]);N.push(T)}}return N.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},N)},I=()=>{if(!r.titleShow)return null;const N=[],T=o.slots.default?o.slots.default():null;if(T)N.push(T);else{if(r.title){const L=(0,t.h)("view",{class:"title-text"},[r.title]);N.push(L)}if(o.slots.titleIcon){const L=(0,t.h)("view",{class:"title-icon",onClick:S},[o.slots.titleIcon()]);N.push(L)}else if(r.titleIcon){const L=(0,t.h)("view",{class:"title-icon",onClick:S},[(0,t.h)(r.titleIcon)]);N.push(L)}}return N.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},N)},Z=()=>{const N=[],T=o.slots.bottom?o.slots.bottom():null;return T&&N.push(T),N.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},N)};return()=>{if(s||!M.value)return null;const N=[];if(o.slots.all)N.push(o.slots.all());else{const T=[],L=O();L&&T.push(L);const q=I();q&&T.push(q);const G=C();if(G&&T.push(G),T.length>0){const F=(0,t.h)("view",{class:b.value},T);N.push(F)}const X=Z();X&&N.push(X)}return N.length===0?null:(0,t.h)("view",{class:g.value,style:z.value,ref:h},N)}}}),{componentName:ms,create:hs,scope:ps}=ie("header-bar"),gs=hs(fs(ms,ps,$e.ArrowLeft)),Kn=gs;function vs(e,l,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const o=Zt(!1),s=Xt(!1),u=o?null:pt(),i=u?El(u):null,d=(0,t.computed)(()=>{const p=e,c={[p]:!0,[`${p}--${n.align}`]:!0,[`${p}--border`]:n.border,[`${p}--fixed`]:n.fixed};return s||(c[`${p}--safe-area-inset-bottom`]=n.safeAreaInsetBottom),c}),m=We(n.height)?null:me(n.height),f=(0,t.computed)(()=>{const p={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(o)return p;if(u&&i){const c=tt(n.padding??i.footerPadding);if(Object.assign(p,c),We(m)||(i.footerHeight=m),p.height=i.footerHeight,p.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,p.safeAreaBottom>0){const z=me(c.bottom??0);p.bottom=p.safeAreaBottom+z,p.height&&p.height>0&&(p.height=p.height+p.safeAreaBottom)}return p}if(We(m)||(p.height=m),n.padding){const c=tt(n.padding);Object.assign(p,c)}return p}),g=(0,t.computed)(()=>{const p=f.value?.height;return We(p)||p<0?!0:p>0}),b=(0,t.ref)(null),k=()=>i&&b.value&&!In(b.value)?(a||(i.footerAllHeight=jn(b.value).height),i.footerMounted=!0,!0):!1,v=Ge(k,120);let h=null;(0,t.onMounted)(()=>{o||i&&(zl(k,50,5,50,!0),window.ResizeObserver&&b.value&&(h=new window.ResizeObserver(v),h.observe(b.value)))}),(0,t.onUnmounted)(()=>{o||i&&(i.footerMounted=!1,h&&(h.disconnect(),h=null))});const $=(0,t.computed)(()=>{const p={};return o||(f.value.height!==null&&f.value.height!==void 0&&(p.height=we(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(p.paddingTop=we(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(p.paddingLeft=we(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(p.paddingRight=we(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(p.paddingBottom=we(f.value.bottom))),p});return()=>{if(o||!g.value)return null;const p=r.slots.default?r.slots.default():[];return(0,t.h)("view",{ref:b,class:d.value,style:$.value},p)}}}}var{componentName:ys,create:bs,scope:ws}=ie("footer-bar"),Ss=bs(vs(ys,ws)),Yn=Ss;function xs(e,l){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:n,attrs:r}){const o=Zt(!1),s=Xt(!1),u=o?null:pt(),i=(0,t.computed)(()=>({[e]:!0})),d=u?El(u):null,m=(0,t.computed)(()=>{const v={};if(o)return v;if(u&&d){if(a.padding){const S=tt(a.padding);Object.assign(d.contentPadding,S)}const h=_l(u,d),$=$l(u,d);let p="";d.contentHeight?p=`${d.contentHeight}`:p=`${d.height}px`,v.height=p;let c=me((d&&d.contentPadding&&d.contentPadding.top)??-1);(c>=0||h>0)&&(c=c<0?0:c,v.paddingTop=`${h+c}px`);let z=me((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(z>=0||$>0)&&(z=z<0?0:z,v.paddingBottom=`${$+z}px`);const M=me((d&&d.contentPadding&&d.contentPadding.left)??-1);M>=0&&(v.paddingLeft=`${M}px`);const _=me((d&&d.contentPadding&&d.contentPadding.right)??-1);return _>=0&&(v.paddingRight=`${_}px`),v}if(a.padding){const h=tt(a.padding);h.left&&(v.paddingLeft=`${h.left}px`),h.top&&(v.paddingTop=`${h.top}px`),h.right&&(v.paddingRight=`${h.right}px`),h.bottom&&(v.paddingBottom=`${h.bottom}px`)}return v}),f=(0,t.ref)(null),g=()=>{if(d&&f.value){const v=Vl(f.value);d.contentInnerHeight=v.height,d.contentInnerWidth=v.width}},b=Ge(g,120);let k=null;return(0,t.onMounted)(()=>{s||o||(requestAnimationFrame(g),window.ResizeObserver&&f.value&&(k=new window.ResizeObserver(b),k.observe(f.value)))}),(0,t.onUnmounted)(()=>{s||o||k&&(k.disconnect(),k=null)}),()=>o?n.default?.():(0,t.h)(a.tag??"view",{...r,ref:f,class:i.value,style:m.value},n)}}}var{componentName:Cs,create:Ns,scope:ks}=ie("content"),zs=Ns(xs(Cs,ks)),Wn=zs,$t="GroupStateKey",$o=Symbol.for("GroupScopeKey");function Bl(){return(0,t.inject)($o,!1)}function Dl(e=!0){(0,t.provide)($o,e)}function Ts(e,l={}){Reflect.ownKeys(l).forEach(a=>{if(typeof a!="string")return;const n=l[a];We(n)||(e[a]=n)})}function Es(e,l={}){const a={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ts(a,l);const n=(0,t.markRaw)({layout:(0,t.shallowRef)(a),passport:0,order:{index:0}});return e.set($t,n),n}function nn(e,l,a=-1,n=-1,r=!1,o,s,u){const i=e.get($t);if(!i)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),n===-1&&(n=d.gutter??0),o||(o=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const m=me(o),f=me(s);u||(u=d.type??"grid");const g=()=>{const b=l===""||l===-1,k=me(l);let v=ve(a);const h=me(n);if(!b){let c=(k-(v-1)*h)/v;for(;f!==-1&&c>f;)v++,c=(k-(v-1)*h)/v;for(;m!==-1&&v>1&&c<m;)v--,c=(k-(v-1)*h)/v}let $=!1;const p=i.layout;p.value.width=l,p.value.column!==v&&(p.value.column=v,$=!0),p.value.gutter!==h&&(p.value.gutter=h,$=!0),p.value.type!==u&&(p.value.type=u,$=!0),$&&(0,t.triggerRef)(p)};if(r)g();else{const b=++i.passport;setTimeout(()=>{b===i.passport&&g()},50)}}function Ml(e,l=!1){let a;return l?a=e.getForParent($t):a=e.get($t),a.layout}function Il(e,l=!1){let a;return l?a=e.getForParent($t):a=e.get($t),a.order}function Wa(e,l=1){if(l==="stretch")return-1;const a=ve(l);return a===-1?100:100*a/e}function Al(e,l,a=1,n=0,r){const o={};let s=0;r?s=me(r):s=Wa(l.column,a),s>0&&(o.width=`${s}%`);const u=Wa(l.column,n);u>0&&(o["margin-left"]=`${u}%`);const i=me(l.gutter)/2;return i>0&&(o["padding-left"]=`${i}px`,o["padding-right"]=`${i}px`),o}function Ll(e,l,a=1,n=0){if(a==="stretch"){const i=e.index%l.column,d=i+(l.column-i);return e.index=e.index+(d-i),{"grid-column":`${i+1} / -1`}}let r=ve(a);if(r===-1){const i=e.index%l.column;return l.column,i==0?e.index=e.index+l.column:e.index=e.index+(l.column-i)+l.column,{"grid-column":"1 / -1"}}if(r>l.column){const i=e.index%l.column;return l.column,i==0?e.index=e.index+l.column:e.index=e.index+(l.column-i)+l.column,{"grid-column":"1 / -1"}}const o=ve(n)%l.column;let s=(e.index+o)%l.column,u=s+r;return u>l.column?(s=0,u=s+r,e.index=e.index+(l.column-s)+r):e.index=e.index+o+r,o>0?{"grid-column":`${s+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}var Vo=Symbol("RollingStateKey");function _s(e){(0,t.provide)(Vo,e)}function $s(){return(0,t.inject)(Vo,null)}function xn(e){let l=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const n=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));l=e.clientHeight-n-r}else l=e.offsetHeight;return l}function Vs(e){let l=xn(e);if(l<=0){const a=e.cloneNode(!0);a.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),l=xn(a),document.body.removeChild(a)}return l}function Bs(e,l,a){const n=typeof e=="number"?e:parseInt(e),r=typeof l=="number"?l:parseInt(l),o=typeof a=="number"?a:parseInt(a);if(n<=0)return"1fr";const s=(n-(r-1)*o)/r;return s>0?`${s}px`:"1fr"}function Bo(e){const l=[];return e.forEach(a=>{a.type===t.Fragment&&Array.isArray(a.children)?l.push(...Bo(a.children)):l.push(a)}),l}function Ds(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Un(e){function l(){return Bo(e?.()??[]).filter(Ds)}return{getChildren:l}}var Ms={...Ce,...ko,...zo};function Is(e,l,a){return{props:Ms,emits:["update:collapse","header-click"],setup(n,r){const o=Pn(n.prop??n.name,n,To),s=Es(o,{type:n.type}),u=Bl();Dl(!0);const i=n.rollingDisplay?$s():null,d=(0,t.ref)(null),m=(0,t.computed)(()=>n.rollingDisplay?i&&!i.disabled:!1),f=(0,t.computed)(()=>u&&o?Ml(o,!0).value:null),g=(0,t.getCurrentInstance)(),b=(x,W=!1)=>{const D=g?.proxy;D&&typeof D.setNameValidateRules=="function"&&D.setNameValidateRules(x,!0,W)};(0,t.watch)([()=>n.rules,()=>n.pureDataRules],([x,W],[D,y])=>{if(x&&D){const R=(0,t.toRaw)(D),j=(0,t.toRaw)(x),te=j?Reflect.ownKeys(j):[];(R?Reflect.ownKeys(R):[]).forEach(ae=>{te.includes(ae)||(j[ae]=[])}),b(j)}if(W&&y){const R=(0,t.toRaw)(y),j=(0,t.toRaw)(W),te=j?Reflect.ownKeys(j):[];(R?Reflect.ownKeys(R):[]).forEach(ae=>{te.includes(ae)||(j[ae]=[])}),b(j,!0)}},{deep:!0});const k=e,v=(0,t.computed)(()=>{const x={};x.height=T.value;const W=u?Il(o,!0):null;if(f.value&&W){if(f.value.type==="grid"){const D=Ll(W,f.value,n.span,n.offset);Object.assign(x,D)}else if(f.value.type==="flow"){const D=Al(W,f.value,n.span,n.offset,n.width);Object.assign(x,D)}}else n.width&&(x.width=we(n.width));return x}),h=(0,t.computed)(()=>{const x=s.layout.value.type;return x==="grid"||x==="flow"?{[`${k}--${x}`]:!0,[`${k}--${x}-justify-${n.justify}`]:!0,[`${k}--${x}-align-${n.align}`]:!0,[`${k}--gutter`]:!0}:{[`${k}--${x}`]:!0,[`${k}--gutter`]:!0}}),$=(0,t.computed)(()=>{if(s.layout.value.type==="grid"){let x="";if(n.columnWidth)x=`repeat(auto-fill, ${n.columnWidth})`;else{const W=Bs(V.value,s.layout.value.column,s.layout.value.gutter);x=`repeat(${s.layout.value.column}, ${W})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":x}}}),p=(0,t.toRef)(n,"gutter"),c=(0,t.toRef)(n,"column"),z=(0,t.computed)(()=>u||m.value?!0:de(n.isWrap)),M=[],_=x=>{M.push(x)},S=()=>{let x=M.length;M.splice(0,x)},V=(0,t.ref)(-1),w=x=>{const W=Vl(x).width;W>0&&W!==V.value&&(V.value=W)};nn(o,V.value,c.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&(0,t.watch)([V,c,p],([x,W,D])=>{s.order.index=0,nn(o,x,W,D,!1,n.minItemWidth,n.maxItemWidth,n.type)});const O=(0,t.computed)(()=>L.value?n.expandText??"":n.collapseText??""),C=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),I=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),Z=(0,t.ref)(),N=(0,t.ref)(),T=(0,t.computed)(()=>q.value||we(n.height)||""),L=(0,t.ref)(!1),q=(0,t.ref)(""),G=(0,t.ref)(!1);let X=-1;const F=(x,W=!0)=>{const D=Z.value;if(D&&L.value!==x){if(X=X===-1?Vs(D):X,G.value=!0,W)if(D.style["will-change"]="height",D.ontransitionend=function(){D.ontransitionend=null,this.style["will-change"]="auto",x||(q.value="",G.value=!1)},x){let y=0;n.collapseHeight?y=n.collapseHeight:N.value&&N.value.classList.contains(`${e}__header`)&&(y=N.value.offsetHeight),q.value=`${X}px`,(0,t.nextTick)(()=>{q.value=`${y}px`})}else q.value=`${X}px`;else if(x){let y=0;n.collapseHeight?y=n.collapseHeight:N.value&&N.value.classList.contains(`${e}__header`)&&(y=N.value.offsetHeight),q.value=`${y}px`}else G.value=!1,q.value=`${X}px`;L.value=x,r.emit("update:collapse",x)}};(0,t.watch)(()=>n.collapse,x=>{F(x)});const ee=x=>{r.emit("header-click",x)},K=()=>{H()},H=x=>{x=x??!L.value,F(x)};be({toggleCollapse:H,doLayout:()=>{M[0]&&(w(M[0]),nn(o,V.value,c.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let J=null,P=!0;const Q=x=>{if(n.rules&&b((0,t.toRaw)(n.rules)),n.pureDataRules&&b((0,t.toRaw)(n.pureDataRules),!0),!!ht&&(x&&F(de(n.collapse),!1),n.autoLayout&&Array.isArray(M)&&M.length>0)){const W=M[0];if(w(W),window.ResizeObserver){const D=Ge(()=>w(W),120);J=new window.ResizeObserver(D),J.observe(W)}}},le=()=>{J?.disconnect(),J=null},U=!m.value||i?.acquire();U&&(d.value=m.value?!0:null),(0,t.onMounted)(()=>{if(U&&(Q(P),P=!1),m.value&&i){let x=null,W=i.initialHeight;i.observe(Z.value,D=>{if(D!==d.value)if(D)d.value=!0,L.value||(q.value=""),x=setTimeout(()=>{x=null,d.value!==!1&&(Q(P),P=!1)},100);else{if(x!==null&&clearTimeout(x),d.value=!1,!L.value)if(P)q.value=i.initialHeight;else{let y=xn(Z.value);y<=0?q.value=W:(q.value=`${y}px`,W=q.value)}P||le()}})}}),(0,t.onUnmounted)(()=>{J?.disconnect(),i&&i.unobserve(Z.value)});const E=(x="right")=>{const W=[];if(O.value){const R=(0,t.h)("span",{class:C.value},[O.value]);W.push(R)}const D={class:I.value},y=a(n.collapseIcon,D);return y&&W.push(y),W.length>0?(0,t.h)("div",{class:{[`${k}__header-collapse`]:!0,[`is-${x}`]:!0},onClick:K},W):null},A=(x,W,D,y)=>{const R={...h.value};if(W===0&&(R[`${k}__first`]=!0),D>=y-1&&(R[`${k}__last`]=!0),z.value===!1){const j=r.attrs.class;j&&(R[`${j}`]=!0)}return(0,t.h)("div",{ref:_,key:`${W}`,class:R,style:$.value},x)};return()=>{const x=n.prop??n.name;if(m.value&&d.value!==!0)return(0,t.h)(n.tag||"div",{ref:Z,prop:x,class:{[`${k}`]:!0,"is-collapse":G.value},style:v.value},[]);s.order.index=0;const W=[];let D=0;if(r.slots.header){const te=(0,t.h)("div",{key:`${D++}`,ref:N,class:{[`${k}__header`]:!0,[`${k}__first`]:!0},onClick:ee},[r.slots.header()]);W.push(te)}else{const te=[],ae=n.collapsePosition==="left";if(ae&&n.showCollapse){const oe=E("left");oe&&te.push(oe)}if(n.title||r.slots.title){if(n.showMark){const oe={class:{[`${k}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const he=(0,t.h)("div",oe);te.push(he)}if(r.slots.title){const oe=(0,t.h)("div",{class:{[`${k}__header-title`]:!0}},[r.slots.title()]);te.push(oe)}else if(n.title){const oe=(0,t.h)("div",{class:{[`${k}__header-title`]:!0}},[n.title]);te.push(oe)}}if(r.slots.toolbar&&te.push(r.slots.toolbar()),!ae&&n.showCollapse){const oe=E("right");oe&&te.push(oe)}if(te.length>0){const oe=(0,t.h)("div",{key:`${D++}`,ref:N,class:{[`${k}__header`]:!0,[`${k}__first`]:!0},onClick:ee},te);W.push(oe)}}S();const{getChildren:y}=Un(r.slots.default),R=y(),j=s.layout.value.type;if(j==="grid"){const te=A(R,D++,0,R.length);W.push(te)}else if(j==="flow"){const te=A(R,D++,0,R.length);W.push(te)}else for(let te=0;te<R.length;te++){const ae=R[te],oe=A([ae],D++,te,R.length);W.push(oe)}return z.value?(0,t.h)(n.tag||"div",{ref:Z,prop:x,class:{[`${k}`]:!0,"is-collapse":G.value},style:v.value},[W]):W}}}}var{componentName:As,create:Ls,scope:Ps}=ie("group"),Fs=(e,l)=>(e=e??$e.ArrowUp,(0,t.h)(B.ElIcon,l,{default:()=>[(0,t.h)(e)]})),Rs=Ls(Is(As,Ps,Fs)),Gn=Rs;function Os(e){return e===window}var Hs=/matrix\((.+)\)/,Xn=e=>{const l=(0,t.unref)(e);if(!l)return{x:0,y:0};if(Os(l))return{x:0,y:0};let a=0,n=0,r=l;for(;r!==null;)a+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let o=0,s=0,u=0,i=0;for(r=l;r!==document;){s+=r.scrollTop,o+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const m=Hs.exec(d);if(m){let f=m[1].split(/\s*,\s*/);f.length==6&&(u+=Number(f[4]),i+=Number(f[5]))}}r=r.parentNode}return a-=o,n-=s,a+=u,n+=i,{x:a,y:n}},qs=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const l=this.watchedListeners.indexOf(e);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},js=class{monitorRegister=new WeakMap;watch(e,l){let a=e.parentNode;const n=document.body.parentNode;for(;a&&a!==n;){let r=this.monitorRegister.get(a);r||(r=new qs,a.addEventListener("scroll",r.listen),a===document.body&&a.addEventListener("resize",r.listen),this.monitorRegister.set(a,r)),r.add(l),a=a.parentNode}}unwatch(e,l){let a=e.parentNode;const n=document.body.parentNode;for(;a&&a!==n;){let r=this.monitorRegister.get(a);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(a),a.removeEventListener("scroll",r.listen),a===document.body&&a.removeEventListener("resize",r.listen))),a=a.parentNode}}},Ht=new js,Do={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:Ks,create:Ys}=ie("price"),Ws=Ys({props:{...Do},setup(e){const l=(0,t.computed)(()=>({[Ks]:!0})),a=(0,t.computed)(()=>e.needSymbol?e.symbol:""),n=(0,t.computed)(()=>Je(e.price)==0?"":xl(e.price,e.decimalLength,!0,ve(e.digits),e.separator));return{classes:l,showSymbol:a,intText:(0,t.computed)(()=>{let r=n.value;if(r.length==0)return"";let o=r.indexOf(".");return r.substring(0,o)}),decimalText:(0,t.computed)(()=>{let r=n.value;if(r.length==0)return"";let o=r.indexOf(".");return r.substring(o+1)})}}}),Fe=(e,l)=>{const a=e.__vccOpts||e;for(const[n,r]of l)a[n]=r;return a},Us=["innerHTML"],Gs=["innerHTML"];function Xs(e,l,a,n,r,o){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Us)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--${e.size}`)},(0,t.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,t.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Gs)):(0,t.createCommentVNode)("",!0)],2)}var Pl=Fe(Ws,[["render",Xs]]),{componentName:an,create:Zs}=ie("hint-text"),Js=Zs({components:{Price:Pl},props:{...Do,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,l){const a=(0,t.ref)({top:null,right:null,bottom:null,left:null}),n=(0,t.ref)({x:0,y:0}),r=(0,t.ref)(0),o=(0,t.ref)(0),s=(0,t.ref)(e.placement),u=(0,t.ref)(!1),i=(0,t.ref)(null),d=(C,I,Z,N,T,L)=>{const q=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,X=C.split("-");let F=[];X[0]==="top"?F=["top","bottom","right","left"]:X[0]==="bottom"?F=["bottom","top","right","left"]:X[0]==="left"?F=["left","top","bottom","right"]:X[0]==="right"&&(F=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},K=[];for(let H=0;H<F.length;H++){const Y=F[H];if(K[0]=Y,X[1]&&(K[1]=X[1]),Y==="top"){const J=I.y-L-e.arrowSize-e.offset;if(J>=0){ee.top=J;let P=0;X[1]==="start"?P=I.x:X[1]==="end"?P=I.x+Z-T:P=I.x+Z/2-T/2;const Q=q-P-T;Q<0?(P+=Q,f.value=-Q):f.value=0,ee.left=P<0?0:P;break}}else if(Y==="bottom"){const J=I.y+N+e.arrowSize+e.offset;if(J+L<=G){ee.top=J;let P=0;X[1]==="start"?P=I.x:X[1]==="end"?P=I.x+Z-T:P=I.x+Z/2-T/2;const Q=q-P-T;Q<0?(P+=Q,f.value=-Q):f.value=0,ee.left=P<0?0:P;break}}else if(Y==="left"){const J=I.x-T-e.arrowSize-e.offset;if(J>=0){ee.left=J;let P=0;X[1]==="start"?P=I.y:X[1]==="end"?P=I.y+N-L:P=I.y+N/2-L/2,ee.top=P<0?0:P;break}}else if(Y==="right"){const J=I.x+Z+e.arrowSize+e.offset;if(J+T<=q){ee.left=J;let P=0;X[1]==="start"?P=I.y:X[1]==="end"?P=I.y+N-L:P=I.y+N/2-L/2,ee.top=P<0?0:P;break}}}return{bestPlacement:K.join("-"),bestInsetRect:ee}},m=(C,I,Z=10)=>{if(!ht||I===!1||!C)return;n.value=Xn(e.reference),r.value=e.reference.offsetWidth,o.value=e.reference.offsetHeight;const N=i.value.offsetHeight,T=i.value.offsetWidth,{bestPlacement:L,bestInsetRect:q}=d(e.placement,n.value,r.value,o.value,T,N);s.value=L,a.value=q,u.value=!0},f=(0,t.ref)(0),g=Ge(()=>{m(e.message,e.visible)},10),b=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,C=>{b.value=C});const k=(0,t.computed)(()=>b.value&&v.value),v=(0,t.ref)(!0),h=Ge(C=>{const I=C[0];I&&(v.value=I.isIntersecting)},10),$=new IntersectionObserver(h);(0,t.watch)([()=>e.message,()=>e.visible],([C,I])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{m(e.message,e.visible)},0),Ht.watch(e.reference,g),$.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Ht.unwatch(e.reference,g),$.unobserve(e.reference),$.disconnect()});const p=(0,t.computed)(()=>{const C={[an]:!0};return s.value.startsWith("top")?C["is-top"]=!0:s.value.startsWith("right")?C["is-right"]=!0:s.value.startsWith("bottom")?C["is-bottom"]=!0:s.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}),c=(0,t.computed)(()=>{const C={};return a.value.top!==null&&(C.top=`${a.value.top}px`),a.value.right!==null&&(C.right=`${a.value.right}px`),a.value.bottom!==null&&(C.bottom=`${a.value.bottom}px`),a.value.left!==null&&(C.left=`${a.value.left}px`),e.autoFit&&(C["min-width"]=`${r.value}px`),C["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}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}),z=(0,t.computed)(()=>{const C=[`${an}__content`];return e.customTextClass&&C.push(e.customTextClass),C}),M=(0,t.computed)(()=>{const C={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(C,e.customTextStyle),C}),_=(0,t.computed)(()=>({[`${an}__arrow`]:!0})),S=(0,t.computed)(()=>{const C={};return e.showArrow?(C.width=`${e.arrowSize}px`,C.height=`${e.arrowSize}px`,s.value==="top"?(C.left="50%",C.bottom=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):s.value==="top-start"?(C.left=`${e.arrowOffset+f.value}px`,C.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(C.right=`${e.arrowOffset-f.value}px`,C.bottom=`-${e.arrowSize}px`):s.value==="right"?(C.left=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):s.value==="right-start"?(C.left=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):s.value==="right-end"?(C.left=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(C.left="50%",C.top=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(C.left=`${e.arrowOffset+f.value}px`,C.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(C.right=`${e.arrowOffset-f.value}px`,C.top=`-${e.arrowSize}px`):s.value==="left"?(C.right=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):s.value==="left-start"?(C.right=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):s.value==="left-end"&&(C.right=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`),C):{display:"none"}}),V=(0,t.computed)(()=>k.value&&e.closeOnClick),w=(0,t.computed)(()=>{const C={};return e.zIndex&&(C["z-index"]=`${e.zIndex}`),C});return{show:k,tipRef:i,classes:p,styles:c,textClasses:z,textStyles:M,arrowClasses:_,arrowStyles:S,overlayShow:V,overlayStyle:w,onClickOverlay:()=>{b.value=!1,l.emit("update:visible",!1)}}}}),Qs=["innerHTML"];function eu(e,l,a,n,r,o){const s=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:l[0]||(l[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Qs))],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.arrowClasses),style:(0,t.normalizeStyle)(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}var Mo=Fe(Js,[["render",eu]]),Io=class{seed=new Date().getTime();constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Cn={},tu=new Io,Tt=new Map,Sl=e=>{if(e){const l=document.getElementById(e);Tt.delete(e),l&&l.parentNode?.removeChild(l)}else{for(const l of Tt.keys()){const a=document.getElementById(l);a&&a.parentNode?.removeChild(a)}Tt.clear()}},lu=e=>{e.unmount=Sl;const l=document.getElementById(e.id);if(l){const a=Tt.get(e.id);a?e={...Cn,...a,...e}:e={...Cn,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(Mo,e),l)}return e.id},nu=e=>{e.unmount=Sl;let l=e.id??`hinttext_${tu.get()}`;e={...Cn,...e},e.id=l,Tt.set(l,e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(Mo,e),a),document.body.appendChild(a),l},au=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Le={show(e,l,a={},n=!0){au(l);const r=a.id;return r&&Tt.has(r)?lu({...a,message:l,reference:e}):(n&&Sl(),nu({...a,message:l,reference:e}))},hide(e){Sl(e)},install(e){e.config.globalProperties.$hintText=Le}};function ru(e,l,a,n=!1){return{inheritAttrs:!0,props:{...Ce,...ze},emits:["appear","disappear"],setup(r,o){const s=r.prop??o.attrs.name;Te({componentName:e,validate:!1},s);const u=pt(),i=Bl();Dl(!1);const d=(0,t.computed)(()=>i&&u?Ml(u,!1).value:null),m=e,f=(0,t.ref)(null),g=(0,t.computed)(()=>{const y={[m]:!0,[`${m}__gutter`]:d.value&&d.value.type!=="flow",[`${m}__stretch`]:r.span==="stretch",[`${m}__input--border`]:de(r.hasBorder)};if(y[r.errorMarkClass]=!!L.value,y[r.warnMarkClass]=!!N.value,y[r.infoMarkClass]=!!I.value,typeof f.value=="function"){const R=f.value(s);y[R]=!0}else if(typeof f.value=="string"){const R=f.value;y[R]=!0}return y}),b=(0,t.ref)(null),k=(0,t.computed)(()=>{const y={};if(r.width)r.width!=="auto"&&(y.width=we(r.width));else{const R=i&&u?Il(u,!1):null;if(d.value&&R){if(d.value.type==="grid"){const j=Ll(R,d.value,r.span,r.offset);Object.assign(y,j)}else if(d.value.type==="flow"){const j=Al(R,d.value,r.span,r.offset,r.width);Object.assign(y,j)}}}if(typeof b.value=="function"){const R=b.value(s);R&&Object.assign(y,R)}else if(b.value&&typeof b.value=="object"){const R=b.value;Object.assign(y,R)}return y}),v=(0,t.ref)(null),h=(0,t.computed)({get:()=>v.value??de(r.isRequired),set:y=>{v.value=y}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof o.slots.label=="function",p=De((0,t.toRef)(r,"labelPosition"),"labelPosition",qe.Near),c=(0,t.computed)(()=>p&&p.value==="top"?"top":p&&p.value==="right"?"right":"left"),z=(0,t.computed)(()=>({[`${m}__main`]:!0,[`${m}__main--${c.value}`]:!0})),M=(0,t.computed)(()=>({label:!0,[`label--${c.value}`]:!0})),_=De((0,t.toRef)(r,"labelWidth"),"labelWidth",qe.Near),S=(0,t.computed)(()=>_&&_.value?{width:we(_.value)}:{}),V=(0,t.computed)(()=>({"label--string":!0,"label--required":h.value})),w=(0,t.computed)(()=>({content:!0,[r.contentClass]:!0})),O=(0,t.computed)(()=>({...r.contentStyle})),C=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(y){h.value=y},setErrorTip(y){C.errorTip=y},setErrorIcon(y){C.errorIcon=y},setWarnTip(y){C.warnTip=y},setWarnIcon(y){C.warnIcon=y},setInfoTip(y){C.infoTip=y},setInfoIcon(y){C.infoIcon=y},setCustomClassName(y){f.value=y},setCustomStyle(y){b.value=y}});const I=(0,t.computed)(()=>r.infoTip||C.infoTip),Z=(0,t.computed)(()=>r.infoIcon||C.infoIcon),N=(0,t.computed)(()=>r.warnTip||C.warnTip),T=(0,t.computed)(()=>r.warnIcon||C.warnIcon),L=(0,t.computed)(()=>r.errorTip||C.errorTip),q=(0,t.computed)(()=>r.errorIcon||C.errorIcon),G=(0,t.computed)(()=>L.value?"error":N.value?"warn":I.value?"info":""),X=()=>G.value.length>0,F=(0,t.computed)(()=>G.value==="error"?L.value:G.value==="warn"?N.value:G.value==="info"?I.value:""),ee=(0,t.computed)(()=>G.value==="error"?q.value:G.value==="warn"?T.value:G.value==="info"?Z.value:null),K=(0,t.computed)(()=>{const y={[`${m}__tip`]:!0,[`${m}__tip--${G.value}`]:!0,[`${m}--animate`]:!0};return G.value==="error"&&r.errorClass?y[`${r.errorClass}`]=!0:G.value==="warn"&&r.warnClass?y[`${r.warnClass}`]=!0:G.value==="info"&&r.infoClass&&(y[`${r.infoClass}`]=!0),y}),H=(0,t.computed)(()=>{const y={};return p&&p.value==="top"||!$()?y["padding-left"]="0px":_&&_.value&&(y["padding-left"]=we(_.value)),y}),Y=(0,t.ref)();let J="";(0,t.watch)([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([y,R,j,te])=>{Y.value&&(y&&!fe(R)?J?a.show(Y.value,R,{...te,id:J,type:j},!0):J=a.show(Y.value,R,{...te,type:j},!0):a.hide(J))});let P=null;const Q=()=>{P||!Y.value||(P=new IntersectionObserver(y=>{let R=!1;for(let j of y)if(j.intersectionRatio>0){R=!0,R&&o.emit("appear",j);break}R||o.emit("disappear")}),P.observe(Y.value))},le=()=>{!P||!Y.value||(P.unobserve(Y.value),P=null)};(0,t.watch)(()=>de(r.appearListen),y=>{y?Q():le()}),(0,t.onMounted)(()=>{de(r.appearListen)&&Q()}),(0,t.onUnmounted)(le);const U=()=>{if(!$())return null;const y=[],R=o.slots?.label?.()??r.label,j=(0,t.h)("div",{class:V.value},[R]);if(y.push(j),o.slots.fixedPreTip){const te=o.slots.fixedPreTip();y.push(te)}return(0,t.h)("div",{class:M.value,style:S.value},y)},E=()=>{const y=[];if(o.slots.prepend){const R=o.slots.prepend();y.push(R)}if(o.slots.default){const R=o.slots.default();y.push(R)}if(o.slots.append){const R=o.slots.append();y.push(R)}if(o.slots.fixedTip){const R=(0,t.h)("div",{class:[`${m}__fixed-tip`]},[o.slots.fixedTip()]);y.push(R)}return(0,t.h)("div",{ref:Y,class:w.value,style:O.value},y)},A=()=>{const y=ee.value;return y?typeof y=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[y()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(y)]):null},x=()=>{const y=F.value;return y?typeof y=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[y()]):(0,t.h)("div",{class:"fox-item__tip--text"},[y]):null},W=()=>{if(!X())return null;const y=[],R=A();R&&y.push(R);const j=x();return j&&y.push(j),(0,t.h)("div",{class:K.value,style:H.value},y)},D=()=>o.slots?.hide?.()??null;return()=>{const y=[],R=[],j=U();j&&R.push(j);const te=E();te&&R.push(te);const ae=(0,t.h)("div",{class:z.value},R);y.push(ae);const oe=W();oe&&y.push(oe);const he=D();return he&&y.push(he),(0,t.h)("div",{class:g.value,style:k.value,prop:r.prop},y)}}}}var{componentName:ou,create:iu,scope:su}=ie("item"),uu=iu(ru(ou,su,Le,!1)),ke=uu,Nn={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function cu(e,l){return{props:{...Nn},setup(a,n){const r=pt(),o=Bl();Dl(!1);const s=(0,t.computed)(()=>o&&r?Ml(r,!1).value:null),u=e,i=(0,t.computed)(()=>({[u]:!0,[`${u}__gutter`]:s.value&&s.value.type!=="flow",[`${u}__stretch`]:a.span==="stretch"})),d=(0,t.computed)(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=we(a.width));else{const f=o&&r?Il(r,!1):null;if(s.value&&f)if(s.value.type==="grid"){const g=Ll(f,s.value,a.span,a.offset);Object.assign(m,g)}else if(s.value.type==="flow"){const g=Al(f,s.value,a.span,a.offset,a.width);Object.assign(m,g)}else return a.width&&(m.width=we(a.width)),m}return m});return()=>{const m={class:i.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?(0,t.h)("div",m,n.slots.default()):(0,t.h)("div",m)}}}}var{componentName:du,create:fu,scope:mu}=ie("slot-item"),hu=fu(cu(du,mu)),Fl=hu,kn={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 pu(e,l){return{props:{...kn},setup(a,n){const r=e,o=(0,t.computed)(()=>({[r]:!0,[`${r}__stretch`]:a.span==="stretch",[`${r}__${a.align}`]:!0})),s=pt(),u=Bl();Dl(!1);const i=(0,t.computed)(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=we(a.width));else if(u&&s){const m=Ml(s,!1),f=Il(s,!1);if(m.value&&f)if(m.value.type==="grid"){const g=Ll(f,m.value,a.span,a.offset);Object.assign(d,g)}else if(m.value.type==="flow"){const g=Al(f,m.value,a.span,a.offset,a.width);Object.assign(d,g)}else a.width&&(d.width=we(a.width))}return a.gutter&&(d.gap=we(a.gutter)),d});return()=>{const d=[];if(n.slots.default){const m=n.slots.default();if(a.divide)for(let f=0;f<m.length;f++){if(f>0){const g=(0,t.h)("div",{class:{[`${r}__divide`]:!0}});d.push(g)}d.push(m[f])}else Reflect.apply([].push,d,m)}return(0,t.h)("div",{class:o.value,style:i.value},d)}}}}var{componentName:gu,create:vu,scope:yu}=ie("row-item"),bu=vu(pu(gu,yu)),Rl=bu;function wu(e,l){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const n=a.getBoundingClientRect().width;if(n>0){l(n);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const r=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),l(r)},500)}var Su={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function xu(e,l,a,n=!1){return{props:{...Su},emits:["click"],setup(r,o){const s=(0,t.ref)(null),u=(0,t.computed)(()=>{const c={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(c[`${e}--${r.type??"default"}`]=!0),r.size&&(c[`${e}--${r.size}`]=!0),c}),i=(0,t.computed)(()=>{const c={},z=r.textColor??r.color;return z&&(c.color=z),c}),d=(c,z)=>{let M=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const _=r.highlightFilter;c.indexOf(_)!==-1&&(z.innerHTML=c.replace(new RegExp(_,"g"),`<span>${_}</span>`),z.class["is-highlight"]=!0,M=(0,t.h)(r.tag,z))}else if(typeof r.highlightFilter=="function"){const _=r.highlightFilter(c);_&&(z.innerHTML=_,z.class["is-highlight"]=!0,M=(0,t.h)(r.tag,z))}return M},m=c=>{o.emit("click",c)};let f="";const g=()=>{const c=s.value;if(!c)return;const z=c.clientWidth;wu(c,M=>{const _=c.innerHTML??"";fe(_)||M<z||(f?a?.show(c,_,{type:"text",id:f,showArrow:r.showArrow},!0):f=a?.show(c,_,{type:"text",showArrow:r.showArrow},!0)??"")})},b=()=>{f&&a?.hide(f)};let k=null;const v=c=>{k||(k=setTimeout(()=>{g(),k=null},r.showAfter??0))},h=c=>{k&&(clearTimeout(k),k=null),setTimeout(()=>{b()},r.hideAfter??0)},$=()=>{const c=s.value;c&&(c.addEventListener("mouseover",v),c.addEventListener("mouseleave",h))},p=()=>{const c=s.value;c&&(c.removeEventListener("mouseover",v),c.removeEventListener("mouseleave",h))};return(0,t.onMounted)(()=>{!de(r.showOverflowTooltip)||!a||$()}),(0,t.onBeforeUnmount)(()=>{!de(r.showOverflowTooltip)||!a||p()}),()=>{const c={onClick:m,class:u.value,style:i.value,ref:s};let z=null;if(de(r.numberFormat)&&typeof o.slots.default=="function"){const _=o.slots.default();if(Array.isArray(_)&&_.length===1){const S=_[0].type.toString();if(S==="Symbol(Text)"||S==="Symbol(v-txt)"){const V=ve(r.digits),w=ve(r.decimalLength),O=de(r.autoPadding);let C=`${_[0].children}`,I=C.split("").reverse().join("");I=xl(I,w,O,V,r.separator),C=I.split("").reverse().join(""),r.highlightFilter!==void 0&&(z=d(C,c)),z||(c.innerHTML=C,z=(0,t.h)(r.tag,c))}}}else{if(r.highlightFilter!==void 0&&typeof o.slots.default=="function"){const _=o.slots.default();if(Array.isArray(_)&&_.length===1){const S=_[0].type.toString();if(S==="Symbol(Text)"||S==="Symbol(v-txt)"){const V=`${_[0].children}`;z=d(V,c),z||(c.innerHTML=V,z=(0,t.h)(r.tag,c))}}}z||(z=(0,t.h)(r.tag,c,{default:o.slots.default}))}if(!r.mark&&!o.slots.mark)return z;const M=[];if(o.slots.mark){const _={[`${e}__mark-wrap`]:!0};r.type&&(_[`${e}__mark-wrap--${r.type}`]=!0);const S={},V=r.color;V&&(S.color=V);const w=(0,t.h)("view",{onClick:m,class:_,style:S},{default:o.slots.mark});M.push(w)}else{const _={[`${e}__mark`]:!0};r.type&&(_[`${e}__mark--${r.type??"default"}`]=!0);const S={},V=r.color;V&&(S["background-color"]=V);const w=(0,t.h)("view",{onClick:m,class:_,style:S});M.push(w)}if(r.divide){const _=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});M.push(_)}return M.push(z),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}},M)}}}}var{componentName:Cu,create:Nu,scope:ku}=ie("text"),zu=Nu(xu(Cu,ku,Le,!1)),Ol=zu,Tu={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 Eu(e,l,a=!1){return{props:{...Tu},emits:["update:visible"],setup(n,{emit:r,slots:o,expose:s}){const u=(0,t.ref)({top:null,right:null,bottom:null,left:null}),i=(0,t.ref)(0),d=(0,t.ref)(0),m=(0,t.ref)(0),f=(0,t.ref)(0),g=(0,t.ref)(n.placement),b=(0,t.ref)(!1),k=(0,t.ref)(!1),v=(0,t.ref)(null),h=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,$=(F,ee,K,H,Y,J,P,Q=!0)=>{const le=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,E=F.split("-");let A=[];Q?E[0]==="top"?A=["top","bottom","right","left"]:E[0]==="bottom"?A=["bottom","top","right","left"]:E[0]==="left"?A=["left","top","bottom","right"]:E[0]==="right"&&(A=["right","top","bottom","left"]):A=[F[0]];const x={top:null,right:null,bottom:null,left:null},W=[];for(let D=0;D<A.length;D++){const y=A[D];if(W[0]=y,E[1]&&(W[1]=E[1]),y==="top"){const R=K-P-n.arrowSize/2-n.offset;if(R>=0){x.top=R;let j=0;E[1]==="start"?j=ee:E[1]==="end"?j=ee+H-J:j=ee+H/2-J/2;const te=le-j-J;te<0?(j+=te,c.value=-te):c.value=0,x.left=j<0?0:j;break}}else if(y==="bottom"){const R=K+Y+n.arrowSize/2+n.offset;if(R+P<=U){x.top=R;let j=0;E[1]==="start"?j=ee:E[1]==="end"?j=ee+H-J:j=ee+H/2-J/2;const te=le-j-J;te<0?(j+=te,c.value=-te):c.value=0,x.left=j<0?0:j;break}}else if(y==="left"){const R=ee-J-n.arrowSize/2-n.offset;if(R>=0){x.left=R;let j=0;E[1]==="start"?j=K:E[1]==="end"?j=K+Y-P:j=K+Y/2-P/2,x.top=j<0?0:j;break}}else if(y==="right"){const R=ee+H+n.arrowSize/2+n.offset;if(R+J<=le){x.left=R;let j=0;E[1]==="start"?j=K:E[1]==="end"?j=K+Y-P:j=K+Y/2-P/2,x.top=j<0?0:j;break}}}return{bestPlacement:W.join("-"),bestInsetRect:x}},p=()=>{const F=n.visible,ee=n.autoFit;if(!ht||F===!1)return;if(n.reference){const P=h(),Q=Xn(P);i.value=Q.x,d.value=Q.y,m.value=P.offsetWidth,f.value=P.offsetHeight}else n.referenceInset&&(i.value=n.referenceInset.left,d.value=n.referenceInset.top,m.value=n.referenceInset.right-n.referenceInset.left,f.value=n.referenceInset.bottom-n.referenceInset.top);const K=v.value.offsetWidth,H=v.value.offsetHeight,{bestPlacement:Y,bestInsetRect:J}=$(n.placement,i.value,d.value,m.value,f.value,K,H,ee);g.value=Y,u.value=J},c=(0,t.ref)(0),z=Ge(()=>{p()},10),M=(0,t.ref)(n.visible);(0,t.watch)([()=>n.visible],([F])=>{M.value=F,F?(b.value=F,setTimeout(()=>{p(),k.value=!0},0)):k.value=!1});const _=(0,t.computed)(()=>M.value&&S.value),S=(0,t.ref)(!0),V=Ge(F=>{const ee=F[0];ee&&(S.value=ee.isIntersecting)},10),w=new IntersectionObserver(V);(0,t.watch)([()=>n.reference,()=>n.referenceInset],([F,ee],[K,H])=>{!F&&!ee||(setTimeout(()=>{p()},0),n.autoFit&&(K&&(Ht.unwatch(K,z),w.unobserve(K)),F&&(Ht.watch(F,z),w.observe(F))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{n.reference&&(Ht.unwatch(n.reference,z),w.unobserve(n.reference),w.disconnect())});const O=(0,t.computed)(()=>{const F={[e]:!0};return g.value.startsWith("top")?F["is-top"]=!0:g.value.startsWith("right")?F["is-right"]=!0:g.value.startsWith("bottom")?F["is-bottom"]=!0:g.value.startsWith("left")&&(F["is-left"]=!0),F[`is-${n.effect}`]=!0,!k.value&&_.value&&(F["is-opacity"]=!0),k.value&&_.value&&(F["is-show"]=!0),_.value||(F["is-hide"]=!0),n.customClass&&typeof n.customClass=="string"&&(F[`${n.customClass}`]=!0),F}),C=(0,t.computed)(()=>{const F={};return u.value.top!==null&&(F.top=`${u.value.top}px`),u.value.right!==null&&(F.right=`${u.value.right}px`),u.value.bottom!==null&&(F.bottom=`${u.value.bottom}px`),u.value.left!==null&&(F.left=`${u.value.left}px`),n.width&&(F.width=n.width),n.zIndex&&(F["z-index"]=`${n.zIndex}`),n.customStyle&&typeof n.customStyle=="object"&&Object.assign(F,n.customStyle),F}),I=()=>{M.value=!1,r("update:visible",!1)},Z=()=>n.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:I}):null,N=()=>{let F=null;return o.title?F=(0,t.h)("div",{class:`${e}__title`},{default:o.title}):n.title&&(F=(0,t.h)("div",{class:`${e}__title`},[n.title])),F},T=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),L=(0,t.computed)(()=>{const F={};return n.showArrow?(F.width=`${n.arrowSize}px`,F.height=`${n.arrowSize}px`,g.value==="top"?(F.left="50%",F.bottom="0",F.transform="translate(-50%, 50%)"):g.value==="top-start"?(F.left=`${n.arrowOffset+c.value}px`,F.bottom="0",F.transform="translate(-50%, 50%)"):g.value==="top-end"?(F.right=`${n.arrowOffset-c.value}px`,F.bottom="0",F.transform="translate(-50%, 50%)"):g.value==="right"?(F.left="0",F.top="50%",F.transform="translate(-50%, -50%)"):g.value==="right-start"?(F.left="0",F.top=`${n.arrowOffset}px`,F.transform="translate(-50%, 50%)"):g.value==="right-end"?(F.left="0",F.bottom=`-${n.arrowOffset}px`,F.transform="translate(-50%, 50%)"):g.value==="bottom"?(F.left="50%",F.top="0",F.transform="translate(-50%, -50%)"):g.value==="bottom-start"?(F.left=`${n.arrowOffset+c.value}px`,F.top="0",F.transform="translate(-50%, -50%)"):g.value==="bottom-end"?(F.right=`${n.arrowOffset-c.value}px`,F.top="0",F.transform="translate(-50%, -50%)"):g.value==="left"?(F.right="0",F.top="50%",F.transform="translate(50%, -50%)"):g.value==="left-start"?(F.right="0",F.top=`${n.arrowOffset}px`,F.transform="translate(50%, -50%)"):g.value==="left-end"&&(F.right="0",F.bottom=`-${n.arrowOffset}px`,F.transform="translate(50%, -50%)"),F):{display:"none"}}),q=()=>(0,t.h)("div",{class:T.value,style:L.value}),G=()=>{M.value===!1&&(b.value=!1)},X=F=>{if(!v.value||M.value===!1)return;const{relatedTarget:ee}=F;v.value.contains(ee)||(M.value=!1,r("update:visible",!1))};return s({doLayout:p}),()=>{if(!b.value)return null;const F=[],ee=Z();ee&&F.push(ee);const K=[],H=N();if(H&&K.push(H),o.default){const Q=o.default();K.push(Q)}const Y=q();Y&&K.push(Y);const J={ref:v,class:O.value,style:C.value,onAnimationend:G};n.leaveHide&&(J.onMouseleave=X);const P=(0,t.h)("div",J,{default:()=>K});return F.push(P),(0,t.h)(t.Teleport,{to:n.teleport,disabled:n.teleportDisable},{default:()=>F})}}}}var{componentName:_u,create:$u,scope:Vu}=ie("popover-dialog"),Bu=$u(Eu(_u,Vu,!1)),Hl=Bu,Du={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 Mu(e,l,a){return{props:{...kn,...Du},emits:["click"],setup(n,{slots:r,attrs:o}){const{toLocaleRefs:s}=(0,Se.useFoxI18n)(l),u=s(n,["moreText"]),i=e,d=(0,t.computed)(()=>({[i]:!0}));function m(_){return _.props||{}}function f(_){return!!m(_).disabled}function g(_){return _.children??[]}const b=(0,t.ref)(),k=(0,t.computed)(()=>b.value?.$el??null),v=(0,t.ref)(!1),h=_=>{v.value=_},$=()=>{v.value=!v.value};function p(_,S){return()=>{S||(v.value=!1,m(_)?.onClick?.())}}function c(_,S){const V=g(_),w=f(_),O=p(_,w),C=[`${i}__dropdown-item`];return w&&C.push("is-disabled"),(0,t.h)("span",{class:C,onClick:O},V)}const z=_=>{const S=n.maxDisplayCount??_.length;if(S>=_.length)return _;const V=[],w=S-1;for(let N=0;N<w;N++)V.push(_[N]);const O=(r.moreIcon&&r.moreIcon())??(n.moreIcon&&(0,t.h)(n.moreIcon))??(0,t.h)(a),C=(0,t.h)(Ol,{ref:N=>b.value=N,class:`${i}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:n.type,onClick:$},{default:()=>u.moreText.value,mark:()=>O});V.push(C);const I=[];for(let N=w;N<_.length;N++){const T=c(_[N],N);I.push(T)}const Z=(0,t.h)(Hl,{placement:n.dropdownPlacement,"onUpdate:visible":h,visible:v.value,reference:k.value,"custom-class":`${i}__popover`},{default:()=>I});return V.push(Z),V},M=()=>(r.default?.()||[]).filter(_=>_.type!==Comment);return()=>{const _=z(M()),S=lt(n,kn);return Object.assign(S,o??{}),S.class=d.value,(0,t.h)(Rl,S,{default:()=>_})}}}}var{componentName:Iu,create:Au,scope:Lu}=ie("buttons-item"),Pu=Au(Mu(Iu,Lu,$e.ArrowDown)),Zn=Pu,Qe=(e={})=>{if(!e)return{};const l={};return Reflect.ownKeys(e).forEach(a=>{typeof a=="string"&&a.indexOf("data-fox")!==0&&(l[a]=e[a])}),l},Ua={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 Fu(e,l,a){return{props:{...Ce,...ze,...Ua},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),{toLocaleRefs:m}=(0,Se.useFoxI18n)(l),f=m(n,["placeholder"]),g=(0,t.ref)(!1),b=ge(n,"modelValue",null,d),k=e,v=(0,t.computed)(()=>({[k]:!0,[`${k}__disabled`]:s.value,[`${k}__readonly`]:i.value})),h=T=>{b.value=T,d("update:modelValue",T),d("input",T)},$=T=>{d("change",T)};let p=ge(n,"hintText"),c=(0,t.ref)(!1);const z=T=>{let L=T.target.value;g.value=!0,fe(p.value)||(c.value=!0),d("focus",L,T)},M=T=>{setTimeout(()=>{c.value&&(c.value=!1),g.value=!1},0);let L=T.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),d("blur",L,T)},_=()=>{d("clear","")},S=(0,t.ref)(!1);let V=null;const w=()=>{n.showTooltip&&S.value===!1&&(V&&clearTimeout(V),V=setTimeout(()=>{S.value=!0},150))},O=()=>{V&&(clearTimeout(V),S.value=!1,V=null)},C=(0,t.computed)(()=>S.value||c.value),I=(0,t.computed)(()=>S.value?b.value:p.value),Z=(0,t.computed)(()=>Je(n.unit)>0),N=(0,t.ref)();return be({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()},setDisabled:T=>{o.value=T},setReadonly:T=>{u.value=T}}),()=>{const T={...Qe(r.attrs),ref:N,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:b.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onChange:$,onInput:h,onFocus:z,onBlur:M,onMouseover:w,onMouseleave:O},L={};r.slots.prepend&&(L.prepend=r.slots.prepend),r.slots.append&&(L.append=r.slots.append),r.slots.prefix&&(L.prefix=r.slots.prefix),r.slots.suffix?L.suffix=r.slots.suffix:Z.value&&(L.suffix=()=>[n.unit]);const q=[],G=(0,t.h)(B.ElInput,T,L);q.push(G);const X={default:()=>q};X.label=r.slots.default,X.fixedPreTip=r.slots.fixedPreTip,X.fixedTip=r.slots.fixedTip;const F={...Me(n,Ua),hintText:I.value,hintVisible:C.value};return n.prop&&(F.prop=`${n.prop}_item`),(0,t.h)(a,F,X)}}}}var{componentName:Ru,create:Ou,scope:Hu}=ie("input-item"),qu=Ou(Fu(Ru,Hu,ke)),Jn=qu;function dt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Yt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Ao(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}function ju(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}var Ku=class{proxy;constructor(e){this.proxy=e}async load(e,l,a){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a);const n=Pe(this.proxy,e);return n===null?(console.error(`${e} component not found api function`),[]):(Ke(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await n(l,a))}};function Yu(){return new Ku((0,t.getCurrentInstance)().proxy)}function Lo(e,l,a){return!(dt(e,l)!==dt(e,a)||Yt(e,l)!==Yt(e,a))}function Po(e,l,a,n){if(n.length===0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const r=[];return l.forEach(o=>{for(let s of n){const u=Ao(e,s);if(Array.isArray(u)&&u.length>0){const i=Po(e,o,a,u)??[];Reflect.apply([].push,r,i)}else{let i=!1;if(a==="text")i=dt(e,s)===o;else if(a==="item")i=Lo(e,s,o);else{let d=Yt(e,s);d==null&&(d=dt(e,s)),i=d===o}if(i){r.push(s);break}}}}),r}function Wu(e){return{text:e,value:e}}var Ga={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 Uu(e,l,a){return{props:{...Ce,...ze,...Ga},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),{toLocaleRefs:m}=(0,Se.useFoxI18n)(l),f=m(n,["placeholder"]),g=(0,t.ref)(null),b=(0,t.ref)([]),k=(0,t.computed)(()=>b.value?b.value.map(x=>dt(n,x)).join(" "):""),v=(x,W,D,y=!0)=>{if(!D||D.length==0){g.value=x,y&&(d("update:modelValue",x),d("change",x));return}const R=Po(n,x,W,D);if(R===null){if(b.value===null||b.value.length===0)return;g.value=null,b.value=[],y&&(d("update:modelValue",null),d("update:text",null),d("change",null));return}let j=!0;if(R.length!==b.value.length)j=!1;else for(let te=0;te<R.length;te++){const ae=R[te],oe=b.value[te];if(!Lo(n,ae,oe)){j=!1;break}}if(!j){b.value=R;let te=[],ae=[],oe=[];R.forEach(Xe=>{const ut=Yt(n,Xe),at=dt(n,Xe);te.push(ut),oe.push(at),n.valueType==="text"?ae.push(at):n.valueType==="item"?ae.push(Xe):ae.push(ut)});let he,xe,Ee;de(n.multiple)?(g.value=te,he=(0,t.toRaw)(ae),xe=oe,Ee=(0,t.toRaw)(R)):(g.value=te[0]??"",he=(0,t.toRaw)(ae[0]??""),xe=oe[0]??"",Ee=(0,t.toRaw)(R[0])),y&&(d("update:modelValue",he),d("change",he,Ee)),d("update:text",xe)}},h=(0,t.ref)(null),$=(0,t.ref)(null),p=(0,t.computed)(()=>$.value??h.value??[]),c=De((0,t.computed)(()=>n.appearLoad),"appearLoad",qe.Near,x=>de(x)),z=Yu(),M=async(x,W)=>{if(x){const D=await z.load("select",x,W);D.length>0?typeof D[0]=="string"?h.value=D.map(y=>Wu(y)):h.value=D:h.value=null}};(0,t.watch)([()=>n.source,()=>n.params],([x,W])=>{$.value=null,M(x,W)},{immediate:!c.value});let _=!1;const S=()=>{_||(_=!0,M(n.source,n.params))};(0,t.watch)([()=>h.value,()=>n.modelValue],([x,W])=>{if(C()&&de(n.multiple)){Ue(W,g.value)||(g.value=W);return}v(W,n.valueType,p.value,!1),d("setValue",W)}),n.source||(g.value=n.modelValue);let V=null,w=(0,t.ref)(!1);typeof n.remoteMethod=="function"&&(V=async x=>{if(x==null){$.value=null;return}w.value=!0;try{const W=await n.remoteMethod(x);W&&($.value=W)}catch(W){$.value=null,console.error(W)}w.value=!1});let O=null;typeof n.filterMethod=="function"&&(O=async x=>{if(x==null){$.value=null;return}w.value=!0;try{const W=await n.filterMethod(x,h.value);W&&($.value=W)}catch(W){$.value=null,console.error(W)}w.value=!1});const C=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",I=(0,t.ref)(!1),Z=e,N=(0,t.computed)(()=>({[Z]:!0})),T=x=>{n.allowCreate||C()&&de(n.multiple)?(d("update:modelValue",x),d("change",x),d("update:text",x),g.value=x):v(x,"value",p.value,!0)};let L=ge(n,"hintText"),q=(0,t.ref)(!1);const G=x=>{let W=x.target.value;I.value=!0,fe(L.value)||(q.value=!0),d("focus",W,x)},X=x=>{setTimeout(()=>{q.value&&(q.value=!1),I.value=!1},0);let W=x.target.value;n.maxLength&&W.length>Number(n.maxLength)&&(W=W.slice(0,Number(n.maxLength))),Q.value||d("blur",W,x)},F=()=>{d("clear","")},ee=(0,t.ref)(!1);let K=null;const H=()=>{n.showTooltip&&ee.value===!1&&(K&&clearTimeout(K),K=setTimeout(()=>{ee.value=!0},150))},Y=()=>{K&&(clearTimeout(K),ee.value=!1,K=null)},J=(0,t.computed)(()=>ee.value||q.value),P=(0,t.computed)(()=>ee.value?k.value:L.value),Q=(0,t.ref)(!1),le=x=>{Q.value=x,d("visible-change",x),x||d("selected")},U=x=>{d("remove-tag",x)},E=(x,W)=>{const D=[];return x.forEach((y,R)=>{const j=Ao(n,y);if(Array.isArray(j)&&j.length>0){const te=E(j,W),ae=dt(n,y),oe={key:`${ae}_${R}`,label:ae};D.push((0,t.h)(B.ElOptionGroup,oe,{default:()=>te}))}else{const te=Yt(n,y),ae=dt(n,y),oe=ju(n,y),he={key:`${te}_${R}`,label:ae,disabled:oe,value:te};if(typeof W=="function")D.push((0,t.h)(B.ElOption,he,{default:()=>W(y)}));else if(n.optionType==="item"){const xe=(0,t.h)("span",{class:{"fox-select-item__option-left":!0}},[te]),Ee=(0,t.h)("span",{class:{"fox-select-item__option-right":!0}},[ae]),Xe=(0,t.h)("div",{class:{"fox-select-item__option":!0}},[xe,Ee]);D.push((0,t.h)(B.ElOption,he,{default:()=>Xe}))}else n.optionType==="value"?D.push((0,t.h)(B.ElOption,he,{default:()=>[te]})):D.push((0,t.h)(B.ElOption,he))}}),D},A=(0,t.ref)();return be({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},setDisabled:x=>{o.value=x},setReadonly:x=>{u.value=x}}),()=>{const x={...Qe(r.attrs),ref:A,class:N.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:s.value||i.value,modelValue:g.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:F,onChange:T,onFocus:G,onBlur:X,onVisibleChange:le,onRemoveTag:U};typeof V=="function"&&(x["remote-method"]=V,x.loading=w.value),typeof O=="function"&&(x["filter-method"]=O,x.loading=w.value);const W={};r.slots.prefix&&(W.prefix=r.slots.prefix),r.slots.empty&&(W.empty=r.slots.empty),r.slots.options?W.default=r.slots.options:W.default=()=>E(p.value,r.slots.option);const D=[],y=(0,t.h)(B.ElSelect,x,W);D.push(y);const R={default:()=>D};R.label=r.slots.default,R.fixedPreTip=r.slots.fixedPreTip,R.fixedTip=r.slots.fixedTip;const j={...Me(n,Ga),hintText:P.value,hintVisible:J.value,onMouseover:H,onMouseleave:Y};return n.prop&&(j.prop=`${n.prop}_item`),c.value&&(j["appear-listen"]=!0,j.onAppear=S),(0,t.h)(a,j,R)}}}}var{componentName:Gu,create:Xu,scope:Zu}=ie("select-item"),Ju=Xu(Uu(Gu,Zu,ke)),Qn=Ju,Qu=it(((e,l)=>{(function(a,n){typeof e=="object"&&typeof l<"u"?l.exports=n():typeof define=="function"&&define.amd?define(n):(a=typeof globalThis<"u"?globalThis:a||self).dayjs=n()})(e,(function(){"use strict";var a=1e3,n=6e4,r=36e5,o="millisecond",s="second",u="minute",i="hour",d="day",m="week",f="month",g="quarter",b="year",k="date",v="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={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(N){var T=["th","st","nd","rd"],L=N%100;return"["+N+(T[(L-20)%10]||T[L]||T[0])+"]"}},c=function(N,T,L){var q=String(N);return!q||q.length>=T?N:""+Array(T+1-q.length).join(L)+N},z={s:c,z:function(N){var T=-N.utcOffset(),L=Math.abs(T),q=Math.floor(L/60),G=L%60;return(T<=0?"+":"-")+c(q,2,"0")+":"+c(G,2,"0")},m:function N(T,L){if(T.date()<L.date())return-N(L,T);var q=12*(L.year()-T.year())+(L.month()-T.month()),G=T.clone().add(q,f),X=L-G<0,F=T.clone().add(q+(X?-1:1),f);return+(-(q+(L-G)/(X?G-F:F-G))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:b,w:m,d,D:k,h:i,m:u,s,ms:o,Q:g}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},M="en",_={};_[M]=p;var S="$isDayjsObject",V=function(N){return N instanceof I||!(!N||!N[S])},w=function N(T,L,q){var G;if(!T)return M;if(typeof T=="string"){var X=T.toLowerCase();_[X]&&(G=X),L&&(_[X]=L,G=X);var F=T.split("-");if(!G&&F.length>1)return N(F[0])}else{var ee=T.name;_[ee]=T,G=ee}return!q&&G&&(M=G),G||!q&&M},O=function(N,T){if(V(N))return N.clone();var L=typeof T=="object"?T:{};return L.date=N,L.args=arguments,new I(L)},C=z;C.l=w,C.i=V,C.w=function(N,T){return O(N,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var I=(function(){function N(L){this.$L=w(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[S]=!0}var T=N.prototype;return T.parse=function(L){this.$d=(function(q){var G=q.date,X=q.utc;if(G===null)return new Date(NaN);if(C.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var F=G.match(h);if(F){var ee=F[2]-1||0,K=(F[7]||"0").substring(0,3);return X?new Date(Date.UTC(F[1],ee,F[3]||1,F[4]||0,F[5]||0,F[6]||0,K)):new Date(F[1],ee,F[3]||1,F[4]||0,F[5]||0,F[6]||0,K)}}return new Date(G)})(L),this.init()},T.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},T.$utils=function(){return C},T.isValid=function(){return this.$d.toString()!==v},T.isSame=function(L,q){var G=O(L);return this.startOf(q)<=G&&G<=this.endOf(q)},T.isAfter=function(L,q){return O(L)<this.startOf(q)},T.isBefore=function(L,q){return this.endOf(q)<O(L)},T.$g=function(L,q,G){return C.u(L)?this[q]:this.set(G,L)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(L,q){var G=this,X=!!C.u(q)||q,F=C.p(L),ee=function(U,E){var A=C.w(G.$u?Date.UTC(G.$y,E,U):new Date(G.$y,E,U),G);return X?A:A.endOf(d)},K=function(U,E){return C.w(G.toDate()[U].apply(G.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(E)),G)},H=this.$W,Y=this.$M,J=this.$D,P="set"+(this.$u?"UTC":"");switch(F){case b:return X?ee(1,0):ee(31,11);case f:return X?ee(1,Y):ee(0,Y+1);case m:var Q=this.$locale().weekStart||0,le=(H<Q?H+7:H)-Q;return ee(X?J-le:J+(6-le),Y);case d:case k:return K(P+"Hours",0);case i:return K(P+"Minutes",1);case u:return K(P+"Seconds",2);case s:return K(P+"Milliseconds",3);default:return this.clone()}},T.endOf=function(L){return this.startOf(L,!1)},T.$set=function(L,q){var G,X=C.p(L),F="set"+(this.$u?"UTC":""),ee=(G={},G[d]=F+"Date",G[k]=F+"Date",G[f]=F+"Month",G[b]=F+"FullYear",G[i]=F+"Hours",G[u]=F+"Minutes",G[s]=F+"Seconds",G[o]=F+"Milliseconds",G)[X],K=X===d?this.$D+(q-this.$W):q;if(X===f||X===b){var H=this.clone().set(k,1);H.$d[ee](K),H.init(),this.$d=H.set(k,Math.min(this.$D,H.daysInMonth())).$d}else ee&&this.$d[ee](K);return this.init(),this},T.set=function(L,q){return this.clone().$set(L,q)},T.get=function(L){return this[C.p(L)]()},T.add=function(L,q){var G,X=this;L=Number(L);var F=C.p(q),ee=function(Y){var J=O(X);return C.w(J.date(J.date()+Math.round(Y*L)),X)};if(F===f)return this.set(f,this.$M+L);if(F===b)return this.set(b,this.$y+L);if(F===d)return ee(1);if(F===m)return ee(7);var K=(G={},G[u]=n,G[i]=r,G[s]=a,G)[F]||1,H=this.$d.getTime()+L*K;return C.w(H,this)},T.subtract=function(L,q){return this.add(-1*L,q)},T.format=function(L){var q=this,G=this.$locale();if(!this.isValid())return G.invalidDate||v;var X=L||"YYYY-MM-DDTHH:mm:ssZ",F=C.z(this),ee=this.$H,K=this.$m,H=this.$M,Y=G.weekdays,J=G.months,P=G.meridiem,Q=function(E,A,x,W){return E&&(E[A]||E(q,X))||x[A].slice(0,W)},le=function(E){return C.s(ee%12||12,E,"0")},U=P||function(E,A,x){var W=E<12?"AM":"PM";return x?W.toLowerCase():W};return X.replace($,(function(E,A){return A||(function(x){switch(x){case"YY":return String(q.$y).slice(-2);case"YYYY":return C.s(q.$y,4,"0");case"M":return H+1;case"MM":return C.s(H+1,2,"0");case"MMM":return Q(G.monthsShort,H,J,3);case"MMMM":return Q(J,H);case"D":return q.$D;case"DD":return C.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return Q(G.weekdaysMin,q.$W,Y,2);case"ddd":return Q(G.weekdaysShort,q.$W,Y,3);case"dddd":return Y[q.$W];case"H":return String(ee);case"HH":return C.s(ee,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return U(ee,K,!0);case"A":return U(ee,K,!1);case"m":return String(K);case"mm":return C.s(K,2,"0");case"s":return String(q.$s);case"ss":return C.s(q.$s,2,"0");case"SSS":return C.s(q.$ms,3,"0");case"Z":return F}return null})(E)||F.replace(":","")}))},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(L,q,G){var X,F=this,ee=C.p(q),K=O(L),H=(K.utcOffset()-this.utcOffset())*n,Y=this-K,J=function(){return C.m(F,K)};switch(ee){case b:X=J()/12;break;case f:X=J();break;case g:X=J()/3;break;case m:X=(Y-H)/6048e5;break;case d:X=(Y-H)/864e5;break;case i:X=Y/r;break;case u:X=Y/n;break;case s:X=Y/a;break;default:X=Y}return G?X:C.a(X)},T.daysInMonth=function(){return this.endOf(f).$D},T.$locale=function(){return _[this.$L]},T.locale=function(L,q){if(!L)return this.$L;var G=this.clone(),X=w(L,q,!0);return X&&(G.$L=X),G},T.clone=function(){return C.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},N})(),Z=I.prototype;return O.prototype=Z,[["$ms",o],["$s",s],["$m",u],["$H",i],["$W",d],["$M",f],["$y",b],["$D",k]].forEach((function(N){Z[N[1]]=function(T){return this.$g(T,N[0],N[1])}})),O.extend=function(N,T){return N.$i||(N(T,I,O),N.$i=!0),O},O.locale=w,O.isDayjs=V,O.unix=function(N){return O(1e3*N)},O.en=_[M],O.Ls=_,O.p={},O}))})),ec=it(((e,l)=>{(function(a,n){typeof e=="object"&&typeof l<"u"?l.exports=n():typeof define=="function"&&define.amd?define(n):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_customParseFormat=n()})(e,(function(){"use strict";var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,o=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,i={},d=function(h){return(h=+h)+(h>68?1900:2e3)},m=function(h){return function($){this[h]=+$}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function($){if(!$||$==="Z")return 0;var p=$.match(/([+-]|\d\d)/g),c=60*p[1]+(+p[2]||0);return c===0?0:p[0]==="+"?-c:c})(h)}],g=function(h){var $=i[h];return $&&($.indexOf?$:$.s.concat($.f))},b=function(h,$){var p,c=i.meridiem;if(c){for(var z=1;z<=24;z+=1)if(h.indexOf(c(z,0,$))>-1){p=z>12;break}}else p=h===($?"pm":"PM");return p},k={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:[o,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[s,m("seconds")],ss:[s,m("seconds")],m:[s,m("minutes")],mm:[s,m("minutes")],H:[s,m("hours")],h:[s,m("hours")],HH:[s,m("hours")],hh:[s,m("hours")],D:[s,m("day")],DD:[o,m("day")],Do:[u,function(h){var $=i.ordinal;if(this.day=h.match(/\d+/)[0],$)for(var p=1;p<=31;p+=1)$(p).replace(/\[|\]/g,"")===h&&(this.day=p)}],w:[s,m("week")],ww:[o,m("week")],M:[s,m("month")],MM:[o,m("month")],MMM:[u,function(h){var $=g("months"),p=(g("monthsShort")||$.map((function(c){return c.slice(0,3)}))).indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[u,function(h){var $=g("months").indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],Y:[/[+-]?\d+/,m("year")],YY:[o,function(h){this.year=d(h)}],YYYY:[/\d{4}/,m("year")],Z:f,ZZ:f};function v(h){for(var $=h,p=i&&i.formats,c=(h=$.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,C,I){var Z=I&&I.toUpperCase();return C||p[I]||a[I]||p[Z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,T,L){return T||L.slice(1)}))}))).match(n),z=c.length,M=0;M<z;M+=1){var _=c[M],S=k[_],V=S&&S[0],w=S&&S[1];c[M]=w?{regex:V,parser:w}:_.replace(/^\[|\]$/g,"")}return function(O){for(var C={},I=0,Z=0;I<z;I+=1){var N=c[I];if(typeof N=="string")Z+=N.length;else{var T=N.regex,L=N.parser,q=O.slice(Z),G=T.exec(q)[0];L.call(C,G),O=O.replace(G,"")}}return(function(X){var F=X.afternoon;if(F!==void 0){var ee=X.hours;F?ee<12&&(X.hours+=12):ee===12&&(X.hours=0),delete X.afternoon}})(C),C}}return function(h,$,p){p.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(d=h.parseTwoDigitYear);var c=$.prototype,z=c.parse;c.parse=function(M){var _=M.date,S=M.utc,V=M.args;this.$u=S;var w=V[1];if(typeof w=="string"){var O=V[2]===!0,C=V[3]===!0,I=O||C,Z=V[2];C&&(Z=V[2]),i=this.$locale(),!O&&Z&&(i=p.Ls[Z]),this.$d=(function(q,G,X,F){try{if(["x","X"].indexOf(G)>-1)return new Date((G==="X"?1e3:1)*q);var ee=v(G)(q),K=ee.year,H=ee.month,Y=ee.day,J=ee.hours,P=ee.minutes,Q=ee.seconds,le=ee.milliseconds,U=ee.zone,E=ee.week,A=new Date,x=Y||(K||H?1:A.getDate()),W=K||A.getFullYear(),D=0;K&&!H||(D=H>0?H-1:A.getMonth());var y,R=J||0,j=P||0,te=Q||0,ae=le||0;return U?new Date(Date.UTC(W,D,x,R,j,te,ae+60*U.offset*1e3)):X?new Date(Date.UTC(W,D,x,R,j,te,ae)):(y=new Date(W,D,x,R,j,te,ae),E&&(y=F(y).week(E).toDate()),y)}catch{return new Date("")}})(_,w,S,p),this.init(),Z&&Z!==!0&&(this.$L=this.locale(Z).$L),I&&_!=this.format(w)&&(this.$d=new Date("")),i={}}else if(w instanceof Array)for(var N=w.length,T=1;T<=N;T+=1){V[1]=w[T-1];var L=p.apply(this,V);if(L.isValid()){this.$d=L.$d,this.$L=L.$L,this.init();break}T===N&&(this.$d=new Date(""))}else z.call(this,M)}}}))})),tc=it(((e,l)=>{(function(a,n){typeof e=="object"&&typeof l<"u"?l.exports=n():typeof define=="function"&&define.amd?define(n):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_advancedFormat=n()})(e,(function(){"use strict";return function(a,n){var r=n.prototype,o=r.format;r.format=function(s){var u=this,i=this.$locale();if(!this.isValid())return o.bind(this)(s);var d=this.$utils(),m=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(f){switch(f){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return i.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return i.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),f==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),f==="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 f}}));return o.bind(this)(m)}}}))})),lc=it(((e,l)=>{(function(a,n){typeof e=="object"&&typeof l<"u"?l.exports=n():typeof define=="function"&&define.amd?define(n):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_localeData=n()})(e,(function(){"use strict";return function(a,n,r){var o=n.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},u=function(f,g,b,k,v){var h=f.name?f:f.$locale(),$=s(h[g]),p=s(h[b]),c=$||p.map((function(M){return M.slice(0,k)}));if(!v)return c;var z=h.weekStart;return c.map((function(M,_){return c[(_+(z||0))%7]}))},i=function(){return r.Ls[r.locale()]},d=function(f,g){return f.formats[g]||(function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(k,v,h){return v||h.slice(1)}))})(f.formats[g.toUpperCase()])},m=function(){var f=this;return{months:function(g){return g?g.format("MMMM"):u(f,"months")},monthsShort:function(g){return g?g.format("MMM"):u(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):u(f,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):u(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):u(f,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return d(f.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return m.bind(this)()},r.localeData=function(){var f=i();return{firstDayOfWeek:function(){return f.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(g){return d(f,g)},meridiem:f.meridiem,ordinal:f.ordinal}},r.months=function(){return u(i(),"months")},r.monthsShort=function(){return u(i(),"monthsShort","months",3)},r.weekdays=function(f){return u(i(),"weekdays",null,null,f)},r.weekdaysShort=function(f){return u(i(),"weekdaysShort","weekdays",3,f)},r.weekdaysMin=function(f){return u(i(),"weekdaysMin","weekdays",2,f)}}}))})),nc=it(((e,l)=>{(function(a,n){typeof e=="object"&&typeof l<"u"?l.exports=n():typeof define=="function"&&define.amd?define(n):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekOfYear=n()})(e,(function(){"use strict";var a="week",n="year";return function(r,o,s){var u=o.prototype;u.week=function(i){if(i===void 0&&(i=null),i!==null)return this.add(7*(i-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(n).add(1,n).date(d),f=s(this).endOf(a);if(m.isBefore(f))return 1}var g=s(this).startOf(n).date(d).startOf(a).subtract(1,"millisecond"),b=this.diff(g,a,!0);return b<0?s(this).startOf("week").week():Math.ceil(b)},u.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}}))})),ac=it(((e,l)=>{(function(a,n){typeof e=="object"&&typeof l<"u"?l.exports=n():typeof define=="function"&&define.amd?define(n):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekYear=n()})(e,(function(){"use strict";return function(a,n){n.prototype.weekYear=function(){var r=this.month(),o=this.week(),s=this.year();return o===1&&r===11?s+1:r===0&&o>=52?s-1:s}}}))})),rc=it(((e,l)=>{(function(a,n){typeof e=="object"&&typeof l<"u"?l.exports=n():typeof define=="function"&&define.amd?define(n):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_dayOfYear=n()})(e,(function(){"use strict";return function(a,n,r){n.prototype.dayOfYear=function(o){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}}))})),oc=it(((e,l)=>{(function(a,n){typeof e=="object"&&typeof l<"u"?l.exports=n():typeof define=="function"&&define.amd?define(n):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrAfter=n()})(e,(function(){"use strict";return function(a,n){n.prototype.isSameOrAfter=function(r,o){return this.isSame(r,o)||this.isAfter(r,o)}}}))})),ic=it(((e,l)=>{(function(a,n){typeof e=="object"&&typeof l<"u"?l.exports=n():typeof define=="function"&&define.amd?define(n):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrBefore=n()})(e,(function(){"use strict";return function(a,n){n.prototype.isSameOrBefore=function(r,o){return this.isSame(r,o)||this.isBefore(r,o)}}}))})),nt=st(Qu(),1),sc=st(ec(),1),uc=st(tc(),1),cc=st(lc(),1),dc=st(nc(),1),fc=st(ac(),1),mc=st(rc(),1),hc=st(oc(),1),pc=st(ic(),1);nt.default.extend(cc.default);nt.default.extend(uc.default);nt.default.extend(sc.default);nt.default.extend(dc.default);nt.default.extend(fc.default);nt.default.extend(mc.default);nt.default.extend(hc.default);nt.default.extend(pc.default);var Oe={format(e,l="YYYY-MM-DD"){return(0,nt.default)(e).format(l)},parser(e,l){return(0,nt.default)(e,l).toDate()},getDay(e,l,a){let n=l??new Date;const r=e*(1e3*60*60*24);return n=new Date(n.getTime()+r),a=a??"YYYY-MM-DD",this.format(n,a)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,l,a){let n=new Date(e+"/"+l+"/"+a).getDay();return n==0&&(n=7),n},getMonthDays(e,l){return/^0/.test(l)&&(l=l.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][l]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,l){return l=l||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(l)},compare(e,l,a){const n=typeof e=="string"?this.parser(e,a):e,r=typeof l=="string"?this.parser(l,a):l,o=n.getTime(),s=r.getTime();return o==s?0:o>s?1:-1},between(e,l,a,n){let r;n==="year"?r=new Date(new Date(l).setFullYear(l.getFullYear()+a)):n==="month"?r=new Date(new Date(l).setMonth(l.getMonth()+a)):r=new Date(new Date(l).setDate(l.getDate()+a));const o=e.getTime(),s=r.getTime(),u=l.getTime();return s>u?o>=u&&o<=s:o>=s&&o<=u},inScope4Day(e,l,a){return this.between(e,l,a,"day")},inScope4Month(e,l,a){return this.between(e,l,a,"month")},inScope4Year(e,l,a){return this.between(e,l,a,"year")}},Xa={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"}},Za={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 gc(e,l,a){return{props:{...Ce,...ze,...Xa,...Za},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),{toLocaleRefs:m}=(0,Se.useFoxI18n)(l),f=m(n,["placeholder"]),g=(0,t.ref)(!1),b=ge(n,"modelValue",null,d),k=(0,t.computed)(()=>q.value&&Array.isArray(b.value)&&b.value.length==2?b.value[0]:b.value),v=(0,t.computed)(()=>q.value?"longTermKey":"normalKey"),h=A=>{if(q.value&&n.type==="daterange"){const x=[...b.value];x[0]=A,b.value=x}else b.value=A;d("update:modelValue",b.value),d("change",b.value)},$=(0,t.computed)(()=>q.value&&n.type==="daterange"?"date":n.type),p=e,c=(0,t.computed)(()=>({[`${p}`]:!0,"is-long":q.value,"is-readonly":i.value,"is-disabled":s.value}));let z=ge(n,"hintText"),M=(0,t.ref)(!1);const _=A=>{let x=A.target.value;g.value=!0,fe(z.value)||(M.value=!0),d("focus",x,A)},S=A=>{setTimeout(()=>{M.value&&(M.value=!1),g.value=!1},0);let x=A.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),d("blur",x,A)},V=()=>{d("clear","")},w=A=>{d("calendar-change",A)},O=(A,x,W)=>{d("panel-change",A,x,W)},C=A=>{d("visible-change",A)},I=De((0,t.computed)(()=>n.longTermText),"longTermText",qe.Near),Z=De((0,t.computed)(()=>n.longTermActionLabel),"longTermActionLabel",qe.Near),N=De((0,t.computed)(()=>n.longTermValue),"longTermValue",qe.Near),T=De((0,t.computed)(()=>n.compatibleLongTermValue),"compatibleLongTermValue",qe.Near);let L=null;const q=(0,t.ref)(de(n.longTerm)),G=A=>{if(q.value=A,d("update:longTerm",A),A){if(L=b.value,n.type==="daterange"){const x=[];Array.isArray(N.value)?(x[0]=b.value?b.value[0]??N.value[0]:null,x[1]=N.value[1]??N.value[0]):(x[0]=b.value?b.value[0]??N.value:null,x[1]=q.value),x[0]||(x[0]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),x[1]||(x[1]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),b.value=x}else Array.isArray(N.value)?b.value=N.value[1]??N.value[0]:b.value=N.value,b.value||(b.value=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date);d("update:modelValue",b.value)}else{if(n.type==="daterange"){const x=[];x[0]=Array.isArray(b.value)?b.value[0]:b.value,Array.isArray(L)?x[1]=L[1]:x[1]=L,x[0]||(x[0]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),x[1]||(x[1]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),b.value=x}else b.value=L;d("update:modelValue",b.value),setTimeout(()=>{U()},100)}},X=de(n.isLongTerm);if(X){const A=()=>{if(q.value===!0){if(L=b.value,n.type==="daterange"){const x=[b.value[0]];Array.isArray(N.value)?x[1]=N.value[1]??N.value[0]:x[1]=q.value,x[0]||(x[0]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),x[1]||(x[1]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),b.value=x}else b.value=N.value;d("update:modelValue",b.value)}else Ue(N.value,b.value)&&(q.value=!0)};A(),(0,t.watch)([()=>n.longTerm],([x])=>{q.value!==x&&A()}),(0,t.watch)([()=>b.value],([x])=>{let W=!1;if(n.type==="daterange"&&Array.isArray(x))try{let D=x[1];if(!D)return;if(x[0]==null){d("update:modelValue",[]);return}typeof D!="string"&&n.valueFormat&&(D=Oe.format(D,n.valueFormat));let y=Array.isArray(N.value)?N.value[1]:N.value;(D===y||Array.isArray(T.value)&&T.value.findIndex(R=>D==R)!==-1)&&(W=!0)}catch(D){console.error(D)}q.value!==W&&(q.value=W)},{immediate:!0})}const F=(0,t.computed)(()=>({"fox-date-item__long":!0,"is-active":g.value})),ee=(0,t.ref)(),K=(0,t.ref)(),H=/^\d+$/,Y=(A,x)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(A,x):H.test(A)&&A.length===n.flashFillThreshold,J=(A,x)=>{let W;if(typeof n.flashFillFormat=="function")W=n.flashFillFormat(A,x);else{const y=n.flashFillFormat??"YYYYMMDD";W=Oe.parser(A,y)}const D=n.valueFormat??"YYYY-MM-DD";return Oe.format(W,D)},P=A=>A?A.endsWith("range"):!1,Q=A=>{if(!A.target)return;const x=A.target.value??"";if(Y(x,n.type)){const W=J(x,n.type);if(P(n.type)){const D=Array.isArray(b.value)?[...b.value]:[];D[0]=W,h(D)}else h(W)}},le=A=>{if(!A.target)return;const x=A.target.value??"";if(Y(x,n.type)){const W=J(x,n.type);if(P(n.type)){const D=Array.isArray(b.value)?[...b.value]:[];D[1]=W,h(D)}else h(W)}},U=()=>{if(n.flashFill&&ee.value&&ee.value.$el)if(P(n.type)){const A=ee.value.$el.querySelectorAll("input.el-range-input");A[0]&&A[0].addEventListener("input",Q),A[1]&&A[1].addEventListener("input",le)}else{const A=ee.value.$el.querySelector("input.el-input__inner");A&&A.addEventListener("input",Q)}},E=()=>{if(n.flashFill&&ee.value&&ee.value.$el)if(P(n.type)){const A=ee.value.$el.querySelectorAll("input.el-range-input");A[0]&&A[0].removeEventListener("input",Q),A[1]&&A[1].removeEventListener("input",le)}else{const A=ee.value.$el.querySelector("input.el-input__inner");A&&A.removeEventListener("input",Q)}};return(0,t.onMounted)(U),(0,t.onBeforeUnmount)(E),be({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},handleOpen:()=>{K?.value.handleOpen()},handleClose:()=>{K?.value.handleClose()},setDisabled:A=>{o.value=A},setReadonly:A=>{u.value=A}}),()=>{const A={...r.attrs,key:v.value,type:$.value,ref:K,class:c.value,placeholder:f.placeholder.value,disabled:s.value,readonly:i.value,modelValue:k.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":h,onClear:V,onFocus:_,onBlur:S,onCalendarChange:w,onPanelChange:O,onVisibleChange:C},x={};r.slots["range-separator"]&&(x["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(x.default=r.slots.cell);const W=[],D=(0,t.h)(B.ElDatePicker,A,x);W.push(D);const y={default:()=>W};if(y.label=r.slots.default,y.fixedPreTip=r.slots.fixedPreTip,y.fixedTip=r.slots.fixedTip,X){if(q.value){const j=(0,t.h)("span",{class:["fox-date-item__long-splitor"]},["-"]),te=(0,t.h)("input",{class:["fox-date-item__long-text"],value:I.value,readonly:!0}),ae=(0,t.h)("div",{class:F.value},{default:()=>[j,te]});W.push(ae)}if(!i.value&&!s.value){const j=(0,t.h)(B.ElCheckbox,{label:Z.value||I.value,disabled:i.value||s.value,modelValue:q.value,"onUpdate:modelValue":G}),te=(0,t.h)("div",{class:{[`${p}__append`]:!0}},[j]);y.append=()=>te}}const R={...Me(n,Xa,Za),ref:ee,class:{[`${p}__wrapper`]:!0,"has-append":X},hintText:z.value,hintVisible:M.value};return n.prop&&(R.prop=`${n.prop}_item`),(0,t.h)(a,R,y)}}}}var{componentName:vc,create:yc,scope:bc}=ie("date-item"),wc=yc(gc(vc,bc,ke)),ea=wc,ue={format(e,l="YYYY-MM-DD"){return Oe.format(e,l)},parser(e,l){return Oe.parser(e,l)},isLeapYear:function(e){return Oe.isLeapYear(e)},getWhatDay:function(e,l,a){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+l+"/"+a).getDay()]},getMonthPreDay:function(e,l){let a=new Date(e+"/"+l+"/01").getDay();return a==0&&(a=7),a},getMonthDays:function(e,l){return/^0/.test(l)&&(l=l.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][l]},getNumTwoBit:function(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,l){return l=l||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(l)},getDay:function(e){e=e||0;let l=new Date;const a=e*(1e3*60*60*24);return l=new Date(l.getTime()+a),this.date2Str(l)},compareDate:function(e,l){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(l.replace("-","/").replace("-","/")))},isEqual:function(e,l){return new Date(e).getTime()==new Date(l).getTime()},getMonthWeek:function(e,l,a,n=0){const r=new Date(Number(e),parseInt(l)-1,Number(a));let o=r.getDay();const s=r.getDate();let u=6-o;return n!==0&&(o=o==0?7:o,u=7-o),Math.ceil((s+u)/7)},getYearWeek:function(e,l,a,n=0){const r=new Date(Number(e),parseInt(l)-1,Number(a)),o=new Date(Number(e),0,1),s=Math.round((r.valueOf()-o.valueOf())/864e5);return Math.ceil((s+(o.getDay()+1-1))/7)},getWeekDate:function(e,l,a,n=0){const r=new Date(Number(e),parseInt(l)-1,Number(a)),o=r.getTime();let s=r.getDay();if(n===0){const i=o-s*864e5,d=o+(6-s)*864e5;return[this.date2Str(new Date(i)),this.date2Str(new Date(d))]}else{s=s==0?7:s;const u=1440*60*1e3,i=o-(s-1)*u,d=o+(7-s)*u;return[this.date2Str(new Date(i)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const l=[...e.split("-")];return l[2]=ue.getNumTwoBit(Number(l[2])),l[3]=`${l[0]}-${l[1]}-${l[2]}`,l[4]=ue.getWhatDay(+l[0],+l[1],+l[2]),l}},Sc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),ta={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popClass:{type:String},popStyle:{type:Object}},la={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:{}}},Fo=2e3,Ja=Fo,xc=(e,l)=>({components:l,props:{...la},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:n}){const r=(0,t.reactive)({zIndex:a.zIndex,showSlot:!0,closed:a.closeable}),o=(0,t.computed)(()=>({[e]:!0,round:a.round,[`fox-popup--${a.position}`]:!0,[`fox-popup--${a.position}--safebottom`]:a.position==="bottom"&&a.safeAreaInsetBottom,[a.popClass]:!0})),s=(0,t.computed)(()=>({zIndex:r.zIndex,transitionDuration:`${a.duration}s`,...a.style})),u=(0,t.computed)(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),i=()=>{a.zIndex!==Fo&&(Ja=Number(a.zIndex)),n("update:visible",!0),r.zIndex=++Ja,a.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),a.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+a.duration*1e3)},m=v=>{n("click-pop",v)},f=v=>{v.stopPropagation(),n("click-close-icon",v),n("update:visible",!1)},g=v=>{n("click-overlay",v),a.closeOnClickOverlay&&n("update:visible",!1)},b=v=>{n("opend",v)},k=v=>{n("closed",v)};return(0,t.watch)(()=>a.visible,v=>{a.visible?i():d()}),(0,t.watch)(()=>a.closeable,v=>{r.closed=v}),{...(0,t.toRefs)(r),popStyle:s,transitionName:u,classes:o,onClick:m,onClickCloseIcon:f,onClickOverlay:g,onOpened:b,onClosed:k}}}),Lt=0,Qa="fox-overflow-hidden",er=()=>ht?document.body:{classList:[]},Cc=e=>[()=>{if(e())try{!Lt&&er().classList.add(Qa),Lt++}catch{}},()=>{if(e()&&Lt)try{Lt--,!Lt&&er().classList.remove(Qa)}catch{}}],Nc={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:kc,create:zc}=ie("overlay"),Tc=zc({props:{...Nc},emits:["click","update:visible"],setup(e,{emit:l}){const[a,n]=Cc(()=>e.lockScroll),r=(0,t.computed)(()=>({[kc]:!0,[e.overlayClass]:!0})),o=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,u=>{u?a():n()}),{classes:r,style:o,onClick:u=>{l("click",u),e.closeOnClickOverlay&&l("update:visible",!1)}}}});function Ec(e,l,a,n,r,o){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:l[0]||(l[0]=(0,t.withModifiers)((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var ql=Fe(Tc,[["render",Ec]]);var _c=["aria-labelledby"],$c=[(0,t.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)],Vc=(0,t.defineComponent)({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},$c,14,_c))}});var Bc=["aria-labelledby"],Dc=[(0,t.createElementVNode)("path",{d:"M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512zm0-938.667c-234.667 0-426.667 192-426.667 426.667s192 426.667 426.667 426.667 426.667-192 426.667-426.667S746.667 85.333 512 85.333zM448 320a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm-17.067 149.333h51.2c12.8 0 21.334 8.534 21.334 21.334v8.533c0 12.8-8.534 21.333-21.334 21.333h-51.2c-12.8 0-25.6-12.8-25.6-25.6s12.8-25.6 25.6-25.6zm51.2 0H524.8c25.6 0 51.2 21.334 51.2 51.2v8.534L537.6 755.2c0 8.533-8.533 17.067-21.333 17.067H473.6c-25.6 0-51.2-21.334-51.2-51.2v-8.534L460.8 486.4c4.267-8.533 12.8-17.067 21.333-17.067zm8.534 251.734h76.8c12.8 0 25.6 12.8 25.6 25.6s-12.8 25.6-25.6 25.6h-76.8c-12.8 0-21.334-8.534-21.334-21.334v-12.8c4.267-12.8 12.8-17.066 21.334-17.066z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Mc=(0,t.defineComponent)({__name:"Tips",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Dc,14,Bc))}});var Ic=["aria-labelledby"],Ac=[(0,t.createElementVNode)("path",{d:"M762.311 391.396C655.36 466.489 566.613 552.96 491.52 659.91c-20.48 27.307-61.44 27.307-79.644-2.275-34.134-52.338-72.818-91.023-125.156-125.156-25.031-15.929-9.102-54.613 20.48-50.062 56.889 11.378 100.124 34.133 143.36 72.818 77.369-93.298 175.218-166.116 286.72-213.903 27.307-9.102 50.062 31.858 25.031 50.063M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Lc=(0,t.defineComponent)({__name:"Success",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ac,14,Ic))}});var Pc=["aria-labelledby"],Fc=[(0,t.createElementVNode)("path",{d:"M512 1024C228.43 1024 0 795.57 0 512S228.43 0 512 0s512 228.43 512 512-228.43 512-512 512zm0-945.23C273.067 78.77 78.77 273.066 78.77 512S273.066 945.23 512 945.23 945.23 750.934 945.23 512 750.934 78.77 512 78.77zM984.615 1024c-10.502 0-21.005-2.626-28.882-10.503L824.451 882.215c-15.754-15.753-15.754-39.384 0-55.138s39.385-15.754 55.139 0l131.282 131.282c15.754 15.754 15.754 39.385 0 55.138-5.251 7.877-15.754 10.503-26.257 10.503z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Rc=(0,t.defineComponent)({__name:"Search2",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Fc,14,Pc))}});var Oc=["aria-labelledby"],Hc=[(0,t.createElementVNode)("path",{d:"M381.262 1005.563c-16.132 21.51-45.708 24.198-67.216 8.066-21.51-16.132-24.198-45.708-8.066-67.217C413.526 806.602 518.384 666.79 625.932 529.67c8.066-10.755 8.066-24.198 0-34.953C518.384 354.905 413.526 215.093 305.98 77.972c-16.132-21.51-10.755-51.085 8.066-67.217C335.556-5.377 365.13 0 381.262 18.82c107.547 142.5 212.405 282.31 319.952 419.433 34.952 43.019 34.952 104.858 0 150.565C593.667 728.63 488.81 868.44 381.262 1005.562",fill:"currentColor","fill-opacity":"0.9"},null,-1)],qc=(0,t.defineComponent)({__name:"Right",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Hc,14,Oc))}});var jc=["aria-labelledby"],Kc=[(0,t.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)],Yc=(0,t.defineComponent)({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Kc,14,jc))}});var Wc=["aria-labelledby"],Uc=[(0,t.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)],Jt=(0,t.defineComponent)({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Uc,14,Wc))}});var Gc=["aria-labelledby"],Xc=[(0,t.createElementVNode)("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Zc=(0,t.defineComponent)({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Xc,14,Gc))}});var Jc=["aria-labelledby"],Qc=[(0,t.createElementVNode)("path",{d:"M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267zm111.502 282.169c13.654-13.654 34.134-13.654 47.787 0 11.378 11.377 13.653 31.857 2.275 45.51l-2.275 2.276-111.502 111.502 111.502 111.503c13.653 13.653 13.653 34.133 0 47.786-13.653 13.654-34.133 13.654-47.787 0L512 557.511 400.498 669.013c-11.378 11.378-31.858 13.654-45.511 2.276l-2.276-2.276c-11.378-11.377-13.653-31.857-2.275-45.51l2.275-2.276 111.502-111.503-111.502-111.502c-13.653-13.653-13.653-34.133 0-47.786s34.133-13.654 47.787 0L512 461.938l111.502-111.502z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],e1=(0,t.defineComponent)({__name:"Failure",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Qc,14,Jc))}});var t1=["aria-labelledby"],l1=[(0,t.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)],Ro=(0,t.defineComponent)({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},l1,14,t1))}});var n1=["aria-labelledby"],a1=[(0,t.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)],Oo=(0,t.defineComponent)({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},a1,14,n1))}});var r1=["aria-labelledby"],o1=[(0,t.createElementVNode)("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0zm281.6 369.778C779.378 381.156 600.178 500.622 472.178 691.2c0 0 0 2.844-2.845 2.844-8.533 5.69-48.355 36.978-88.177-8.533-39.823-51.2-62.578-99.555-142.223-142.222-2.844 0-2.844-2.845-2.844-2.845-8.533-11.377-39.822-56.888 19.911-56.888 45.511 0 91.022 11.377 162.133 73.955 5.69 5.689 14.223 5.689 17.067 0C469.333 517.69 608.711 366.933 768 318.578c0 0 19.911-2.845 31.289 14.222 5.689 11.378 11.378 22.756-5.689 36.978z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],i1=(0,t.defineComponent)({__name:"Checked",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},o1,14,r1))}});var s1=["aria-labelledby"],u1=[(0,t.createElementVNode)("path",{d:"M512 1024c-136.533 0-264.533-54.044-361.244-150.756C54.044 776.534 0 648.534 0 512c0-136.533 54.044-264.533 150.756-361.244C247.466 54.044 375.466 0 512 0c136.533 0 264.533 54.044 361.244 150.756C969.956 247.466 1024 375.466 1024 512s-54.044 264.533-150.756 361.244C776.534 969.956 648.534 1024 512 1024zm0-938.667c-113.778 0-221.867 45.511-301.511 125.156S85.333 398.222 85.333 512s45.511 221.867 125.156 301.511S398.222 938.667 512 938.667s221.867-45.511 301.511-125.156S938.667 625.778 938.667 512 893.156 290.133 813.51 210.489 625.778 85.333 512 85.333z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],c1=(0,t.defineComponent)({__name:"CheckNormal",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},u1,14,s1))}});var d1=["aria-labelledby"],f1=[(0,t.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)],m1=(0,t.defineComponent)({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,r=i=>{n("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},f1,14,d1))}});var{componentName:h1,create:p1}=ie("popup"),g1=p1(xc(h1,{FoxOverLay:ql,Close:Ro}));function v1(e,l,a,n,r,o){const s=(0,t.resolveComponent)("FoxOverLay"),u=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(s,(0,t.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"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:l[1]||(l[1]=(...i)=>e.onClick&&e.onClick(...i))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:l[0]||(l[0]=(...i)=>e.onClickCloseIcon&&e.onClickCloseIcon(...i)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(u)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var wt=Fe(g1,[["render",v1]]),{create:y1,scope:b1}=ie("calendar-pane"),w1=y1({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ue.getDay(0)},endDate:{type:String,default:ue.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:l,slots:a}){const{toLocaleRefs:n,t:r}=(0,Se.useFoxI18n)(b1),o=n(e,["title","confirmText","startText","endText","today"]),s=(0,t.computed)(()=>({height:"39px"})),u=(0,t.computed)(()=>({height:"64px"})),i=JSON.parse(r("weekdays")),d=(0,t.ref)([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),m=(0,t.ref)(null),f=(0,t.ref)(null),g=(0,t.ref)(null),b=(0,t.ref)(null),k=(0,t.ref)(0),v=(0,t.computed)(()=>c.monthsData.slice(c.defaultRange[0],c.defaultRange[1])),h=(0,t.computed)(()=>a.btn),$=(0,t.computed)(()=>a["top-info"]),p=(0,t.computed)(()=>a["bottom-info"]),c=(0,t.reactive)({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),z=U=>U.split("-"),M=U=>ue.isEqual(c.currDate[0],U),_=U=>ue.isEqual(c.currDate[1],U),S=U=>c.currDate?.length>0?c.currDate?.some(E=>ue.isEqual(E,U)):!1,V=(U,E)=>E.curData[0]+"-"+E.curData[1]+"-"+ue.getNumTwoBit(+U.day),w=(U,E)=>{const A=V(U,E),{type:x}=e;return U.type=="curr"?ue.isEqual(c.currDate,A)||(x=="range"||x=="week")&&(M(A)||_(A))||x=="multiple"&&S(A)?`${c.dayPrefix}--active`:c.propStartDate&&ue.compareDate(A,c.propStartDate)||c.propEndDate&&ue.compareDate(c.propEndDate,A)?`${c.dayPrefix}--disabled`:(x=="range"||x=="week")&&Array.isArray(c.currDate)&&Object.values(c.currDate).length==2&&ue.compareDate(c.currDate[0],A)&&ue.compareDate(A,c.currDate[1])?`${c.dayPrefix}--choose`:null:`${c.dayPrefix}--disabled`},O=()=>{const{type:U}=e;if(U=="range"&&c.chooseData.length==2||U!="range"){let E=c.chooseData.slice(0);U=="week"&&(E={weekDate:[I(c.chooseData[0]),I(c.chooseData[1])]}),l("choose",E),e.poppable&&l("update")}},C=(U,E,A=!1)=>{if(w(U,E)!=`${c.dayPrefix}--disabled`){const{type:x}=e;let[W,D]=E.curData,y=[...E.curData];if(y[2]=ue.getNumTwoBit(Number(U.day)),y[3]=`${y[0]}-${y[1]}-${y[2]}`,y[4]=ue.getWhatDay(+y[0],+y[1],+y[2]),x=="multiple")if(c.currDate?.length>0){let R;c.currDate?.forEach((j,te)=>{j==y[3]&&(R=te)}),A?c.chooseData.push([...y]):R!==void 0?(c.currDate.splice(R,1),c.chooseData.splice(R,1)):(c.currDate.push(y[3]),c.chooseData.push([...y]))}else c.currDate=[y[3]],c.chooseData=[[...y]];else if(x=="range"){let R=Object.values(c.currDate).length;R==2||R==0?c.currDate=[y[3]]:ue.compareDate(c.currDate[0],y[3])?Array.isArray(c.currDate)&&c.currDate.push(y[3]):Array.isArray(c.currDate)&&c.currDate.unshift(y[3]),c.chooseData.length==2||!c.chooseData.length?c.chooseData=[[...y]]:ue.compareDate(c.chooseData[0][3],y[3])?c.chooseData=[...c.chooseData,[...y]]:c.chooseData=[[...y],...c.chooseData]}else if(x=="week"){let R=ue.getWeekDate(W,D,U.day,e.firstDayOfWeek);c.propStartDate&&ue.compareDate(R[0],c.propStartDate)&&R.splice(0,1,c.propStartDate),c.propEndDate&&ue.compareDate(c.propEndDate,R[1])&&R.splice(1,1,c.propEndDate),c.currDate=R,c.chooseData=[ue.formatResultDate(R[0]),ue.formatResultDate(R[1])]}else c.currDate=y[3],c.chooseData=[...y];if(!A){let R=c.chooseData;x=="week"&&(R={weekDate:[I(c.chooseData[0]),I(c.chooseData[1])]}),l("select",R),(e.isAutoBackFill||!e.poppable)&&O()}}},I=U=>{let[E,A,x]=U;return{date:U,monthWeekNum:ue.getMonthWeek(E,A,x,e.firstDayOfWeek),yearWeekNum:ue.getYearWeek(E,A,x,e.firstDayOfWeek)}},Z=U=>{const E=U=="prev"?c.monthsData[0]:c.monthsData[c.monthsData.length-1];let A=parseInt(E.curData[0]),x=parseInt(E.curData[1].toString().replace(/^0/,""));switch(U){case"prev":x==1&&(A-=1),x=x==1?12:--x;break;case"next":x==12&&(A+=1),x=x==12?1:++x;break}return[A+"",ue.getNumTwoBit(x),ue.getMonthDays(String(A),String(x))+""]},N=(U,E,A)=>{let{year:x,month:W}=A;return E=="prev"&&U>=7&&(U-=7),Array.from(Array(U),(D,y)=>({day:String(y+1),type:E,year:x,month:W}))},T=(U,E,A,x)=>{U=U-e.firstDayOfWeek;let{year:W,month:D}=A;return E=="prev"&&U>=7&&(U-=7),Array.from(Array(x),(y,R)=>({day:String(R+1),type:E,year:W,month:D})).slice(x-U)},L=(U,E)=>{const A=ue.getMonthPreDay(+U[0],+U[1]);let x=Number(U[1])-1,W=Number(U[0]);x<=0&&(x=12,W+=1);const D=ue.getMonthDays(String(U[0]),String(U[1])),y=ue.getMonthDays(W+"",x+""),R={year:U[0],month:U[1]},j={curData:U,title:r("monthTitle",{year:R.year,month:R.month}),monthData:[...T(A,"prev",{month:String(x),year:String(W)},y),...N(D,"curr",R)],cssHeight:0,cssScrollHeight:0};j.cssHeight=39+64*(j.monthData.length>35?6:5);let te=0;c.monthsData.length>0&&(te=c.monthsData[c.monthsData.length-1].cssScrollHeight+c.monthsData[c.monthsData.length-1].cssHeight),j.cssScrollHeight=te,E=="next"?(!c.endData||!ue.compareDate(`${c.endData[0]}-${c.endData[1]}-${ue.getMonthDays(c.endData[0],c.endData[1])}`,`${U[0]}-${U[1]}-${U[2]}`))&&c.monthsData.push(j):!c.startData||!ue.compareDate(`${U[0]}-${U[1]}-${U[2]}`,`${c.startData[0]}-${c.startData[1]}-01`)?c.monthsData.unshift(j):c.unLoadPrev=!0},q=()=>{let U=e.startDate?e.startDate:ue.getDay(0),E=e.endDate?e.endDate:ue.getDay(365);c.propStartDate=U,c.propEndDate=E,c.startData=z(U),c.endData=z(E),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(c.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const A={year:Number(c.startData[0]),month:Number(c.startData[1])},x={year:Number(c.endData[0]),month:Number(c.endData[1])};let W=x.month-A.month;x.year-A.year>0&&(W=W+12*(x.year-A.year)),W<=0&&(W=1),L(c.startData,"next");let D=1;do L(Z("next"),"next");while(D++<W);if(c.monthsNum=W,e.type=="range"&&Array.isArray(c.currDate))c.currDate.length>0&&(U&&ue.compareDate(c.currDate[0],U)&&c.currDate.splice(0,1,U),E&&ue.compareDate(E,c.currDate[1])&&c.currDate.splice(1,1,E),c.defaultData=[...z(c.currDate[0]),...z(c.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let y=[],R={};c.currDate.forEach(j=>{U&&!ue.compareDate(j,U)&&E&&!ue.compareDate(E,j)&&(Object.hasOwnProperty.call(R,j)||(y.push(j),R[j]=j))}),c.currDate=[...y],c.defaultData=[...z(y[0])]}}else if(e.type=="week"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let[y,R,j]=z(c.currDate[0]);c.currDate=ue.getWeekDate(y,R,j,e.firstDayOfWeek),U&&ue.compareDate(c.currDate[0],U)&&c.currDate.splice(0,1,U),E&&ue.compareDate(E,c.currDate[1])&&c.currDate.splice(1,1,E),c.defaultData=[...z(c.currDate[0]),...z(c.currDate[1])]}}else c.currDate&&(U&&ue.compareDate(c.currDate,U)?c.currDate=U:E&&!ue.compareDate(c.currDate,E)&&(c.currDate=E),c.defaultData=[...z(c.currDate)])};be({scrollToDate:U=>{ue.compareDate(U,c.propStartDate)?U=c.propStartDate:ue.compareDate(U,c.propEndDate)||(U=c.propEndDate);let E=z(U);c.monthsData.forEach((A,x)=>{if(A.title==r("monthTitle",{year:E[0],month:E[1]})&&m.value){let W=c.monthsData[x].cssScrollHeight-m.value.scrollTop;if(e.toDateAnimation){let D=0,y=setInterval(()=>{if(D++,m.value){let R=W/10;m.value.scrollTop=m.value.scrollTop+R}D>=10&&(clearInterval(y),m.value&&(m.value.scrollTop=c.monthsData[x].cssScrollHeight))},40)}else m.value.scrollTop=c.monthsData[x].cssScrollHeight}})},initPosition:()=>{m?.value&&(m.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)},doLayout:()=>{let U=0,E=0;c.defaultData.length>0&&c.monthsData.forEach((W,D)=>{W.title==r("monthTitle",{year:c.defaultData[0],month:c.defaultData[1]})&&(U=D),(e.type=="range"||e.type=="week")&&W.title==r("monthTitle",{year:c.defaultData[3],month:c.defaultData[4]})&&(E=D)}),ee(c.monthsNum,U),c.currentIndex=U,c.yearMonthTitle=c.monthsData[c.currentIndex].title,c.defaultData.length>0&&(c.isRange?(C({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0),C({day:c.defaultData[5],type:"curr"},c.monthsData[E],!0)):e.type=="week"?C({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0):e.type=="multiple"?[...c.currDate].forEach(W=>{let D=z(W),y=c.currentIndex;c.monthsData.forEach((R,j)=>{R.title==r("monthTitle",{year:D[0],month:D[1]})&&(y=j)}),C({day:D[2],type:"curr"},c.monthsData[y],!0)}):C({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0));let A=c.monthsData[c.monthsData.length-1],x=A.cssHeight+A.cssScrollHeight;Vn(()=>{m?.value&&f?.value&&b?.value&&(k.value=m.value.clientHeight,f.value.style.height=`${x}px`,m.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)}),c.avgHeight=Math.floor(x/(c.monthsNum+1))}});const ee=(U,E)=>{U>=3?E>0&&E<U?c.defaultRange=[E-1,E+3]:E==0?c.defaultRange=[E,E+4]:E==U&&(c.defaultRange=[E-2,E+2]):c.defaultRange=[0,U+2],c.translateY=c.monthsData[c.defaultRange[0]].cssScrollHeight},K=(U,E)=>(e.type=="range"||e.type=="week")&&U.type=="curr"&&w(U,E)=="fox-calendar__day--active",H=(U,E)=>K(U,E)&&M(V(U,E)),Y=(U,E)=>c.currDate.length>=2&&_(V(U,E))?K(U,E):!1,J=()=>{if(c.currDate.length>=2)return ue.isEqual(c.currDate[0],c.currDate[1])},P=U=>{const E=`${U.year}-${U.month}-${Number(U.day)<10?"0"+U.day:U.day}`;return ue.isEqual(E,ue.date2Str(new Date))},Q=U=>{if(c.monthsData.length<=1)return;const E=U.target.scrollTop;let A=Math.floor(E/c.avgHeight);if(A==0)E>=c.monthsData[A+1].cssScrollHeight&&(A+=1);else if(A>0&&A<c.monthsNum-1)E>=c.monthsData[A+1].cssScrollHeight&&(A+=1),E<c.monthsData[A].cssScrollHeight&&(A-=1);else{const x=Math.round(E+k.value);x<c.monthsData[A].cssScrollHeight+c.monthsData[A].cssHeight&&E>c.monthsData[A-1].cssScrollHeight&&(A-=1),A+1<=c.monthsNum&&x>=c.monthsData[A+1].cssScrollHeight+c.monthsData[A+1].cssHeight&&(A+=1),A>=1&&E<c.monthsData[A-1].cssScrollHeight&&(A-=1)}c.currentIndex!==A&&(c.currentIndex=A,ee(c.monthsNum,A)),c.yearMonthTitle=c.monthsData[A].title},le=()=>{c.chooseData.splice(0),c.monthsData.splice(0),q()};return q(),(0,t.watch)(()=>e.defaultValue,U=>{U&&e.poppable&&le()}),{dayTitleStyle:s,dayCellStyle:u,weeks:d,compConthsData:v,showTopBtn:h,topInfo:$,bottomInfo:p,rangeTip:J,mothsViewScroll:Q,getClass:w,isStartTip:H,isEndTip:Y,chooseDay:C,isCurrDay:P,confirm:O,months:m,...(0,t.toRefs)(c),...(0,t.toRefs)(e),...o,monthsPanel:f,weeksPanel:g,viewArea:b}}}),S1={class:"fox-calendar__header"},x1={key:0,class:"fox-calendar__header-title"},C1={key:1,class:"fox-calendar__header-slot"},N1={key:2,class:"fox-calendar__header-subtitle"},k1={class:"fox-calendar__weekdays",ref:"weeksPanel"},z1={class:"fox-calendar__panel",ref:"monthsPanel"},T1={class:"fox-calendar__days"},E1=["onClick"],_1={class:"fox-calendar__day-value"},$1={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},V1={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},B1={key:2,class:"fox-calendar__day-tips--curr"},D1={key:4,class:"fox-calendar__day-tip"},M1={key:0,class:"fox-calendar__footer"};function I1(e,l,a,n,r,o){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",S1,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",x1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",C1,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",N1,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",k1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(s,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:u},(0,t.toDisplayString)(s),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:l[0]||(l[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[(0,t.createElementVNode)("view",z1,[(0,t.createElementVNode)("view",{class:"fox-calendar__body",ref:"viewArea",style:(0,t.normalizeStyle)({transform:`translateY(${e.translateY}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.compConthsData,(s,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:u},[(0,t.createElementVNode)("view",{class:"fox-calendar__month-title",style:(0,t.normalizeStyle)(e.dayTitleStyle)},(0,t.toDisplayString)(s.title),5),(0,t.createElementVNode)("view",T1,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.monthData,(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(i,s)]),style:(0,t.normalizeStyle)(e.dayCellStyle),onClick:m=>e.chooseDay(i,s)},[(0,t.createElementVNode)("view",_1,[(0,t.renderSlot)(e.$slots,"day",{date:i.type=="curr"?i:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(i.type=="curr"?i.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",$1,[(0,t.renderSlot)(e.$slots,"top-info",{date:i.type=="curr"?i:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",V1,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:i.type=="curr"?i:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(i)?((0,t.openBlock)(),(0,t.createElementBlock)("view",B1,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(i,s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:3,class:(0,t.normalizeClass)(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},(0,t.toDisplayString)(e.startText),3)):(0,t.createCommentVNode)("",!0),e.isEndTip(i,s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",D1,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],14,E1))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",M1,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:l[1]||(l[1]=(...s)=>e.confirm&&e.confirm(...s))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var A1=Fe(w1,[["render",I1]]),{create:L1}=ie("calendar-picker"),P1=L1({components:{CalendarPane:A1,Popup:wt},props:{...ta},emits:["choose","close","update:visible","select"],setup(e,{emit:l,slots:a}){const n=(0,t.computed)(()=>a.btn),r=(0,t.computed)(()=>a["top-info"]),o=(0,t.computed)(()=>a.day),s=(0,t.computed)(()=>a["bottom-info"]),u=(0,t.ref)(null),i=h=>{u.value?.scrollToDate(h)},d=()=>{u.value?.initPosition()},m=(0,t.computed)(()=>{const h=["fox-calendar__popup"];return e.popClass&&h.push(e.popClass),h});(0,t.watch)(()=>e.visible,h=>{h&&(0,t.nextTick)(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),be({scrollToDate:i,initPosition:d});const f=()=>{l("update:visible",!1)},g=()=>{l("close"),l("update:visible",!1)};return{popClasses:m,closePopup:()=>{g()},update:f,close:g,select:h=>{l("select",h)},choose:h=>{g(),l("choose",h)},calendarRef:u,showTopBtn:n,topInfo:r,dayInfo:o,bottomInfo:s}}});function F1(e,l,a,n,r,o){const s=(0,t.resolveComponent)("CalendarPane"),u=(0,t.resolveComponent)("Popup");return e.poppable?((0,t.openBlock)(),(0,t.createBlock)(u,(0,t.mergeProps)({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(i=>[(0,t.renderSlot)(e.$slots,"day",{date:i.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(i=>[(0,t.renderSlot)(e.$slots,"top-info",{date:i.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(i=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:i.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","pop-class","style"])):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(i=>[(0,t.renderSlot)(e.$slots,"day",{date:i.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(i=>[(0,t.renderSlot)(e.$slots,"top-info",{date:i.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(i=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:i.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}var jl=Fe(P1,[["render",F1]]),rn=(e,l)=>{let a;return ft(e)?a=e:typeof e=="string"&&Je(e)>0?a=ue.parser(e,l):a=new Date,a},St=(e,l,a)=>(ft(l)||(l=new Date),ue.format(l,a)),xt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,ue.date2Str(e),ue.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],tr={...ta,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function R1(e,l,a){return{props:{...Ce,...ze,...tr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),{toLocaleRefs:m}=(0,Se.useFoxI18n)(l),f=m(n,["placeholder"]);let g=ge(n,"hintText"),b=(0,t.ref)(!1);const k=(0,t.ref)(!1),v=(0,t.computed)(()=>n.type==="range"),h=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),$=()=>{h.startDate!==null&&(h.startDate=null,h.endDate=null,h.startArray=[],h.endArray=[])},p=(X,F="one",ee="YYYY-MM-DD")=>{if(Sc(X)){$();return}if(v.value&&Array.isArray(X)&&X.length==2){let K,H;typeof X[0]=="string"?(K=rn(X[0],ee),H=rn(X[1],ee)):(K=X[0],H=X[1]);let Y=xt(K),J=xt(H);(h.startDate===null||h.startDate.getTime()!==K.getTime()||h.endDate?.getTime()!==H.getTime())&&(h.startDate=K,h.startArray=Y,h.endDate=H,h.endArray=J)}else{let K;typeof X=="string"?K=rn(X,ee):K=X;let H=xt(K);(h.startDate===null||h.startDate.getTime()!==K.getTime())&&(h.startDate=K,h.startArray=H)}};p(n.modelValue,n.type,n.valueFormat),(0,t.watch)(()=>n.modelValue,X=>{p(X,n.type,n.valueFormat),d("setValue",X)});const c=(0,t.computed)(()=>{if(h.startDate===null)return"";if(v.value){let X=St(n,h.startDate,n.format),F=St(n,h.endDate,n.format);return`${X} ${n.rangeSeparator} ${F}`}else{let X=St(n,h.startDate,n.format);return n.showWeek&&(X=`${X} ${h.startArray[4]}`),X}}),z=(0,t.computed)(()=>h.startDate===null?null:v.value?[ue.date2Str(h.startDate),ue.date2Str(h.endDate??new Date)]:ue.date2Str(h.startDate)),M="fox-input-item",_=(0,t.computed)(()=>({[M]:!0,[`${M}__disabled`]:s.value})),S=De((0,t.computed)(()=>n.textAlign),"textAlign"),V=(0,t.computed)(()=>({textAlign:S.value??"right"})),w=(0,t.ref)(!1),O=()=>{i.value||s.value||(w.value=!0)},C=()=>{w.value=!1},I=X=>{w.value=X},Z=X=>{if(X){if(v.value&&Array.isArray(X)){let F=X[0],ee=ve(F[0]),K=ve(F[1]),H=ve(F[2]),Y=new Date(ee,K-1,H),J=X[1];ee=ve(J[0]),K=ve(J[1]),H=ve(J[2]);let P=new Date(ee,K-1,H);h.startDate=Y,h.startArray=xt(Y),h.endDate=P,h.endArray=xt(P),n.valueFormat?d("update:modelValue",[St(n,Y,n.valueFormat),St(n,P,n.valueFormat)],{}):d("update:modelValue",[Y,P],{})}else{let F=X,ee=ve(F[0]),K=ve(F[1]),H=ve(F[2]),Y=new Date(ee,K-1,H);h.startDate=Y,h.startArray=xt(Y),n.valueFormat?d("update:modelValue",St(n,Y,n.valueFormat),{}):d("update:modelValue",Y,{})}d("change",X,{})}},N=X=>{let F=X.target.value;k.value=!0,d("focus",F,X)},T=X=>{setTimeout(()=>{k.value=!1},0);let F=X.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),d("blur",F,X)},L=(0,t.computed)(()=>Je(n.unit)>0),q=X=>{$(),d("update:modelValue",null,X),d("change","",X),d("clear","")},G=(0,t.ref)();return be({showPicker:O,hidePicker:C,focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()},select:()=>{G?.value.select()},setDisabled:X=>{o.value=X},setReadonly:X=>{u.value=X}}),()=>{const X={class:_.value,style:V.value,type:"text",maxlength:n.maxLength,placeholder:f.placeholder.value,readonly:!0,clearable:n.clearable,value:c.value,onClick:O,onFocus:N,onBlur:T,onClear:q},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix?F.prefix=r.slots.prefix:F.prefix=()=>(0,t.h)(B.ElIcon,{},{default:()=>(0,t.h)($e.Calendar)}),r.slots.suffix?F.suffix=r.slots.suffix:L.value&&(F.suffix=()=>[n.unit]);const ee=[],K=(0,t.h)(B.ElInput,X,F);ee.push(K);const H={default:()=>ee};H.label=r.slots.default,H.fixedPreTip=r.slots.fixedPreTip,H.fixedTip=r.slots.fixedTip;const Y=lt(n,ta);Y.visible=w.value,Y["onUpdate:visible"]=I,Y["default-value"]=z.value,Y.onChoose=Z;const J={};if(r.slots.btn){const le=r.slots.btn();J.btn=()=>le}r.slots.day&&(J.day=r.slots.day),r.slots.topInfo&&(J.topInfo=r.slots.topInfo),r.slots.bottomInfo&&(J.bottomInfo=r.slots.bottomInfo);const P=(0,t.h)(jl,Y,J);H.hide=()=>[P];const Q={...Me(n,tr),hintText:g.value,hintVisible:b.value};return n.prop&&(Q.prop=`${n.prop}_item`),(0,t.h)(a,Q,H)}}}}var{componentName:O1,create:H1,scope:q1}=ie("calendar-item"),j1=H1(R1(O1,q1,ke)),na=j1,lr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function K1(e,l,a){return{props:{...Ce,...ze,...lr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),{toLocaleRefs:m}=(0,Se.useFoxI18n)(l),f=m(n,["placeholder"]),g=(0,t.ref)(!1),b=ge(n,"modelValue",null,d),k=e,v=(0,t.computed)(()=>({[k]:!0})),h=V=>{b.value=V,d("update:modelValue",V),d("change",V)};let $=ge(n,"hintText"),p=(0,t.ref)(!1);const c=V=>{let w=V.target.value;g.value=!0,fe($.value)||(p.value=!0),d("focus",w,V)},z=V=>{setTimeout(()=>{p.value&&(p.value=!1),g.value=!1},0);let w=V.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),d("blur",w,V)},M=()=>{d("clear","")},_=V=>{d("visible-change",V)},S=(0,t.ref)();return be({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()},handleOpen:()=>{S?.value.handleOpen()},handleClose:()=>{S?.value.handleClose()},setDisabled:V=>{o.value=V},setReadonly:V=>{u.value=V}}),()=>{const V={...r.attrs,ref:S,class:v.value,placeholder:f.placeholder.value,disabled:s.value,readonly:i.value,modelValue:b.value,"onUpdate:modelValue":h,onClear:M,onFocus:c,onBlur:z,onVisibleChange:_},w={},O=[],C=(0,t.h)(B.ElTimePicker,V,w);O.push(C);const I={default:()=>O};I.label=r.slots.default,I.fixedPreTip=r.slots.fixedPreTip,I.fixedTip=r.slots.fixedTip;const Z={...Me(n,lr),hintText:$.value,hintVisible:p.value};return n.prop&&(Z.prop=`${n.prop}_item`),(0,t.h)(a,Z,I)}}}}var{componentName:Y1,create:W1,scope:U1}=ie("time-item"),G1=W1(K1(Y1,U1,ke)),aa=G1,nr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function X1(e,l,a){return{props:{...Ce,...ze,...nr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),{toLocaleRefs:m}=(0,Se.useFoxI18n)(l),f=m(n,["placeholder"]),g=(0,t.ref)(!1),b=ge(n,"modelValue",null,d),k=e,v=(0,t.computed)(()=>({[k]:!0})),h=S=>{b.value=S,d("update:modelValue",S),d("change",S)};let $=ge(n,"hintText"),p=(0,t.ref)(!1);const c=S=>{let V=S.target.value;g.value=!0,fe($.value)||(p.value=!0),d("focus",V,S)},z=S=>{setTimeout(()=>{p.value&&(p.value=!1),g.value=!1},0);let V=S.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),d("blur",V,S)},M=()=>{d("clear","")},_=(0,t.ref)();return be({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()},setDisabled:S=>{o.value=S},setReadonly:S=>{u.value=S}}),()=>{const S={...r.attrs,ref:_,class:v.value,placeholder:f.placeholder.value,disabled:s.value,readonly:i.value,modelValue:b.value,"onUpdate:modelValue":h,onClear:M,onFocus:c,onBlur:z},V={},w=[],O=(0,t.h)(B.ElTimeSelect,S,V);w.push(O);const C={default:()=>w};C.label=r.slots.default,C.fixedPreTip=r.slots.fixedPreTip,C.fixedTip=r.slots.fixedTip;const I={...Me(n,nr),hintText:$.value,hintVisible:p.value};return n.prop&&(I.prop=`${n.prop}_item`),(0,t.h)(a,I,C)}}}}var{componentName:Z1,create:J1,scope:Q1}=ie("time-select-item"),e0=J1(X1(Z1,Q1,ke)),ra=e0;function ar(e,l=0){let a=`${e}`,n=a.indexOf(".");if(n==-1)return a;let r=n;for(let o=a.length-1;o>=n;o--)if(a.charAt(o)!="0"){r=o;break}return r-n<l?r=n+l+1:r!=n&&(r+=1),r>a.length?a=a.padEnd(r,"0"):a=a.substring(0,r),a}function rr(e,l,a=20){return typeof l=="string"&&(l=ve(l)),l==1||l==-1?`${e}`:l==0?"0":l>0?ar(Jr(`${e}`,`${l}`)):ar(Dn(`${e}`,Qr(`${l}`),20))}function t0(e,l=-1,a=!1,n=3,r=","){return xl(e,l,a,n,r)}function or(e,l,a,n,r=!0){if(e==="")return"";if(e=eo(e),l=ve(l),l==1)return e;if(n)e=rr(e,l),a&&(e=="0"&&r?e=`${e}.`.padEnd(ve(a)+2,"0"):e=Dn(e,1,ve(a)));else{let o=-1*l;e=rr(e,o)}return e}function ir(e,l){let a={maxValid:!0,minValid:!0,message:""};if(l.min!==void 0){let n=de(l.minInclude),r=vn(e,l.min);(n&&r==-1||!n&&(r==0||r==-1))&&(a.message="请输入不小于 {0} 的数值".replace("{0}",l.min),a.minValid=!1)}if(l.max!=null){let n=de(l.maxInclude),r=vn(e,l.max);(n&&r==1||!n&&(r==0||r==1))&&(a.maxValid=!1)}return a}var sr={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},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function l0(e,l,a){return{props:{...Ce,...ze,...sr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),m=(0,t.ref)(!1),f=ge(n,"modelValue",null,d),g=(0,t.ref)("");(0,t.watch)([()=>f.value,()=>n.rates,()=>n.precision],([T,L,q])=>{if(fe(T)){g.value="";return}const G=or(T,L,q,!1);g.value!==G&&(g.value=G)},{immediate:!0});const b=(0,t.computed)(()=>{let T="";return m.value&&(T=g.value),T}),{t:k}=(0,Se.useFoxI18n)(l),v=(0,t.computed)(()=>{let T=n.placeholder??"";return!m.value&&!fe(g.value)?T=t0(g.value,n.decimalLength,n.autoPadding,n.digits,n.separator):T=k(["placeholder",T]),T}),h=e,$=(0,t.computed)(()=>({[h]:!0,[`${h}__disabled`]:s.value,[`${h}__placeholder`]:g.value.length>0})),p=De((0,t.computed)(()=>n.textAlign),"textAlign");(0,t.computed)(()=>m.value?{textAlign:"left"}:{textAlign:p.value??"right"});const c=(0,t.ref)(""),z=(0,t.computed)(()=>{let T=c.value;return fe(T)&&(T=n.errorTip??""),T}),M=(0,t.ref)(""),_=(0,t.ref)(!1),S=(T,L)=>{if(T=`${T}`,fe(T)){g.value="",f.value="",L.forEach(q=>{d(q,"")}),de(n.showTip)&&_.value&&(_.value=!1);return}if(T.length>=2){let q=T;if(q.charAt(0)=="-"&&(q=q.substring(1)),q.length>=2&&q.charAt(0)=="0"&&q.charAt(1)!="."){(0,t.triggerRef)(g);return}}if(T!="-"){if(!An(T)){(0,t.triggerRef)(g);return}if(n.integerLength!=-1&&so(T)>Number(n.integerLength)){(0,t.triggerRef)(g);return}if(n.decimalLength&&n.decimalLength!=-1&&uo(T)>Number(n.decimalLength)){(0,t.triggerRef)(g);return}let q=ir(T,n);if(q.maxValid===!1){c.value=q.message,(0,t.triggerRef)(g);return}}else if(n.min!=null&&ve(n.min)>=0){(0,t.triggerRef)(g);return}M.value=T,de(n.showTip)&&(_.value=T.length>0),g.value=T,f.value=or(T,n.rates,n.precision,!0),L.forEach(q=>{d(q,f.value)})},V=T=>{S(T,["update:modelValue","input"])},w=T=>{S(T,["update:modelValue","change"])},O=T=>{if(m.value=!0,de(n.showTip)){let L=g.value;fe(L)&&(L=n.hintText),fe(L)||(M.value=L,_.value=!0)}c.value="",d("focus",f.value,T)},C=T=>{if(setTimeout(()=>{m.value=!1,de(n.showTip)&&_.value===!0&&(_.value=!1)},0),!fe(g.value)){let L=ir(g.value,n);if(L.minValid===!1||L.maxValid===!1){c.value=L.message;return}}d("update:modelValue",f.value,T),d("blur",f.value,T)},I=()=>{d("clear","")},Z=(0,t.computed)(()=>Je(n.unit)>0),N=(0,t.ref)();return be({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()},setDisabled:T=>{o.value=T},setReadonly:T=>{u.value=T}}),()=>{const T={...Qe(r.attrs),ref:N,class:$.value,type:"digit",maxlength:n.maxLength,placeholder:v.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:b.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:I,onInput:V,onChange:w,onFocus:O,onBlur:C},L={};r.slots.prepend&&(L.prepend=r.slots.prepend),r.slots.append&&(L.append=r.slots.append),r.slots.prefix&&(L.prefix=r.slots.prefix),r.slots.suffix?L.suffix=r.slots.suffix:Z.value&&(L.suffix=()=>[n.unit]);const q=[],G=(0,t.h)(B.ElInput,T,L);q.push(G);const X={default:()=>q};X.label=r.slots.default,X.fixedPreTip=r.slots.fixedPreTip,X.fixedTip=r.slots.fixedTip;const F={...Me(n,sr),errorTip:z.value,hintText:M.value,hintVisible:_.value,hintType:"number"};return n.prop&&(F.prop=`${n.prop}_item`),(0,t.h)(a,F,X)}}}}var{componentName:n0,create:a0,scope:r0}=ie("money-item"),o0=a0(l0(n0,r0,ke)),oa=o0,ur={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 i0(e,l,a){return{props:{...Ce,...ze,...ur},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),{toLocaleRefs:m}=(0,Se.useFoxI18n)(l),f=m(n,["placeholder"]),g=(0,t.ref)(!1),b=ge(n,"modelValue",null,d),k=e,v=(0,t.computed)(()=>({[k]:!0,[`${k}__append`]:V.value})),h=(0,t.computed)(()=>({[`${k}__unit`]:!0})),$=O=>{b.value=O,d("update:modelValue",O),d("input",O)},p=O=>{d("change",O)};let c=ge(n,"hintText"),z=(0,t.ref)(!1);const M=O=>{let C=O.target.value;g.value=!0,fe(c.value)||(z.value=!0),d("focus",C,O)},_=O=>{setTimeout(()=>{z.value&&(z.value=!1),g.value=!1},0);let C=O.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),d("blur",C,O)},S=()=>{d("clear","")},V=(0,t.computed)(()=>Je(n.unit)>0),w=(0,t.ref)();return be({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()},setDisabled:O=>{o.value=O},setReadonly:O=>{u.value=O}}),()=>{const O={...Qe(r.attrs),ref:w,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:b.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:S,onChange:p,onInput:$,onFocus:M,onBlur:_},C={},I=[],Z=(0,t.h)(B.ElInputNumber,O,C);I.push(Z);const N={default:()=>I};N.label=r.slots.default,N.fixedPreTip=r.slots.fixedPreTip,N.fixedTip=r.slots.fixedTip;const T={...Me(n,ur),hintText:c.value,hintVisible:z.value};if(n.prop&&(T.prop=`${n.prop}_item`),r.slots.append)N.append=r.slots.append;else if(V.value){const L=(0,t.h)("div",{class:h.value},[n.unit]);N.append=()=>L}return(0,t.h)(a,T,N)}}}}var{componentName:s0,create:u0,scope:c0}=ie("input-number-item"),d0=u0(i0(s0,c0,ke)),ia=d0;function ot(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function yt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function f0(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}var m0=class{proxy;constructor(e){this.proxy=e}async load(e,l,a,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a,n);const r=Pe(this.proxy,e);return r===null?(console.error(`${e} component not found api function`),[]):(Ke(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await r(l,a,n))}};function h0(){return new m0((0,t.getCurrentInstance)().proxy)}function zn(e,l,a){return!(ot(e,l)!==ot(e,a)||yt(e,l)!==yt(e,a))}function Ho(e,l,a,n){if(n.length==0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const r=[];let o=n;for(let s=0;Array.isArray(o)&&s<l.length;s++){const u=l[s];if(Array.isArray(u)){const i=Ho(e,u,a,n);r.push(i)}else{let i=!1;for(let d of o){if(a==="text")i=ot(e,d)===u;else if(a==="item")i=zn(e,d,u);else{let m=yt(e,d);m==null&&(m=ot(e,d)),i=m===u}if(i){r.push(d),o=f0(e,d);break}}if(!i)break}}return r}function p0(e){return{text:e,value:e}}var cr={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 g0(e,l,a){return{props:{...Ce,...ze,...cr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),{toLocaleRefs:m}=(0,Se.useFoxI18n)(l),f=m(n,["placeholder"]),g=(0,t.ref)(null),b=(0,t.ref)([]),k=(0,t.computed)(()=>b.value?b.value.map(E=>Array.isArray(E)?E.map(A=>ot(n,A)).join(" "):ot(n,E)).join(" "):""),v=(E,A,x,W=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(g.value===E)return;g.value=E;const j=(0,t.toRaw)(E);if(W){const te=U?.value.getCheckedNodes();if(te)if(n.multiple){const ae=[];te.forEach(oe=>{const he=(oe.pathNodes??[]).map(xe=>xe.data);ae.push(he)}),d("update:pathNodes",ae)}else d("update:pathNodes",(te[0]?.pathNodes??[]).map(ae=>ae.data));d("update:modelValue",j),d("change",j)}return}const D=Ho(n,E,A,x);if(D===null){if(b.value.length===0||b.value===null)return;b.value=[],g.value=null,W&&(d("update:pathNodes",[]),d("update:modelValue",null),d("change",null));return}const y=D[D.length-1];if(I.value.checkStrictly!==!0&&y&&!Array.isArray(y)&&Array.isArray(y.children)&&y.children.length>0){const j=[];D.forEach(te=>{const ae=`${ot(n,te)}`;j.push(ae)}),j.length>0&&(O.value=j.join(n.separator))}else O.value=null;let R=!0;if(D.length!==b.value.length)R=!1;else for(let j=0;j<D.length;j++){const te=D[j],ae=b.value[j];if(Array.isArray(te)){if(!Array.isArray(ae)||te.length!==ae.length)R=!1;else for(let oe=0;oe<te.length;oe++)if(!zn(n,te[oe],ae[oe])){R=!1;break}}else zn(n,te,ae)||(R=!1);if(!R)break}if(!R){b.value=D;let j=[],te=[];D.forEach(oe=>{if(Array.isArray(oe)){let he=[],xe=[];for(let Ee of oe)he.push(yt(n,Ee)),n.valueType==="text"?xe.push(ot(n,Ee)):n.valueType==="item"?xe.push(Ee):xe.push(yt(n,Ee));j.push(he),te.push(xe)}else j.push(yt(n,oe)),n.valueType==="text"?te.push(ot(n,oe)):n.valueType==="item"?te.push(oe):te.push(yt(n,oe))}),g.value=j;const ae=(0,t.toRaw)(te);W&&(d("update:pathNodes",D),d("update:modelValue",ae),d("change",ae))}},h=(0,t.ref)([]),$=De((0,t.computed)(()=>n.appearLoad),"appearLoad",qe.Near,E=>de(E)),p=h0(),c=async(E,A)=>{if(E){const x=await p.load("cascader",E,A);x.length>0&&(typeof x[0]=="string"?h.value=x.map(W=>p0(W)):h.value=x)}};(0,t.watch)([()=>n.source,()=>n.params],async([E,A])=>{c(E,A)},{immediate:!($.value||n.lazy)});let z=!1;const M=()=>{z||(z=!0,c(n.source,n.params))};(0,t.watch)([()=>h.value,()=>n.modelValue],([E,A])=>{v(A,n.valueType,E,!1),d("setValue",A)}),n.lazy&&v(n.modelValue,"value",[],!1);let _=null,S=(0,t.ref)(!1);typeof n.remoteMethod=="function"&&(_=async E=>{if(E!=null){S.value=!0;try{h.value=await n.remoteMethod(E)}catch(A){console.error(A)}S.value=!1}});const V=(0,t.ref)(!1),w=e,O=(0,t.ref)(null),C=(0,t.computed)(()=>({[w]:!0,"is-incomplete":O.value&&O.value.length>0})),I=(0,t.computed)(()=>{let E={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(E.multiple=!0),n.props&&Object.assign(E,n.props),n.lazy&&(E.lazy=!0,typeof n.lazyLoad=="function"?E.lazyLoad=n.lazyLoad:E.lazyLoad=async(A,x)=>{let W={};n.params&&Object.assign(W,n.params),A&&Object.assign(W,A);const D=await p.load("cascader",n.source,W,!0);if(A?.config?.checkStrictly!==!0&&Array.isArray(g.value)&&g.value.length===A.level){const y=A.pathLabels??[];let R=[];y.forEach(j=>{j&&R.push(j)}),R.length>0&&(O.value=R.join(n.separator))}else O.value=null;x(D)}),E}),Z=E=>{n.allowCreate?(d("update:modelValue",E),d("change",E),g.value=E):v(E,"value",h.value,!0)};let N=ge(n,"hintText"),T=(0,t.ref)(!1);const L=E=>{let A=E.target.value;V.value=!0,fe(N.value)||(T.value=!0),d("focus",A,E)},q=E=>{setTimeout(()=>{T.value&&(T.value=!1),V.value=!1},0);let A=E.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),J.value||d("blur",A,E)},G=()=>{d("clear","")},X=(0,t.ref)(!1);let F=null;const ee=()=>{n.showTooltip&&X.value===!1&&(F&&clearTimeout(F),F=setTimeout(()=>{X.value=!0},150))},K=()=>{F&&(clearTimeout(F),X.value=!1,F=null)},H=(0,t.computed)(()=>X.value||T.value),Y=(0,t.computed)(()=>X.value?k.value:N.value),J=(0,t.ref)(!1),P=E=>{J.value=E,d("visible-change",E),E||d("selected")},Q=E=>{d("remove-tag",E)},le=E=>{d("expand-change",E)},U=(0,t.ref)();return be({focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},getCheckedNodes:()=>U?.value.getCheckedNodes(),setDisabled:E=>{o.value=E},setReadonly:E=>{u.value=E}}),()=>{const E={...r.attrs,ref:U,class:C.value,props:I.value,clearable:n.clearable,placeholder:O.value||f.placeholder.value,disabled:s.value||i.value,options:h.value,modelValue:g.value,separator:n.separator,onClear:G,onChange:Z,onFocus:L,onBlur:q,onVisibleChange:P,onRemoveTag:Q,expandChange:le};typeof _=="function"&&(E["remote-method"]=_,E.loading=S.value);const A={};r.slots.option&&(A.default=r.slots.option),r.slots.empty&&(A.empty=r.slots.empty);const x=[],W=(0,t.h)(B.ElCascader,E,A);x.push(W);const D={default:()=>x};D.label=r.slots.default,D.fixedPreTip=r.slots.fixedPreTip,D.fixedTip=r.slots.fixedTip;const y={...Me(n,cr),hintText:Y.value,hintVisible:H.value,onMouseover:ee,onMouseleave:K};return n.prop&&(y.prop=`${n.prop}_item`),$.value&&!n.lazy&&(y["appear-listen"]=!0,y.onAppear=M),(0,t.h)(a,y,D)}}}}var{componentName:v0,create:y0,scope:b0}=ie("cascader-item"),w0=y0(g0(v0,b0,ke)),sa=w0,dr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function S0(e,l,a){return{props:{...Ce,...ze,...dr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),{toLocaleRefs:m}=(0,Se.useFoxI18n)(l),f=m(n,["placeholder"]),g=(0,t.ref)(!1),b=ge(n,"modelValue",null,d),k=e,v=(0,t.computed)(()=>({[k]:!0})),h=w=>{b.value=w,d("update:modelValue",w),d("input",w)},$=w=>{d("change",w)},p=w=>{d("select",w)};let c=ge(n,"hintText"),z=(0,t.ref)(!1);const M=w=>{let O=w.target.value;g.value=!0,fe(c.value)||(z.value=!0),d("focus",O,w)},_=w=>{setTimeout(()=>{z.value&&(z.value=!1),g.value=!1},0);let O=w.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),d("blur",O,w)},S=()=>{d("clear","")},V=(0,t.ref)();return be({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()},setDisabled:w=>{o.value=w},setReadonly:w=>{u.value=w}}),()=>{const w={...r.attrs,ref:V,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:b.value,onClear:S,onChange:$,onInput:h,onFocus:M,onBlur:_,onSelect:p},O={};r.slots.prepend&&(O.prepend=r.slots.prepend),r.slots.append&&(O.append=r.slots.append),r.slots.prefix&&(O.prefix=r.slots.prefix),r.slots.suffix&&(O.suffix=r.slots.suffix),r.slots.option&&(O.default=r.slots.option);const C=[],I=(0,t.h)(B.ElAutocomplete,w,O);C.push(I);const Z={default:()=>C};Z.label=r.slots.default,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const N={...Me(n,dr),hintText:c.value,hintVisible:z.value};return n.prop&&(N.prop=`${n.prop}_item`),(0,t.h)(a,N,Z)}}}}var{componentName:x0,create:C0,scope:N0}=ie("autocomplete-item"),k0=C0(S0(x0,N0,ke)),ua=k0;function z0(e,l,a,n,r){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],u=l[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let i=l;for(let d=0;i&&d<o.length;d++){let m=o[d],f=i.find(g=>g[n]===m);if(!f)break;s.push(f[a])}return s}if(Array.isArray(u))for(let i=0;i<l.length&&i<o.length;i++){let d=l[i],m=o[i];const f=d.find(g=>g[n]===m);if(!f)break;s.push(f[a])}else{let i=l;for(let d=0;i&&d<o.length;d++){let m=o[d],f=i.find(g=>g[n]===m);if(!f)break;s.push(f[a]),i=f[r]}}return s}var T0=class{proxy;constructor(e){this.proxy=e}async load(e,l,a){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a);const n=Pe(this.proxy,e);return n===null?(console.error(`${e} component not found api function`),[]):(Ke(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await n(l,a))}};function E0(){return new T0((0,t.getCurrentInstance)().proxy)}var qo={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 _0(e,l){return{props:{...qo},setup(a,{attrs:n,slots:r}){const o=E0(),s=(0,t.ref)([]);(0,t.watch)([()=>a.source,()=>a.params],async([i,d])=>{s.value=await o.load(a.sourceType,i,d)},{immediate:!0});const u=(0,t.computed)(()=>{if(!Array.isArray(s.value)||s.value.length===0)return a.emptyText;let i=z0(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return i.length==0?a.emptyText??"":i.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${i[0]}`:i[0]:i.join(a.separator)});return()=>{const i={...n};if(r.default)return r.default({text:u.value,value:a.modelValue});const d=a.tag??"span";return typeof d=="object"?(0,t.h)(d,i,{default:()=>u.value}):(0,t.h)(d,i,[u.value])}}}}var{componentName:$0,create:V0,scope:B0}=ie("mapping"),D0=V0(_0($0,B0)),Wt=D0;function M0(e,l){let a=l.split("."),n=e;for(let r=0;r<a.length;r++){let o=a[r],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let d=o.substring(u+1,i);if(/^\d+$/.test(d)){let m=parseInt(d);if(s==0){let f=o.substring(0,u);n=n[f][m]}else n=n[m];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(n=n[o])}return n}function I0(e,l){return{props:{...qo},setup(a,{attrs:n,slots:r}){return()=>{const o={default:s=>{const u=M0(s.row,s.column.property);return r.default?(0,t.h)(Wt,{...a,modelValue:u},{default:r.default}):(0,t.h)(Wt,{...a,modelValue:u})}};for(let s in r)s!=="default"&&(o[s]=r[s]);return(0,t.h)(B.ElTableColumn,{...n},o)}}}}var{componentName:A0,create:L0,scope:P0}=ie("table-mapping-column"),F0=L0(I0(A0,P0)),ca=F0,R0=Symbol.for("TableStateKey");function fr(e,l){let a=l.split("."),n=e;for(let r=0;r<a.length;r++){let o=a[r],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let d=o.substring(u+1,i);if(/^\d+$/.test(d)){let m=parseInt(d);if(s==0){let f=o.substring(0,u);n=n[f][m]}else n=n[m];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(n=n[o])}return n}function O0(e,l){return{props:{prop:{type:[String],require:!1}},setup(a,{attrs:n}){const r=(0,t.inject)(R0,{});let o=null;return()=>{const s={default:u=>{const i=r.currentRow?r.currentRow.value:null;u.$index!==-1&&(o=u.row);const d=u.$index!==-1?u.row:o;let m=!1;if(d){const g=a.prop??u.column.property;g?m=fr(d,g)===(i?fr(i,g):null):m=Ue(d,i)}const f=(0,t.h)("span",{class:{"el-radio__input":!0,"is-checked":m}},[(0,t.h)("span",{class:{"el-radio__inner":!0}})]);return(0,t.h)("label",{class:{"el-radio":!0,"is-checked":m}},[f])}};return(0,t.h)(B.ElTableColumn,{...n},s)}}}}var{componentName:H0,create:q0,scope:j0}=ie("table-radio-column"),K0=q0(O0(H0,j0)),da=K0,Y0={},W0={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 U0(e,l){return(0,t.openBlock)(),(0,t.createElementBlock)("svg",W0,[...l[0]||(l[0]=[(0,t.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)])])}var G0=Fe(Y0,[["render",U0]]),{componentName:W5,create:X0,scope:U5}=ie("table-setting"),Z0={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:"不固定"}},J0=X0({components:{FoxPopover:B.ElPopover,FoxCheckbox:B.ElCheckbox,FoxCheckboxGroup:B.ElCheckboxGroup,FoxButton:B.ElButton,FoxIcon:B.ElIcon,DragIcon:G0,Download:$e.Download,RefreshLeft:$e.RefreshLeft},props:{...Z0},setup(e,{emit:l,attrs:a}){let n=[];const r=(0,t.ref)([]),o=(0,t.computed)(()=>r.value.filter(P=>P.label===""||P.type?!1:P.fixed===""||P.fixed===!0||P.fixed==="left")),s=(0,t.computed)(()=>r.value.filter(P=>P.label===""||P.type?!1:P.fixed==="right")),u=(0,t.computed)(()=>r.value.filter(P=>!(P.label===""||P.type||P.fixed!==void 0))),i=(0,t.computed)(()=>(o.value.length>0||s.value.length>0)&&u.value.length>0),d=(0,t.computed)(()=>o.value.length>0),m=(0,t.computed)(()=>s.value.length>0),f=P=>P.length>1,g=(P,Q)=>{Array.isArray(P)&&Array.isArray(Q)&&P.forEach(U=>{Q.some(E=>E.prop===U.prop?(U.label=E.label,!0):!1)});const le=[];r.value=P.map((U,E)=>(!(U.label===""||U.type)&&U.visible!==!1&&le.push(U.prop),{...U,sortIndex:E})),u.value.length+o.value.length+s.value.length===le.length?p.value=!0:le.length>0&&(c.value=!0),_.value=le},b=P=>P?P.type?P.type:P.label?P.prop:"":"",k=(P,Q)=>{if(P.length!==Q.length)return!1;const le=P.map(U=>b(U));for(let U of Q){const E=b(U);if(le.indexOf(E)===-1)return!1}return!0},v=P=>{if(!P){const Q=e.tableRef.getColumnSetting(),le=Q.srcColumnPropertyList;n=le.map((U,E)=>({...U,sortIndex:E})),P=Q.columnPropertyList,P&&P.length>0&&k(le,P)||(P=le)}g(P,n)},h=()=>{e.tableRef.setColumnSetting(r.value)},$=(0,t.computed)(()=>({"max-width":`${e.popoverWidth-125}px`})),p=(0,t.ref)(!1),c=(0,t.ref)(!1),z=P=>{const Q=[];r.value.forEach(le=>{P&&!(le.label===""||le.type)&&Q.push(le.prop),le.visible=P}),p.value=!1,c.value=!1,u.value.length+o.value.length+s.value.length===Q.length?p.value=!0:Q.length>0&&(c.value=!0),_.value=Q,h()},M=()=>{v(n),h()},_=(0,t.ref)([]),S=P=>{r.value.forEach(le=>{le.label===""||le.type||(le.visible=P.indexOf(le.prop)!==-1)}),p.value=!1,c.value=!1;const Q=u.value.length+o.value.length+s.value.length;P.length===Q?p.value=!0:P.length>0&&(c.value=!0),h()},V=()=>{v()};(0,t.onMounted)(()=>{setTimeout(()=>{v()},50)});const w={currentRow:null,index:null,roleType:null},O=P=>P?P.dataset&&P.dataset.role==="row"?P:P.tagName.toLowerCase()!=="body"?(P=P.parentElement,O(P)):null:null,C=P=>{const Q=P.currentTarget;Q&&Q.dataset&&(w.roleType=Q.dataset.roleType,w.index=Q.dataset.index)},I=P=>{w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null),w.index=null,w.roleType=null},Z=P=>{const Q=P.currentTarget;P.relatedTarget;const le=O(Q);if(!le)return;const U=le.dataset&&le.dataset.roleType;w.roleType===U&&(P.preventDefault(),w.currentRow&&w.currentRow!==le&&w.currentRow.classList.remove("is-dragover"),le.classList.add("is-dragover"),w.currentRow=le)},N=P=>{P.preventDefault(),w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null)},T=P=>{const Q=P.currentTarget,le=O(Q);if(!le)return;const U=le.dataset&&le.dataset.roleType;if(w.roleType!==U)return;P.preventDefault();const E=Number(w.index),A=Number(le.dataset.index);if(E!==A){if(E<A){const x=r.value[E];r.value.splice(E,1),r.value.splice(A,0,x)}else{const x=r.value[E];r.value.splice(E,1),r.value.splice(A+1,0,x)}g(r.value,n),h()}},L=P=>{const Q=r.value[P];Q.fixed="left",h()},q=P=>{const Q=r.value[P];Q.fixed="right",h()},G=P=>{const Q=r.value[P];Q.fixed=void 0,h()},X=new Map;let F=null;function ee(P){const Q=document.createRange();return Q.setStart(P,0),Q.setEnd(P,P.childNodes.length),Q.getBoundingClientRect().width}return{attrs:a,leftFixedColumns:o,rightFixedColumns:s,unFixedColumns:u,isShowNotFixedTitle:i,isShowLeftFixedTitle:d,isShowRightFixedTitle:m,isDraggble:f,isCheckAll:p,isIndeterminate:c,handleCheckAllChange:z,handleReset:M,checkedValue:_,handleCheckChange:S,onShow:V,onDragStart:C,onDragEnd:I,onDragOver:Z,onDragLeave:N,onDrop:T,toLeftFixed:L,toRightFixed:q,toUnFixed:G,checkboxLabelStyle:$,onMouseOverForOverflowText:(P,Q,le)=>{const U=P.currentTarget;if(U){const E=Math.floor(U.offsetWidth);if(Math.floor(ee(U))>E){let A=X.get(Q);if(A){if(A===F)return;Le.hide(A)}A=Le.show(U,le,{type:"text",placement:"top",closeOnClick:!1}),A&&(X.set(Q,A),F=A)}}},onMouseLeaveForOverflowText:(P,Q)=>{const le=X.get(Q);le&&(Le.hide(le),le===F&&(F=null))},onMouseOverForTip:(P,Q)=>{const le=P.currentTarget;le&&(F&&Le.hide(F),F=Le.show(le,Q,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:P=>{F&&(Le.hide(F),F=null)}}}}),Q0={class:"fox-table-setting"},e2={class:"fox-table-setting__header"},t2={class:"fox-table-setting__body"},l2={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},n2={key:0,class:"fox-table-setting__body-title"},a2=["data-index","draggable"],r2=["onMouseover","onMouseleave"],o2={class:"tools-item"},i2={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},s2={key:0,class:"fox-table-setting__body-title"},u2=["data-index","draggable"],c2=["onMouseover","onMouseleave"],d2={class:"tools-item"},f2={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},m2={key:0,class:"fox-table-setting__body-title"},h2=["data-index","draggable"],p2=["onMouseover","onMouseleave"],g2={class:"tools-item"};function v2(e,l,a,n,r,o){const s=(0,t.resolveComponent)("FoxCheckbox"),u=(0,t.resolveComponent)("FoxButton"),i=(0,t.resolveComponent)("DragIcon"),d=(0,t.resolveComponent)("RefreshLeft"),m=(0,t.resolveComponent)("FoxIcon"),f=(0,t.resolveComponent)("Download"),g=(0,t.resolveComponent)("fox-checkbox"),b=(0,t.resolveComponent)("FoxCheckboxGroup"),k=(0,t.resolveComponent)("FoxPopover");return(0,t.openBlock)(),(0,t.createBlock)(k,(0,t.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",Q0,[(0,t.createElementVNode)("div",e2,[(0,t.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,t.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,t.createElementVNode)("div",t2,[(0,t.createVNode)(b,{modelValue:e.checkedValue,"onUpdate:modelValue":l[28]||(l[28]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:(0,t.withCtx)(()=>[e.leftFixedColumns.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("div",l2,[e.isShowLeftFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("div",n2,(0,t.toDisplayString)(e.leftFixedTitle),1)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.leftFixedColumns,v=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:l[5]||(l[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:l[6]||(l[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:l[7]||(l[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:l[8]||(l[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:l[9]||(l[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"icon-item"})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(s,{class:"checkbox-item",value:v.prop},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,v.prop,v.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,v.prop),class:"checkbox-item__label",style:(0,t.normalizeStyle)(e.checkboxLabelStyle)},(0,t.toDisplayString)(v.label),45,r2)]),_:2},1032,["value"]),(0,t.createElementVNode)("div",o2,[(0,t.createVNode)(m,{onClick:h=>e.toUnFixed(v.sortIndex),onMouseover:l[1]||(l[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:l[2]||(l[2]=h=>e.onMouseLeaveForTip(h))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d)]),_:1},8,["onClick"]),(0,t.createVNode)(m,{onClick:h=>e.toRightFixed(v.sortIndex),onMouseover:l[3]||(l[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:l[4]||(l[4]=h=>e.onMouseLeaveForTip(h))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f)]),_:1},8,["onClick"])])],40,a2))),128))])):(0,t.createCommentVNode)("",!0),e.unFixedColumns.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("div",i2,[e.isShowNotFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("div",s2,(0,t.toDisplayString)(e.unFixedTitle),1)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.unFixedColumns,v=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:l[14]||(l[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:l[15]||(l[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:l[16]||(l[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:l[17]||(l[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:l[18]||(l[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"icon-item"})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(s,{class:"checkbox-item",value:v.prop},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,v.prop,v.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,v.prop),class:"checkbox-item__label",style:(0,t.normalizeStyle)(e.checkboxLabelStyle)},(0,t.toDisplayString)(v.label),45,c2)]),_:2},1032,["value"]),(0,t.createElementVNode)("div",d2,[(0,t.createVNode)(m,{onClick:h=>e.toLeftFixed(v.sortIndex),onMouseover:l[10]||(l[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:l[11]||(l[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f)]),_:1},8,["onClick"]),(0,t.createVNode)(m,{onClick:h=>e.toRightFixed(v.sortIndex),onMouseover:l[12]||(l[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:l[13]||(l[13]=h=>e.onMouseLeaveForTip(h))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f)]),_:1},8,["onClick"])])],40,u2))),128))])):(0,t.createCommentVNode)("",!0),e.rightFixedColumns.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("div",f2,[e.isShowRightFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("div",m2,(0,t.toDisplayString)(e.rightFixedTitle),1)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.rightFixedColumns,v=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:l[23]||(l[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:l[24]||(l[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:l[25]||(l[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:l[26]||(l[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:l[27]||(l[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"icon-item"})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(g,{class:"checkbox-item",label:v.prop},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,v.prop,v.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,v.prop),class:"checkbox-item__label",style:(0,t.normalizeStyle)(e.checkboxLabelStyle)},(0,t.toDisplayString)(v.label),45,p2)]),_:2},1032,["label"]),(0,t.createElementVNode)("div",g2,[(0,t.createVNode)(m,{onClick:h=>e.toUnFixed(v.sortIndex),onMouseover:l[19]||(l[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:l[20]||(l[20]=h=>e.onMouseLeaveForTip(h))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d)]),_:1},8,["onClick"]),(0,t.createVNode)(m,{onClick:h=>e.toLeftFixed(v.sortIndex),onMouseover:l[21]||(l[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:l[22]||(l[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f)]),_:1},8,["onClick"])])],40,h2))),128))])):(0,t.createCommentVNode)("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var Kl=Fe(J0,[["render",v2]]),y2=class{proxy;constructor(e){this.proxy=e}async load(e,l,a,n,r,o,s){if(Array.isArray(l)){let i=(a-1)*n,d=i+n;d>l.length&&(d=l.length);const m=l.slice(i,d);return{totalSize:l.length,page:m}}if(typeof l=="function")return await Reflect.apply(l,null,[a,n,r,o,s]);const u=Pe(this.proxy,e);return u===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Ke(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await Reflect.apply(u,null,[l,a,n,r,o,s]))}};function b2(){return new y2((0,t.getCurrentInstance)().proxy)}var w2=class{proxy;constructor(e){this.proxy=e}async load(e){let l=null;const a=Pe(this.proxy,"tableSetting");return typeof a=="function"&&(l=await Reflect.apply(a,null,["load",e])),l}save(e,l){const a=Pe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["save",e,l])}remove(e){const l=Pe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",e])}};function S2(){return new w2((0,t.getCurrentInstance)().proxy)}var x2=Symbol.for("TableStateKey"),mr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},lazyLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},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"}},hr={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:()=>"large"},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}},on={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:"不固定"}},C2={infiniteLoad:{type:Boolean,default:!0},loadText:{type:String,default:"加载中..."},noMoreText:{type:String,default:"无更多数据"}};function N2(e,l){let a=l.split("."),n=e;for(let r=0;r<a.length;r++){let o=a[r],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let d=o.substring(u+1,i);if(/^\d+$/.test(d)){let m=parseInt(d);if(s==0){let f=o.substring(0,u);n=n[f][m]}else n=n[m];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(n=n[o])}return n}function sn(e,l){return e.filter(a=>{for(let n in l)if(l[n]!==N2(a,n))return!1;return!0})}function k2(e,l,a){return{props:{...Ce,...ze,...mr,...hr,...on,...C2},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:o,toLocaleRefs:s}=(0,Se.useFoxI18n)(l),u=s(n,["loadText","noMoreText"]),{emitEvent:i,broadcast:d}=Te({componentName:e,validateHandler:{getValue(...ne){return w.value}}},n.prop??r.attrs.name),m=e,f=(0,t.computed)(()=>({[m]:!0})),g=(0,t.computed)(()=>({[`${m}__setting`]:!0})),b=(0,t.computed)(()=>({[`${m}__footer`]:!0,[`${m}__footer__${n.footerAlign}`]:!0})),k=(0,t.computed)(()=>({[`${m}__pagination`]:!0,[`${m}__pagination__${n.paginationAlign}`]:!0})),v=(0,t.shallowRef)({}),h=(0,t.computed)(()=>({...v.value,...n.params??{},...n.baseParams??{}})),$=(0,t.ref)(n.infiniteLoad===!0?0:n.pageIndex),p=(0,t.ref)(n.pageSize),c=de(n.infiniteLoad);c||((0,t.watch)(()=>n.pageIndex,ne=>{$.value=ne}),(0,t.watch)(()=>n.pageSize,ne=>{p.value=ne}),(0,t.watch)([$,p],([ne,re],[se,ce])=>{re!==ce&&($.value=1,ne=1),Z(n.data,ne,re,h.value)}));const z=()=>Array.isArray(n.data)?!0:de(n.autoLoad);z()&&(0,t.watch)([()=>n.data,h],async([ne,re],[se,ce])=>{z()&&(ne!==se&&(C.value=!0),!(!Array.isArray(ne)&&Ue(ne,se)&&Ue(re,ce))&&(c?($.value=0,S.value=!0,w.value=[],T()):$.value===1?Z(ne,$.value,p.value,re):$.value=1))},{deep:!0});const M=ne=>{$.value=ne,i("page-index-change",ne)},_=ne=>{p.value=ne,i("page-size-change",ne)},S=(0,t.ref)(!0),V=(0,t.ref)(0),w=(0,t.ref)([]),O=b2();let C=(0,t.ref)(!0);const I=De((0,t.computed)(()=>n.lazyLoad),"lazyLoad",qe.Near,ne=>de(ne)),Z=async(ne,re,se,ce,Re)=>{try{if(Re===!0){if(!S.value)return!1;const ye=await O.load("table",ne,re,se,ce,C.value,o.value);return V.value=ye.totalSize,!ye.page||!Array.isArray(ye.page)||(Reflect.apply([].push,w.value,ye.page),setTimeout(()=>{i("loaded-data")},250),(w.value?.length??0)>=V.value)||ye.page.length<se?(S.value=!1,!1):!0}else{const ye=await O.load("table",ne,re,se,ce,C.value,o.value);return V.value=ye.totalSize,w.value=ye.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),V.value=0,w.value=[]}finally{C.value=!1}return!1};let N=!1;const T=async()=>{if(!N){if(N=!0,!S.value){N=!1;return}$.value+=1,await Z(n.data,$.value,p.value,h.value,!0),N=!1}},L=(ne={},re=!1)=>new Promise(async se=>{v.value={...(0,t.toRaw)(ne??{})},re||($.value=n.pageIndex??1),c===!0?($.value=0,w.value=[],S.value=!0,await T()):await Z(n.data,$.value,p.value,h.value),se()}),q=()=>{V.value=0,w.value=[],c===!0&&($.value=0,S.value=!0)};let G=!1;const X=()=>{G||(G=!0,L())},F=(0,t.ref)(null);if(c===!0){let ne=null;const re=()=>{F.value&&(ne=new IntersectionObserver(ce=>{let Re=!1;for(let ye of ce)if(ye.intersectionRatio>0){Re=!0;break}Re&&C.value===!1&&T()}),ne.observe(F.value))},se=()=>{!ne||!F.value||(ne.unobserve(F.value),ne=null)};(0,t.onMounted)(re),(0,t.onBeforeUnmount)(se)}z()&&!I.value&&L();const ee=(0,t.ref)(null);(0,t.provide)(x2,{currentRow:ee});const K=(ne,re)=>{ee.value=ne,i("current-change",ne,re)},H=(ne,re,se)=>{i("row-click",ne,re,se),de(n.rowClickSelectable)===!0&&Ve?.value.toggleRowSelection(ne)},Y=[],J=(ne,re)=>{if(i("expand-change",ne,re),de(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const se=Y.length;Y.splice(0,se)}else{Y.forEach(ce=>{ce!==ne&&Ve?.value.toggleRowExpansion(ce,!1)});const se=Y.length;Y.splice(0,se,ne)}},P=r.attrs.id??n.prop??r.attrs.name,Q=S2(),le=(0,t.ref)([]);let U=[];const E=()=>({srcColumnPropertyList:U.map(ne=>({...ne})),columnPropertyList:le.value}),A=ne=>{le.value=[...ne],W()},x=async()=>{const ne=await Q.load(P);ne&&(le.value=ne)},W=()=>{Q.save(P,le.value)},D=()=>{Q.remove(P)};x();const y=ne=>ne?ne.type?ne.type:ne.label?ne.prop:"":"",R=(ne,re={})=>{for(let se in re){const ce=re[se];typeof ce!="function"&&(ne[se]=ce)}},j=ne=>{const re=ne?ne():[],se=new Map;if(U=[],re.forEach(ce=>{const Re=ce;if(!Re.props)return;const ye=y(Re.props);se.set(ye,Re);const Ne={label:"",prop:""};R(Ne,Re.props),U.push(Ne)}),le.value.length===U.length){const ce=[];for(let Re of le.value){const ye=y(Re),Ne=se.get(ye);if(!Ne)return re;if(Re.visible===!1)continue;const rt=Ne;rt.props.fixed=Re.fixed,ce.push(rt)}return ce}return re},te=(0,t.shallowRef)(new Map),ae=({row:ne,column:re,rowIndex:se,columnIndex:ce})=>{const Re=`${se}_${re.property}`,ye=`${se}_${ce}`;let Ne=te.value.get(Re);return Ne||(Ne=te.value.get(ye)),typeof Ne=="string"?Ne:""},oe=ne=>ne?re=>{const se=[];let ce=ae(re);return ce&&se.push(ce),ce=typeof ne=="function"?ne(re):ne,ce&&se.push(ce),se.length===0?"":se.join(" ")}:ae,he=(ne=!1)=>{te.value.forEach((re,se)=>{xe(se,re,ne)})},xe=(ne,re,se=!1)=>{const ce=`${ne}_item`;se?(d.clearPersistantMessage(),Array.isArray(re)?d.emitToChildren({name:ne},"setCellClassNames",[]):d.emitToChildren({name:ce},"setCustomClassName","")):Array.isArray(re)?d.emitToChildren({name:ne,cachePolicy:"Persistant",uniqueId:ce},"setCellClassNames",re):d.emitToChildren({name:ce,cachePolicy:"Persistant",uniqueId:ce},"setCustomClassName",re)},Ee=(ne,re,se)=>{const ce=`${ne}_${re}`;se?(te.value.set(ce,se),xe(ce,se)):(te.value.delete(ce),xe(ce,"",!0)),(0,t.triggerRef)(te)},Xe=ne=>{he(!0),te.value.clear(),ne.forEach(re=>{const se=`${re.rowIndex}_${re.column}`;Array.isArray(re.children)?te.value.set(se,re.children):typeof re.cellClassName=="string"&&te.value.set(se,re.cellClassName)}),he(),(0,t.triggerRef)(te)},ut=()=>{he(),te.value.clear(),(0,t.triggerRef)(te)},at=(0,t.shallowRef)(new Map),Oa=({rowIndex:ne})=>{const re=`${ne}`;return at.value.get(re)??""},ri=ne=>ne?re=>{const se=[];let ce=Oa(re);return ce&&se.push(ce),ce=typeof ne=="function"?ne(re):ne,ce&&se.push(ce),se.length===0?"":se.join(" ")}:Oa,oi=(ne,re)=>{const se=`${ne}`;re?at.value.set(se,re):at.value.delete(se),(0,t.triggerRef)(at)},ii=()=>{at.value.clear(),(0,t.triggerRef)(at)},Ve=(0,t.ref)();return be({clearSelection:()=>Ve?.value.clearSelection(),getSelectionRows:()=>Ve?.value.getSelectionRows(),toggleRowSelection:(ne,re)=>{Ve?.value.toggleRowSelection(ne,re)},toggleRowSelectionByProp:(ne,re)=>{if(!w.value)return;const se=sn(w.value,ne);se.length!==0&&se.forEach(ce=>{Ve?.value.toggleRowSelection(ce,re)})},toggleAllSelection:()=>{Ve?.value.toggleAllSelection()},toggleRowExpansion:(ne,re)=>{Ve?.value.toggleRowExpansion(ne,re)},toggleRowExpansionByProp:(ne,re)=>{if(!w.value)return;const se=sn(w.value,ne);se.length!==0&&se.forEach(ce=>{Ve?.value.toggleRowExpansion(ce,re)})},setCurrentRow:ne=>{Ve?.value.setCurrentRow(ne)},setCurrentRowByProp:ne=>{if(!w.value)return;const re=sn(w.value,ne);re.length!==0&&Ve?.value.setCurrentRow(re[0])},getCurrentRow:()=>ee.value,clearSort:()=>{Ve?.value.clearSort()},clearFilter:ne=>{Ve?.value.clearFilter(ne)},doLayout:()=>{Ve?.value.doLayout()},sort:(ne,re)=>{Ve?.value.sort(ne,re)},scrollTo:(ne,re)=>{Ve?.value.scrollTo(ne,re)},setScrollTop:ne=>{Ve?.value.setScrollTop(ne)},setScrollLeft:ne=>{Ve?.value.setScrollLeft(ne)},loadData:L,clearData:q,getData(){return w.value},getTotalSize(){return V.value},getPageIndex(){return $.value},getPageSize(){return p.value},getColumnSetting:E,setColumnSetting:A,removeColumnSetting:D,setCellClassName:Ee,setCellClassNames:Xe,clearCellClassName:ut,setRowClassName:oi,clearRowClassName:ii}),()=>{const ne={...Qe(r.attrs),onCurrentChange:K,onRowClick:H,onExpandChange:J,data:w.value,ref:Ve,class:f.value,"cell-class-name":oe(n.cellClassName),"row-class-name":ri(n.rowClassName)},re={};if(r.slots.default&&(re.default=()=>j(r.slots.default)),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),c===!0){const Ne=[];if(S.value){const Mt=(0,t.h)($e.Loading,{class:`${m}__infinite-icon`});Ne.push(Mt);const Jl=(0,t.h)("span",{class:`${m}__infinite-text`},[u.loadText.value]);Ne.push(Jl)}else{const Mt=(0,t.h)("span",{class:`${m}__infinite-text`},[u.noMoreText.value]);Ne.push(Mt)}const rt=[`${m}__infinite`];C.value&&rt.push("is-hide");const Zl=(0,t.h)("div",{ref:F,class:rt},Ne);re.append=()=>Zl}const se=(0,t.h)(B.ElTable,ne,re),ce=[];if(ce.push(se),!c){let Ne=null;if(typeof r.slots.pagination=="function"?Ne=r.slots.pagination():n.showPagination&&(Ne=(0,t.h)(B.ElPagination,{class:k.value,total:V.value,pageSize:p.value,"onUpdate:pageSize":_,pageSizes:n.pageSizes,currentPage:$.value,"onUpdate:currentPage":M,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,size:n.paginationSize,background:n.paginationBackground,appendSizeTo:n.paginationAppendSizeTo,teleported:n.paginationTeleported,popperClass:n.paginationPopperClass,prevText:n.paginationpPrevText,prevIcos:n.paginationPrevIcon,nextText:n.paginationNextText,pnextIcon:n.paginationNextIcon,disabled:n.paginationDisabled})),n.showSetting){const rt=[];Ne&&rt.push(Ne);const Zl=(0,t.h)(B.ElIcon,{class:g.value},{default:()=>(0,t.h)($e.Setting)}),Mt=(0,t.h)(Kl,{...lt(n,on),tableRef:{getColumnSetting:E,setColumnSetting:A,removeColumnSetting:D}},{default:()=>Zl});rt.push(Mt);const Jl=(0,t.h)("div",{class:b.value},rt);ce.push(Jl)}else Ne&&ce.push(Ne)}const Re={default:()=>ce},ye={...Me(n,mr,hr,on)};return n.prop&&(ye.prop=`${n.prop}_item`),ye.contentClass=`${m}__wrap`,ye.errorMarkClass="is-table-error",I.value&&z()&&(ye["appear-listen"]=!0,ye.onAppear=X),(0,t.h)(a,ye,Re)}}}}var{componentName:z2,create:T2,scope:E2}=ie("table-item"),_2=T2(k2(z2,E2,ke)),fa=_2;function Vt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Ut(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function $2(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}var V2=class{proxy;constructor(e){this.proxy=e}async load(e,l,a){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a);const n=Pe(this.proxy,e);return n===null?(console.error(`${e} component not found api function`),[]):(Ke(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await n(l,a))}};function B2(){return new V2((0,t.getCurrentInstance)().proxy)}function jo(e,l,a){return l===a?!0:!(l===null||a===null||Vt(e,l)!==Vt(e,a)||Ut(e,l)!==Ut(e,a))}function D2(e,l,a,n){if(n.length==0||l===""||l===null||l===void 0)return null;let r=null;for(let o of n){let s=!1;if(a==="text")s=Vt(e,o)===l;else if(a==="item")s=jo(e,o,l);else{let u=Ut(e,o);u==null&&(u=Vt(e,o)),s=u===l}if(s){r=o;break}}return r}function M2(e){return{text:e,value:e}}function I2(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}var pr={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 A2(e,l,a){return{inheritAttrs:!0,props:{...Ce,...ze,...pr},emits:["change","update:modelValue","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),m=(0,t.ref)(null),f=(0,t.ref)(null),g=(w,O,C,I=!0)=>{const Z=D2(n,w,O,C);if(Z===null){if(f.value===null)return;f.value=null,m.value=null,I&&(d("update:modelValue",null),d("change",null));return}if(!jo(n,Z,f.value)){m.value=w;const N=(0,t.toRaw)(Z);f.value=N;let T=null;n.valueType==="text"?T=Vt(n,N):n.valueType==="item"?T=N:T=Ut(n,N),I&&(d("update:modelValue",T),d("change",T))}},b=(0,t.ref)([]),k=De((0,t.computed)(()=>n.appearLoad),"appearLoad",qe.Near,w=>de(w)),v=B2(),h=async(w,O)=>{if(w){const C=await v.load("radio",w,O);C.length>0&&(typeof C[0]=="string"?b.value=C.map(I=>M2(I)):b.value=C)}};(0,t.watch)([()=>n.source,()=>n.params],async([w,O])=>{h(w,O)},{immediate:!k.value});let $=!1;const p=()=>{$||($=!0,h(n.source,n.params))};(0,t.watch)([()=>b.value,()=>n.modelValue],([w,O])=>{g(O,n.valueType,w,!1),d("setValue",O)});const c=e,z=(0,t.computed)(()=>({[c]:!0,[`is-${n.direction}`]:!0})),M=w=>{g(w,"value",b.value,!0)};let _=ge(n,"hintText"),S=ge(n,"hintVisible");const V=(w,O)=>{const C=[];return w.forEach((I,Z)=>{const N=Ut(n,I),T=Vt(n,I);let L=$2(n,I);s.value===!0&&(L=s.value),i.value===!0&&(L=i.value);const q=I2(n,I,Z)??{},G=`${N}_${Z}`,X={...q,key:G,value:N,size:n.size,border:de(n.border)};L&&(X.disabled=L),n.itemType==="button"?C.push((0,t.h)(B.ElRadioButton,X,{default:()=>[T]})):typeof O=="function"?C.push((0,t.h)(B.ElRadio,X,{default:()=>O(I)})):C.push((0,t.h)(B.ElRadio,X,{default:()=>[T]}))}),C};return be({setDisabled:w=>{o.value=w},setReadonly:w=>{u.value=w}}),()=>{const w={...Qe(r.attrs),class:z.value,disabled:s.value||i.value,modelValue:m.value,"text-color":n.textColor,fill:n.fill,onChange:M},O=[],C={};r.slots.options?C.default=r.slots.options:C.default=()=>V(b.value,r.slots.text);const I=(0,t.h)(B.ElRadioGroup,w,C);O.push(I);const Z={default:()=>O};Z.label=r.slots.default,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const N={...Me(n,pr),hintText:_.value,hintVisible:S.value};return n.prop&&(N.prop=`${n.prop}_item`),k.value&&(N["appear-listen"]=!0,N.onAppear=p),(0,t.h)(a,N,Z)}}}}var{componentName:L2,create:P2,scope:F2}=ie("radio-item"),R2=P2(A2(L2,F2,ke)),ma=R2;function Bt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Et(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function O2(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}var H2=class{proxy;constructor(e){this.proxy=e}async load(e,l,a){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a);const n=Pe(this.proxy,e);return n===null?(console.error(`${e} component not found api function`),[]):(Ke(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await n(l,a))}};function q2(){return new H2((0,t.getCurrentInstance)().proxy)}function Ko(e,l,a){return l===a?!0:!(l===null||a===null||Bt(e,l)!==Bt(e,a)||Et(e,l)!==Et(e,a))}function j2(e,l,a,n){if(n.length==0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const r=[];return l.forEach(o=>{for(let s of n){let u=!1;if(a==="text")u=Bt(e,s)===o;else if(a==="item")u=Ko(e,s,o);else{let i=Et(e,s);i==null&&(i=Bt(e,s)),u=i===o}if(u){r.push(s);break}}}),r}function K2(e){return{text:e,value:e}}function Y2(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}var gr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function W2(e,l,a){return{inheritAttrs:!0,props:{...Ce,...ze,...gr},emits:["change","update:modelValue","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),m=(0,t.ref)([]),f=(0,t.ref)([]),g=(w,O,C,I=!0)=>{const Z=j2(n,w,O,C);if(Z===null){if(f.value===null||f.value.length===0)return;m.value=[],f.value=[],I&&(d("update:modelValue",[]),d("change",[]));return}let N=!0;if(Z.length!==f.value.length)N=!1;else for(let T=0;T<Z.length;T++){const L=Z[T],q=f.value[T];if(!Ko(n,L,q)){N=!1;break}}if(!N){f.value=Z;let T=[],L=[];Z.forEach(G=>{T.push(Et(n,G)),n.valueType==="text"?L.push(Bt(n,G)):n.valueType==="item"?L.push(G):L.push(Et(n,G))}),m.value=T;const q=(0,t.toRaw)(L);I&&(d("update:modelValue",q),d("change",q))}},b=(0,t.ref)([]),k=De((0,t.computed)(()=>n.appearLoad),"appearLoad",qe.Near,w=>de(w)),v=q2(),h=async(w,O)=>{if(w){const C=await v.load("checkbox",w,O);C.length>0&&(typeof C[0]=="string"?b.value=C.map(I=>K2(I)):b.value=C)}};(0,t.watch)([()=>n.source,()=>n.params],async([w,O])=>{h(w,O)},{immediate:!k.value});let $=!1;const p=()=>{$||($=!0,h(n.source,n.params))};(0,t.watch)([()=>b.value,()=>n.modelValue],([w,O])=>{g(O,n.valueType,w,!1),d("setValue",O)});const c=e,z=(0,t.computed)(()=>({[c]:!0,[`is-${n.direction}`]:!0})),M=w=>{g(w,"value",b.value,!0)};let _=ge(n,"hintText"),S=ge(n,"hintVisible");const V=(w,O)=>{const C=[];return w.forEach((I,Z)=>{const N=Et(n,I),T=Bt(n,I);let L=O2(n,I);s.value===!0&&(L=s.value),i.value===!0&&(L=i.value);const q=Y2(n,I,Z)??{},G=`${N}_${Z}`,X={...q,key:G,class:n.itemClass,value:N,size:n.size,border:de(n.border)};L&&(X.disabled=L),n.itemType==="button"?C.push((0,t.h)(B.ElCheckboxButton,X,{default:()=>[T]})):typeof O=="function"?C.push((0,t.h)(B.ElCheckbox,X,{default:()=>O(I)})):C.push((0,t.h)(B.ElCheckbox,X,{default:()=>[T]}))}),C};return be({setDisabled:w=>{o.value=w},setReadonly:w=>{u.value=w}}),()=>{const w={...Qe(r.attrs),class:z.value,disabled:s.value||i.value,modelValue:m.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:M},O=[],C={};r.slots.options?C.default=r.slots.options:C.default=()=>V(b.value,r.slots.text);const I=(0,t.h)(B.ElCheckboxGroup,w,C);O.push(I);const Z={default:()=>O};Z.label=r.slots.default,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const N={...Me(n,gr),hintText:_.value,hintVisible:S.value};return n.prop&&(N.prop=`${n.prop}_item`),k.value&&(N["appear-listen"]=!0,N.onAppear=p),(0,t.h)(a,N,Z)}}}}var{componentName:U2,create:G2,scope:X2}=ie("checkbox-item"),Z2=G2(W2(U2,X2,ke)),ha=Z2,vr={modelValue:{type:[Number,String],required:!1}};function J2(e,l,a){return{props:{...Ce,...ze,...vr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),m=ge(n,"modelValue",$=>ve($),d),f=e,g=(0,t.computed)(()=>({[f]:!0})),b=$=>{d("update:modelValue",$),d("change",$)};let k=ge(n,"hintText"),v=(0,t.ref)(!1);const h=(0,t.ref)();return be({setDisabled:$=>{o.value=$},setReadonly:$=>{u.value=$}}),()=>{const $={...Qe(r.attrs),ref:h,class:g.value,readonly:i.value||s.value,modelValue:m.value,onChange:b},p={},c=[],z=(0,t.h)(B.ElRate,$,p);c.push(z);const M={default:()=>c};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const _={...Me(n,vr),hintText:k.value,hintVisible:v.value};return n.prop&&(_.prop=`${n.prop}_item`),(0,t.h)(a,_,M)}}}}var{componentName:Q2,create:e3,scope:t3}=ie("rate-item"),l3=e3(J2(Q2,t3,ke)),pa=l3,yr={modelValue:{type:[Boolean,String,Number],required:!1}};function n3(e,l,a){return{props:{...Ce,...ze,...yr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),m=ge(n,"modelValue",null,d),f=e,g=(0,t.computed)(()=>({[f]:!0})),b=$=>{d("update:modelValue",$),d("change",$)};let k=ge(n,"hintText"),v=ge(n,"hintVisible");const h=(0,t.ref)();return be({setDisabled:$=>{o.value=$},setReadonly:$=>{u.value=$}}),()=>{const $={...Qe(r.attrs),ref:h,class:g.value,readonly:i.value,disabled:s.value,modelValue:m.value,onChange:b},p={},c=[],z=(0,t.h)(B.ElSwitch,$,p);c.push(z);const M={default:()=>c};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const _={...Me(n,yr),hintText:k.value,hintVisible:v.value};return n.prop&&(_.prop=`${n.prop}_item`),(0,t.h)(a,_,M)}}}}var{componentName:a3,create:r3,scope:o3}=ie("switch-item"),i3=r3(n3(a3,o3,ke)),ga=i3,br={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}},s3=class{proxy;constructor(e){this.proxy=e}async load(e,l,a,n,r){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a,n);const o=Pe(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(Ke(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await o(l,a,n))}};function u3(){return new s3((0,t.getCurrentInstance)().proxy)}var wr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function c3(e,l,a){return{props:{...Ce,...ze,...wr,...br},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),d=(0,t.ref)(!1),{emitEvent:m}=Te({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),f=ge(n,"modelValue",null,m),g=e,b=(0,t.computed)(()=>({[g]:!0})),k=I=>{f.value=I,m("update:modelValue",I),m("change",I)};let v=ge(n,"hintText"),h=(0,t.ref)(!1);const $=I=>{let Z=I.target.value;d.value=!0,fe(v.value)||(h.value=!0),m("focus",Z,I)},p=I=>{setTimeout(()=>{h.value&&(h.value=!1),d.value=!1},0);let Z=I.target.value;n.maxLength&&Z.length>Number(n.maxLength)&&(Z=Z.slice(0,Number(n.maxLength))),z.value||m("blur",Z,I)},c=()=>{m("clear","")},z=(0,t.ref)(!1),M=I=>{z.value=I,m("visible-change",I),I||m("selected")},_=(0,t.ref)([]),S=u3(),V=async(I,Z)=>{try{_.value=await S.load("treeselect",I,Z)}catch(N){console.error(N)}};(0,t.watch)([()=>n.data,()=>n.params,()=>n.lazy],([I,Z,N])=>{!I||N||V(I,Z)},{immediate:!0});let w=null;n.lazy&&(typeof n.load=="function"?w=n.load:w=async(I,Z)=>{debugger;let N={};n.params&&Object.assign(N,n.params),I&&Object.assign(N,I),Z(await S.load("treeselect",n.data,N,!0))});let O={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey};const C=(0,t.ref)();return be({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},setDisabled:I=>{o.value=I},setReadonly:I=>{u.value=I}}),()=>{const I={...Qe(r.attrs),ref:C,class:b.value,disabled:s.value||i.value,modelValue:f.value,"onUpdate:modelValue":k,lazy:n.lazy,props:O,onClear:c,onFocus:$,onBlur:p,onVisibleChange:M};w?I.load=w:I.data=_.value;const Z={};r.slots.option&&(Z.default=r.slots.option);const N=[],T=(0,t.h)(B.ElTreeSelect,I,Z);N.push(T);const L={default:()=>N};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const q={...Me(n,wr,br),hintText:v.value,hintVisible:h.value};return n.prop&&(q.prop=`${n.prop}_item`),(0,t.h)(a,q,L)}}}}var{componentName:d3,create:f3,scope:m3}=ie("tree-select-item"),h3=f3(c3(d3,m3,ke)),va=h3,p3=class{proxy;constructor(e){this.proxy=e}async load(e){let l=null;const a=Pe(this.proxy,"tableSetting");return typeof a=="function"&&(l=await Reflect.apply(a,null,["load",e])),l}save(e,l){const a=Pe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["save",e,l])}remove(e){const l=Pe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",e])}};function g3(){return new p3((0,t.getCurrentInstance)().proxy)}var v3={},y3={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 b3(e,l){return(0,t.openBlock)(),(0,t.createElementBlock)("svg",y3,[...l[0]||(l[0]=[(0,t.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)])])}var w3=Fe(v3,[["render",b3]]),{componentName:G5,create:S3,scope:X5}=ie("group-setting"),x3={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:"到底部"}},C3=S3({components:{FoxPopover:B.ElPopover,FoxCheckbox:B.ElCheckbox,FoxCheckboxGroup:B.ElCheckboxGroup,FoxButton:B.ElButton,FoxIcon:B.ElIcon,DragIcon:w3,Download:$e.Download,RefreshLeft:$e.RefreshLeft},props:{...x3},emits:["change"],setup(e,{emit:l,attrs:a,expose:n}){let r=null;const o=(0,t.ref)([]),s=g3(),u=K=>K.length>1,i=()=>{const K=[];o.value=[...o.value].map((H,Y)=>(H.visible!==!1&&K.push(H.prop),{...H,sortIndex:Y})),o.value.length===K.length?v.value=!0:K.length>0&&(h.value=!0),c.value=K},d=K=>{let H=null;if(typeof K=="string")H=document.querySelectorAll(`.fox-group[prop="${K}"] > div > .fox-item[prop]`);else if(K&&typeof K=="object"){const J=K.$el??K;typeof J.querySelectorAll=="function"&&(H=J.querySelectorAll(".fox-item[prop]"))}if(!H)return[];const Y=[];return H.forEach(J=>{const P=J.querySelector(".label--string");let Q="";P&&(Q=P.textContent??"");const le=J.getAttribute("prop")??"",U=window.getComputedStyle(J,null).getPropertyValue("display");Y.push({label:Q,prop:le,sortIndex:0,visible:U!=="none"})}),Y},m=()=>{if(!r){const K=d(e.groupRef??e.groupProp);if(K.length===0)return!1;r=K}return!0},f=async(K=!1)=>{const H=await s.load(e.groupProp),Y=J=>{if(!J||!r)return;const P=r.map(Q=>({...Q}));Array.isArray(H)&&H.forEach(Q=>{P.some(le=>{if(le.prop===Q.prop){const U=le.label;return Object.assign(le,Q),le.label=U,!0}return!1})}),o.value=P.sort((Q,le)=>Q.sortIndex-le.sortIndex),i(),K&&b(!1)};r?Y(!0):zl(m,e.initDelay,5,50,!1,Y)},g=()=>{o.value=(r??[]).map(K=>({...K})),i(),b()},b=(K=!0)=>{K&&s.save(e.groupProp,o.value),l("change",o.value.map(H=>({...H})))},k=(0,t.computed)(()=>({"max-width":`${e.popoverWidth-125}px`})),v=(0,t.ref)(!1),h=(0,t.ref)(!1),$=K=>{const H=[];o.value.forEach(Y=>{K&&H.push(Y.prop),Y.visible=K}),v.value=!1,h.value=!1,o.value.length===H.length?v.value=!0:H.length>0&&(h.value=!0),c.value=H,b()},p=()=>{g()},c=(0,t.ref)([]),z=K=>{o.value.forEach(Y=>{Y.visible=K.indexOf(Y.prop)!==-1}),v.value=!1,h.value=!1;const H=o.value.length;K.length===H?v.value=!0:K.length>0&&(h.value=!0),b()},M=()=>{f()};(0,t.onMounted)(()=>{f(!0)});const _={currentRow:null,index:null},S=K=>K?K.dataset&&K.dataset.role==="row"?K:K.tagName.toLowerCase()!=="body"?(K=K.parentElement,S(K)):null:null,V=K=>{const H=K.currentTarget;H&&H.dataset&&(_.index=H.dataset.index)},w=K=>{_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null),_.index=null},O=K=>{const H=K.currentTarget;K.relatedTarget;const Y=S(H);Y&&(K.preventDefault(),_.currentRow&&_.currentRow!==Y&&_.currentRow.classList.remove("is-dragover"),Y.classList.add("is-dragover"),_.currentRow=Y)},C=K=>{K.preventDefault(),_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null)},I=K=>{const H=K.currentTarget,Y=S(H);if(!Y)return;K.preventDefault();const J=Number(_.index),P=Number(Y.dataset.index);if(J!==P){if(J<P){const Q=o.value[J];o.value.splice(J,1),o.value.splice(P,0,Q)}else{const Q=o.value[J];o.value.splice(J,1),o.value.splice(P+1,0,Q)}i(),b()}},Z=K=>{const H=o.value[K];o.value.splice(K,1),o.value.splice(0,0,H),i(),b()},N=K=>{const H=o.value[K];o.value.splice(K,1),o.value.push(H),i(),b()};n({refresh:()=>{r=null,f(!1)}});const T=new Map;let L=null;function q(K){const H=document.createRange();return H.setStart(K,0),H.setEnd(K,K.childNodes.length),H.getBoundingClientRect().width}return{attrs:a,itemPropertyList:o,isDraggble:u,isCheckAll:v,isIndeterminate:h,handleCheckAllChange:$,handleReset:p,checkedValue:c,handleCheckChange:z,onShow:M,onDragStart:V,onDragEnd:w,onDragOver:O,onDragLeave:C,onDrop:I,checkboxLabelStyle:k,toTop:Z,toBottom:N,onMouseOverForOverflowText:(K,H,Y)=>{const J=K.currentTarget;if(J){const P=Math.floor(J.offsetWidth);if(Math.floor(q(J))>P){let Q=T.get(H);if(Q){if(Q===L)return;Le.hide(Q)}Q=Le.show(J,Y,{type:"text",placement:"top",closeOnClick:!1}),T.set(H,Q),L=Q}}},onMouseLeaveForOverflowText:(K,H)=>{const Y=T.get(H);Y&&(Le.hide(Y),Y===L&&(L=null))},onMouseOverForTip:(K,H)=>{const Y=K.currentTarget;Y&&(L&&Le.hide(L),L=Le.show(Y,H,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:K=>{L&&(Le.hide(L),L=null)}}}}),N3={class:"fox-group-setting"},k3={class:"fox-group-setting__header"},z3={class:"fox-group-setting__body"},T3={class:"fox-group-setting__body-list","data-role":"container"},E3=["data-index","draggable"],_3=["onMouseover","onMouseleave"],$3={class:"tools-item"};function V3(e,l,a,n,r,o){const s=(0,t.resolveComponent)("FoxCheckbox"),u=(0,t.resolveComponent)("FoxButton"),i=(0,t.resolveComponent)("DragIcon"),d=(0,t.resolveComponent)("Download"),m=(0,t.resolveComponent)("FoxIcon"),f=(0,t.resolveComponent)("FoxCheckboxGroup"),g=(0,t.resolveComponent)("FoxPopover");return(0,t.openBlock)(),(0,t.createBlock)(g,(0,t.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",N3,[(0,t.createElementVNode)("div",k3,[(0,t.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=b=>e.isCheckAll=b),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,t.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,t.createElementVNode)("div",z3,[(0,t.createVNode)(f,{modelValue:e.checkedValue,"onUpdate:modelValue":l[10]||(l[10]=b=>e.checkedValue=b),onChange:e.handleCheckChange},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",T3,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.itemPropertyList,b=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:b.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":b.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:l[5]||(l[5]=(...k)=>e.onDragStart&&e.onDragStart(...k)),onDragend:l[6]||(l[6]=(...k)=>e.onDragEnd&&e.onDragEnd(...k)),onDrop:l[7]||(l[7]=(...k)=>e.onDrop&&e.onDrop(...k)),onDragover:l[8]||(l[8]=(...k)=>e.onDragOver&&e.onDragOver(...k)),onDragleave:l[9]||(l[9]=(...k)=>e.onDragLeave&&e.onDragLeave(...k))},[e.isDraggble(e.itemPropertyList)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"icon-item"})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(s,{class:"checkbox-item",label:b.prop},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",{onMouseover:k=>e.onMouseOverForOverflowText(k,b.prop,b.label),onMouseleave:k=>e.onMouseLeaveForOverflowText(k,b.prop),class:"checkbox-item__label",style:(0,t.normalizeStyle)(e.checkboxLabelStyle)},(0,t.toDisplayString)(b.label),45,_3)]),_:2},1032,["label"]),(0,t.createElementVNode)("div",$3,[(0,t.createVNode)(m,{onClick:k=>e.toTop(b.sortIndex),onMouseover:l[1]||(l[1]=k=>e.onMouseOverForTip(k,e.toTopText)),onMouseleave:l[2]||(l[2]=k=>e.onMouseLeaveForTip(k)),class:"is-reverse"},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d)]),_:1},8,["onClick"]),(0,t.createVNode)(m,{onClick:k=>e.toBottom(b.sortIndex),onMouseover:l[3]||(l[3]=k=>e.onMouseOverForTip(k,e.toBottomText)),onMouseleave:l[4]||(l[4]=k=>e.onMouseLeaveForTip(k))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d)]),_:1},8,["onClick"])])],40,E3))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var ya=Fe(C3,[["render",V3]]),B3={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}},D3=class{proxy;constructor(e){this.proxy=e}async load(e,l,a,n,r){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a,n);const o=Pe(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(Ke(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await o(l,a,n))}};function M3(){return new D3((0,t.getCurrentInstance)().proxy)}function I3(e,l,a){return{props:{...Nn,...B3},setup(n,r){const o=e,s=(0,t.computed)(()=>({[o]:!0})),u=(0,t.ref)([]),i=M3(),d=async(c,z)=>{try{u.value=await i.load("tree",c,z)}catch(M){console.error(M)}},m=(0,t.shallowRef)({}),f=(0,t.computed)(()=>({...m.value,...n.params??{}}));(Array.isArray(n.data)?!0:n.lazy?!1:de(n.autoLoad))&&(0,t.watch)([()=>n.data,()=>f.value],([c,z])=>{c&&d(c,z)},{immediate:!0,deep:!0});let b=null;n.lazy&&(typeof n.load=="function"?b=n.load:b=async(c,z)=>{let M={};n.params&&Object.assign(M,n.params),c&&Object.assign(M,c),z(await i.load("treeselect",n.data,M,!0))});const k={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey,disabled:n.disabedKey,...n.props??{}},v=(c={})=>new Promise(async z=>{m.value={...(0,t.toRaw)(c??{})},await d(n.data,f.value),z()}),h=function(c,z){if(typeof n.filterNodeMethod=="function")return n.filterNodeMethod(c,z);if(!n.filterKeyword)return!0;const M=`${z[k.label]}`,_=`${c}`;return M.includes(_)},$=(0,t.ref)();(0,t.watch)(()=>n.filterKeyword,c=>{$.value.filter(c)});const p=c=>(...z)=>{const M=$.value[c];return Reflect.apply(M,$.value,[...z])};return r.expose({loadData:v,filter:p("filter"),updateKeyChildren:p("updateKeyChildren"),getCheckedNodes:p("getCheckedNodes"),setCheckedNodes:p("setCheckedNodes"),getCheckedKeys:p("getCheckedKeys"),setCheckedKeys:p("setCheckedKeys"),setChecked:p("setChecked"),getHalfCheckedNodes:p("getHalfCheckedNodes"),getHalfCheckedKeys:p("getHalfCheckedKeys"),getCurrentKey:p("getCurrentKey"),getCurrentNode:p("getCurrentNode"),setCurrentKey:p("setCurrentKey"),setCurrentNode:p("setCurrentNode"),getNode:p("getNode"),remove:p("remove"),append:p("append"),insertBefore:p("insertBefore"),insertAfter:p("insertAfter")}),()=>{const c={...Qe(r.attrs),class:s.value,lazy:n.lazy,props:k,ref:S=>$.value=S};b?c.load=b:c.data=u.value,c["filter-node-method"]=h;const z=[],M=(0,t.h)(B.ElTree,c,r.slots);z.push(M);const _={default:()=>z};return(0,t.h)(a,{...lt(n,Nn)},_)}}}}var{componentName:A3,create:L3,scope:P3}=ie("tree-item"),F3=L3(I3(A3,P3,Fl)),ba=F3,dl={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function R3(e,l,a,n="value"){for(let r=0;r<l.length;r++){let o=l[r];if(n==="text"){if(fl(e,o)===a)return r}else if(n==="item"){if(Ue(a,o))return r}else if(Yo(e,o)===a)return r}return-1}function fl(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Sr(e,l){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?l[e.subTextKey]:l.text}function Yo(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function O3(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function H3(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}var q3=class{proxy;constructor(e){this.proxy=e}async load(e,l,a,n,r,o,s){if(Array.isArray(l)){let i=l;typeof s=="function"&&(i=i.filter(s));let d=(a-1)*n,m=d+n;m>i.length&&(m=i.length);const f=i.slice(d,m);return{totalSize:i.length,page:f}}if(typeof l=="function")return await Reflect.apply(l,null,[a,n,r,o]);const u=Pe(this.proxy,e);return u===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Ke(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await Reflect.apply(u,null,[l,a,n,r]))}};function j3(){return new q3((0,t.getCurrentInstance)().proxy)}function K3(e,l,a,n,r,o,s,u,i,d,m){return{props:{...dl},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(f,{slots:g}){const{emitEvent:b}=Fn(),{toLocaleRefs:k}=(0,Se.useFoxI18n)(l),v=k(f,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),h=j3(),$=(0,t.ref)([]),p=(0,t.ref)(0),c=(0,t.ref)(""),z=(0,t.shallowRef)(null),M=(0,t.computed)(()=>{const E={};return f.params&&Object.assign(E,f.params),fe(c.value)||(E[`${f.searchKey}`]=c.value),z.value&&Object.assign(E,z.value),E});let _=!0;const S=async(E,A,x)=>{try{if(w.value===!1)return;let W=null;fe(c.value)||(W=y=>{const R=fl(f,y);if(typeof R=="string"&&R.includes(c.value))return!0;const j=Sr(f,y);return!!(typeof j=="string"&&j.includes(c.value))});const D=await h.load("actionsheet",E,A,x,M.value,_,W??void 0);_=!1,Array.isArray(D)?($.value=D,p.value=1,w.value=!1):!Array.isArray(D.page)||D.page.length===0?(console.warn("[FoxUI] can not load more data"),w.value=!1):(Reflect.apply([].push,$.value,D.page),p.value=Math.ceil($.value.length/f.pageSize),(D.totalSize&&$.value.length>=D.totalSize||x<D.page.length)&&(w.value=!1)),V.value=!1}catch(W){console.error("[FoxUI] ActionSheet load more data fail",W),w.value=!0,p.value=0,$.value=[]}setTimeout(()=>{b("loaded-data")},250)},V=(0,t.ref)(!1),w=(0,t.ref)(!0),O=async()=>{if(!f.source){V.value=!1;return}await S(f.source,p.value+1,f.pageSize)};(0,t.watch)(()=>c.value,(E,A)=>{fe(E)&&!fe(A)&&O()}),(0,t.watch)([()=>f.source,()=>f.pageSize,()=>f.params],async([E,A,x])=>{f.source&&O()},{immediate:!0});const C=(0,t.computed)(()=>!f.multiple&&f.isAutoBackFill),I=(0,t.ref)([]);let Z=null;const N=(0,t.ref)(f.visible);(0,t.watch)(()=>f.visible,E=>{N.value!==E&&(N.value=E),E?Z=[...I.value]:Z=null});const T=(E,A)=>{const x=[];return Array.isArray(E)||(E=[E]),E.forEach(W=>{let D=R3(f,A,W,f.valueType);D!==-1&&x.push(D)}),Ue(x,I.value)?!1:(I.value=x,!0)};(0,t.watch)([()=>f.modelValue,()=>$.value],([E,A],[x,W])=>{T(E,A)&&q(L())},{deep:!0});const L=()=>{const E=[],A=[],x=[];for(let R of I.value){const j=$.value[R];A.push(j);const te=fl(f,j);if(x.push(te),f.valueType==="item")E.push(j);else if(f.valueType==="text")E.push(te);else{const ae=Yo(f,j);E.push(ae)}}let W=null,D=null,y=null;return f.multiple?(W=E,D=x,y=A):(W=E[0]??null,D=x[0]??null,y=A[0]??null),{value:W,text:D,item:y}},q=E=>{b("update:modelValue",E.value),b("update:text",E.text),b("change",E.value,E.item,E.text)},G=()=>{Z&&(I.value=Z)},X=E=>{const A=I.value.indexOf(E);f.multiple?A===-1?I.value.push(E):I.value.splice(A,1):A===-1?I.value=[E]:I.value=[],(C.value||!f.poppable&&!f.showFooter)&&K()},F=E=>{N.value=E,b("update:visible",E)},ee=()=>{const E=()=>{G(),F(!1)},A=f.beforeMethod??f.beforeClose;if(typeof A=="function"){const x=A("close");pl(x)?x.then(W=>{W!==!1&&E()}).catch(()=>{E()}):x!==!1&&E()}else E()},K=()=>{const E=L(),A=()=>{q(E),F(!1)},x=f.beforeMethod??f.beforeClose;if(typeof x=="function"){const W=x("confirm",E.value,E.item,E.text);pl(W)?W.then(D=>{D!==!1&&A()}).catch(()=>{A()}):W!==!1&&A()}else A()},H=()=>{w.value=!0,p.value=0,$.value=[],f.source&&O()},Y=()=>{let E=v.title.value??"";return g.title&&(E=g.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[E]),(0,t.h)(i,{class:["fox-actionsheet__header-icon"],onClick:ee})])},J=()=>{let E=null;return g.search?E=g.search():E=(0,t.h)(o,{onSearch:H,placeholder:v.seachPlaceholder.value,disabled:f.disabled,modelValue:c.value,"onUpdate:modelValue":A=>{c.value=A}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[E])},P=(E,A,x,W,D)=>{if(g.optionLabel)return g.optionLabel({text:E,checked:A,disabled:x,subText:W,item:D});const y=[],R=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[E]);if(y.push(R),W){const j=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[W]);y.push(j)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},y)},Q=(E,A,x,W)=>g.optionIcon?g.optionIcon({checked:E,disabled:A,iconSize:x,item:W}):E?g.checkedIcon?g.checkedIcon({disabled:A,item:W}):(0,t.h)(f.checkedIcon??u,{width:x,height:x,class:["fox-actionsheet__list-item-icon"]}):g.icon?g.icon({disabled:A,item:W}):(0,t.h)(f.icon??s,{width:x,height:x,class:["fox-actionsheet__list-item-icon"]}),le=()=>{const E=[];for(let A=0;A<$.value.length;A++){const x=$.value[A],W=fl(f,x),D=Sr(f,x),y=["fox-actionsheet__list-item"],R={};let j=O3(f,x),te=f.iconSize?me(f.iconSize):null;const ae=H3(f,x,A);ae&&(j=j||ae.disabled,ae.class&&y.push(ae.class),ae.style&&Object.assign(R,ae.style)),j=!!(f.disabled||j);const oe=I.value.includes(A);j&&y.push("is-disabled"),oe&&y.push("is-checked");const he={class:y,style:R,key:`${A}`,onClick:()=>{j||X(A)}};let xe=[];if(g.option)xe.push(g.option({item:x,checked:oe,disabled:j}));else{const Xe=P(W,oe,j,D,x);xe.push(Xe);const ut=Q(oe,j,te,x);xe.push(ut)}const Ee=(0,t.h)("view",he,xe);E.push(Ee)}return E},U=()=>{let E=[];if(g.buttons)E=g.buttons();else{const A=(0,t.h)(r,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:K,disabled:f.disabled},{default:()=>v.confirmText.value});E.push(A)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[E])};return be({search:async(E=null,A=!0)=>{z.value=E&&(0,t.toRaw)(E),(0,t.triggerRef)(z),A&&(w.value=!0,p.value=0,$.value=[]),(0,t.nextTick)(()=>{O()})},clear:()=>{w.value=!0,p.value=0,$.value=[]},confirm:()=>{K()},cancel:()=>{ee()}}),()=>{const E=[];if(f.showHeader){const j=Y();E.push(j)}if(f.showSearchbar){const j=J();E.push(j)}let A=null;if(g.content)A=g.content();else{const j=le();A=(0,t.h)(n,{hasMore:w.value,loadText:v.loadText.value,noMoreText:v.noMoreText.value,modelValue:V.value,"onUpdate:modelValue":te=>{V.value=te},onLoadMore:O},{default:()=>j})}const x={};f.optionsHeight&&(x.height=f.optionsHeight);const W={"fox-actionsheet__list":!0};f.poppable||(W["fox-actionsheet__list--inner"]=!0);const D=(0,t.h)("view",{class:W,style:x},[A]);if(E.push(D),f.showFooter&&!C.value){const j=U();E.push(j)}const y=(0,t.h)("view",{class:"fox-actionsheet"},E);if(!f.poppable)return y;const R=["fox-actionsheet__popup"];return f.popClass&&R.push(f.popClass),(0,t.h)(a,{popClass:R.join(" "),visible:N.value,closeable:!1,"onUpdate:visible":F,position:f.position,round:"round",onClickOverlay:ee,closeOnClickOverlay:f.closeOnClickOverlay},{default:()=>y})}}}}var Y3=/scroll|auto|overlay/i,Wo=window;function W3(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function U3(e,l=Wo){let a=e;for(;a&&a!==l&&W3(a);){const{overflowY:n}=window.getComputedStyle(a);if(Y3.test(n))return a;a=a.parentNode}return l}function Uo(e,l=Wo){const a=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(a.value=U3(e.value,l))}),a}var Go=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,G3={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 X3(e,l,a){return{props:{...G3},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:o}){const{toLocaleRefs:s}=(0,Se.useFoxI18n)(l),u=s(n,["pullText","loadText","noMoreText"]),i=(0,t.ref)(),d=Uo(i),m=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),f=(0,t.computed)(()=>({[e]:!0})),g=p=>p?p.offsetTop+g(p.offsetParent):0,b=()=>{let p=0,c=0,z="down";if(d.value==window){const M=Go();i.value&&(p=g(i.value)+i.value.offsetHeight-M-window.innerHeight),c=M}else{const{scrollHeight:M,clientHeight:_,scrollTop:S}=d.value;p=M-_-S,c=S}return m.beforeScrollTop>c?z="up":z="down",m.beforeScrollTop=c,r("scroll-change",c),p<=n.threshold&&z=="down"},k=()=>{Vn(()=>{if(!b()||!n.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,r("update:modelValue",!0),(0,t.nextTick)(()=>r("load-more"))})},v=()=>{d.value&&d.value.addEventListener("scroll",k,n.useCapture)},h=()=>{d.value&&d.value.removeEventListener("scroll",k,n.useCapture)};(0,t.onMounted)(()=>{v(),n.immediate&&k()}),(0,t.onUnmounted)(()=>{h()});const $=(0,t.ref)(!1);return(0,t.onActivated)(()=>{$.value&&($.value=!1,v())}),(0,t.onDeactivated)(()=>{$.value=!0,h()}),(0,t.watch)(()=>n.modelValue,p=>{p||(m.isInfiniting=!1)}),()=>{const p=(0,t.h)("view",{class:"fox-infinite__container"},[o?.default?.()]),c=[];if(m.isInfiniting){let M=o?.loading?.()??null;if(!M){let S=o?.loadingIcon?.()??null;S||(S=(0,t.h)(a,{class:["fox-infinite__bottom-box__img"]}));const V=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[u.loadText.value]);M=[S,V]}const _=(0,t.h)("view",{class:"fox-infinite__bottom-box"},M);c.push(_)}else if(!n.hasMore){let M=o?.finished?.()??null;M||(M=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[u.noMoreText.value]),c.push(M))}const z=(0,t.h)("view",{class:"fox-infinite__bottom"},c);return(0,t.h)("view",{class:f.value,ref:i},[p,z])}}}}var{componentName:Z3,create:J3,scope:Q3}=ie("infinite-loading"),e4=J3(X3(Z3,Q3,Jt)),Yl=e4,t4={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},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"}},l4=(e,l,a)=>({props:{...t4},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:o}=Fn(),{toLocaleRefs:s}=(0,Se.useFoxI18n)(l),u=s(n,["placeholder"]),i=(0,t.reactive)({active:!1}),d=(0,t.computed)(()=>({background:n.background})),m=(0,t.computed)(()=>({background:n.inputBackground})),f=w=>{let O=w.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),o("update:modelValue",O,w),o("change",O,w)},g=(0,t.ref)({}),b=w=>{let O=w.target.value;i.active=!0,g.value=n.focusStyle,o("focus",O,w)},k=w=>{setTimeout(()=>{i.active=!1},0);let O=w.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),g.value={},o("blur",O,w)},v=w=>{o("update:modelValue","",w),o("change","",w),o("clear","")},h=(0,t.computed)(()=>String(n.modelValue).length>0),$=(0,t.computed)(()=>{const w={};return h.value||(w.display="none"),w}),p=()=>{o("search",n.modelValue)},c=w=>{o("keyup-input",w),w.key.toLocaleUpperCase()==="ENTER"&&p()},z=w=>{o("click-input",w)},M=w=>{o("click-left-icon",n.modelValue,w)},_=(0,t.computed)(()=>({textAlign:n.inputAlign})),S=(0,t.ref)(null);(0,t.onMounted)(()=>{n.autofocus&&S.value.focus()});const V=()=>{const w=[];if(r.leftin){const I=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:M},[r.leftin()]);w.push(I)}const O=(0,t.h)("input",{ref:S,class:[`${e}__input-inner`],style:_.value,type:n.inputType,maxlengt:n.maxLength,placeholder:u.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:z,onInput:f,onFocus:b,onBlur:k,onkeyup:c});w.push(O);const C=[];if(n.clearable){const I=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:v},[(0,t.h)(r?.clear?.()??n.clearIcon??a)]);C.push(I)}if(r.rightin){const I=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[r.rightin()]);C.push(I)}if(C.length>0){const I=(0,t.h)("view",{class:`${e}__input-inner-right`},C);w.push(I)}return(0,t.h)("view",{class:[`${e}__search-input`,`${n.shape}`],style:{...m.value,...g.value}},w)};return()=>{const w=[];if(n.label){const C=(0,t.h)("span",{class:`${e}__search-label`},[n.label]);w.push(C)}if(r.leftout){const C=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[r.leftout()]);w.push(C)}const O=V();if(w.push(O),r.rightout){const C=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[r.rightout()]);w.push(C)}return(0,t.h)("view",{class:`${e}`,style:d.value},w)}}}),{componentName:n4,create:a4,scope:r4}=ie("searchbar"),o4=a4(l4(n4,r4,$e.CircleClose)),Wl=o4,{componentName:i4,create:s4,scope:u4}=ie("actionsheet-pane"),c4=s4(K3(i4,u4,wt,Yl,B.ElButton,Wl,c1,i1,Ro,Rc,!1)),Ul=c4,xr={type:{type:String,default:"text"},placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function d4(e,l,a,n,r){return{props:{...Ce,...ze,...xr,...dl},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(o,s){const u=(0,t.ref)(null),i=Ae((0,t.computed)(()=>u.value??o.disabled)),d=(0,t.ref)(null),m=Ie((0,t.computed)(()=>d.value??o.readonly)),{emitEvent:f}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return i.value}},o.prop??s.attrs.name),{toLocaleRefs:g}=(0,Se.useFoxI18n)(l),b=g(o,["placeholder"]),k=(0,t.ref)(!1),v=ge(o,"modelValue",null,f),h=(0,t.ref)(""),$=(0,t.computed)(()=>Array.isArray(h.value)?h.value.join(o.separator):h.value),p="fox-input-item",c=(0,t.computed)(()=>({[p]:!0,[`${p}__disabled`]:i.value})),z=De((0,t.computed)(()=>o.textAlign),"textAlign"),M=(0,t.computed)(()=>{const q={};return z.value&&(q["text-align"]=z.value),q}),_=(0,t.ref)(!1),S=()=>{_.value=!0},V=q=>{_.value=q},w=q=>{v.value=q,f("update:modelValue",q)},O=(q,G)=>{f("change",q,G)},C=q=>{let G=q.target.value;k.value=!0,f("focus",G,q)},I=q=>{setTimeout(()=>{k.value=!1},0);let G=q.target.value;o.maxLength&&G.length>Number(o.maxLength)&&(G=G.slice(0,Number(o.maxLength))),f("blur",G,q)},Z=q=>{h.value=q,f("update:text",q)},N=(0,t.computed)(()=>Je(o.unit)>0),T=(0,t.ref)(),L=(0,t.ref)(null);return be({focus:()=>{T?.value.focus()},blur:()=>{T?.value.blur()},select:()=>{T?.value.select()},search:q=>{L.value&&L.value.search(q)},clear:()=>{L.value&&L.value.clear},confirm:q=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()},setDisabled:q=>{u.value=q},setReadonly:q=>{d.value=q}}),()=>{const q={ref:T,class:c.value,style:M.value,type:"text",maxlength:o.maxLength,placeholder:b.placeholder.value,readonly:!0,value:$.value,onClick:S,onFocus:C,onBlur:I},G={};s.slots.prepend&&(G.prepend=s.slots.prepend),s.slots.append&&(G.append=s.slots.append),s.slots.prefix&&(G.prefix=s.slots.prefix),s.slots.suffix?G.suffix=s.slots.suffix:N.value?G.suffix=()=>[o.unit]:G.suffix=()=>(0,t.h)(B.ElIcon,{},{default:()=>(0,t.h)($e.ArrowDown)});const X=[],F=(0,t.h)(B.ElInput,q,G);X.push(F);const ee={default:()=>X};ee.label=s.slots.default,ee.prepend=s.slots.prepend,ee.append=s.slots.append,ee.fixedPreTip=s.slots.fixedPreTip,ee.fixedTip=s.slots.fixedTip;const K=lt(o,dl);K.ref=L,K.class=o.actionsheetProps,K.disabled=i.value||m.value,K.visible=_.value,K["onUpdate:visible"]=V,K.modelValue=v.value,K["onUpdate:modelValue"]=w,K.text=h.value,K["onUpdate:text"]=Z,K.onChange=O,K.poppable=!0;const H=(0,t.h)(n,K,{title:s.slots.title,search:s.slots.search,option:s.slots.option,optionLabel:s.slots.optionLabel,optionIcon:s.slots.optionIcon,buttons:s.slots.buttons});ee.hide=()=>[H];const Y={...Me(o,xr,dl)};return o.prop&&(Y.prop=`${o.prop}_item`),(0,t.h)(a,Y,ee)}}}}var{componentName:f4,create:m4,scope:h4}=ie("actionsheet-item"),p4=m4(d4(f4,h4,ke,Ul)),wa=p4,Xo={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},Sa={...la,...Xo,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:!0}};function g4(e){return e===window}var xa=e=>{const l=(0,t.unref)(e);if(g4(l)){const a=l.innerWidth,n=l.innerHeight;return{top:0,left:0,right:a,bottom:n,width:a,height:n}}return l&&l.getBoundingClientRect?l.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Cr=10;function Zo(e,l){return e>l&&e>Cr?"horizontal":l>e&&l>Cr?"vertical":""}function Qt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function el(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},l=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const u=s.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=s;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Zo(e.offsetX,e.offsetY))}),start:(s=>{if(n(),s.touches){const u=s.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:n,isVertical:l,isHorizontal:a,state:e}}function Jo(){const e=(0,t.ref)(0),l=(0,t.ref)(0),a=(0,t.ref)(0),n=(0,t.ref)(0),r=(0,t.ref)(0),o=(0,t.ref)(0),s=(0,t.ref)(0),u=(0,t.ref)(0),i=(0,t.ref)(0),d=(0,t.ref)(0),m=(0,t.ref)(""),f=()=>m.value==="vertical",g=()=>m.value==="horizontal",b=()=>{s.value=0,u.value=0,i.value=0,d.value=0,m.value="",a.value=0};return{move:(h=>{if(h.touches){const $=h.touches[0];s.value=$.clientX-e.value,u.value=$.clientY-l.value,r.value=$.clientX,o.value=$.clientY}else{const $=h;s.value=$.clientX-e.value,u.value=$.clientY-l.value,r.value=$.clientX,o.value=$.clientY}i.value=Math.abs(s.value),d.value=Math.abs(u.value),n.value=Date.now()-a.value,m.value||(m.value=Zo(i.value,d.value))}),start:(h=>{if(b(),h.touches){const $=h.touches[0];e.value=$.clientX,l.value=$.clientY}else{const $=h;e.value=$.clientX,l.value=$.clientY}a.value=Date.now()}),reset:b,startX:e,startY:l,startTime:a,duration:n,moveX:r,moveY:o,deltaX:s,deltaY:u,offsetX:i,offsetY:d,direction:m,isVertical:f,isHorizontal:g}}var Qo=36;function v4(){return Qo}function y4(e){Qo=e}function et(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Tn(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]:l.children??null}function b4(e,l,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(l[e.childrenKey]=a),l.children=a}function bt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Nr(e,l){return typeof e.itemOptions=="function"?e.columnOptions(l):e.columnOptions}var w4=class{proxy;constructor(e){this.proxy=e}async load(e,l,a){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a);const n=Pe(this.proxy,e);return n===null?(console.error(`${e} component not found api function`),[]):(Ke(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await n(l,a))}};function S4(){return new w4((0,t.getCurrentInstance)().proxy)}function kr(e,l,a){return!(et(e,l)!==et(e,a)||bt(e,l)!==bt(e,a))}function x4(e,l,a,n){if(a.length==0)return[];Array.isArray(l)||(l=[l]);const r=[],o=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<l.length&&s<a.length;s++){const u=l[s];let i=a[s].findIndex(d=>{if(o==="text")return et(e,d)===u;if(o==="value"){let m=bt(e,d);return m==null&&(m=et(e,d)),m===u}else if(o==="item")return kr(e,d,u)});if(i==-1)break;r.push(i)}else{let s=a[0];for(let u=0;u<l.length;u++){const i=l[u];let d=s.findIndex(f=>{if(o==="text")return et(e,f)===i;if(o==="value"){let g=bt(e,f);return g==null&&(g=et(e,f)),g===i}else if(o==="item")return kr(e,f,i)});if(d==-1)break;r.push(d);const m=Tn(e,s[d]);if(!Array.isArray(m))break;s=m}}return r}function zr(e,l,a,n){if(a.length==0)return null;const r={texts:[],values:[],items:[]},o=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<l.length&&s<a.length;s++){const u=a[s];let i=l[s];i<0&&i>=u.length&&(i=0);const d=u[i],m=et(e,d);if(r.texts.push(m),r.items.push(d),o==="text")r.values.push(m);else if(o==="value"){let f=bt(e,d);f==null&&(f=m),r.values.push(f)}else r.values.push(d)}else{let s=a[0];for(let u=0;u<l.length;u++){let i=l[u];i<0&&i>=s.length&&(i=0);const d=s[i],m=et(e,d),f=Object.assign({},d);if(f.children=null,r.texts.push(m),r.items.push(f),o==="text")r.values.push(m);else if(o==="value"){let g=bt(e,d);g==null&&(g=m),r.values.push(g)}else r.values.push(f);if(!Array.isArray(d.children))break;s=d.children}}return r}function Tr(e){return{text:e,value:e}}var C4=15,N4=300,k4=200,{create:z4}=ie("picker-column");function T4(e){e.stopPropagation()}function E4(e,l){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),l&&T4(e)}var _4=z4({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...Xo},emits:["click","change","update:modelValue"],setup(e,{emit:l}){const a=(0,t.computed)(()=>({"fox-picker__list":!0})),n=(0,t.computed)(()=>({height:`${ve(e.visibleItemCount)*+e.itemHeight}px`})),r=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),o=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=S=>{const V=S+1;return V>=f.currIndex+8||V<=f.currIndex-8},u=(0,t.computed)(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${o.value}px`})),i=S=>{const V=S+1;return`transform: rotate3d(1, 0, 0, ${-f.rotation*V}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+o.value}px, 0)`})),m=(0,t.ref)(null),f=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=S=>et(e,S),b=S=>bt(e,S),k=Jo(),v=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},h=(S,V=!1,w=!1)=>{if(f.currIndex=S,V){const O=()=>{f.moving=!1,l("update:modelValue",S),l("change",S)};w?f.transitionEndTrigger=O:O()}},$=(S,V,w)=>{let O=S+f.startDistance;if(V==="end"){const C=-(e.source.length-1)*e.itemHeight;O<C&&(O=C),O>0&&(O=0);let I=Math.abs(Math.round(-O/e.itemHeight));const Z=-I*e.itemHeight,N=`${(I+1)*f.rotation}deg`;h(I,!0,w?w>0:!1),p(Z,V,w,N)}else{let C=(-O/e.itemHeight+1)*f.rotation;const I=(e.source.length+1)*f.rotation,Z=0;if(C=Math.min(Math.max(C,Z),I),e.threeDimensional&&(C<Z||C>I))return;p(O,null,void 0,`${C}deg`)}},p=(S=0,V,w=k4,O)=>{V==="end"?f.scrollTime=w:f.scrollTime=0,f.deg=O,f.scrollDistance=S},c=(S,V)=>(S=Math.abs(S/V)/.003*(S<0?-1:1),S),z=S=>{e.readonly||(f.startDistance=f.scrollDistance,k.start(S),f.transitionEndTrigger=null)},M=S=>{e.readonly||(f.moving=!0,k.move(S),k.isVertical()&&(f.moving=!0,E4(S,!0)),$(k.deltaY.value,"",0))},_=()=>{if(e.readonly)return;const S=k.deltaY.value,V=k.duration.value;V<N4&&Math.abs(S)>C4?$(c(S,V),"end",e.swipeDuration):$(S,"end",0)};return(0,t.watch)(()=>e.modelValue,S=>{const V=f.currIndex-S;V!==0&&(f.currIndex=S,f.startDistance=f.scrollDistance,$(V*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,S=>{if(f.currIndex>=S.length){const V=(S.length-1-f.currIndex)*e.itemHeight;f.startDistance=f.scrollDistance,$(V,"end",0)}}),(0,t.watch)(()=>e.visible,S=>{S===!1&&v()}),(0,t.onMounted)(()=>{$(-e.modelValue*e.itemHeight)}),{classes:a,styles:n,contentClasses:r,itemText:g,itemValue:b,...(0,t.toRefs)(f),roller:m,getItemText:et,onTouchStart:z,onTouchMove:M,onTouchEnd:_,isHidden:s,setRollerStyle:i,touchRollerStyle:u,touchTileStyle:d,stopMomentum:v}}}),$4={key:1,class:"fox-picker__item-tile"};function V4(e,l,a,n,r,o){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:l[0]||(l[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:l[1]||(l[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:l[2]||(l[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:l[3]||(l[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:l[4]||(l[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(s,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(u))},(0,t.toDisplayString)(e.itemText(s)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",$4,(0,t.toDisplayString)(e.itemText(s)),1))],64))),128))],6)],38)}var B4=Fe(_4,[["render",V4]]),{create:D4,componentName:M4,scope:I4}=ie("picker"),A4=D4({components:{PickerColumn:B4,Popup:wt},props:{...Sa},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:l}){const{toLocaleRefs:a,t:n}=(0,Se.useFoxI18n)(I4),r=a(e,["title","cancelText","clearText","confirmText"]),o=(0,t.ref)(null),s=(0,t.ref)(v4());(0,t.watch)(()=>e.visible,C=>{C&&s.value<=0&&setTimeout(()=>{o.value&&(s.value=xa(o.value).height,y4(s.value))},50)});const u=(0,t.computed)(()=>({[M4]:!0})),i=S4(),d=(0,t.ref)("singleColumn");let m=(0,t.ref)([]);(0,t.watch)([()=>e.source,()=>e.params],async([C,I])=>{if(C){let Z=await i.load("select",C,I);if(Z.length>0){let N=Z[0];if(Array.isArray(N)){if(typeof N[0]=="string"){let T=Z,L=[];T.forEach(q=>{let G=q.map(X=>Tr(X));L.push(G)}),m.value=L}else m.value=Z;d.value="multipleColumn"}else if(typeof N=="string"){let T=Z,L=[],q=T.map(G=>Tr(G));L.push(q),m.value=L,d.value="singleColumn"}else{const T=Tn(e,N);Array.isArray(T)?(d.value="cascade",m.value=[Z]):(d.value="singleColumn",m.value=[Z])}}else m.value=[]}},{immediate:!0});const f=(0,t.ref)([]),g=(0,t.ref)(e.modelValue),b=(0,t.ref)([]),k=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>m.value],([C,I])=>{let Z=x4(e,C,I,d.value);if(!Ue(Z,k.value)){k.value=Z;let N=zr(e,Z,I,d.value);N&&(f.value=N.texts,l("update:text",f.value))}});const v=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,C=>{v.value=C});const h=C=>{let I=Nr(e,C);return Ke(I)?I.defaultIndex??0:0},$=C=>{if(e.readonly===!0)return!0;let I=Nr(e,C);return Ke(I)?I.readonly??!1:!1},p=(C,I)=>{let Z=k.value;Z[C]=I;for(let T=0;T<C;T++)Z[T]==null&&(Z[T]=h(T));if(d.value==="cascade")for(let T=C+1;T<z.value.length;T++){let L=h(T);T<Z.length?Z[T]=L:Z.push(L)}else for(let T=Z.length;T<z.value.length;T++){let L=h(T);Z.push(L)}k.value=Z;let N=zr(e,Z,m.value,d.value);N&&(f.value=N.texts,g.value=N.values,b.value=N.items)},c=C=>C<k.value.length?k.value[C]:h(C),z=(0,t.computed)(()=>{if(m.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return m.value;let C=[],I=0,Z=m.value[0],N=0;for(;;){let T=Z.map(G=>{let X=Object.assign({},G);return b4(e,X,null),X});C.push(T),I>=k.value.length?N=0:N=k.value[I],(N<0||N>=Z.length)&&(N=0);let L=Z[N];const q=Tn(e,L);if(!Array.isArray(q))break;Z=q,I++}return C}),M=(0,t.computed)(()=>ve(+e.visibleItemCount-1)/2*s.value),_=(C=!1)=>{if(e.readonly===!0){C&&l("update:visible",!1);return}let I=m.value.length-1;for(;I>=0&&!(k.value[I]===null||k.value[I]===void 0);I--);if(I>=0&&p(I,0),d.value==="singleColumn"){let Z=g.value.length>0?g.value[0]:"",N=b.value.length>0?b.value[0]:null;l("update:modelValue",Z),l("update:text",f.value),l("change",Z,N),C&&(l("confirm",Z),l("update:visible",!1))}else l("update:modelValue",g.value),l("update:text",f.value),l("change",g.value,b.value),C&&(l("confirm",g.value),l("update:visible",!1))};return{...r,pickerLineRef:o,classes:u,columns:z,dataType:d,show:v,itemHeight:s,top:M,isReadonly:$,getIndex:c,change:(C,I)=>{p(C,I),e.isAutoBackFill&&_(!v.value)},close:()=>{l("close"),l("update:visible",!1)},confirm:()=>{_(!0)},clear:()=>{if(e.readonly===!0){l("update:visible",!1);return}d.value==="singleColumn"?(l("update:modelValue",""),l("change","")):(l("update:modelValue",[]),l("change",[])),l("clear",""),l("update:visible",!1)}}}}),L4={class:"fox-picker__bar"},P4={class:"fox-picker__title"},F4={class:"fox-picker__bar__action"},R4={class:"fox-picker__column"};function O4(e,l,a,n,r,o){const s=(0,t.resolveComponent)("PickerColumn"),u=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(u,{position:"bottom",visible:e.show,"onUpdate:visible":l[3]||(l[3]=i=>e.show=i),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",L4,[(0,t.createElementVNode)("view",P4,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",F4,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:l[0]||(l[0]=(...i)=>e.close&&e.close(...i))},(0,t.toDisplayString)(e.cancelText),1),(0,t.createElementVNode)("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:l[1]||(l[1]=(...i)=>e.confirm&&e.confirm(...i))},(0,t.toDisplayString)(e.confirmText),1),e.clearText?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:l[2]||(l[2]=(...i)=>e.clear&&e.clear(...i))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])]),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",R4,[(0,t.createElementVNode)("view",{class:"fox-picker__mask",style:(0,t.normalizeStyle)({backgroundSize:`100% ${e.top}px`})},null,4),(0,t.createElementVNode)("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:(0,t.normalizeStyle)({top:` ${e.top}px`})},null,4),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(i,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:"fox-picker__columnitem"},[(0,t.createVNode)(s,{visible:e.show,source:i,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":m=>e.change(d,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}var tl=Fe(A4,[["render",O4]]),Er={...Sa,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function H4(e,l,a){return{props:{...Ce,...ze,...Er},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(n,r){const o=(0,t.ref)(null),s=Ae((0,t.computed)(()=>o.value??n.disabled)),u=(0,t.ref)(null),i=Ie((0,t.computed)(()=>u.value??n.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??r.attrs.name),{toLocaleRefs:m}=(0,Se.useFoxI18n)(l),f=m(n,["placeholder"]),g=(0,t.ref)(!1),b=e,k=(0,t.computed)(()=>({[b]:!0})),v=De((0,t.computed)(()=>n.textAlign),"textAlign"),h=(0,t.computed)(()=>({textAlign:v.value??"right"})),$=ge(n,"modelValue",null,d),p=(0,t.ref)([]),c=(0,t.computed)(()=>Array.isArray(p.value)?p.value.join(" "):p.value),z=(0,t.ref)(!1),M=()=>{z.value=!0},_=q=>{z.value=q},S=q=>{$.value=q,d("update:modelValue",q)},V=q=>{p.value=q,Array.isArray(q)&&q.length===0?d("update:text",q[0]):d("update:text",q)},w=(q,G)=>{d("change",q,G)};let O=ge(n,"hintText"),C=(0,t.ref)(!1);const I=q=>{let G=q.target.value;g.value=!0,fe(O.value)||(C.value=!0),d("focus",G,q)},Z=q=>{setTimeout(()=>{C.value&&(C.value=!1),g.value=!1},0);let G=q.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),z.value?setTimeout(()=>{d("blur",G,q)},50):d("blur",G,q)},N=()=>{d("clear","")},T=(0,t.computed)(()=>Je(n.unit)>0),L=(0,t.ref)();return be({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()},setDisabled:q=>{o.value=q},setReadonly:q=>{u.value=q}}),()=>{const q={class:k.value,style:h.value,type:"text",maxlength:n.maxLength,placeholder:f.placeholder.value,clearable:de(n.clearable),readonly:!0,value:c.value,onClick:M,onFocus:I,onBlur:Z},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:T.value?G.suffix=()=>[n.unit]:G.suffix=()=>(0,t.h)(B.ElIcon,{},{default:()=>(0,t.h)($e.ArrowDown)});const X=[],F=(0,t.h)(B.ElInput,q,G);X.push(F);const ee={default:()=>X};ee.label=r.slots.default,ee.fixedPreTip=r.slots.fixedPreTip,ee.fixedTip=r.slots.fixedTip;const K=lt(n,Sa);K.disabled=!1,K.readonly=s.value||i.value,K.visible=z.value,K["onUpdate:visible"]=_,K.modelValue=$.value,K["onUpdate:modelValue"]=S,K.text=p.value,K["onUpdate:text"]=V,K.onClear=N,K.onChange=w;const H=(0,t.h)(tl,K);ee.hide=()=>[H];const Y={...Me(n,Er),hintText:O.value,hintVisible:C.value};return n.prop&&(Y.prop=`${n.prop}_item`),(0,t.h)(a,Y,ee)}}}}var{componentName:q4,create:j4,scope:K4}=ie("picker-item"),Y4=j4(H4(q4,K4,ke)),Ca=Y4;function W4(e,l,a,n){return{props:{...Ce,...ze,placeholder:{type:String},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(r,o){const s=Ae((0,t.computed)(()=>r.disabled)),u=Ie((0,t.computed)(()=>r.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return u.value},get disabled(){return s.value}},r.prop??o.attrs.name),{toLocaleRefs:d}=(0,Se.useFoxI18n)(l),m=d(r,["placeholder"]),f=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,I=>{f.value=I,i("change",I)});const g=(0,t.computed)(()=>({[`${e}`]:!0})),b=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&fe(f.value),"is-disabled":s.value,"is-readonly":u.value})),k=De((0,t.computed)(()=>r.textAlign),"textAlign"),v=(0,t.computed)(()=>{const I={};return k.value&&(I["text-align"]=k.value),I}),h=(0,t.computed)(()=>!fe(r.modelValue)||o.slots.main?!0:!!fe(r.desc)),$=(0,t.computed)(()=>fe(f.value)?m.placeholder.value:f.value),p=(0,t.computed)(()=>!fe(r.desc)||o.slots.sub),c=(0,t.computed)(()=>({[`${e}__sub`]:!0})),z=(0,t.computed)(()=>{const I={};return k.value&&(I["text-align"]=k.value),I}),M=()=>{i("focus",f.value)},_=()=>{i("blur",f.value)},S=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":u.value})),V=(0,t.computed)(()=>Je(r.unit)>0),w=I=>{s.value==!0||u.value==!0||i("click")},O=(0,t.computed)(()=>r.icon??a),C=(0,t.computed)(()=>({action:!0}));return()=>{const I=[];if(typeof o.slots.content=="function"){const F=o.slots.content();I.push(F)}else{const F=[];if(h.value){const K={tabIndex:0,class:b.value,style:v.value,onFocus:M,onBlur:_};let H=null;o.slots.main?H=(0,t.h)("view",K,[o.slots.main($.value)]):H=(0,t.h)("view",K,[$.value]),F.push(H)}if(p.value){const K={tabIndex:0,class:c.value,style:z.value,onFocus:M,onBlur:_};let H=null;o.slots.sub?H=(0,t.h)("view",K,[o.slots.sub(r.desc)]):H=(0,t.h)("view",K,[r.desc]),F.push(H)}const ee=(0,t.h)("view",{class:g.value,onClick:w},F);I.push(ee)}const Z=[],N=me(r.iconSize);let T=o.slots.icon;if(!T){const F={width:N,height:N,class:["action-icon"]};T=(0,t.h)(O.value,F)}const L=(0,t.h)("view",{class:C.value,onClick:w},{default:()=>[T]});if(Z.push(L),V.value){const F=(0,t.h)("view",{},[r.unit]);Z.push(F)}const q=(0,t.h)("view",{class:S.value},{default:()=>Z});I.push(q);const G={default:()=>I};G.label=o.slots.default,G.prepend=o.slots.prepend,G.append=o.slots.append,G.fixedPreTip=o.slots.fixedPreTip,G.fixedTip=o.slots.fixedTip;const X={...lt(r,ze,Ce)};return r.prop&&(X.prop=`${r.prop}_item`),(0,t.h)(n,X,G)}}}}var{componentName:U4,create:G4,scope:X4}=ie("link-item"),Z4=G4(W4(U4,X4,$e.ArrowRight,ke)),Na=Z4,En={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},_r=(e,l)=>l[e.textKey],Pt=(e,l)=>l[e.valueKey],J4=(e,l)=>l[e.visibleKey],$r=(e,l)=>l[e.disabledKey],Q4=(e,l)=>{const a=l[e.doitKey];return de(a)},ed=(e,l)=>{const a=l[e.numKey];return a==null?null:ve(l[a])},Vr=(e,l,a)=>{const n=e.itemOptions;return typeof n=="function"?n(l,a):n||null};function td(e,l,a,n,r,o=!1){return{props:{...En},emits:["update:modelValue","change","click"],setup(s,{slots:u,emit:i}){const d=(0,t.computed)(()=>{const D={};return D[`${e}`]=!0,D}),m=(0,t.computed)(()=>{const D={};return D[`${e}__titles`]=!0,D[`${s.direction}`]=!0,s.align&&(D[`${s.align}`]=!0),s.scroll===!0&&(D.scrollable=!0),s.shape&&(D[`${s.shape}`]=!0),s.showScrollArrow?(P.value===!0&&(D["has-left-scroll-arrow "]=!0),Q.value===!0&&(D["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(D["has-navigation"]=!0),D}),f=(0,t.computed)(()=>({})),g=(0,t.computed)(()=>{if(!s.gutter)return 0;const D=me(s.gutter);return D<=0?0:D}),b=(0,t.ref)(s.modelValue);(0,t.watch)(()=>s.modelValue,D=>{b.value!==D&&(b.value=D,X(!1))});const k=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),v=(0,t.computed)(()=>{const D={};return $.value||(D.display="none"),D}),h=(0,t.ref)(),$=(0,t.ref)(!1),p=()=>{c(!$.value)},c=D=>{const y=D;y?($.value=y,setTimeout(()=>{k.value["fox-tabs-bar__popup--show"]=!0,k.value["fox-tabs-bar__popup--hide"]=!1},0)):(k.value["fox-tabs-bar__popup--show"]=!1,k.value["fox-tabs-bar__popup--hide"]=!0,h.value?h.value.addEventListener("transitionend",()=>{$.value=!1},{once:!0}):setTimeout(()=>{$.value=!1},0))},z=(0,t.ref)(),M=(0,t.ref)([]),_=(D,y)=>{M.value[y]=D},S=D=>y=>{_(y,D)},V=(D,y)=>{const R=z.value,j=M.value;if(!R||!j||!j[D])return;const te=j[D];let ae=0;s.direction==="vertical"?ae=te.offsetTop-(R.offsetHeight-te.offsetHeight)/2:ae=te.offsetLeft-(R.offsetWidth-te.offsetWidth)/2,w(R,ae,y?0:.3,s.direction)},w=(D,y,R,j)=>{let te=0;const ae=j==="horizontal"?D.scrollLeft:D.scrollTop,oe=R===0?1:Math.round(R*1e3/16);function he(){j==="horizontal"?D.scrollLeft+=(y-ae)/oe:D.scrollTop+=(y-ae)/oe,++te<oe&&Mn(he)}he()},O=(D,y)=>{const R=Pt(s,D),j={};return j[`${e}__titles-item`]=!0,j.disabled=$r(s,D),j.active=R===b.value,s.shape&&(j[`${s.shape}`]=!0),s.ellipsis&&(j.ellipsis=!0),y&&(y.class&&(j[`${y.class}`]=!0),y.disabled===!0&&(j.disabled=y.disabled)),j},C=(D,y)=>{const R={};if(g.value>0){const j=Math.abs(g.value/2);s.direction==="vertical"?(R["margin-top"]=`${j}px`,R["margin-bottom"]=`${j}px`):(R["margin-left"]=`${j}px`,R["margin-right"]=`${j}px`)}return y&&y.style&&Object.assign(R,y.style),R},I=(D,y)=>`${Pt(s,D)??y}`,Z=(D,y)=>{const R=Pt(s,D),j={};j[`${e}__popup-item`]=!0,j.disabled=$r(s,D),j.active=R===b.value,s.shape&&(j[`${s.shape}`]=!0);const te=Vr(s,D,y);return te&&te.disabled===!0&&(j.disabled=te.disabled),j},N=(0,t.computed)(()=>(s.data??[]).filter(D=>J4(s,D)!==!1)),T=(D,y)=>{const R=Pt(s,D);if(i("click",D,y),b.value==R)return;const j=()=>{b.value=R,s.scroll&&V(y,!1),i("update:modelValue",R),i("change",D,y)};if(typeof s.beforeChange=="function"){const te=s.beforeChange(D,y);pl(te)?te.then(ae=>{ae!==!1&&j()}).catch(()=>{j()}):te!==!1&&j()}else j()},L=(D,y)=>function(){T(D,y)},q=(D,y)=>{T(D,y),c(!1)},G=(D,y)=>function(){q(D,y)},X=D=>{if(!Array.isArray(s.data)||!s.scroll)return;J()&&A();const y=s.data.findIndex(R=>Pt(s,R)===b.value);y!==-1&&V(y,D)},F=()=>{J()||x()};(0,t.watch)(()=>s.data,()=>{setTimeout(X,0)}),(0,t.onMounted)(()=>{X(!0)}),(0,t.onBeforeUnmount)(()=>{F()});const ee=(D,y)=>{if(u.item)return u.item({item:D,index:y});const R=Vr(s,D,y),j=[];if(u.text){const ae=u.text({item:D,index:y});j.push(ae)}else{const ae=[];if(R?.doit===!0||Q4(s,D)){const Ee=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ae.push(Ee)}const oe=R?.num??ed(s,D);if(oe){let Ee="";const Xe=ve(oe);Xe>=100?Ee="99+":Ee=`${Xe}`;const ut=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Ee]);ae.push(ut)}const he={class:`${e}__titles-item-text`};ae.push(_r(s,D));const xe=(0,t.h)("view",he,ae);j.push(xe)}const te=(0,t.h)("view",{class:`${e}__titles-item-line`});return j.push(te),(0,t.h)("view",{ref:S(y),class:O(D,R),style:C(D,R),key:I(D,y),onClick:L(D,y)},j)},K=()=>{const D=u.default?u.default():[];if(D.length===0)for(let y=0;y<N.value.length;y++){const R=N.value[y],j=ee(R,y);D.push(j)}return(0,t.h)("view",{ref:z,class:m.value,style:f.value},D)},H=()=>{let D=null;return u.navigation?D=u.navigation():D=(0,t.h)(a),(0,t.h)("view",{class:`${e}__navigation`,onClick:p},[D])},Y=()=>{const D=[];for(let y=0;y<N.value.length;y++){const R=N.value[y];let j=null;u.popupItem?j=u.popupItem({item:R,index:y}):j=_r(s,R);const te=(0,t.h)("view",{class:Z(R,y),key:I(R,y),onClick:G(R,y)},[j]);D.push(te)}return(0,t.h)("view",{class:k.value,style:v.value},D)},J=()=>s.showScrollArrow&&s.direction=="horizontal",P=(0,t.ref)(!1),Q=(0,t.ref)(!1),le=D=>{const y=z.value,R=M.value;if(!(!y||!R))if(D==="left"){const j=y.scrollLeft;let te=j;for(let ae=0;ae<R.length;ae++){const oe=R[ae].offsetLeft;if(j-oe<0)break;te=oe}w(y,te,.3,"horizontal")}else{const j=y.scrollLeft;let te=j,ae=y.offsetWidth;for(let oe=R.length-1;oe>=0;oe--){const he=R[oe].offsetLeft+R[oe].offsetWidth;if(he-j<y.offsetWidth){te+=ae-he;break}ae=he}w(y,te,.3,"horizontal")}},U=Ge(()=>{const D=z.value;if(!D)return;let y=D.scrollLeft>0;y!==P.value&&(P.value=y);let R=D.scrollWidth-D.scrollLeft>D.offsetWidth;R!==Q.value&&(Q.value=R)},50),E=D=>{U()},A=()=>{const D=z.value;D&&(U(),D.addEventListener("scroll",E))},x=()=>{const D=z.value;D&&D.removeEventListener("scroll",E)},W=D=>{if(D==="left"&&P.value!==!0||D==="right"&&Q.value!==!0)return null;let y=null;return D==="left"?u.leftArrow?y=u.leftArrow():y=(0,t.h)(n):u.rightArrow?y=u.rightArrow():y=(0,t.h)(r),(0,t.h)("view",{class:[`${e}__scroll-arrow`,D],onClick:()=>{le(D)}},[y])};return()=>{const D=[],y=K();if(D.push(y),J()){const R=W("left");R&&D.push(R);const j=W("right");j&&D.push(j)}else if(s.showQuickNavigation){const R=H();D.push(R);const j=Y();D.push(j)}return(0,t.h)("view",{class:d.value},D)}}}}var{create:ld,componentName:nd,scope:ad}=ie("tabs-bar"),rd=ld(td(nd,ad,Yc,Zc,qc,!1)),ll=rd,ei=Symbol("TabsStatesKey"),_n={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]}},od=15,id=300,sd=200;function ud(e,l,a=1){return e=Math.abs(e/l)/.003*(e<0?-1:1),e*a}function Br(e,l=0,a,n,r=sd){a==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",n==="horizontal"?e.style.transform=`translate3d(${l}px, 0, 0)`:e.style.transform=`translate3d(0, ${l}px, 0)`}var cd=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(e,l,a,n=1){this.onStart=e,this.onMove=l,this.onEnd=a,this.momentumReduceRatio=n,this.isTouch=Qt()}open(e){this.el=e;const l=el(),a=(n,r,o)=>{const s={delta:n,direction:r,type:o};this.onMove(s)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=n=>{if(this.moving)return;l.start(n),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.removeEventListener("transitionend",this.transitionend),e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=n=>{if(!this.moving)return;l.move(n);let r=0;if(this.direction==="horizontal"){if(l.isVertical())return;r=l.state.deltaX}else{if(l.isHorizontal())return;r=l.state.deltaY}a(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let n=0;if(this.direction==="horizontal"){if(l.isVertical()){this.moving=!1;return}n=l.state.deltaX}else{if(l.isHorizontal()){this.moving=!1;return}n=l.state.deltaY}const r=l.state.duration;r<id&&Math.abs(n)>od?(n=ud(n,r,this.momentumReduceRatio),a(n,this.direction,"end")):a(n,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function dd(e,l,a,n=1){return new cd(e,l,a,n)}function fd(e,l,a=!1){return{props:{..._n},emits:["update:modelValue","change"],setup(n,{emit:r,slots:o}){const s=(0,t.shallowRef)([]),u={current:(0,t.ref)(n.modelValue??""),direction:(0,t.ref)(n.direction),tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:S=>{const V={name:S};u.current.value===S&&(V.loaded=!0),s.value.push(V),(0,t.triggerRef)(s)},remove:S=>{const V=s.value.findIndex(w=>w.name===S);V!==-1&&s.value.splice(V,1)},isLoaded:S=>{if(!n.lazy)return!0;const V=s.value.findIndex(w=>w.name===S);return V!==-1?u.current.value?s.value[V].loaded??!1:V===0:!1}};(0,t.provide)(ei,u);const i=S=>{const V=s.value.findIndex(w=>w.name===S);V!==-1&&(s.value[V].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>n.modelValue,()=>n.direction],([S,V])=>{u.current.value!==S&&(u.current.value=S??"",i(S??"")),u.direction.value!==V&&(u.direction.value=V)});const d=(0,t.ref)(null),m=(0,t.ref)(null),f=(0,t.computed)(()=>({[e]:!0,[`${n.direction}`]:!0})),g=(0,t.computed)(()=>{const S={};if(n.width){const V=we(n.width);V&&(S.width=V)}if(n.height){const V=we(n.height);V&&(S.height=V)}return S});let b=!0;const k=(0,t.computed)(()=>{const S={},V=s.value.length;if(V<=0)return S;const w=s.value.findIndex(O=>O.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(S.height=`${V*u.tabHeight.value}px`,w!==-1&&(S.transform=`translate(0, -${w*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(S.width=`${V*u.tabWidth.value}px`,w!==-1&&(S.transform=`translate(-${w*u.tabWidth.value}px, 0)`)),b&&(b=!1,S.transition="transform 0s ease"),S}),v={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},h=S=>{const V=s.value.length,w=s.value.findIndex(O=>O.name===u.current.value);v.moved=0,S.direction==="vertical"?(v.min=-1*(u.tabHeight.value*(V-1)+u.tabHeight.value/4),v.max=u.tabHeight.value/4,v.start=-w*u.tabHeight.value,v.itemDistance=u.tabHeight.value):(v.min=-1*(u.tabWidth.value*(V-1)+u.tabWidth.value/4),v.max=u.tabWidth.value/4,v.start=-w*u.tabWidth.value,v.itemDistance=u.tabWidth.value)},$=S=>{const V=m.value;if(!V)return;let w=v.start+S.delta;if(w>v.max?w=v.max:w<v.min&&(w=v.min),S.type==="move")Br(V,w,"move",S.direction,300);else if(S.type==="end"){let O=Math.floor(Math.abs(w)*1/v.itemDistance);const C=Math.abs(w)%v.itemDistance;v.start>w?C>=v.itemDistance*v.triggerAutoMoveRatio&&(O+=1):C>v.itemDistance-v.itemDistance*v.triggerAutoMoveRatio&&(O+=1),w=-1*O*v.itemDistance,Br(V,w,"end",S.direction,300),v.moved=w;const I=s.value[O].name;u.current.value=I??"",i(I??""),r("update:modelValue",I)}},p=()=>{},c=()=>{if(!d.value)return;const S=Vl(d.value);u.tabWidth.value=S.width,u.tabHeight.value=S.height},z=yo(c,250);let M=null,_=null;return(0,t.onMounted)(()=>{d.value&&(c(),window.ResizeObserver&&(_=new window.ResizeObserver(z),_.observe(d.value)),n.draggle&&(M=dd(h,$,p),M.open(m.value)))}),(0,t.onBeforeUnmount)(()=>{_&&(_.disconnect(),_=null),M&&M.close()}),()=>{const S=(0,t.h)("view",{class:`${e}__panes`,style:k.value,ref:m},[o?.default?.()]);return(0,t.h)("view",{class:f.value,style:g.value,ref:d},[S])}}}}var{create:md,componentName:hd,scope:pd}=ie("tabs-container"),gd=md(fd(hd,pd,!1)),nl=gd,vd={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 yd(e,l,a){return{props:{...vd},setup(n,{emit:r,slots:o}){const s=(0,t.inject)(ei);(0,t.onMounted)(()=>{s.add(n.paneKey)}),(0,t.onBeforeUnmount)(()=>{s.remove(n.paneKey)});const u=(0,t.computed)(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),i=(0,t.computed)(()=>n.loaded!=null?de(n.loaded):s.isLoaded(n.paneKey));return()=>{let d=[];if(i.value)d=o?.default?.()??[];else if(o.empty)d=o.empty();else{const m={class:`${e}__empty-icon`},f=(0,t.h)(n.emptyIcon??a,m),g=(0,t.h)("view",{class:`${e}__empty-text`},[n.emptyText??"Loading"]),b=(0,t.h)("view",{class:`${e}__empty`},[f,g]);d.push(b)}return(0,t.h)("view",{class:`${e}`,style:u.value,prop:n.paneKey},d)}}}}var{create:bd,componentName:wd,scope:Sd}=ie("tabs-pane"),xd=bd(yd(wd,Sd,Jt)),Gl=xd;function Cd(e,l,a,n){return{props:{...En,..._n,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(r,{emit:o,slots:s}){const u=e,i=(0,t.computed)(()=>{const v=[`${u}`];return r.direction==="vertical"?v.push("vertical-tabbar"):v.push("horizontal-tabbar"),v}),d=(0,t.computed)(()=>{const v={};if(r.width){const h=we(r.width);h&&(v.width=h)}if(r.height){const h=we(r.height);h&&(v.height=h)}return v}),m=(0,t.computed)(()=>[`${u}__bar`]),f=(0,t.computed)(()=>[`${u}__container`]),g=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,v=>{g.value!==v&&(g.value=v)});const b=v=>{o("change",v)},k=v=>{g.value!==v&&(g.value=v,o("update:modelValue",v))};return()=>{const{getChildren:v}=Un(s.default),h=v(),$=[];if(Array.isArray(r.data))$.push(...r.data);else for(let V=0;V<h.length;V++){const w=h[V].props??{},O={text:w.label??"",value:w["pane-key"]??w.paneKey??""};$.push(O)}const p={};for(let V in s)V!=="default"&&(p[V]=s[V]);const c=lt(r,En);Object.assign(c,{data:$,class:m.value,modelValue:g.value,direction:r.direction,onChange:b,"onUpdate:modelValue":k});const z=(0,t.h)(a,c,p),M={default:()=>h},_=lt(r,_n);Object.assign(_,{class:f.value,modelValue:g.value,onChange:b,"onUpdate:modelValue":k});const S=(0,t.h)(n,_,M);return(0,t.h)("view",{class:i.value,style:d.value},[z,S])}}}}var{create:Nd,componentName:kd,scope:zd}=ie("tabs-frame"),Td=Nd(Cd(kd,zd,ll,nl)),ka=Td,Ed={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function _d(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Dr(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Mr(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function $d(e,l){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?l[e.visibleKey]:l.visible??null}function un(e,l){return typeof e.statusKey=="string"&&e.statusKey.length>0?l[e.statusKey]:l.statusKey??null}function Ir(e,l){return typeof e.doitKey=="string"&&e.doitKey.length>0?l[e.doitKey]:l.doitKey??null}function Ar(e,l){return typeof e.labelKey=="string"&&e.labelKey.length>0?l[e.labelKey]:l.labelKey??null}function cn(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}var Vd=class{proxy;constructor(e){this.proxy=e}async load(e,l,a){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[a]);const n=Pe(this.proxy,e);return n===null?(console.error(`${e} component not found api function`),[]):(Ke(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(n,null,[l,a]))}};function Bd(){return new Vd((0,t.getCurrentInstance)().proxy)}function Dd(e,l,a,n){return{props:{...Ed},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:o,emit:s}){const u=e,i=Bd(),d=(0,t.ref)([]),m=(0,t.computed)(()=>d.value.filter(H=>$d(r,H)!==!1)),f=(0,t.ref)(-1),g=()=>{const H=r.modelValue,Y=m.value.findIndex(J=>Dr(r,J)===H);f.value!==Y&&(f.value=Y,r.scroll&&ee(Y,!1))};(0,t.watch)([()=>r.modelValue,m],()=>{g()});const b=H=>f.value===H,k=H=>{if(H<0&&H>=m.value.length)return!1;const Y=m.value[H],J=(cn(r,Y,H)??{}).status??un(r,Y);return b(H)||J},v=(0,t.computed)(()=>{const H={[u]:!0};return r.mode?H[`is-${r.mode}`]=!0:r.direction&&(H[`is-${r.direction}`]=!0),r.scroll&&(H["is-scroll"]=!0),H}),h=(0,t.computed)(()=>({})),$=(H,Y,J,P,Q)=>{const le={[`${u}__step`]:!0};return Q&&(le[`${Q}`]=!0),le[`${p.value}`]=!0,P&&(le["is-doit"]=!0),H===f.value?le["is-active"]=!0:Y==="done"?le["is-done"]=!0:Y==="error"?le["is-error"]=!0:Y==="half"?le["is-half"]=!0:J?le["is-disabled"]=!0:le["is-normal"]=!0,le},p=(0,t.computed)(()=>{let H=r.align;if(!H){if(r.mode==="simple")return"start";r.direction==="vertical"?H="start":H="center"}return H}),c=(H,Y={})=>{const J={...Y};if(p.value==="start"&&H===m.value.length-1)J.flex="0 0 auto";else if(r.step){const P=typeof r.step=="number"||An(r.step)?we(r.step):r.step;r.direction==="vertical"?J.height=P:J.width=P}else J.flex="1 1 100%";return J},z=(H,Y)=>{let J={};if(Y<m.value.length-1){const P=Y+1;k(Y)&&k(P)?r.direction==="vertical"?J.height="100%":J.width="100%":J.opacity="0"}return J},M=H=>m.value.length-1===H,_=(H,Y)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&Y>f.value||f.value===Y)return;const J=f.value,P=Y;f.value=Y,r.scroll&&ee(Y,!1);const Q=Dr(r,H);s("update:modelValue",Q),s("change",Q,{fromIndex:J,currentIndex:P,item:H,items:m.value,clickNavigatePolicy:r.clickNavigatePolicy})},S=(0,t.ref)(!0),V=async(H,Y)=>{try{const J=await i.load("stesbar",H,Y);Array.isArray(J)&&(d.value=J),S.value=!1}catch(J){console.error("[FoxUI] Load StepsBar Data Fail",J),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};(0,t.watch)([()=>r.data,()=>r.params],async([H,Y])=>{H&&V(H,Y)},{immediate:!0});const w=(H,Y,J,P,Q)=>{let le=null;if(o.icon)le=o.icon({item:H,index:Y,status:P});else if(P==="done"){const U={};r.iconSize&&(U.width=r.iconSize,U.height=r.iconSize),le=(0,t.h)(r.icon??a,U)}else le=(0,t.h)("span",{},[J??`${Y+1}`]);return(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{Q||_(H,Y)}},[le])},O=(H,Y,J)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:z(H,Y)})]),C=()=>{let H=null;if(o.markIcon)H=o.markIcon();else{const Y={};r.iconSize&&(Y.width=r.markIconSize,Y.height=r.markIconSize),H=(0,t.h)(r.markIcon??n,Y)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[H])},I=(H,Y,J,P,Q)=>{const le=[];if(!M(Y)){const E=O(H,Y,P);le.push(E)}const U=w(H,Y,J,P,Q);return le.push(U),(0,t.h)("view",{class:"fox-steps-bar__head"},le)},Z=(H,Y,J,P)=>{let Q=null;return o.main?Q=o.main({item:H,index:Y,status:J}):Q=_d(r,H),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{P||_(H,Y)}},[Q])},N=(H,Y,J)=>{let P=null;return o.sub?(P=o.sub({item:H,index:Y,status:J}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[P])):null},T=(H,Y)=>{const J=cn(r,H,Y)??{},P=J.status??un(r,H);let Q=Mr(r,H);J.disabled===!0&&(Q=!0),r.disabled===!0&&(Q=!0);const le=J.label??Ar(r,H),U=[],E=w(H,Y,le,P,Q);E&&U.push(E);const A=Z(H,Y,P,Q);if(A&&U.push(A),!M(Y)){const R=O(H,Y,P);R&&U.push(R)}const x=(0,t.h)("view",{class:"fox-steps-bar__head"},U),W=J.class,D=J.style??{};let y=Ir(r,H);return J.doit===!0&&(y=!0),(0,t.h)("view",{ref:F(Y),class:$(Y,P,Q,y,W),style:c(Y,D)},[x])},L=(H,Y)=>{const J=cn(r,H,Y)??{},P=J.status??un(r,H);let Q=Mr(r,H);J.disabled===!0&&(Q=!0),r.disabled===!0&&(Q=!0);const le=J.label??Ar(r,H),U=[],E=r.layout;for(let D of E)if(D==="head"){const y=I(H,Y,le,P,Q);U.push(y)}else if(D==="main"){const y=Z(H,Y,P,Q);U.push(y)}else if(D==="sub"){const y=N(H,Y,P);U.push(y)}else if(D==="mark"){const y=C();U.push(y)}const A=J.class,x=J.style??{};let W=Ir(r,H);return J.doit===!0&&(W=!0),(0,t.h)("view",{ref:F(Y),class:$(Y,P,Q,W,A),style:c(Y,x)},U)},q=(0,t.ref)(),G=(0,t.ref)([]),X=(H,Y)=>{G.value[Y]=H},F=H=>Y=>{X(Y,H)},ee=(H,Y)=>{const J=q.value,P=G.value;if(!J||!P||!P[H])return;const Q=P[H];let le=0;r.direction==="vertical"?le=Q.offsetTop-(J.offsetHeight-Q.offsetHeight)/2:le=Q.offsetLeft-(J.offsetWidth-Q.offsetWidth)/2,K(J,le,Y?0:.3,r.direction)},K=(H,Y,J,P)=>{let Q=0;const le=P==="horizontal"?H.scrollLeft:H.scrollTop,U=J===0?1:Math.round(J*1e3/16);function E(){P==="horizontal"?H.scrollLeft+=(Y-le)/U:H.scrollTop+=(Y-le)/U,++Q<U&&Mn(E)}E()};return()=>{let H=[];if(r.mode==="simple")for(let J=0;J<m.value.length;J++){const P=m.value[J],Q=T(P,J);H.push(Q)}else for(let J=0;J<m.value.length;J++){const P=m.value[J],Q=L(P,J);H.push(Q)}const Y={ref:q,class:v.value,style:h.value};return H.length===0&&typeof o.default=="function"&&(H=o.default()),(0,t.h)("view",Y,H)}}}}var{componentName:Md,create:Id,scope:Ad}=ie("steps-bar"),Ld=Id(Dd(Md,Ad,Oo,m1)),za=Ld,je=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,gt=e=>e==null,Pd=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,l){this.startMove=e,this.updateMove=l,this.isTouch=Qt()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const l=el(),a=(n,r,o,s)=>{this.updateMove({x:n,y:r})};this.touchstart=n=>{this.moving||(l.start(n),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=n=>{this.moving&&(l.move(n),a(l.state.deltaX,l.state.deltaY,"",0))},this.touchend=()=>{a(l.state.deltaX,l.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(n=>{this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Lr(e,l){return new Pd(e,l)}var Pr=typeof window<"u"&&typeof document<"u",Z5=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function ti(e){const l=Object.create(null);return(a=>l[a]||(l[a]=e(a)))}var Fd=/\B([A-Z])/g,J5=ti(e=>e.replace(Fd,"-$1").toLowerCase()),Rd=/-(\w)/g,Q5=ti(e=>e.replace(Rd,(l,a)=>a?a.toUpperCase():"")),Nt=[],Fr=e=>{const l=e;l.key==="Escape"&&Nt.forEach(a=>a(l))},Od=e=>{(0,t.onMounted)(()=>{Nt.length===0&&document.addEventListener("keydown",Fr),Pr&&Nt.push(e)}),(0,t.onBeforeUnmount)(()=>{Nt=Nt.filter(l=>l!==e),Nt.length===0&&Pr&&document.removeEventListener("keydown",Fr)})},dn="fox-focus-trap.focus-after-trapped",fn="fox-focus-trap.focus-after-released",Hd="fox-focus-trap.focusout-prevented",Rr={cancelable:!0,bubbles:!1},qd={cancelable:!0,bubbles:!1},Or="foxFocusAfterTrapped",Hr="foxFocusAfterReleased",jd=Symbol("foxFocusTrap"),Ta=(0,t.ref)(),Xl=(0,t.ref)(0),Ea=(0,t.ref)(0),il=0,li=e=>{const l=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)l.push(a.currentNode);return l},Kd=(e,l)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(l&&e===l)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},qr=(e,l)=>{for(const a of e)if(!Kd(a,l))return a},Yd=e=>{const l=li(e);return[qr(l,e),qr(l.reverse(),e)]},Wd=e=>e instanceof HTMLInputElement&&"select"in e,ct=(e,l)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),Ea.value=window.performance.now(),e!==a&&Wd(e)&&l&&e.select()}};function jr(e,l){const a=[...e],n=e.indexOf(l);return n!==-1&&a.splice(n,1),a}var Ud=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=jr(e,n),e.unshift(n)},remove:n=>{e=jr(e,n),e[0]?.resume?.()}}},Gd=(e,l=!1)=>{const a=document.activeElement;for(const n of e)if(ct(n,l),document.activeElement!==a)return},Kr=Ud(),Xd=()=>Xl.value>Ea.value,sl=()=>{Ta.value="pointer",Xl.value=window.performance.now()},Yr=()=>{Ta.value="keyboard",Xl.value=window.performance.now()},Zd=()=>((0,t.onMounted)(()=>{il===0&&(document.addEventListener("mousedown",sl),document.addEventListener("touchstart",sl),document.addEventListener("keydown",Yr)),il++}),(0,t.onBeforeUnmount)(()=>{il--,il<=0&&(document.removeEventListener("mousedown",sl),document.removeEventListener("touchstart",sl),document.removeEventListener("keydown",Yr))}),{focusReason:Ta,lastUserFocusTimestamp:Xl,lastAutomatedFocusTimestamp:Ea}),ul=e=>new CustomEvent(Hd,{...qd,detail:e}),{componentName:e6,create:Jd,scope:t6}=ie("focus-trap"),Qd={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"}},ef=Jd({props:Qd,emits:[Or,Hr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:l,emit:a}){const n=(0,t.ref)();let r,o;const{focusReason:s}=Zd();Od(v=>{de(e.trapped)&&!u.paused&&a("release-requested",v)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=v=>{if(!e.loop&&!de(e.trapped)||u.paused)return;const{key:h,altKey:$,ctrlKey:p,metaKey:c,currentTarget:z,shiftKey:M}=v,{loop:_}=e,S=h==="Tab"&&!$&&!p&&!c,V=document.activeElement;if(S&&V){const w=z,[O,C]=Yd(w);if(O&&C){if(!M&&V===C){const I=ul({focusReason:s.value});a("focusout-prevented",I),I.defaultPrevented||(v.preventDefault(),_&&ct(O,!0))}else if(M&&[O,w].includes(V)){const I=ul({focusReason:s.value});a("focusout-prevented",I),I.defaultPrevented||(v.preventDefault(),_&&ct(C,!0))}}else if(V===w){const I=ul({focusReason:s.value});a("focusout-prevented",I),I.defaultPrevented||v.preventDefault()}}};(0,t.provide)(jd,{focusTrapRef:n,onKeydown:i}),(0,t.watch)(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),(0,t.watch)([n],([v],[h])=>{v&&(v.addEventListener("keydown",i),v.addEventListener("focusin",f),v.addEventListener("focusout",g)),h&&(h.removeEventListener("keydown",i),h.removeEventListener("focusin",f),h.removeEventListener("focusout",g))});const d=v=>{a(Or,v)},m=v=>a(Hr,v),f=v=>{const h=(0,t.unref)(n);if(!h)return;const $=v.target,p=v.relatedTarget,c=$&&h.contains($);de(e.trapped)||p&&h.contains(p)||(r=p),c&&a("focusin",v),!u.paused&&de(e.trapped)&&(c?o=$:ct(o,!0))},g=v=>{const h=(0,t.unref)(n);if(!(u.paused||!h))if(!e.escape&&de(e.trapped)){const $=v.relatedTarget;!We($)&&!h.contains($)&&setTimeout(()=>{if(!u.paused&&de(e.trapped)){const p=ul({focusReason:s.value});a("focusout-prevented",p),p.defaultPrevented||ct(o,!0)}},0)}else{const $=v.target;$&&h.contains($)||a("focusout",v)}};async function b(){await(0,t.nextTick)();const v=(0,t.unref)(n);if(v){Kr.push(u);const h=v.contains(document.activeElement)?r:document.activeElement;if(r=h,!v.contains(h)){const $=new Event(dn,Rr);v.addEventListener(dn,d),v.dispatchEvent($),$.defaultPrevented||(0,t.nextTick)(()=>{let p=e.focusStartEl;to(p)||(ct(p),document.activeElement!==p&&(p="first")),p==="first"&&Gd(li(v),!0),(document.activeElement===h||p==="container")&&ct(v)})}}}function k(){const v=(0,t.unref)(n);if(v){v.removeEventListener(dn,d);const h=new CustomEvent(fn,{...Rr,detail:{focusReason:s.value}});v.addEventListener(fn,m),v.dispatchEvent(h),!h.defaultPrevented&&(s.value=="keyboard"||!Xd())&&ct(r??document.body,!0),v.removeEventListener(fn,d),Kr.remove(u)}}return(0,t.onMounted)(()=>{de(e.trapped)&&b(),(0,t.watch)(()=>e.trapped,v=>{de(v)?b():k()})}),(0,t.onBeforeUnmount)(()=>{de(e.trapped)&&k()}),()=>typeof l.default=="function"?l.default({"handle-keydown":i}):null}}),tf=ef,{componentName:lf,create:nf,scope:l6}=ie("floating-window"),af=Symbol.for("InnerPageScopeKey"),rf=Symbol.for("PageWrapperKey"),of={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}},sf=nf({inheritAttrs:!1,components:{FoxIcon:B.ElIcon,FocusTrap:tf},props:{...of},emits:["update:modelValue","update:collapse"],setup(e,{emit:l}){const a=lf,n=(0,t.ref)(e.modelValue),r=(0,t.computed)(()=>!e.teleport);(0,t.watch)(()=>e.modelValue,y=>{n.value=y});const o=(0,t.computed)(()=>n.value===!1?!1:!V.value),s=(0,t.ref)(e.left),u=(0,t.ref)(e.top),i=(0,t.ref)(e.right),d=(0,t.ref)(e.bottom),m=(0,t.computed)(()=>{const y=["fox-floating-window"];return e.customClass&&y.push(e.customClass),y}),f=(0,t.computed)(()=>{const y={};return gt(s.value)?y.left="auto":y.left=je(s.value),gt(u.value)?y.top="auto":y.top=je(u.value),gt(i.value)?y.right="auto":y.right=je(i.value),gt(d.value)?y.bottom="auto":y.bottom=je(d.value),gt(e.zIndex)||(y["z-index"]=je(e.zIndex)),gt(_.value)||(y.height=_.value),gt(S.value)||(y.width=S.value),y}),g=(0,t.computed)(()=>e.closeIcon??$e.Close),b=(0,t.computed)(()=>e.collapseIcon??$e.ArrowUp),k=(0,t.computed)(()=>e.collapseText??""),v=(0,t.computed)(()=>e.collapsePosition==="left"?e.expandIcon??$e.ArrowRight:e.expandIcon??$e.ArrowLeft),h=(0,t.computed)(()=>e.expandText??e.title??"展开"),$=(0,t.computed)(()=>({[`${a}__collapse-text`]:!0})),p=(0,t.computed)(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),c=(0,t.ref)(),z=(0,t.ref)(null),M=(0,t.ref)(null),_=(0,t.computed)(()=>je(e.height)||""),S=(0,t.computed)(()=>je(e.width)||""),V=(0,t.ref)(de(e.collapse)),w=(y,R=!0)=>{V.value!==y&&(V.value=y,y?H():Y(),l("update:collapse",y),y&&typeof I.onHide=="function"?I.onHide():!y&&typeof I.onShow=="function"&&I.onShow())};(0,t.watch)(()=>e.collapse,y=>{w(y)});const O=()=>{C()},C=y=>{y=y??!V.value,w(y)};(0,t.provide)(af,!0);const I={setCollapse:w,setFixedNavVisible:y=>{F.value=y}};(0,t.provide)(rf,I);const Z=()=>{typeof I.beforeClose=="function"?I.beforeClose(()=>{n.value=!1}):n.value=!1},N=(0,t.ref)(null),T=(0,t.computed)(()=>!e.fixedNavTeleport),L=(0,t.computed)(()=>{const y=["fox-floating-window__fixednav"];return e.expandClass&&y.push(e.expandClass),e.collapsePosition==="left"?y.push("is-left"):e.collapsePosition==="right"&&y.push("is-right"),y}),q=(0,t.ref)(""),G=(0,t.computed)(()=>{const y={};return q.value?y.top=q.value:e.collapseTop&&(y.top=e.collapseTop),y}),X=(0,t.ref)(V.value),F=(0,t.computed)({set:y=>{X.value=y},get:()=>n.value===!1?!1:X.value});let ee=null;const K=()=>{typeof ee=="function"&&(ee(),ee=null)},H=()=>{N.value&&N.value.classList.add("slide-in"),F.value=!0,ee=()=>{N.value&&N.value.classList.remove("slide-in")}},Y=()=>{N.value&&N.value.classList.add("slide-out"),ee=()=>{N.value&&N.value.classList.remove("slide-out"),F.value=!1}},J=()=>{s.value=null,u.value=null,i.value=null,d.value=null},P={x:0,y:0},U=Lr(y=>{if(!c.value)return;const R=c.value;if(J(),e.origin==="left-top")s.value=R.offsetLeft,u.value=R.offsetTop,P.x=s.value,P.y=u.value;else if(e.origin==="left-bottom"){const j=document.documentElement.clientHeight||document.body.clientHeight;s.value=R.offsetLeft,d.value=j-(R.offsetTop+R.offsetHeight),P.x=s.value,P.y=d.value}else if(e.origin==="right-bottom"){const j=document.documentElement.clientWidth||document.body.clientWidth,te=document.documentElement.clientHeight||document.body.clientHeight;i.value=j-(R.offsetLeft+R.offsetWidth),d.value=te-(R.offsetTop+R.offsetHeight),P.x=i.value,P.y=d.value}else i.value=(document.documentElement.clientWidth||document.body.clientWidth)-(R.offsetLeft+R.offsetWidth),u.value=R.offsetTop,P.x=i.value,P.y=u.value},y=>{if(!c.value)return;const R=c.value;J(),e.origin==="left-top"?(s.value=P.x+y.x,u.value=P.y+y.y,R.style.left=je(s.value),R.style.top=je(u.value)):e.origin==="left-bottom"?(s.value=P.x+y.x,d.value=P.y-y.y,R.style.left=je(s.value),R.style.bottom=je(d.value)):e.origin==="right-bottom"?(i.value=P.x-y.x,d.value=P.y-y.y,R.style.right=je(i.value),R.style.bottom=je(d.value)):(i.value=P.x-y.x,u.value=P.y+y.y,R.style.right=je(i.value),R.style.top=je(u.value))}),E={x:0,y:0},W=Lr(y=>{N.value&&(E.x=N.value.offsetLeft,E.y=N.value.offsetTop)},y=>{N.value&&(q.value=`${E.y+y.y}px`)}),D=()=>{c.value&&(M.value=c.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar"))};return(0,t.onMounted)(()=>{if(e.draggable&&c.value){const y=[];z.value&&y.push(z.value),e.footerDraggable&&(D(),M.value&&y.push(M.value)),U.open(y)}e.collapse===!0&&w(e.collapse,!1),N.value&&W.open(N.value)}),(0,t.onBeforeUnmount)(()=>{e.draggable&&z.value&&U.close(),N.value&&W.close()}),{classes:m,styles:f,isShow:o,closeIcon:g,onClose:Z,dialogRef:c,headerRef:z,onClickToggle:O,collapseIcon:b,collapseText:k,collapseTextClasses:$,collapseIconClasses:p,expandIcon:v,expandText:h,isShowFixedNav:F,fixedNavRef:N,fixedNavClasses:L,fixedNavStyles:G,onAnimationEnd:K,teleportDisabled:r,fixedNavTeleportDisabled:T}}}),uf={ref:"headerRef",class:"fox-floating-window__header"},cf={class:"fox-floating-window__title"},df={class:"fox-floating-window__tools"},ff={class:"fox-floating-window__body"},mf={class:"fox-floating-window__fixednav__text"};function hf(e,l,a,n,r,o){const s=(0,t.resolveComponent)("FoxIcon"),u=(0,t.resolveComponent)("FocusTrap");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[(0,t.createVNode)(t.Transition,{name:"fox-floating-window-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"dialogRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),tabindex:"-1"},[(0,t.createVNode)(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",uf,[(0,t.renderSlot)(e.$slots,"header",{},()=>[(0,t.createElementVNode)("span",cf,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("div",df,[e.showCollapse?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-floating-window__collapse",onClick:l[0]||(l[0]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[(0,t.createElementVNode)("span",{class:(0,t.normalizeClass)(e.collapseTextClasses)},(0,t.toDisplayString)(e.collapseText),3),(0,t.createVNode)(s,{class:(0,t.normalizeClass)(e.collapseIconClasses)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.collapseIcon)))]),_:1},8,["class"])])):(0,t.createCommentVNode)("",!0),e.showClose?((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.closeIcon)))]),_:1},8,["onClick"])):(0,t.createCommentVNode)("",!0)])])],512),(0,t.createElementVNode)("div",ff,[(0,t.renderSlot)(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"fixedNavRef",class:(0,t.normalizeClass)(e.fixedNavClasses),style:(0,t.normalizeStyle)(e.fixedNavStyles),onAnimationend:l[2]||(l[2]=(...i)=>e.onAnimationEnd&&e.onAnimationEnd(...i))},[(0,t.createElementVNode)("div",{class:"fox-floating-window__fixednav__inner",onClick:l[1]||(l[1]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[(0,t.createVNode)(s,{class:"fox-floating-window__fixednav__icon"},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.expandIcon)))]),_:1}),(0,t.createElementVNode)("div",mf,(0,t.toDisplayString)(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}var _a=Fe(sf,[["render",hf]]),Wr=new Date().getFullYear(),pf={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},Ur=(e,l,a)=>{let n;if(ft(l)?n=l:typeof l=="string"&&Je(l)>0?n=Oe.parser(l,a):n=new Date,n.toString()==="Invalid Date")return null;let r=Math.max(n.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},gf=(e,l,a)=>{ft(l)||(l=e.minDate);let n=Math.max(l.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),Oe.format(new Date(n),a)},vf={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:()=>"date"},valueFormat:{type:String},visible:{type:Boolean,default:()=>!1},title:{type:String,default:()=>""},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(Wr-10,0,1),validator:ft},maxDate:{type:Date,default:()=>new Date(Wr+10,11,31),validator:ft},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:yf,scope:bf}=ie("date-picker"),wf=yf({components:{Picker:tl},props:{...vf},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:l}){const{t:a}=(0,Se.useFoxI18n)(bf),n={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},r=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,c=>{r.value=c});function o(c,z){return new Date(c,z,0).getDate()}const s=(c,z)=>{const M=e[`${c}Date`],_=M.getFullYear();let S=1,V=1,w=0,O=0;c==="max"&&(S=12,V=o(z.getFullYear(),z.getMonth()+1),w=23,O=59);const C=O;return z.getFullYear()===_&&(S=M.getMonth()+1,z.getMonth()+1===S&&(V=M.getDate(),z.getDate()===V&&(w=M.getHours(),z.getHours()===w&&(O=M.getMinutes())))),{[`${c}Year`]:_,[`${c}Month`]:S,[`${c}Date`]:V,[`${c}Hour`]:w,[`${c}Minute`]:O,[`${c}Seconds`]:C}},u=(0,t.computed)(()=>{if(!g.value)return[];const{maxYear:c,maxDate:z,maxMonth:M,maxHour:_,maxMinute:S,maxSeconds:V}=s("max",g.value),{minYear:w,minDate:O,minMonth:C,minHour:I,minMinute:Z,minSeconds:N}=s("min",g.value);let T=[{type:"year",range:[w,c]},{type:"month",range:[C,M]},{type:"day",range:[O,z]},{type:"hour",range:[I,_]},{type:"minute",range:[Z,S]},{type:"seconds",range:[N,V]}];switch(e.type){case"date":T=T.slice(0,3);break;case"datetime":T=T.slice(0,5);break;case"time":T=T.slice(3,6);break;case"year-month":T=T.slice(0,2);break;case"month-day":T=T.slice(1,3);break;case"datehour":T=T.slice(0,4);break;case"hour-minute":T=T.slice(3,5);break}return T}),i=(c,z,M,_,S)=>{const V=[];for(;c<=z;){let w=!0;if(typeof e.itemFilter=="function"){const O={text:`${c}`,value:c,type:M,currentYearMonth:_};w=e.itemFilter(O)}if(w)if(typeof e.itemFormatter=="function"){const O={text:`${c}`,value:c,type:M,currentYearMonth:_};e.itemFormatter(O),V.push({text:O.text,value:O.value})}else if(e.isShowChinese){let O=`${c}${n[M]}`;if(M==="day"){if(_[0]===S[0]&&_[1]===S[1]&&c===S[2])O=n.today;else{const C=new Date(_[0],_[1],c).getDay();O=`${O} ${n.fullWeekdays[C]}`}V.push({text:O,value:c})}else V.push({text:c+n[M],value:c})}else V.push({text:`${c}`,value:c});M==="minute"?c+=e.minuteStep:c++}return V},d=(0,t.computed)(()=>{const c=new Date,z=[c.getFullYear(),c.getMonth(),c.getDate()],M=[];g.value&&(M[0]=g.value.getFullYear(),M[1]=g.value.getMonth());let _=[];return u.value.forEach(S=>{let V=i(S.range[0],S.range[1],S.type,M,z);V&&_.push(V)}),_}),m=(c,z)=>c==="year"?z.getFullYear():c==="month"?z.getMonth()+1:c==="day"?z.getDate():c==="hour"?z.getHours():c==="minute"?z.getMinutes():c==="seconds"?z.getSeconds():0,f=(0,t.ref)(),g=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,c=>{let z;if(typeof c=="string"?c.length==0||c==="Invalid Date"?z=new Date:e.valueFormat?z=Ur(e,e.modelValue,e.valueFormat):z=Ur(e,c,pf[e.type]):ft(c)?z=c:z=new Date,!!z&&(!g.value||z.getTime()!==g.value.getTime())){g.value=z;let M=[];u.value.forEach(_=>{let S=m(_.type,z);M.push(S)}),f.value=M}},{immediate:!0});const b=c=>{if(!c||c.length===0){g.value=new Date;let z=[];u.value.forEach(M=>{let _=m(M.type,g.value);z.push(_)}),f.value=z;return}if(e.type==="date"){const z=c[0],M=c[1]-1,_=Math.min(c[2],o(z,M+1));_!==c[2]&&(c[2]=_),g.value=new Date(z,M,_)}else if(e.type==="datetime"){const z=c[0],M=c[1]-1,_=Math.min(c[2],o(z,M+1)),S=c[3],V=c[4];_!==c[2]&&(c[2]=_),g.value=new Date(z,M,_,S,V)}else if(e.type==="time"){const z=c[0],M=c[1],_=c[2],S=g.value??new Date;g.value=new Date(S.getFullYear(),S.getMonth(),S.getDate(),z,M,_)}else if(e.type==="year-month"){const z=c[0],M=c[1]-1;g.value=new Date(z,M)}else if(e.type==="month-day"){const z=(g.value??new Date).getFullYear(),M=c[0]-1,_=Math.min(c[1],o(z,M+1));_!==c[1]&&(c[1]=_),g.value=new Date(z,M,_)}else if(e.type==="datehour"){const z=c[0],M=c[1]-1,_=Math.min(c[2],o(z,M+1)),S=c[3];_!==c[2]&&(c[2]=_),g.value=new Date(z,M,_,S)}else if(e.type==="hour-minute"){const z=c[0],M=c[1],_=g.value??new Date;g.value=new Date(_.getFullYear(),_.getMonth(),_.getDate(),z,M)}f.value=c};return{columns:d,dateIndexs:f,show:r,onChange:c=>{b(c)},onClose:()=>{l("update:close",!1)},onConfirm:c=>{b(c);const z=g.value??new Date;e.valueFormat?l("update:modelValue",gf(e,z,e.valueFormat)):l("update:modelValue",z),l("confirm",c)},onClear:()=>{l("clear")},onUpdateVisible:c=>{r.value=c,l("update:visible",c)}}}});function Sf(e,l,a,n,r,o){const s=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var $a=Fe(wf,[["render",Sf]]),ml=(e,l,a)=>e.map(n=>{const{value:r="value",text:o="text",children:s="children"}=a??{},{[r]:u,[o]:i,[s]:d,...m}=n,f={loading:!1,...m,level:l?(l&&l.level||0)+1:0,value:u,text:i,children:d,_parent:l};return f.children&&f.children.length&&(f.children=ml(f.children,f,a)),f}),ni=(e,l)=>{let a=0,n;for(;(n=e[a++])&&l(n)!==!0;)n.children&&n.children.length&&ni(n.children,l)},xf={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Cf=(e,l)=>{const{topId:a,idKey:n,pidKey:r,sortKey:o}={...xf,...l||{}};let s=[],u={};return e.forEach(i=>{i={...i};const{[n]:d,[r]:m}=i,f=u[m]=u[m]||[];!s.length&&m===a&&(s=f),f.push(i),i.children=u[d]||(u[d]=[])}),o&&Object.keys(u).forEach(i=>{u[i].length>1&&u[i].sort((d,m)=>d[o]-m[o])}),u=null,s},Gr=class{nodes;config;constructor(e,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=ml(e,null,this.config)}updateChildren(e,l){l?l.children=ml(e,l,this.config):this.nodes=ml(e,null,this.config)}getNodeByValue(e){let l;return ni(this.nodes,a=>{if(a.value===e)return l=a,!0}),l}getPathNodesByValue(e){if(!e.length)return[];const l=[];let a=this.nodes;for(;a&&a.length;){const n=a.find(r=>r.value===e[r.level]);if(!n)break;l.push(n),a=n.children}return l}isLeaf(e,l){const{leaf:a,children:n}=e,r=Array.isArray(n)&&!!n.length;return a||!r&&!l}hasChildren(e,l){if(this.isLeaf(e,l))return!1;const{children:a}=e;return Array.isArray(a)&&!!a.length}},{create:Nf,scope:kf}=ie("cascader-pane"),zf=Nf({components:{Loading:Jt,Checklist:Oo,TabsBar:ll,TabsContainer:nl,TabsPane:Gl},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:l}){const{t:a}=(0,Se.useFoxI18n)(kf),n=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),r=(0,t.ref)(0),o=(0,t.ref)(!1),s=(0,t.ref)(e.modelValue),u=(0,t.ref)(new Gr([],{})),i=(0,t.ref)([]),d=(0,t.computed)(()=>n.value.lazy&&!!n.value.lazyLoad),m=(0,t.computed)(()=>o.value==!0||i.value.length==0?[{text:"Loading",value:0}]:i.value.map((p,c)=>({text:p.selectedNode?p.selectedNode.text:a("select"),value:c}))),f=new Map;let g;const b=async()=>{f.clear(),i.value=[],r.value=0,o.value=!1,g=null;let{options:p}=e;n.value.convertConfig&&(p=Cf(p,n.value.convertConfig)),u.value=new Gr(p,{value:n.value.valueKey,text:n.value.textKey,children:n.value.childrenKey}),d.value&&!u.value.nodes.length&&await v({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:u.value.nodes,selectedNode:null}],k()},k=async()=>{const p=s.value;if(p===void 0||!u.value.nodes.length)return;if(p.length===0){r.value=0,i.value=[{nodes:u.value.nodes,selectedNode:null}];return}let c=p;if(d.value&&Array.isArray(p)&&p.length){c=[];let z=u.value.nodes.find(M=>M.value===p[0]);z&&(c=[z.value],o.value=!0,await v(await p.slice(1).reduce(async(M,_)=>{const S=await M;await v(S);const V=S&&S?.children?.find(w=>w.value===_);return V&&c.push(_),Promise.resolve(V)},Promise.resolve(z))),o.value=!1)}c.length&&p===e.modelValue&&u.value.getPathNodesByValue(c).map((z,M)=>{r.value=M,$.handleNode(z,!0)})},v=async p=>{if(!p)return;if(!n.value.lazyLoad){p.leaf=!0;return}if(u.value.isLeaf(p,d.value)||u.value.hasChildren(p,d.value))return;p.loading=!0;const c=p.root?null:p;let z=f.get(p);z||(z=new Promise(_=>{n.value.lazyLoad?.(p,_)}),f.set(p,z));const M=await z;Array.isArray(M)&&M.length>0?u.value.updateChildren(M,c):p.leaf=!0,p.loading=!1,f.delete(p)},h=p=>{const c=p.map(z=>z.value);s.value=c,l("change",c,p),l("update:modelValue",c,p)},$={async handleNode(p,c){const{disabled:z,loading:M}=p;if(!(!c&&z||!i.value[r.value])){if(u.value.isLeaf(p,d.value)){if(p.leaf=!0,i.value[r.value].selectedNode=p,i.value=i.value.slice(0,p.level+1),!c){const _=i.value.map(S=>S.selectedNode);h(_),l("pathChange",_)}return}if(u.value.hasChildren(p,d.value)){const _=p.level+1;i.value[r.value].selectedNode=p,i.value=i.value.slice(0,_),i.value.push({nodes:p.children||[],selectedNode:null}),r.value=_,c||l("pathChange",i.value.map(S=>S.selectedNode));return}g=p,!M&&(await v(p),g===p&&(i.value[r.value].selectedNode=p,$.handleNode(p,c)))}},handleTabChange(p,c){g=null},formatTabTitle(p){return p.selectedNode?p.selectedNode.text:a("select")},isSelected(p,c){return p.selectedNode&&p.selectedNode.value===c.value}};return(0,t.watch)([n,()=>e.options],()=>{b()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,p=>{p!==s.value&&(s.value=p,k())}),(0,t.watch)(()=>e.visible,p=>{p&&Array.isArray(s.value)&&s.value.length>0&&k()}),{panes:i,panesTitles:m,initLoading:o,tabsCursor:r,...$}}}),Tf={class:"fox-cascader"},Ef={role:"menu",class:"fox-cascader__pane"},_f=["aria-checked","aria-disabled","onClick"],$f={class:"fox-cascader__item__title"};function Vf(e,l,a,n,r,o){const s=(0,t.resolveComponent)("TabsBar"),u=(0,t.resolveComponent)("Loading"),i=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),m=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",Tf,[(0,t.createVNode)(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":l[0]||(l[0]=f=>e.tabsCursor=f),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(m,{modelValue:e.tabsCursor,"onUpdate:modelValue":l[1]||(l[1]=f=>e.tabsCursor=f)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(f,g)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":g,key:g},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Ef,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.nodes,b=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:b.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(f,b),disabled:b.disabled}]),"aria-checked":e.isSelected(f,b),"aria-disabled":b.disabled||void 0,role:"menuitemradio",onClick:k=>e.handleNode(b,!1)},[(0,t.createElementVNode)("view",$f,(0,t.toDisplayString)(b.text),1),b.loading?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,_f))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,"pane-key":0},{default:(0,t.withCtx)(()=>[...l[2]||(l[2]=[(0,t.createElementVNode)("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}var Bf=Fe(zf,[["render",Vf]]),{create:Df}=ie("cascader-picker"),Mf=Df({components:{FoxCascaderPane:Bf,FoxPopup:wt},props:{...la,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:l}){const a=(0,t.ref)(e.modelValue),n=(0,t.computed)({get(){return e.visible},set(s){l("update:visible",s)}}),r=(s,u)=>{a.value=s,n.value=!1,l("change",s,u),l("update:modelValue",s)},o=s=>{l("pathChange",s)};return(0,t.watch)(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:r,onPathChange:o,innerValue:a,innerVisible:n}}}),If=["innerHTML"];function Af(e,l,a,n,r,o){const s=(0,t.resolveComponent)("FoxCascaderPane"),u=(0,t.resolveComponent)("FoxPopup");return e.poppable?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,visible:e.innerVisible,"onUpdate:visible":l[0]||(l[0]=i=>e.innerVisible=i),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"header",{},()=>[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,If)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:3},8,["visible","closeable","close-icon-position"])):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}var Va=Fe(Mf,[["render",Af]]),Lf=Symbol.for("PageWrapperKey");function Pf(e,l){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(a,n){On(!0);const r={};(0,t.provide)(Lf,r);const o=d=>{typeof r.beforeClose=="function"&&r.beforeClose()},s=(0,t.ref)(!0),u=d=>{s.value=d},i=(0,t.computed)(()=>{const d={};return a.height&&(d["--fox-dialog-item-body-height"]=we(a.height)),d});return()=>{const d={...n.attrs,style:i.value,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":u,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":o},m=["fox-dialog-item "];a.hideHeader&&m.push("hide-header"),a.class&&m.push(a.class),d.class=m.join(" ");const f={};return typeof n.slots.default=="function"&&(f.default=n.slots.default),(0,t.h)(B.ElDialog,d,f)}}}}var{componentName:Ff,create:Rf,scope:Of}=ie("dialog-item"),Hf=Rf(Pf(Ff,Of)),Ba=Hf,{create:qf}=ie("toast"),jf=qf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:l}){let a=null;const n=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{n.mounted=!0});const r=()=>{a&&(clearTimeout(a),a=null)},o=()=>{n.mounted=!1},s=()=>{r(),e.duration&&(a=setTimeout(()=>{o()},e.duration))},u=()=>{e.closeOnClickOverlay&&(o(),l("close"))};e.duration&&s(),(0,t.watch)(()=>e.duration,b=>{b&&s()});const i=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const b=me(e.iconSize);return(0,t.h)(e.icon,{width:b,height:b,color:e.iconColor})},m=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":i.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:o,clickCover:u,renderIcon:d,hasIcon:i,toastBodyClass:m,toastIconWrapperClass:f,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Kf={key:1,class:"fox-toast-title"},Yf=["innerHTML"];function Wf(e,l,a,n,r,o){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:l[0]||(l[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[(0,t.createElementVNode)("view",{class:"fox-toast-inner",style:(0,t.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.toastIconWrapperClass)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon())))],2)):(0,t.createCommentVNode)("",!0),e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",Kf,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Yf)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var Da=Fe(jf,[["render",Wf]]),$n={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},kt=[],qt=[],ai=e=>{if(e){const l=document.getElementById(e);qt=qt.filter(a=>a.id!==e),kt=kt.filter(a=>a!==e),l&&document.body.removeChild(l)}else kt.forEach(l=>{const a=document.getElementById(l);a&&document.body.removeChild(a)}),qt=[],kt=[]},Uf=e=>{const l=document.getElementById(e.id);if(l){const a=qt.find(n=>n.id===e.id);return a?e={...$n,...a,...e}:e={...$n,...e},(0,t.render)((0,t.createVNode)(Da,e),l),Dt}},Ft=e=>{e.unmount=ai;let l;if(e.id){if(l=e.id,kt.find(n=>n===e.id))return Uf(e)}else l=new Date().getTime()+"";e={...$n,...e},e.id=l,kt.push(e.id),qt.push(e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(Da,e),a),document.body.appendChild(a),Dt},cl=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Dt={text(e,l={}){return cl(e),Ft({...l,type:"text",msg:e})},success(e,l={}){return cl(e),Ft({icon:Lc,...l,msg:e,type:"success"})},fail(e,l={}){return cl(e),Ft({icon:e1,...l,msg:e,type:"fail"})},warn(e,l={}){return cl(e),Ft({icon:Mc,...l,msg:e,type:"warn"})},loading(e,l={}){return Ft({icon:Jt,...l,msg:e,type:"loading"})},hide(e){ai(e)},install(e){e.use(Da),e.config.globalProperties.$toast=Dt}},Gf={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}},Xf=(e,l,a)=>({props:{...Gf},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:o}){const{toLocaleRefs:s}=(0,Se.useFoxI18n)(l),u=s(n,["pullingText","loosingText","loadingText"]),i=el(),d=(0,t.ref)(),m=Uo(d),f=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),g=(0,t.computed)(()=>({[e]:!0})),b=(0,t.computed)(()=>{switch(f.status){case"pulling":return o.pulling?"":u.pullingText.value;case"loosing":return o.loosing?"":u.loosingText.value;case"loading":return o.loading?"":u.loadingText.value;default:return""}}),k=(0,t.computed)(()=>({transitionDuration:`${n.duration}s`,transform:f.distance?`translate3d(0,${f.distance}px, 0)`:""})),v=(0,t.computed)(()=>{const S={};return n.headHeight!=50&&(S.height=we(n.headHeight)),S}),h=S=>{const V=+(n.pullDistance||n.headHeight);let w=S;return S>V&&(S<V*2?w=(S+V)/2:w=V+S/4),Math.round(w)},$=(S,V)=>{const w=+(n.pullDistance||n.headHeight);f.distance=S,V?f.status="loading":S===0?f.status="normal":S<w?f.status="pulling":f.status="loosing",r("change",{status:f.status,distance:S})},p=()=>f.status!=="loading"&&f.status!=="complete",c=()=>m.value==window?Go()==0:m.value&&m.value.scrollTop==0,z=S=>{p()&&(c()?(i.start(S),f.isPullRefresh=!0,f.moving=!0):(f.distance=0,f.isPullRefresh=!1))},M=S=>{p()&&f.moving&&(i.move(S),i.isVertical()&&i.state.deltaY>0&&f.isPullRefresh&&(S.cancelable&&S.preventDefault(),$(h(i.state.deltaY))))},_=()=>{f.moving=!1,f.isPullRefresh&&p()&&i.state.deltaY&&(f.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),(0,t.nextTick)(()=>r("refresh"))):$(0)),setTimeout(()=>{i.reset()},0)};return(0,t.watch)(()=>n.modelValue,S=>{S?$(+n.headHeight,!0):$(0)}),()=>{const S=[];let V=null;f.status==="loading"?(V=o?.loading?.()??null,V||(V=(0,t.h)(a,{class:["fox-pull-refresh-container-topbox-icon"]}))):f.status==="pulling"?V=o?.pulling?.()??null:f.status==="loosing"&&(V=o?.loosing?.()??null),V&&S.push(V);const w=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[b.value]);S.push(w);const O=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:v.value},S),C=(0,t.h)("div",{class:"fox-pull-refresh-container",style:k.value},[O,o?.default?.()]),I={ref:d,class:g.value};return Qt()?Object.assign(I,{onTouchstart:z,onTouchmove:M,onTouchend:_}):Object.assign(I,{onMousedown:z,onMousemove:M,onMouseup:_}),(0,t.h)("div",I,[C])}}}),{componentName:Zf,create:Jf,scope:Qf}=ie("pull-refresh"),e5=Jf(Xf(Zf,Qf,Jt)),Ma=e5,t5={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 l5(e,l,a){return{props:{...t5},emits:["click","update:modelValue"],setup(n,{emit:r,slots:o}){const{toLocaleRefs:s}=(0,Se.useFoxI18n)(l),u=s(n,["collapseText","expandText"]),i=(0,t.computed)(()=>{const k={[`${e}`]:!0};return n.disabled?k[`${e}--disabled`]=!0:k[`${e}--${n.type}`]=!0,k}),d=ge(n,"modelValue"),m=(0,t.computed)(()=>d.value?u.expandText.value??"":u.collapseText.value??""),f=(0,t.computed)(()=>({[`${e}__text`]:!0})),g=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),b=()=>{r("update:modelValue",!d.value)};return()=>{const k=[];if(m.value){const $=(0,t.h)("span",{class:f.value},[m.value]);k.push($)}const v={class:g.value},h=(o.icon&&o.icon())??(n.icon&&(0,t.h)(n.icon))??(0,t.h)(a);if(h){const $=(0,t.h)("div",v,[h]);k.push($)}return n.textPosition==="right"&&k.reverse(),(0,t.h)("div",{class:i.value,onClick:b},k)}}}}var{componentName:n5,create:a5,scope:r5}=ie("more-button"),o5=a5(l5(n5,r5,$e.ArrowUp)),Ia=o5;function i5(e){e.stopPropagation()}var s5=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,l){this.startMove=e,this.updateMove=l,this.isTouch=Qt()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const l=el(),a=(n,r,o,s)=>{this.updateMove({x:n,y:r})};this.touchstart=n=>{this.moving||(l.start(n),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=n=>{this.moving&&(l.move(n),i5(n),a(l.state.deltaX,l.state.deltaY,"",0))},this.touchend=()=>{a(l.state.deltaX,l.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(n=>{this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function u5(e,l){return new s5(e,l)}var c5={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]}},d5=(e,l,a,n=!1)=>({props:{...c5},emits:["click"],setup(r,{slots:o,emit:s}){const u=(0,t.reactive)({top:r.top,right:r.right,bottom:r.bottom,left:r.left}),i=(0,t.computed)(()=>{const p=[`${e}`];return r.customClass&&p.push(r.customClass),p}),d=(0,t.computed)(()=>{const p={};return fe(u.top)||(p.top=u.top),fe(u.right)||(p.right=u.right),fe(u.bottom)||(p.bottom=u.bottom),fe(u.left)||(p.left=u.left),fe(r.width)||(p.width=r.width),fe(r.height)||(p.height=r.height),fe(r.color)||(p.color=r.color),fe(r.background)||(p.background=r.background),fe(r.borderRadius)||(p["border-radius"]=r.borderRadius),fe(r.zIndex)||(p["z-index"]=r.zIndex),p}),m=(0,t.computed)(()=>({[`${e}__icon`]:!0})),f=()=>{s("click")},g=(0,t.ref)(null),b=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},k={x:0,y:0},$=u5(p=>{if(!g.value)return;const c=g.value;b(),u.left=c.offsetLeft,u.top=c.offsetTop,c.style.left=`${u.left}px`,c.style.top=`${u.top}px`,c.style.right=null,c.style.bottom=null,k.x=u.left,k.y=u.top},p=>{if(!g.value)return;const c=g.value;b(),u.left=k.x+p.x,u.top=k.y+p.y,c.style.left=`${u.left}px`,c.style.top=`${u.top}px`});return(0,t.onMounted)(()=>{if(r.draggable&&g.value){const p=[g.value];$.open(p)}}),(0,t.onBeforeUnmount)(()=>{r.draggable&&g.value&&$.close()}),()=>{let p=[];const c=typeof o.default=="function"?o.default():[];if(c&&c.length>0)p=c;else{const z=(0,t.h)(a,{class:m.value});p.push(z)}return(0,t.h)("view",{ref:z=>{g.value=z},class:i.value,style:d.value,onClick:f},p)}}}),{componentName:f5,create:m5,scope:h5}=ie("floating-button"),p5=m5(d5(f5,h5,Vc,!1)),Aa=p5;function g5(e,l){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(a,{slots:n}){const r=e,o=(0,t.computed)(()=>({[r]:!0})),s=(0,t.computed)(()=>a.icon?{[`${r}__icon`]:!0,[`${r}__icon-${a.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${a.type}`]:!0}),u=(0,t.computed)(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),i=(0,t.computed)(()=>{const m={[`${r}__text`]:!0,[`${r}__text-${a.type}`]:!0};return a.textPosition==="left"?m["is-left"]=!0:m["is-right"]=!0,m}),d=(0,t.computed)(()=>a.color?{color:a.color}:null);return()=>{let m=null;if(n.mark)m=n.mark()[0];else{const b={class:s.value,style:u.value};m=(0,t.h)(a.icon??"div",b)}const f=(0,t.h)("div",{class:i.value,style:d.value},n.default?n.default():[]),g={class:o.value};return a.textPosition==="right"?(0,t.h)("div",g,[m,f]):(0,t.h)("div",g,[f,m])}}}}var{componentName:v5,create:y5,scope:b5}=ie("indicator"),w5=y5(g5(v5,b5)),La=w5,{componentName:S5,create:x5,scope:n6}=ie("tour"),C5=x5({components:{Close:$e.Close,ElPopover:B.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:l}){const a=S5,n=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),r=(0,t.ref)({}),o=(0,t.computed)(()=>`${a}`),s=(0,t.computed)(()=>{const{offset:k,maskWidth:v,maskHeight:h}=e,{width:$,height:p,left:c,top:z}=r.value,M=e.steps[n.active].offset??k,_=[c+$/2,z+p/2],S=Number(v||$),V=Number(h||p);return{width:`${S+ +M.left+M.right}px`,height:`${V+M.top+M.bottom}px`,top:`${_[1]-V/2-+M.top}px`,left:`${_[0]-S/2-+M.left}px`}}),u=k=>{k=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,(0,t.nextTick)(()=>{n.showPopup=!0,m()}),l("change",n.active)},i=k=>k.popoverWidth??e.width,d=k=>k.location??e.location,m=()=>{const k=xa(document.querySelector(`${e.steps[n.active].target}`));r.value={x:k.left,y:k.top,top:k.top,left:k.left,width:k.width,height:k.height}},f=()=>{n.showTour=!1,n.showPopup=!1,l("close",n.active),l("update:modelValue",!1)},g=()=>{e.closeOnClickOverlay&&f()},b=(k,v=0)=>{k&&m(),e.steps,n.active=v,n.showTour=k,n.showPopup=k};return(0,t.onMounted)(()=>{b(e.modelValue,e.current)}),(0,t.watch)(()=>e.modelValue,k=>{b(k)}),{...(0,t.toRefs)(n),classes:o,maskStyle:s,changeStep:u,popoverWidth:i,popoverLocation:d,close:f,handleClickMask:g}}}),N5={key:0,class:"fox-tour__content"},k5={key:0,class:"fox-tour__content-top"},z5={class:"fox-tour__content-inner"},T5={class:"fox-tour__content-bottom"},E5={class:"fox-tour__content-bottom-init"},_5={class:"fox-tour__content-bottom-operate"},$5={key:1,class:"fox-tour__content fox-tour__content-tile"},V5={class:"fox-tour__content-inner"};function B5(e,l,a,n,r,o){const s=(0,t.resolveComponent)("Close"),u=(0,t.resolveComponent)("fox-button"),i=(0,t.resolveComponent)("ElPopover");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-tour__masked",onClick:l[0]||(l[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(d,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:m,style:{height:"0"}},[m==e.active?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:(0,t.withCtx)(()=>[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0)]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",N5,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",k5,[(0,t.createElementVNode)("div",{onClick:l[1]||(l[1]=(...f)=>e.close&&e.close(...f))},[(0,t.createVNode)(s,{class:"fox-tour__content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",z5,(0,t.toDisplayString)(d.content),1),(0,t.createElementVNode)("div",T5,[(0,t.createElementVNode)("div",E5,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",_5,[(0,t.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:l[2]||(l[2]=f=>e.changeStep("prev"))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.prevStepText),1)]),_:1})):(0,t.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.completeText),1)]),_:1},8,["onClick"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:l[3]||(l[3]=f=>e.changeStep("next"))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextStepText),1)]),_:1})):(0,t.createCommentVNode)("",!0)])])])])):(0,t.createCommentVNode)("",!0),e.type=="tile"?((0,t.openBlock)(),(0,t.createElementBlock)("div",$5,[(0,t.createElementVNode)("div",V5,(0,t.toDisplayString)(d.content),1)])):(0,t.createCommentVNode)("",!0)])]),_:2},1032,["visible","placement","width"])):(0,t.createCommentVNode)("",!0)]))),128))],2)}var Pa=Fe(C5,[["render",B5]]);function D5(e,l){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(a,{slots:n}){return bo(a.name,()=>a.config),We(a.innerPageScope)||On(a.innerPageScope),We(a.abstractPageScope)||xo(a.abstractPageScope),()=>typeof n.default=="function"?n.default():null}}}var{componentName:M5,create:I5,scope:A5}=ie("domain-provider"),L5=I5(D5(M5,A5)),Fa=L5,P5={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 F5(e,l){return{inheritAttrs:!1,props:P5,emits:["change"],setup(a,{slots:n,emit:r}){if(ht&&window.IntersectionObserver){const o=new WeakMap;let s=new Map;const u=(g,b)=>{if(m===null){s.set(g,{visible:null,callback:b});return}o.has(g)&&m.unobserve(g),o.set(g,{visible:null,callback:b}),m.observe(g)},i=g=>{if(m===null){s.delete(g);return}o.has(g)&&(o.delete(g),m.unobserve(g))};let d=a.initialVisibleObserverSize;_s({acquire:()=>{if(a.loadPolicy==="always")return!0;const g=d>0;return d--,g},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:u,unobserve:i});let m=null;const f=(g,b,k)=>{m=new IntersectionObserver(v=>{if(r("change",v),a.loadPolicy!=="always")for(let h of v){let $=!1;h.intersectionRatio>0&&($=!0);const p=o.get(h.target);if(p)try{if(a.loadPolicy==="lazy"&&!$&&p.visible!==null)return;p.visible=$,p.callback($)}catch(c){console.error(c)}}},{root:g,rootMargin:b,threshold:k}),s.forEach((v,h)=>{o.set(h,v),m?.observe(h)}),s.clear()};(0,t.watch)([()=>a.root,()=>a.disabled],([g,b])=>{if(b||!g||m)return;let k=null;typeof g=="string"?k=document.querySelector(g):k=g,k&&f(k,a.rootMargin,a.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof n.default=="function"?n.default():null}}}var{componentName:R5,create:O5,scope:H5}=ie("rolling-provider"),q5=O5(F5(R5,H5)),Ra=q5,j5=[qn,Kn,Yn,Wn,Gn,ke,Fl,Rl,Zn,Le,Jn,Qn,ea,na,aa,ra,oa,ia,sa,ua,ca,da,Kl,fa,ma,ha,pa,ga,va,ya,ba,Ul,wa,Ca,Na,ll,nl,Gl,ka,za,_a,Hl,tl,$a,jl,Va,Ba,ql,wt,Dt,Wl,Yl,Ma,Ia,Aa,Wt,Pl,La,Ol,Pa,Fa,Ra],K5=new ts(j5,[as],"4.0.0");exports.AbstractPageScopeKey=Hn;exports.ActionsheetItem=wa;exports.FoxActionsheetItem=wa;exports.ActionsheetPane=Ul;exports.FoxActionsheetPane=Ul;exports.AutocompleteItem=ua;exports.FoxAutocompleteItem=ua;exports.Broadcast=Ln;exports.BroadcastKey=_e;exports.ButtonsItem=Zn;exports.FoxButtonsItem=Zn;exports.CalendarItem=na;exports.FoxCalendarItem=na;exports.CascaderItem=sa;exports.FoxCascaderItem=sa;exports.CheckboxItem=ha;exports.FoxCheckboxItem=ha;exports.Content=Wn;exports.FoxContent=Wn;exports.DataItemsKey=Ct;exports.DateItem=ea;exports.FoxDateItem=ea;exports.DateUtils=Oe;exports.DialogItem=Ba;exports.FoxDialogItem=Ba;exports.Domain=Tl;exports.DomainKey=Ye;exports.DomainProvider=Fa;exports.FoxDomainProvider=Fa;exports.FloatingButton=Aa;exports.FoxFloatingButton=Aa;exports.FloatingWindow=_a;exports.FoxFloatingWindow=_a;exports.FooterBar=Yn;exports.FoxFooterBar=Yn;exports.FoxAffix=B.ElAffix;exports.FoxAlert=B.ElAlert;exports.FoxAnchor=B.ElAnchor;exports.FoxAnchorLink=B.ElAnchorLink;exports.FoxAside=B.ElAside;exports.FoxAutoResizer=B.ElAutoResizer;exports.FoxAutocomplete=B.ElAutocomplete;exports.FoxAvatar=B.ElAvatar;exports.FoxBacktop=B.ElBacktop;exports.FoxBadge=B.ElBadge;exports.FoxBreadcrumb=B.ElBreadcrumb;exports.FoxBreadcrumbItem=B.ElBreadcrumbItem;exports.FoxButton=B.ElButton;exports.FoxButtonGroup=B.ElButtonGroup;exports.FoxCalendar=B.ElCalendar;exports.FoxCard=B.ElCard;exports.FoxCarousel=B.ElCarousel;exports.FoxCarouselItem=B.ElCarouselItem;exports.FoxCascader=B.ElCascader;exports.FoxCascaderPanel=B.ElCascaderPanel;exports.FoxCheckTag=B.ElCheckTag;exports.FoxCheckbox=B.ElCheckbox;exports.FoxCheckboxButton=B.ElCheckboxButton;exports.FoxCheckboxGroup=B.ElCheckboxGroup;exports.FoxCol=B.ElCol;exports.FoxCollapse=B.ElCollapse;exports.FoxCollapseItem=B.ElCollapseItem;exports.FoxCollapseTransition=B.ElCollapseTransition;exports.FoxColorPicker=B.ElColorPicker;exports.FoxConfigProvider=B.ElConfigProvider;exports.FoxContainer=B.ElContainer;exports.FoxCountdown=B.ElCountdown;exports.FoxDatePicker=B.ElDatePicker;exports.FoxDescriptions=B.ElDescriptions;exports.FoxDescriptionsItem=B.ElDescriptionsItem;exports.FoxDialog=B.ElDialog;exports.FoxDivider=B.ElDivider;exports.FoxDrawer=B.ElDrawer;exports.FoxDropdown=B.ElDropdown;exports.FoxDropdownItem=B.ElDropdownItem;exports.FoxDropdownMenu=B.ElDropdownMenu;exports.FoxEmpty=B.ElEmpty;exports.FoxFooter=B.ElFooter;exports.FoxForm=B.ElForm;exports.FoxFormItem=B.ElFormItem;exports.FoxGroup=Gn;exports.Group=Gn;exports.FoxGroupSetting=ya;exports.GroupSetting=ya;exports.FoxHeader=B.ElHeader;exports.FoxHeaderBar=Kn;exports.HeaderBar=Kn;exports.FoxHintText=Le;exports.HintText=Le;exports.FoxIcon=B.ElIcon;exports.FoxImage=B.ElImage;exports.FoxImageViewer=B.ElImageViewer;exports.FoxIndicator=La;exports.Indicator=La;exports.FoxInfiniteLoading=Yl;exports.InfiniteLoading=Yl;exports.FoxInput=B.ElInput;exports.FoxInputItem=Jn;exports.InputItem=Jn;exports.FoxInputNumber=B.ElInputNumber;exports.FoxInputNumberItem=ia;exports.InputNumberItem=ia;exports.FoxInputTag=B.ElInputTag;exports.FoxItem=ke;exports.Item=ke;exports.FoxLink=B.ElLink;exports.FoxLinkItem=Na;exports.LinkItem=Na;exports.FoxMain=B.ElMain;exports.FoxMapping=Wt;exports.Mapping=Wt;exports.FoxMention=B.ElMention;exports.FoxMenu=B.ElMenu;exports.FoxMenuItem=B.ElMenuItem;exports.FoxMenuItemGroup=B.ElMenuItemGroup;exports.FoxMessage=B.ElMessage;exports.FoxMessageBox=B.ElMessageBox;exports.FoxMoneyItem=oa;exports.MoneyItem=oa;exports.FoxMoreButton=Ia;exports.MoreButton=Ia;exports.FoxNotification=B.ElNotification;exports.FoxOption=B.ElOption;exports.FoxOptionGroup=B.ElOptionGroup;exports.FoxOverLay=ql;exports.OverLay=ql;exports.FoxPage=qn;exports.Page=qn;exports.FoxPageHeader=B.ElPageHeader;exports.FoxPagination=B.ElPagination;exports.FoxPickerItem=Ca;exports.PickerItem=Ca;exports.FoxPopconfirm=B.ElPopconfirm;exports.FoxPopover=B.ElPopover;exports.FoxPopoverDialog=Hl;exports.PopoverDialog=Hl;exports.FoxPopper=B.ElPopper;exports.FoxPopup=wt;exports.Popup=wt;exports.FoxPrice=Pl;exports.Price=Pl;exports.FoxProgress=B.ElProgress;exports.FoxPullRefresh=Ma;exports.PullRefresh=Ma;exports.FoxRadio=B.ElRadio;exports.FoxRadioButton=B.ElRadioButton;exports.FoxRadioGroup=B.ElRadioGroup;exports.FoxRadioItem=ma;exports.RadioItem=ma;exports.FoxRate=B.ElRate;exports.FoxRateItem=pa;exports.RateItem=pa;exports.FoxResult=B.ElResult;exports.FoxRollingProvider=Ra;exports.RollingProvider=Ra;exports.FoxRow=B.ElRow;exports.FoxRowItem=Rl;exports.RowItem=Rl;exports.FoxScrollbar=B.ElScrollbar;exports.FoxSearchBar=Wl;exports.SearchBar=Wl;exports.FoxSegmented=B.ElSegmented;exports.FoxSelect=B.ElSelect;exports.FoxSelectItem=Qn;exports.SelectItem=Qn;exports.FoxSelectV2=B.ElSelectV2;exports.FoxSkeleton=B.ElSkeleton;exports.FoxSkeletonItem=B.ElSkeletonItem;exports.FoxSlider=B.ElSlider;exports.FoxSlotItem=Fl;exports.SlotItem=Fl;exports.FoxSpace=B.ElSpace;exports.FoxStatistic=B.ElStatistic;exports.FoxStep=B.ElStep;exports.FoxSteps=B.ElSteps;exports.FoxStepsBar=za;exports.StepsBar=za;exports.FoxSubMenu=B.ElSubMenu;exports.FoxSwitch=B.ElSwitch;exports.FoxSwitchItem=ga;exports.SwitchItem=ga;exports.FoxTabPane=B.ElTabPane;exports.FoxTable=B.ElTable;exports.FoxTableColumn=B.ElTableColumn;exports.FoxTableItem=fa;exports.TableItem=fa;exports.FoxTableMappingColumn=ca;exports.TableMappingColumn=ca;exports.FoxTableRadioColumn=da;exports.TableRadioColumn=da;exports.FoxTableSetting=Kl;exports.TableSetting=Kl;exports.FoxTableV2=B.ElTableV2;exports.FoxTabs=B.ElTabs;exports.FoxTabsBar=ll;exports.TabsBar=ll;exports.FoxTabsContainer=nl;exports.TabsContainer=nl;exports.FoxTabsFrame=ka;exports.TabsFrame=ka;exports.FoxTabsPane=Gl;exports.TabsPane=Gl;exports.FoxTag=B.ElTag;exports.FoxText=Ol;exports.Text=Ol;exports.FoxTimeItem=aa;exports.TimeItem=aa;exports.FoxTimePicker=B.ElTimePicker;exports.FoxTimeSelect=B.ElTimeSelect;exports.FoxTimeSelectItem=ra;exports.TimeSelectItem=ra;exports.FoxTimeline=B.ElTimeline;exports.FoxTimelineItem=B.ElTimelineItem;exports.FoxToast=Dt;exports.Toast=Dt;exports.FoxTooltip=B.ElTooltip;exports.FoxTour=Pa;exports.Tour=Pa;exports.FoxTransfer=B.ElTransfer;exports.FoxTree=B.ElTree;exports.FoxTreeItem=ba;exports.TreeItem=ba;exports.FoxTreeSelect=B.ElTreeSelect;exports.FoxTreeSelectItem=va;exports.TreeSelectItem=va;exports.FoxTreeV2=B.ElTreeV2;exports.FoxUpload=B.ElUpload;exports.FoxWatermark=B.ElWatermark;exports.Foxcalendarpicker=jl;exports.calendarpicker=jl;exports.Foxcascaderpicker=Va;exports.cascaderpicker=Va;exports.Foxdatepicker=$a;exports.datepicker=$a;exports.Foxpicker=tl;exports.picker=tl;exports.InnerPageScopeKey=Rn;exports.PriorityPolicy=qe;exports.UniqueID=Io;exports.ValidateSchema=go;exports.ValidateSchemaKey=Ze;exports.cancelRaf=gi;exports.clamp=Mi;exports.clearNonNumber=Ei;exports.compareTo=vn;exports.createBroadcast=Nl;exports.createValidateSchema=kl;exports.debounce=Ge;exports.debounceRef=ji;exports.decimalLength=uo;exports.default=K5;exports.defineBroadcast=Ii;exports.defineConfigDomain=bo;exports.defineDataItem=wo;exports.defineDomain=Pn;exports.defineItem=Te;exports.definePageState=So;exports.defineSimpleItem=Fn;exports.deleteGlobalValidator=Ri;exports.disabledProperty=Ae;exports.divide=Dn;exports.excludeProps=Me;exports.extend=_t;exports.floatData=Vi;exports.getGlobalIcons=_o;exports.getGlobalValidateCheckEvents=mo;exports.getGlobalValidateResetEvents=po;exports.getPageContentAreaHeight=yl;exports.getPageContentAreaWidth=bl;exports.getPageFooterAreaHeight=$l;exports.getPageHeaderAreaHeight=_l;exports.getRootDomain=zt;exports.hasSymbol=no;exports.includeProps=lt;exports.indexOf=_i;exports.injectAbstractPageScope=Zt;exports.injectInnerPageScope=Xt;exports.integerLength=so;exports.isArray=yi;exports.isArrayLike=oo;exports.isBrowser=ht;exports.isDate=ft;exports.isDisplayNone=In;exports.isESModule=Ci;exports.isEmptyString=fe;exports.isEqual=Ue;exports.isFunction=yn;exports.isHidden=ao;exports.isMap=bi;exports.isNil=We;exports.isNumberString=An;exports.isObject=Ke;exports.isPlainObject=xi;exports.isPromise=pl;exports.isRegExp=bn;exports.isSet=wi;exports.isString=to;exports.isSubPage=Ui;exports.isSymbol=Si;exports.isTouch=Qt;exports.isWindow=ro;exports.kebabToPascal=Kt;exports.lastIndexOf=$i;exports.makeArray=Ti;exports.merge=io;exports.multiply=Jr;exports.negate=Qr;exports.nextTick=ki;exports.numberFormat=xl;exports.objectToString=lo;exports.once=Ki;exports.overrideGlobalIcons=ds;exports.overrideGlobalValidateHandler=Pi;exports.padZero=Di;exports.pascalToKebab=co;exports.preventDefault=Bi;exports.property=De;exports.provideAbstractPageScope=xo;exports.provideInnerPageScope=On;exports.raf=Mn;exports.readonlyProperty=Ie;exports.setGlobalValidateCheckEvents=Oi;exports.setGlobalValidateHandler=Li;exports.setGlobalValidateMessages=qi;exports.setGlobalValidateResetEvents=Hi;exports.setGlobalValidator=Fi;exports.throttle=yo;exports.toBoolean=de;exports.toNumber=ve;exports.toPadding=tt;exports.toPx=me;exports.toPxDesc=Wi;exports.toPxString=we;exports.toTypeString=Cl;exports.toValue=ge;exports.tryTimes=zl;exports.typeOf=gl;exports.unNumberFormat=eo;exports.updatePageState=wn;exports.useBroadcast=Rt;exports.useDomain=pt;exports.useExpose=be;exports.useInnerSize=Vl;exports.usePageState=El;exports.usePosition=Xn;exports.useRawTouch=el;exports.useRect=xa;exports.useSize=jn;exports.useSlotChildren=Un;exports.useTouch=Jo;exports.valueLength=Je;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var fi=Object.create,Br=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,hi=Object.getOwnPropertyNames,pi=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty,it=(e,l)=>()=>(l||e((l={exports:{}}).exports,l),l.exports),vi=(e,l,a,r)=>{if(l&&typeof l=="object"||typeof l=="function")for(var n=hi(l),o=0,s=n.length,u;o<s;o++)u=n[o],!gi.call(e,u)&&u!==a&&Br(e,u,{get:(i=>l[i]).bind(null,u),enumerable:!(r=mi(l,u))||r.enumerable});return e},st=(e,l,a)=>(a=e!=null?fi(pi(e)):{},vi(l||!e||!e.__esModule?Br(a,"default",{value:e,enumerable:!0}):a,e));let t=require("vue"),vt=require("@fox-js/validator"),_=require("element-plus"),_e=require("@element-plus/icons-vue"),Ce=require("@fox-js/i18n");var sl=window,yi=typeof window<"u";function bi(){return typeof sl<"u"?sl.requestAnimationFrame||sl.webkitRequestAnimationFrame||function(e){sl.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function wi(e){yi?cancelAnimationFrame(e):clearTimeout(e)}var Vn=bi();function vl(e,l="0"){let a=0,r=-1;e[0]=="-"&&(a++,r=1,e=e.substring(1),e.length),l[0]=="-"&&(a++,r=2,l=l.substring(1),l.length),e=Ke(e),l=Ke(l),[e,l]=Bn(Ke(e),Ke(l)),a==1&&(r==1?e=ln(e):l=ln(l));let n=Dr(e,l);return a?a==2?"-"+Ke(n):e.length<n.length?Ke(n.substring(1)):"-"+Ke(ln(n)):Ke(n)}function ln(e){let l="",a=e.length,r=e.split(".")[1],n=r?r.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?l+=9-parseInt(e[s]):l+=e[s];let o=n>0?"0."+new Array(n).join("0")+"1":"1";return Dr(l,o)}function Ke(e){let l=e.split(".");for(l[0]||(l[0]="0");l[0][0]=="0"&&l[0].length>1;)l[0]=l[0].substring(1);return l[0]+(l[1]?"."+l[1]:"")}function Bn(e,l){let a=e.split("."),r=l.split("."),n=a[0].length,o=r[0].length;return n>o?r[0]=new Array(Math.abs(n-o)+1).join("0")+(r[0]?r[0]:""):a[0]=new Array(Math.abs(n-o)+1).join("0")+(a[0]?a[0]:""),n=a[1]?a[1].length:0,o=r[1]?r[1].length:0,(n||o)&&(n>o?r[1]=(r[1]?r[1]:"")+new Array(Math.abs(n-o)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(n-o)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),l=r[0]+(r[1]?"."+r[1]:""),[e,l]}function Dr(e,l){[e,l]=Bn(e,l);let a="",r=0;for(let n=e.length-1;n>=0;n--){if(e[n]==="."){a="."+a;continue}let o=parseInt(e[n])+parseInt(l[n])+r;a=o%10+a,r=Math.floor(o/10)}return r?r.toString()+a:a}var Me=(function(e){return 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})({});function Wt(e,l=0,a=Me.HALF_EVEN){if(a===Me.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let r=!1;e[0]==="-"&&(r=!0,e=e.substring(1));let n=e.split("."),o=n[0],s=n[1];if(l<0){if(l=-l,o.length<=l)return"0";{let i=o.substr(0,o.length-l);return e=i+"."+o.substr(o.length-l)+s,i=Wt(e,0,a),(r?"-":"")+i+new Array(l+1).join("0")}}if(l==0)return o.length,ja(n[1],o,r,a)?(r?"-":"")+nn(o):(r?"-":"")+o;if(n[1]){if(n[1].length<l)return(r?"-":"")+o+"."+n[1]+new Array(l-n[1].length+1).join("0")}else return(r?"-":"")+o+"."+new Array(l+1).join("0");s=n[1].substring(0,l);let u=n[1].substring(l);return u&&ja(u,s,r,a)&&(s=nn(s),s.length>l)?(r?"-":"")+nn(o,parseInt(s[0]))+"."+s.substring(1):(r?"-":"")+o+"."+s}function ja(e,l,a,r){if(!e||e===new Array(e.length+1).join("0")||r===Me.DOWN||!a&&r===Me.FLOOR||a&&r===Me.CEILING)return!1;if(r===Me.UP||a&&r===Me.FLOOR||!a&&r===Me.CEILING)return!0;let n="5"+new Array(e.length).join("0");if(e>n)return!0;if(e<n)return!1;switch(r){case Me.HALF_DOWN:return!1;case Me.HALF_UP:return!0;case Me.HALF_EVEN:default:return parseInt(l[l.length-1])%2==1}}function nn(e,l=0){l||(l=1),typeof e=="number"&&e.toString();let a=e.length-1,r="";for(let n=a;n>=0;n--){let o=parseInt(e[n])+l;o==10?(l=1,o=0):l=0,r+=o}return l&&(r+=l),r.split("").reverse().join("")}function pn(e,l){e=e.toString(),l=l.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),l[0]=="-"&&(a++,l=l.substr(1)),e=Pt(e),l=Pt(l);let r=0,n=0;e.indexOf(".")!=-1&&(r=e.length-e.indexOf(".")-1),l.indexOf(".")!=-1&&(n=l.length-l.indexOf(".")-1);let o=r+n;if(e=Pt(e.replace(".","")),l=Pt(l.replace(".","")),e.length<l.length){let d=e;e=l,l=d}if(l=="0")return"0";let s=l.length,u=0,i=[],f=s-1,m="";for(let d=0;d<s;d++)i[d]=e.length-1;for(let d=0;d<2*e.length;d++){let y=0;for(let z=l.length-1;z>=f&&z>=0;z--)i[z]>-1&&i[z]<e.length&&(y+=parseInt(e[i[z]--])*parseInt(l[z]));y+=u,u=Math.floor(y/10),m=y%10+m,f--}return m=Pt(Si(m,o)),a==1&&(m="-"+m),m}function Si(e,l){return l==0?e:(e=l>=e.length?new Array(l-e.length+1).join("0")+e:e,e.substr(0,e.length-l)+"."+e.substr(e.length-l,l))}function Pt(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 gn(e,l,a=8){if(l==0)throw new Error("Cannot divide by 0");if(e=e.toString(),l=l.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),l=l.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let r=0;l[0]=="-"&&(l=l.substring(1),r++),e[0]=="-"&&(e=e.substring(1),r++);var n=l.indexOf(".")>0?l.length-l.indexOf(".")-1:-1;if(l=Ke(l.replace(".","")),n>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ke(e+new Array(n+1).join("0"));else if(n>f)e=e.replace(".",""),e=Ke(e+new Array(n-f+1).join("0"));else if(n<f){e=e.replace(".","");let m=e.length-f+n;e=Ke(e.substring(0,m)+"."+e.substring(m))}else n==f&&(e=Ke(e.replace(".","")))}let o=0,s=l.length,u="",i=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),i.indexOf(".")>-1){let f=i.length-i.indexOf(".")-1;i=i.replace(".",""),s>i.length&&(f+=s-i.length,i=i+new Array(s-i.length+1).join("0")),o=f,u="0."+new Array(f).join("0")}for(a=a+2;o<=a;){let f=0;for(;parseInt(i)>=parseInt(l);)i=vl(i,"-"+l),f++;u+=f,e?(e[0]=="."&&(u+=".",o++,e=e.substring(1)),i=i+e.substring(0,1),e=e.substring(1)):(o||(u+="."),o++,i=i+"0")}return(r==1?"-":"")+Ke(Wt(u,a-2))}function vn(e,l){return e=e.toString(),l=l.toString(),l=yn(l),vl(e,l)}function yn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ka(e,l){if(l==0)throw new Error("Cannot divide by 0");e=e.toString(),l=l.toString(),Ya(e),Ya(l);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),l[0]=="-"&&(l=l.substr(1));let r=vn(e,pn(l,Wt(gn(e,l),0,Me.FLOOR)));return a+r}function Ya(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Wa(e,l){let a=!1;if(e[0]=="-"&&l[0]!="-")return-1;if(e[0]!="-"&&l[0]=="-")return 1;if(e[0]=="-"&&l[0]=="-"&&(e=e.substr(1),l=l.substr(1),a=!0),[e,l]=Bn(e,l),e.localeCompare(l)==0)return 0;for(let r=0;r<e.length;r++)if(e[r]!=l[r])return e[r]>l[r]?a?-1:1:a?1:-1;return 0}var Zt=class ge{value;static RoundingModes=Me;static validate(l){if(l){if(l=l.toString(),isNaN(l))throw Error("Parameter is not a number: "+l);l[0]=="+"&&(l=l.substring(1))}else l="0";if(l.startsWith(".")?l="0"+l:l.startsWith("-.")&&(l="-0"+l.substr(1)),/e/i.test(l)){let[a,r]=l.split(/[eE]/);a=Ke(a);let n="";a[0]=="-"&&(n="-",a=a.substring(1)),a.indexOf(".")>=0?(r=parseInt(r)+a.indexOf("."),a=a.replace(".","")):r=parseInt(r)+a.length,a.length<r?l=n+a+new Array(r-a.length+1).join("0"):a.length>=r&&r>0?l=n+Ke(a.substring(0,r))+(a.length>r?"."+a.substring(r):""):l=n+"0."+new Array(-r+1).join("0")+a}return l}constructor(l="0"){this.value=ge.validate(l)}getValue(){return this.value}static getPrettyValue(l,a,r){if(!(a||r))a=3,r=",";else if(!(a&&r))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");l=ge.validate(l);let n=l.charAt(0)=="-";n&&(l=l.substring(1));var o=l.indexOf(".");o=o>0?o:l.length;for(var s="",u=o;u>0;)u<a?(a=u,u=0):u-=a,s=l.substring(u,u+a)+(u<o-a&&u>=0?r:"")+s;return(n?"-":"")+s+l.substring(o)}getPrettyValue(l,a){return ge.getPrettyValue(this.value,l,a)}static round(l,a=0,r=Me.HALF_EVEN){if(l=ge.validate(l),isNaN(a))throw Error("Precision is not a number: "+a);return Wt(l,a,r)}round(l=0,a=Me.HALF_EVEN){if(isNaN(l))throw Error("Precision is not a number: "+l);return new ge(Wt(this.value,l,a))}static floor(l){return l=ge.validate(l),l.indexOf(".")===-1?l:ge.round(l,0,Me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ge(this.value):new ge(this.value).round(0,Me.FLOOR)}static ceil(l){return l=ge.validate(l),l.indexOf(".")===-1?l:ge.round(l,0,Me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ge(this.value):new ge(this.value).round(0,Me.CEILING)}static add(l,a){return l=ge.validate(l),a=ge.validate(a),vl(l,a)}add(l){return new ge(vl(this.value,l.getValue()))}static subtract(l,a){return l=ge.validate(l),a=ge.validate(a),vn(l,a)}subtract(l){return new ge(vn(this.value,l.getValue()))}static multiply(l,a){return l=ge.validate(l),a=ge.validate(a),pn(l,a)}multiply(l){return new ge(pn(this.value,l.getValue()))}static divide(l,a,r){return l=ge.validate(l),a=ge.validate(a),gn(l,a,r)}divide(l,a){return new ge(gn(this.value,l.getValue(),a))}static modulus(l,a){return l=ge.validate(l),a=ge.validate(a),Ka(l,a)}modulus(l){return new ge(Ka(this.value,l.getValue()))}static compareTo(l,a){return l=ge.validate(l),a=ge.validate(a),Wa(l,a)}compareTo(l){return Wa(this.value,l.getValue())}static negate(l){return l=ge.validate(l),yn(l)}negate(){return new ge(yn(this.value))}};function Mr(e,l){return Zt.multiply(`${e}`,`${l}`)}function Dn(e,l,a=8){return Zt.divide(`${e}`,`${l}`,a)}var v6=Zt.RoundingModes;function bn(e,l){return e=`${e}`,l=`${l}`,Zt.compareTo(e,l)}function Ir(e){return Zt.negate(e)}function zl(e,l=-1,a=!1,r=3,n=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let u=o,i="",f=o.indexOf(".");f!=-1&&(u=o.substring(0,f),i=o.substring(f+1)),l!=-1&&(l<i.length?i=i.substring(0,l):a&&l>i.length&&(i=i.padEnd(l,"0")));let m;if(r>0){let d="",y=u.split("").reverse();for(let z=0;z<y.length;z++)d+=y[z]+((z+1)%r==0&&z+1!=y.length?n:"");i.length==0?m=`${s}${d.split("").reverse().join("")}`:m=`${s}${d.split("").reverse().join("")}.${i}`}else i.length==0?m=`${s}${u}`:m=`${s}${u}.${i}`;return m}function Ar(e){let l=`${e}`,a=l.charAt(0);a=="-"?l=l.substring(1):a="";let r=l.replace(/[^\d\.-]/g,"");return`${a}${r}`}var Mn=Vn,xi=Array.isArray,Ci=e=>Tl(e)==="[object Map]",Ni=e=>Tl(e)==="[object Set]",ft=e=>e instanceof Date,wn=e=>typeof e=="function",Lr=e=>typeof e=="string",ki=e=>typeof e=="symbol",Ue=e=>e!==null&&typeof e=="object",yl=e=>Ue(e)&&wn(e.then)&&wn(e.catch),Pr=Object.prototype.toString,Tl=e=>Pr.call(e),zi=e=>Tl(e)==="[object Object]",Fr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ti(e){return e.__esModule||Fr&&e[Symbol.toStringTag]==="Module"}var Ei=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function _t(...e){let l=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,r=e.length,n=!1;for(typeof l=="boolean"&&(n=l,l=e[a]??{},a++),typeof l!="object"&&(l={});a<r;a++)if(e[a]!==null&&e[a]!==void 0){let o=e[a];for(let s in o){let u=l[s],i=o[s];if(u!==i)if(n===!0&&i&&typeof i=="object"){let f;Array.isArray(i)?f=u&&Array.isArray(u)?u:[]:f=u&&typeof u=="object"?u:{},l[s]=_t(n,f,i)}else i!==void 0&&(l[s]=i)}}return l}var an=Ei?Promise.resolve():null;function _i(e,...l){an!==null?l&&l.length>0?an.then(()=>{e(l)}):an.then(e):l&&l.length>0?setTimeout(()=>{e(l)}):setTimeout(e)}function fe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ve(e){return typeof e=="number"?e:Number(e)}var $i={"[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 bl(e){let l=Object.prototype.toString.call(e);return e==null?String(e):$i[l]||"object"}function Rr(e){if(!e||e.nodeType!==1)return!0;let l=e;for(;l;){if(l.hidden)return!0;const a=window.getComputedStyle(l);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;l=l.parentElement}return!1}function In(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let l=e.parentElement;for(;l;){if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function Or(e){return e&&typeof e=="object"&&"setInterval"in e}function qr(e){let l=!!e&&"length"in e&&e.length,a=bl(e);return a==="function"||Or(e)?!1:a==="array"||l===0||typeof l=="number"&&l>0&&l-1 in e}function Hr(e,l){let a=+l.length,r=0,n=e.length;for(;r<a;r++)e[n++]=l[r];return e.length=n,e}function Vi(e,l=[]){let a=l;return e!=null&&(qr(Object(e))?Hr(a,typeof e=="string"?[e]:e):a.push(e)),a}function Xe(e,l){if(e==l)return!0;if(e===void 0||l===void 0)return!1;let a=bl(e);if(a!==bl(l))return!1;if(a==="object"){let r=Object.keys(e),n=Object.keys(l);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o],u=e[s],i=l[s];if(!Xe(u,i))return!1}return!0}else if(a==="array"){if(e.length!==l.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],o=l[r];if(!Xe(n,o))return!1}return!0}return!1}var ht=typeof window<"u";function Ye(e){return e==null}function Sn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var me=e=>e==null||typeof e!="string"?!1:e.length===0;function An(e){return me(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function jr(e){if(e==null)return 0;let l=`${e}`;if(l.length==0)return 0;l.charAt(0)=="-"&&(l=l.substring(1)),l=l.replace(/[^\d\.-]/g,"");const a=l.indexOf(".");return a==-1?l.length:a}function Kr(e){if(e==null)return 0;const l=`${e}`;if(l.length==0)return 0;const a=l.indexOf(".");return a==-1?0:l.length-(a+1)}function Ua(e,l,a){const r=e.indexOf(l);return r===-1?e:l==="-"&&r!==0?e.slice(0,r):e.slice(0,r+1)+e.slice(r).replace(a,"")}function Bi(e,l=!0,a=!0){l?e=Ua(e,".",/\./g):e=e.replace(/\./g,""),a?e=Ua(e,"-",/-/g):e=e.replace(/-/,"");const r=l?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(r,"")}function Di(e,l){return typeof e=="object"||Array.isArray(e)?l.findIndex(a=>{if(Xe(e,a))return!0}):l.indexOf(e)}function Mi(e,l){if(typeof e=="object"||Array.isArray(e)){let a=l.reverse().findIndex(r=>{if(Xe(e,r))return!0});return a!==-1&&(a=l.length-1-a),a}return l.lastIndexOf(e)}function ut(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function nt(e,...l){const a={};return l.forEach(r=>{for(const n in r)a[n]=e[n]}),a}function Ie(e,...l){const a=[];l.forEach(n=>{Reflect.apply([].push,a,Reflect.ownKeys(n))});const r={};for(const n in e)a.includes(n)||(r[n]=e[n]);return r}var Ii=(e,l,a)=>{const r=Object.assign({},e),n=Object.assign({},a);return Object.keys(l).length>0?(Object.keys(r).forEach(o=>{n.hasOwnProperty(o)?typeof n[o]=="string"&&(r[o]=l[n[o]]):l[o]&&(r[o]=l[o])}),r):e};function Ai(e,l){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),l&&e.stopPropagation()}var Li=(e,l=2)=>{for(e+="";e.length<l;)e="0"+e;return e.toString()},Pi=(e,l,a)=>Math.min(Math.max(e,l),a);function Ut(e){return e.split("-").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join("")}function Yr(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Ee=Symbol.for("BroadcastKey"),Ln=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,l,a){this.parent=e,this.proxy=l,this.name=a,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const l=this.children.findIndex(a=>e===a);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(e,l,a){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=e.uniqueId,n={matched:e,action:l,args:a};return this.persistantMessages.set(r,n),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(l=>{e.push(l)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,l){if(!l||l.messagingPolicy==="Once"&&l.resolved===!0)return!1;let a=!1;return!l.name||l.name==="*"||l.name==="+"||Sn(l.name)&&e&&l.name.test(e)?a=!0:typeof l.name=="function"?a=Reflect.apply(l.name,null,[e]):l.name===e&&(a=!0),a}trigger(e,l,a){let r=null;const n=this.callbacks.get(l);typeof n=="function"&&(r=Reflect.apply(n,this.proxy,[...a]));const o=this.proxy??{};typeof o[l]=="function"&&(r=Reflect.apply(o[l],o,[...a])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(r)}pull(){let e=this.parent;for(;e;){const l=e.getPersistantMessages();Array.isArray(l)&&l.length>0&&l.forEach(a=>{if(this.isMatched(this.name,a.matched))try{this.trigger(a.matched,a.action,a.args)}catch(r){console.error(r)}}),e=e.parent}}emit(e,l,...a){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,l,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,l,a)){const o=e.resolve,s=e.uniqueId??"",u=(...i)=>{this.deletePersistantMessage(s),typeof o=="function"&&o(...i)};e.resolve=u}e.cachePolicy="None"}let r=!1;!e.name||e.name==="*"?r=!0:e.name==="+"?(r=!1,e.name="*"):Sn(e.name)&&this.name&&e.name.test(this.name)?r=!0:typeof e.name=="function"?r=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(r=!0);const n=[];if(r){const o=this.callbacks.get(l);if(typeof o=="function"){const u=Reflect.apply(o,this.proxy,[...a]);u!=null&&n.push(u)}const s=this.proxy??{};if(typeof s[l]=="function"){const u=Reflect.apply(s[l],s,[...a]);u!=null&&n.push(u)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...n),e.messagingPolicy==="Once")return n}return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...e},l,...a]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,n,[...s])}),n}emitToChildren(e,l,...a){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,l,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,l,a)){const n=e.resolve,o=e.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(o),typeof n=="function"&&n(...u)};e.resolve=s}e.cachePolicy="None"}const r=[];return this.children.forEach(n=>{const o=Reflect.apply(n.emit,n,[{...e},l,...a]);o!=null&&Array.isArray(o)&&Reflect.apply([].push,r,[...o])}),r}on(e,l){this.callbacks.set(e,l)}};function El(e,l,a,r){const n=new Ln(l,e,a);if(r&&typeof r=="object")for(const o in r)n.on(o,r[o]);return n}function Fi(e,l,a){const r=a;if(r[Ee])return r[Ee];const n=new Ln((0,t.inject)(Ee,null),a,e);if(l&&typeof l=="object")for(const o in l)n.on(o,l[o]);return r[Ee]=n,(0,t.provide)(Ee,n),(0,t.onUnmounted)(()=>{n.destroy(),r[Ee]=void 0}),n}function Ht(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Ee]??(0,t.inject)(Ee,null):(0,t.inject)(Ee,null)}var Ri=class{error(e,l){const a=l,r=l||(0,t.hasInjectionContext)()?Ht(l):null;r?r.emit({name:"*"},"setErrorTip",e):typeof a.setErrorTip=="function"&&a.setErrorTip(e)}reset(e){const l=e,a=e||(0,t.hasInjectionContext)()?Ht(e):null;a?a.emit({name:"*"},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(e){const l=e,a=e||(0,t.hasInjectionContext)()?Ht(e):null;a?a.emit({name:"*"},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(e,l,a){Array.isArray(e)||(e=[e]);const r=a,n=a||(0,t.hasInjectionContext)()?Ht(a):null,o=l.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=e.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!o&&s?n?n.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):o&&!s&&(n?n.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(a))}getValue(e){return e.modelValue}},jt=new Ri;function Oi(e){jt=e}function qi(e){jt?Object.assign(jt,e):jt=e}function Hi(e,l){vt.Schema.setValidator(e,l)}function ji(e){vt.Schema.deleteValidator(e)}var Wr=["blur","clear"];function Ki(e){Wr=e}function Ur(){return Wr}var Gr=["focus","change","setValue"];function Yi(e){Gr=e}function Xr(){return Gr}function Wi(e){vt.Schema.messages(e)}function Ft(...e){const l=[];return e.forEach(a=>{a.forEach(r=>{const n=l.findIndex(o=>o.type===r.type);n!==-1&&l.splice(n,1),l.push(r)})}),l}function ul(e){return e.forEach(l=>{l.type==="required"&&(l.required===null||l.required===void 0)&&(l.required=!0),!l.type&&(l.required===!0||l.required===!1)&&(l.type="required")}),e}var Qe=Symbol("ValidateSchemaKey"),Zr=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,l,a){this.parent=e,this.descriptor=l,this.proxy=a,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let e=this.proxy.$attrs;e&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const l=ul(Ft(this.attrRules,this.rules)),a=[];for(let n in e){let o=e[n];if(this.hasValidator(n,!0)){if(o===!1)continue;let u={type:n};o!==null&&typeof o=="object"&&Object.assign(u,o),a.push(u);continue}let s=this.getValidator(n);if(s!==null){let u={type:n,validator:s};a.push(u)}}this.attrRules=ul(a);const r=Ft(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(r,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...l){const a=this.descriptor.validateHandler;if(a&&typeof a[e]=="function")return Reflect.apply(a[e],a,[...l]);const r=jt;return r&&typeof r[e]=="function"?Reflect.apply(r[e],r,[...l]):null}decorate(e,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(e,l,a=!1){a?vt.Schema.setValidator(e,l):this.validators[e]=l}getValidator(e){let l=this.validators[e]??null;return l||(l=this.parent?.getValidator(e)??null),l}deleteValidator(e,l=!1){l?vt.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,l=!1){if(l)return vt.Schema.hasValidator(e);{let a=Reflect.has(this.validators,e);return!a&&this.parent!==null&&(a=this.parent.hasValidator(e,!1)),a}}setRule(e){const l=Ft(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=ul(e):this.rules=ul([e]);const a=Ft(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(a,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Ft(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(e.length>0){const a={[`${l}`]:e},r=this.getValue(),n={[`${l}`]:r},o=new vt.Schema(a),s=this.proxy??n;return o.validate(n,{context:s}).then(u=>{if(u.pass)this.success();else{let i="error";Array.isArray(u.errors)&&u.errors.length>0&&(i=u.errors[0].message??i,u.errors=[u.errors[0]],u.errors[0].ref=s),this.error(i)}return u}).catch(u=>{const i=u.message??`${u}`;return this.error(i),u})}}return Promise.resolve({pass:!0})}};function _l(e,l,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const r=a.valueName;a.validateHandler={getValue(n){return n[r]}}}return new Zr(l,a,e)}var wl=Symbol.for("EventEmitterKey"),Jr=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,l){let a=this.register.get(e);if(a&&Array.isArray(a)){let r=a.findIndex(n=>n===l);r!==-1&&a.splice(r,1)}}on(e,l){let a=this.register.get(e);a||(a=new Array,this.register.set(e,a)),a.push(l)}emit(e,...l){const a=this.register.get(e);a&&a.forEach(r=>{try{Reflect.apply(r,null,[e,...l])}catch(n){console.error(n.message,n)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...l])}};function Ze(e,l){let a=null;return function(...r){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...r])},l)}}function Qr(e,l){let a=0;return function(...r){const n=new Date().getTime();n-a<l||(a=n,Reflect.apply(e,null,[...r]))}}function Ui(e,l){const a=Ze((r,n)=>{e=r,n()},l);return(0,t.customRef)((r,n)=>({get(){return r(),e},set(o){a(o,n)}}))}function Gi(e){let l=!1;return function(...a){l||(l=!0,Reflect.apply(e,null,[...a]))}}function $l(e,l,a,r=0,n=!0,o){let s=l,u=0;if(n){const f=e();if(u++,f){typeof o=="function"&&o(!0);return}if(u>a){typeof o=="function"&&o(!1);return}}const i=()=>{const f=e();if(u++,f){typeof o=="function"&&o(!0);return}if(u>a){typeof o=="function"&&o(!1);return}s+=r,setTimeout(i,s)};setTimeout(i,s)}var Ge=Symbol("DomainKey"),Ct=Symbol("DataItemsKey"),Vl=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}_props=(0,t.reactive)({});constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(e,l=[]){for(const a in e){const r=e[a];l.length>0&&l.indexOf(r)!==-1||(this._props[a]=r)}}has(e){if(Reflect.has(this._props,e)){const l=this._props[e];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,l){this._props[e]=l}get(e,l){if(Reflect.has(this._props,e)){const a=this._props[e];if(a!=null)return a}return this.parent==null?l:this.parent.get(e,l)}getForParent(e,l){return this.parent==null?l:this.parent.get(e,l)}getForSelf(e){return this._props[e]}getAll(e){const l=[];let a=this;for(;a!=null;){if(Reflect.has(a._props,e)){const r=a._props[e];l.push(r)}a=a._parent}return l}},Xi=new Vl;function zt(){return Xi}function pt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Ge]??(0,t.inject)(Ge,null):(0,t.inject)(Ge,null)}var rn=Symbol("OriginalDateKey");function Pn(e,l,a=[],r){const n=(0,t.getCurrentInstance)();let o=n?.proxy,s=(0,t.inject)(Ge,null);s===null&&(s=zt());const u=e||l.prop||l.name;let i=new Vl(u);i.parent=s;const f=h=>{o[rn]||y(h),i?.set("modelValue",h)},m=()=>i?.getForSelf("modelValue")??null,d=()=>o[rn]??null,y=h=>{const v={};_t(!0,v,(0,t.toRaw)(h)),o[rn]=v};(0,t.isReactive)(l)||typeof l=="function"?(0,t.watch)(l,h=>{i?.merge(h,a)},{immediate:!0}):i.merge(l,a),l.modelValue&&y(l.modelValue);const z=(h,v)=>{i?.set(h,v)},S=h=>i?.getForSelf(h)??null;if(o[Ge]=i,(0,t.provide)(Ge,i),n!==null){const h=(0,t.inject)(Ee,null),v=El(o,h,u,r);i.broadcast=v,o[Ee]=v,(0,t.provide)(Ee,v),o.broadcast=(c,C,...D)=>Reflect.apply(v.emit,v,[c,C,...D]);const I=(0,t.inject)(Qe,null),g=_l(o,I,{componentName:""});i.validateSchema=g,o[Qe]=g,(0,t.provide)(Qe,g),o[Ct]=new Map,o.validate=(c=!0)=>{const C=[];let D=null;const T={deep:!1};if(c===!0)D={name:"*"};else if(Array.isArray(c)&&c.length>0){const N=c;D={name:A=>A?N.indexOf(A)!==-1:!1}}else if(c!=null&&typeof c=="object"){const N=c;if(Object.assign(T,N),Array.isArray(N.include)&&N.include.length>0){const A=N.include;D={name:$=>$?A.indexOf($)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const A=N.exclude;D={name:$=>$?A.indexOf($)===-1:!1}}else D={name:"*"}}if(D){const N=v?.emitToChildren(D,"validate",T);N&&Reflect.apply([].push,C,N)}return C.length==1?C[0]:C.length>1?Promise.all(C).then(N=>{let A=[];return N.forEach($=>{$.pass===!1&&Array.isArray($.errors)&&(A=[...A,...$.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(c,C=!0,D=!1)=>{if(D===!0){Reflect.ownKeys(c).forEach(T=>{let N=String(T);const A={componentName:"",fieldName:N,pureDataValidate:!0};if(i){const $=to(i,N,A,v,g);o[Ct].set(N,$);const j=c[N];j&&$.validateSchema.setRule(j)}});return}if(C){const T=Reflect.ownKeys(c);v?.emitToChildren({name:N=>T.includes(N),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",c,!1)}},o.clearValidate=(c=!0)=>{let C=null;if(c===!0)C={name:"*"};else if(Array.isArray(c)&&c.length>0){const D=c;C={name:T=>T?D.indexOf(T)!==-1:!1}}else if(c!=null&&typeof c=="object"){const D=c;if(Array.isArray(D.include)&&D.include.length>0){const T=D.include;C={name:N=>N?T.indexOf(N)!==-1:!1}}else if(Array.isArray(D.exclude)&&D.exclude.length>0){const T=D.exclude;C={name:N=>N?T.indexOf(N)===-1:!1}}else C={name:"*"}}C&&v?.emitToChildren(C,"clearValidate",!1)},o.resetFields=c=>{const C=m();if(!C)return;const D={};if(_t(!0,D,d()??{}),Array.isArray(c))c.forEach(T=>{C[T]=D[T]});else if(c&&Array.isArray(c.include))(c.include??[]).forEach(T=>{C[T]=D[T]});else if(c&&Array.isArray(c.exclude)){let T=c.exclude??[];Reflect.ownKeys(D).forEach(N=>{T.includes(N)||(C[N]=D[N])})}else Object.assign(C,D);o.clearValidate(c)},o.setModelValue=(c,C)=>{if(!C||C===u)f(c);else{const D={name:C,messagingPolicy:"Once"};v?.emitToChildren(D,"setModelValue",c)}},o.getModelValue=()=>m(),o.setDomainProperty=(c,C)=>{z(c,C)},o.getDomainProperty=c=>S(c),setTimeout(function(){v?.pull()},0)}return(0,t.onUnmounted)(function(){i?.validateSchema&&(i.validateSchema.destroy(),o[Qe]=void 0,(0,t.provide)(Qe,null)),i?.broadcast&&(i?.broadcast?.destroy(),o[Ee]=void 0,(0,t.provide)(Ee,null)),i?.destroy(),o[Ge]=void 0,(0,t.provide)(Ge,null),o[Ct]&&(o[Ct].clear(),o[Ct]=void 0),o.broadcast=null,o.validate=null,o.setNameValidateRules=null,o.clearValidate=null,o.resetFields=null,o.setModelValue=null,o.getModelValue=null,o.setDomainProperty=null,o.getDomainProperty=null,i=null,o=null}),i}function eo(e,l,a=[]){let r=(0,t.getCurrentInstance)()?.proxy,n=(0,t.inject)(Ge,null);n===null&&(n=zt());let o=new Vl(e||l.prop||l.name);return o.parent=n,(0,t.isReactive)(l)||typeof l=="function"?(0,t.watch)(l,s=>{o?.merge(s,a)},{immediate:!0}):o.merge(l,a),r[Ge]=o,(0,t.provide)(Ge,o),(0,t.onUnmounted)(()=>{o?.destroy(),r[Ge]=void 0,(0,t.provide)(Ge,null),o=null,r=null}),o}function ze(e,l,a){const r=(0,t.getCurrentInstance)()?.proxy,n=l??"";let o=El(r,(0,t.inject)(Ee,null),n,a);r[Ee]=o,(0,t.provide)(Ee,o),r.broadcast=(m,d,...y)=>o?Reflect.apply(o.emit,o,[m,d,...y]):null;const s=(0,t.inject)(Qe,null);e.fieldName=e.fieldName??n;let u=_l(r,s,e);r[Qe]=u,(0,t.provide)(Qe,u),r.validate=(m=null)=>{if(!u)return Promise.resolve({pass:!0});const d=[];let y=!1,z=!1;if(Array.isArray(m)&&m.indexOf(n)!==-1)z=!0,y=!0;else if(m&&typeof m=="object"){const S=m,h=S.ignoreDisabled??!0,v=S.ignoreReadonly??!0,I=S.ignoreHidden??!0;h===!0&&e.disabled===!0||v===!0&&e.readonly===!0||I===!0&&Rr(r.$el)?z=!1:(Array.isArray(S.include)&&S.include.indexOf(n)!==-1||Array.isArray(S.exclude)&&S.exclude.indexOf(n),z=!0),y=S.deep??!1}else typeof m=="boolean"&&(y=m),z=!0;if(z){const S=u?.validate();d.push(S)}if(y){let S=null;const h={deep:!1};if(m===!0)S={name:"*"};else if(Array.isArray(m)&&m.length>0){const v=m;S={name:I=>I?v.indexOf(I)!==-1:!1}}else if(m!=null&&typeof m=="object"){const v=m;if(Object.assign(h,v),Array.isArray(v.include)&&v.include.length>0){const I=v.include;S={name:g=>g?I.indexOf(g)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const I=v.exclude;S={name:g=>g?I.indexOf(g)===-1:!1}}else S={name:"*"}}if(S&&o){const v=o.emitToChildren(S,"validate",h);Reflect.apply([].push,d,v)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(S=>{let h=[];return S.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(h=[...h,...v.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>u?.setRule(m),r.setNameValidateRules=(m,d=!1)=>{const y=m[n];y&&u?.setRule(y),d&&o&&o.emitToChildren({name:z=>Reflect.ownKeys(m).includes(z)},"setNameValidateRules",m,!1)},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(l??"")!==-1)&&u?.clear();let d=null;if(m===!0)d={name:"*"};else if(Array.isArray(m)&&m.length>0){const y=m;d={name:z=>z?y.indexOf(z)!==-1:!1}}else if(m!=null&&typeof m=="object"){const y=m;if(Array.isArray(y.include)&&y.include.length>0){const z=y.include;d={name:S=>S?z.indexOf(S)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const z=y.exclude;d={name:S=>S?z.indexOf(S)===-1:!1}}else d={name:"*"}}d&&o&&o.emitToChildren(d,"clearValidate",!1)};let i=new Jr(r);r[wl]=i;const f=Ze((m="validate")=>{u&&(m==="reset"?u.clear():u.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ur()).forEach(m=>{i&&i.on(m,d=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Xr()).forEach(m=>{i&&i.on(m,d=>{f("reset")})}),setTimeout(function(){o?.pull()},0),(0,t.onUnmounted)(()=>{o?.destroy(),r[Ee]=void 0,(0,t.provide)(Ee,null),o=null,u?.destroy(),r[Qe]=void 0,(0,t.provide)(Qe,null),u=null,i?.destroy(),r[wl]=void 0,i=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:o,validateSchema:u,emitEvent:(m,...d)=>{i&&Reflect.apply(i.emit,i,[m,...d])},onEvent:(m,d)=>{i&&Reflect.apply(i.on,i,[d])},offEvent:(m,d)=>{i&&Reflect.apply(i.off,i,[d])}}}function to(e,l,a,r,n){const o={},s=l??"",u={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};a.fieldName=s,a.validateHandler={getValue(m){return u.getValue()}};let i=_l({},n,a);o.validate=(m=null)=>{if(!u.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let y=!1,z=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)z=!0,y=!0;else if(m&&typeof m=="object"){const S=m;Array.isArray(S.include)&&S.include.indexOf(s)!==-1||Array.isArray(S.exclude)&&S.exclude.indexOf(s),z=!0,y=S.deep??!1}else typeof m=="boolean"&&(y=m),z=!0;if(z&&i){const S=i.validate();d.push(S)}if(y){let S=null;const h={deep:!1};if(m===!0)S={name:"*"};else if(Array.isArray(m)&&m.length>0){const v=m;S={name:I=>I?v.indexOf(I)!==-1:!1}}else if(m!=null&&typeof m=="object"){const v=m;if(Object.assign(h,v),Array.isArray(v.include)&&v.include.length>0){const I=v.include;S={name:g=>g?I.indexOf(g)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const I=v.exclude;S={name:g=>g?I.indexOf(g)===-1:!1}}else S={name:"*"}}if(S&&f){const v=f.emitToChildren(S,"validate",h);Reflect.apply([].push,d,v)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(S=>{let h=[];return S.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(h=[...h,...v.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=m=>i?.setRule(m),o.setNameValidateRules=m=>{const d=m[s];d&&i?.setRule(d)};let f=El(null,r,s,o);return(0,t.onUnmounted)(()=>{i=null,f=null}),{broadcast:f,validateSchema:i}}function Fn(){let e=(0,t.getCurrentInstance)()?.proxy,l=new Jr(e);return e[wl]=l,(0,t.onUnmounted)(()=>{l?.destroy(),e[wl]=void 0,l=null,e=null}),{emitEvent:(a,...r)=>{l&&Reflect.apply(l.emit,l,[a,...r])},onEvent:(a,r)=>{l&&Reflect.apply(l.on,l,[r])},offEvent:(a,r)=>{l&&Reflect.apply(l.off,l,[r])}}}var xe=(e,l=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&l<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,l)}px`:"",Zi=xe;function he(e,l=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&l>0?e*l:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let n=Number(e.substring(0,a)),o=1;if(ht){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(o=Number(s.substring(0,u)))}return n*=o,n}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*l;const r=Number(e);return isNaN(r)?0:r}var mt="PageStateKey";function lt(e){const l={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(l.top=he(e.top)),e.left!==null&&e.left!==void 0&&(l.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(l.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(l.right=he(e.right))),l}function xn(e,l,a={},r=!0,n=-1,o=-1,s=0,u=0){if(e.headerHeight=he(a.headerHeight??l.headerHeight??-1),e.headerPadding=lt(a.headerPadding??l.headerPadding),e.footerHeight=he(a.footerHeight??l.footerHeight??-1),e.footerPadding=lt(a.footerPadding??l.footerPadding),e.contentPadding=lt(a.contentPadding??l.contentPadding),r){const i=a.height??l.height;i?e.height=he(i,o):e.height=he(o)-he(s,o)-he(u,o),e.width=he(a.width??l.width??0,n)}}function lo(e,l={}){const a={top:null,bottom:null,right:null,left:null},r={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},n=Object.assign(e.get("safeAreaInset")??{},l.safeAreaInset??{});n&&(r.safeAreaTop=he(n.top),r.safeAreaBottom=he(n.bottom),r.safeAreaLeft=he(n.left),r.safeAreaRight=he(n.right));const o=e.get("pageLayout");if(!o)return null;xn(r,o,l,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const s=(0,t.reactive)(r),u=e.getForParent(mt);u&&(r.height=Sl(e,u),r.width=xl(e,u),(0,t.watch)([()=>Sl(e,u),()=>xl(e,u)],([f,m])=>{s.height=f,s.width=m}));const i=!u;return(0,t.watch)([()=>l.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([f,m,d=-1,y=-1,z=0,S=0])=>{xn(s,m,l,i,d,y,z,S)}),e.set(mt,s),s}function Bl(e){return e.get(mt)}function Dl(e,l){if(l=l??e.get(mt),l&&l.headerMounted){const a=l.safeAreaTop==-1?0:l.safeAreaTop;return l.headerAllHeight??l.headerHeight+a}return 0}function Ml(e,l){if(l=l??e.get(mt),l&&l.footerMounted){const a=l.safeAreaBottom==-1?0:l.safeAreaBottom;return l.footerAllHeight??l.footerHeight+a}return 0}function Sl(e,l){if(l=l??e.get(mt),l){if(l.contentInnerHeight)return l.contentInnerHeight;const a=Dl(e,l),r=Ml(e,l),n=he(l.contentPadding.top??0),o=he(l.contentPadding.bottom??0);return l.height-a-r-n-o}return 0}function xl(e,l){if(l=l??e.get(mt),l){const a=he(l.contentPadding.left??0),r=he(l.contentPadding.right??0);return l.contentInnerWidth??l.width-a-r}return 0}function Ji(e){return!!e.getForParent(mt)}var Rn=Symbol.for("InnerPageScopeKey");function On(e){(0,t.provide)(Rn,e)}function Jt(e=!1){return(0,t.inject)(Rn,e)}var qn=Symbol.for("AbstractPageScopeKey");function no(e){(0,t.provide)(qn,e)}function Qt(e=!1){return(0,t.inject)(qn,e)}var qe=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function cl(e,l){return e==null?!1:typeof l=="function"?l(e):!0}function $e(e,l,a=qe.Near,r){const n=pt();return n==null?e:a===qe.Parent?(0,t.computed)(()=>{const o=n.getAll(l);for(let u=o.length-1;u>=0;u--){const i=o[u];if(cl(i,r))return i}const s=e.value;return cl(s,r)?s:null}):(0,t.computed)(()=>{const o=e.value;if(cl(o,r))return o;const s=n.getAll(l);for(let u=0;u<s.length;u++){const i=s[u];if(cl(i,r))return i}return null})}function ao(e){return $e(e,"readonly",qe.Near)}function ro(e){return $e(e,"disabled",qe.Near)}function oo(e){return $e(e,"browse",qe.Near)}function Ae(e){const l=(0,t.ref)(null),a=ro((0,t.computed)(()=>l.value??e.disabled)),r=(0,t.ref)(null);return{innerDisabled:l,disabled:a,innerReadonly:r,readonly:ao((0,t.computed)(()=>r.value??e.readonly)),browse:oo((0,t.computed)(()=>e.browse))}}function ye(e,l="modelValue",a=null,r){const n=(0,t.toRef)(e,l);let o=n.value;typeof a=="function"&&(o=a(n.value));const s=(0,t.ref)(o);return(0,t.watch)(n,u=>{if(typeof a=="function"){const i=a(u);i!==s.value&&(s.value=i,r&&r("setValue",i))}else u!==s.value&&(s.value=u,r&&r("setValue",u))}),s}var io=new Map,Cl=new Map,Cn=null;function Qi(e){Cn=e}function so(e,l,a){if(a){let r=Cl.get(a);r||(r=new Map,Cl.set(a,r)),r.set(e,l)}else io.set(e,l)}function Fe(e,l,a){!a&&Cn&&(a=Cn(e)??void 0);let r=null;if(a){let n=Cl.get(a);n&&(r=n.get(l))}return r||(r=io.get(l)),r}function es(e,l){for(let a in e){const r=e[a];so(a,r,l)}}function ts(e){Cl.delete(e)}function ls(){return{top:0,left:0,bottom:0,right:0}}function ns(){return ht?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function as(e,l){let a=e;if(l.componentPrefix){const r=a.indexOf("-");r!==-1?a=`${l.componentPrefix}${a.slice(r)}`:a=`${l.componentPrefix}-${a}`}return Ut(a)}var rs=class{packages;installers;_version;get version(){return this._version}constructor(e,l,a){this.packages=e,this.installers=l,this._version=a}install(e,l={}){l?.install!==!1&&(this.packages.forEach(r=>{if(r.install)e.use(r,l);else if(r.name){const n=as(r.name,l);e.component(n,r)}}),this.installers.forEach(r=>{r(e,l)}));const a=zt();if(l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r={...l},n=Ze(()=>{const o={...r};this.updateLayout(o,a)},120);new window.ResizeObserver(n).observe(window.document.body)}this.updateLayout(l,a)}updateLayout(e,l){const a=e.headerBarHeight??0,r=e.footerBarHeight??0,n=_t({},ls(),e.safeAreaInset),o=ns(),s=_t({},o.pageLayout,e.pageLayout);l=l??zt(),l.set("safeAreaInset",n),l.set("headerBarHeight",a),l.set("footerBarHeight",r),l.set("pageLayout",s),l.set("rootWidth",o.rootWidth),l.set("rootHeight",o.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const i in e)u.indexOf(i)===-1&&l.set(i,e[i])}setScopeGetter(e){Qi(e)}setAPI(e,l,a){so(e,l,a)}getAPI(e,l,a){return Fe(e,l,a)}batchSetAPI(e,l){es(e,l)}clearScopeAPI(e){ts(e)}getRootDomain(){return zt()}},os=[_.ElAffix,_.ElAlert,_.ElAutocomplete,_.ElAutoResizer,_.ElAvatar,_.ElBacktop,_.ElBadge,_.ElBreadcrumb,_.ElBreadcrumbItem,_.ElButton,_.ElButtonGroup,_.ElCalendar,_.ElCard,_.ElCarousel,_.ElCarouselItem,_.ElCascader,_.ElCascaderPanel,_.ElCheckTag,_.ElCheckbox,_.ElCheckboxButton,_.ElCheckboxGroup,_.ElCol,_.ElCollapse,_.ElCollapseItem,_.ElCollapseTransition,_.ElColorPicker,_.ElConfigProvider,_.ElContainer,_.ElAside,_.ElFooter,_.ElHeader,_.ElMain,_.ElDatePicker,_.ElDescriptions,_.ElDescriptionsItem,_.ElDialog,_.ElDivider,_.ElDrawer,_.ElDropdown,_.ElDropdownItem,_.ElDropdownMenu,_.ElEmpty,_.ElForm,_.ElFormItem,_.ElIcon,_.ElImage,_.ElImageViewer,_.ElInput,_.ElInputNumber,_.ElLink,_.ElMenu,_.ElSubMenu,_.ElMenuItem,_.ElMenuItemGroup,_.ElPageHeader,_.ElPagination,_.ElPopconfirm,_.ElPopover,_.ElPopper,_.ElProgress,_.ElRadio,_.ElRadioButton,_.ElRadioGroup,_.ElRate,_.ElResult,_.ElRow,_.ElScrollbar,_.ElSelect,_.ElOption,_.ElOptionGroup,_.ElSelectV2,_.ElSkeleton,_.ElSkeletonItem,_.ElSlider,_.ElSpace,_.ElSteps,_.ElStep,_.ElSwitch,_.ElTable,_.ElTableColumn,_.ElTableV2,_.ElTabs,_.ElTabPane,_.ElTag,_.ElTimePicker,_.ElTimeSelect,_.ElTimeline,_.ElTimelineItem,_.ElTooltip,_.ElTransfer,_.ElTree,_.ElTreeSelect,_.ElTreeV2,_.ElUpload,_.ElStatistic,_.ElCountdown,_.ElSegmented,_.ElAnchor,_.ElAnchorLink,_.ElWatermark,_.ElMessageBox,_.ElMessage,_.ElNotification,_.ElSplitter],is=[_.ElInfiniteScroll,_.ElLoading,_.ElMessage,_.ElMessageBox,_.ElNotification,_.ElPopoverDirective],ss=(e,l={})=>{const a=l.componentPrefix??"fox";os.forEach(r=>{if(typeof r.name=="string"){let n="";const o=Yr(r.name),s=o.indexOf("-");s!==-1?n=`${a}${o.slice(s)}`:n=`${a}-${o}`,n=Ut(n),e.component(n,r)}else e.use(r)}),is.forEach(r=>{e.use(r)})};function ie(e){const l=`fox-${e}`,a=Ut(l);return{componentName:l,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=a,r.install=(n,o)=>{let s=r.name;o?.componentPrefix&&(s=`${o.componentPrefix}-${r.baseName}`,s=Ut(s)),n.component(s,r)},(0,t.defineComponent)(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,(0,t.defineComponent)(r)}}}function be(e,l=null){if(l||(l=(0,t.getCurrentInstance)()),l&&l.proxy){let a=l.proxy;Object.assign(a,e)}}var Ne={browse:{type:[String],required:!1,default:()=>null},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}},Te={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],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},uo={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}},co={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}},fo=[];for(const e in co)fo.push(e);var us={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}},cs={...Ne,...uo,...us},ds=(e,l)=>({inheritAttrs:!0,props:cs,setup(a,{slots:r}){const n=Qt(!1),o=Jt(!1),s=Pn(a.name,a);if(s){const d=lo(s,a);be({getPageContentHeight:()=>Sl(s,d),getPageContentWidth:()=>xl(s,d),getPageHeaderHeight:()=>Dl(s,d),getPageFooterHeight:()=>Ml(s,d)}),d&&o&&(d.contentHeight="100%")}const u=(0,t.computed)(()=>({[e]:!0,"is-inner":o})),i=(0,t.computed)(()=>({})),f=(0,t.getCurrentInstance)(),m=(d,y=!1)=>{const z=f?.proxy;z&&typeof z.setNameValidateRules=="function"&&z.setNameValidateRules(d,!0,y)};return(0,t.watch)([()=>a.rules,()=>a.pureDataRules],([d,y],[z,S])=>{if(d&&z){const h=(0,t.toRaw)(z),v=(0,t.toRaw)(d),I=v?Reflect.ownKeys(v):[];(h?Reflect.ownKeys(h):[]).forEach(g=>{I.includes(g)||(v[g]=[])}),m(v)}if(y&&S){const h=(0,t.toRaw)(S),v=(0,t.toRaw)(y),I=v?Reflect.ownKeys(v):[];(h?Reflect.ownKeys(h):[]).forEach(g=>{I.includes(g)||(v[g]=[])}),m(v,!0)}},{deep:!0}),(0,t.onMounted)(()=>{a.rules&&m((0,t.toRaw)(a.rules)),a.pureDataRules&&m((0,t.toRaw)(a.pureDataRules),!0)}),()=>n?r?.default?.():(0,t.h)("div",{class:u.value,style:i.value},[r?.default?.()])}}),{componentName:fs,create:ms,scope:hs}=ie("page"),ps=ms(ds(fs,hs)),Hn=ps;function jn(e){const l=(0,t.unref)(e);return{width:l.offsetWidth,height:l.offsetHeight}}function Il(e){const l=(0,t.unref)(e),a=window.getComputedStyle(l,null),r=parseFloat(a.getPropertyValue("padding-left")),n=parseFloat(a.getPropertyValue("padding-right")),o=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:l.clientWidth-r-n,height:l.clientHeight-o-s}}var mo={headerbar:{},radio:{},checkbox:{}};function gs(e){Object.assign(mo,e)}function ho(){return mo}var vs=(e,l,a,r=!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:a},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(n,o){const s=Qt(!1),u=Jt(!1),i=s?null:pt(),f=i?Bl(i):null;f&&(f.headerMounted=!0);const m=ho(),d=e,y=(0,t.computed)(()=>{const x={[d]:!0,[`${d}--border`]:n.border,[`${d}--fixed`]:n.fixed};return u||(x[`${d}--safe-area-inset-top`]=n.safeAreaInsetTop),x}),z=(0,t.computed)(()=>({[`${d}__inner`]:!0,[`${d}__inner--${n.align}`]:!0})),S=Ye(n.height)?null:he(n.height),h=(0,t.computed)(()=>{const x={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return x;if(i&&f){const V=lt(n.padding??f.headerPadding);if(Object.assign(x,V),Ye(S)||(f.headerHeight=S),x.height=f.headerHeight,x.safeAreaTop=f.safeAreaTop===-1?0:f.safeAreaTop,x.safeAreaTop>0){const M=he(V.top??0);x.top=x.safeAreaTop+M,x.height&&x.height>0&&(x.height=x.height+x.safeAreaTop)}return x}if(Ye(S)||(x.height=S),n.padding){const V=lt(n.padding);Object.assign(x,V)}return x}),v=(0,t.ref)(null),I=()=>f&&v.value&&!In(v.value)?(r||(f.headerAllHeight=jn(v.value).height),f.headerMounted=!0,!0):!1,g=Ze(I,120);let c=null;(0,t.onMounted)(()=>{s||f&&($l(I,50,5,50,!0),window.ResizeObserver&&v.value&&(c=new window.ResizeObserver(g),c.observe(v.value)))}),(0,t.onUnmounted)(()=>{s||f&&(f.headerMounted=!1,c&&(c.disconnect(),c=null))});const C=(0,t.computed)(()=>{const x={};return s||(h.value.height!==null&&h.value.height!==void 0&&(x.height=`${h.value.height}px`),h.value.top!==null&&h.value.top!==void 0&&(x.paddingTop=`${h.value.top}px`),h.value.left!==null&&h.value.left!==void 0&&(x.paddingLeft=`${h.value.left}px`),h.value.right!==null&&h.value.right!==void 0&&(x.paddingRight=`${h.value.right}px`),h.value.bottom!==null&&h.value.bottom!==void 0&&(x.paddingBottom=`${h.value.bottom}px`)),x}),D=(0,t.computed)(()=>{const x=h.value?.height;return Ye(x)||x<0?!0:x>0});function T(){o.emit("back")}function N(){o.emit("click-title")}function A(){o.emit("click-right")}function $(){o.emit("click-right-text")}const j=()=>{if(!n.leftShow)return null;const x=[];if(o.slots.left)x.push(o.slots.left());else{if(o.slots.leftIcon){const V=(0,t.h)("view",{class:"left-icon",onClick:T},[o.slots.leftIcon()]);x.push(V)}else{const V=n.leftIcon??m.headerbar.Left??a,M=(0,t.h)("view",{class:"left-icon",onClick:T},[(0,t.h)(V)]);x.push(M)}if(n.leftText){const V=(0,t.h)("view",{class:"left-text",onClick:T},[n.leftText]);x.push(V)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},x)},b=()=>{if(!n.rightShow)return null;const x=[];if(o.slots.right)x.push(o.slots.right());else{if(n.rightText){const V=(0,t.h)("view",{class:"right-text",onClick:$},[n.rightText]);x.push(V)}if(o.slots.rightIcon){const V=(0,t.h)("view",{class:"right-icon",onClick:A},[o.slots.rightIcon()]);x.push(V)}else if(n.rightIcon){const V=(0,t.h)("view",{class:"right-icon",onClick:A},[(0,t.h)(n.rightIcon)]);x.push(V)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},x)},E=()=>{if(!n.titleShow)return null;const x=[],V=o.slots.default?o.slots.default():null;if(V)x.push(V);else{if(n.title){const M=(0,t.h)("view",{class:"title-text"},[n.title]);x.push(M)}if(o.slots.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:N},[o.slots.titleIcon()]);x.push(M)}else if(n.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:N},[(0,t.h)(n.titleIcon)]);x.push(M)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},x)},Z=()=>{const x=[],V=o.slots.bottom?o.slots.bottom():null;return V&&x.push(V),x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},x)};return()=>{if(s||!D.value)return null;const x=[];if(o.slots.all)x.push(o.slots.all());else{const V=[],M=j();M&&V.push(M);const K=E();K&&V.push(K);const Y=b();if(Y&&V.push(Y),V.length>0){const k=(0,t.h)("view",{class:z.value},V);x.push(k)}const P=Z();P&&x.push(P)}return x.length===0?null:(0,t.h)("view",{class:y.value,style:C.value,ref:v},x)}}}),{componentName:ys,create:bs,scope:ws}=ie("header-bar"),Ss=bs(vs(ys,ws,_e.ArrowLeft)),Kn=Ss;function xs(e,l,a=!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(r,n){const o=Qt(!1),s=Jt(!1),u=o?null:pt(),i=u?Bl(u):null,f=(0,t.computed)(()=>{const g=e,c={[g]:!0,[`${g}--${r.align}`]:!0,[`${g}--border`]:r.border,[`${g}--fixed`]:r.fixed};return s||(c[`${g}--safe-area-inset-bottom`]=r.safeAreaInsetBottom),c}),m=Ye(r.height)?null:he(r.height),d=(0,t.computed)(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(o)return g;if(u&&i){const c=lt(r.padding??i.footerPadding);if(Object.assign(g,c),Ye(m)||(i.footerHeight=m),g.height=i.footerHeight,g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0){const C=he(c.bottom??0);g.bottom=g.safeAreaBottom+C,g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)}return g}if(Ye(m)||(g.height=m),r.padding){const c=lt(r.padding);Object.assign(g,c)}return g}),y=(0,t.computed)(()=>{const g=d.value?.height;return Ye(g)||g<0?!0:g>0}),z=(0,t.ref)(null),S=()=>i&&z.value&&!In(z.value)?(a||(i.footerAllHeight=jn(z.value).height),i.footerMounted=!0,!0):!1,h=Ze(S,120);let v=null;(0,t.onMounted)(()=>{o||i&&($l(S,50,5,50,!0),window.ResizeObserver&&z.value&&(v=new window.ResizeObserver(h),v.observe(z.value)))}),(0,t.onUnmounted)(()=>{o||i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const I=(0,t.computed)(()=>{const g={};return o||(d.value.height!==null&&d.value.height!==void 0&&(g.height=xe(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=xe(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=xe(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=xe(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=xe(d.value.bottom))),g});return()=>{if(o||!y.value)return null;const g=n.slots.default?n.slots.default():[];return(0,t.h)("view",{ref:z,class:f.value,style:I.value},g)}}}}var{componentName:Cs,create:Ns,scope:ks}=ie("footer-bar"),zs=Ns(xs(Cs,ks)),Yn=zs;function Ts(e,l){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:r,attrs:n}){const o=Qt(!1),s=Jt(!1),u=o?null:pt(),i=(0,t.computed)(()=>({[e]:!0})),f=u?Bl(u):null,m=(0,t.computed)(()=>{const h={};if(o)return h;if(u&&f){if(a.padding){const N=lt(a.padding);Object.assign(f.contentPadding,N)}const v=Dl(u,f),I=Ml(u,f);let g="";f.contentHeight?g=`${f.contentHeight}`:g=`${f.height}px`,h.height=g;let c=he((f&&f.contentPadding&&f.contentPadding.top)??-1);(c>=0||v>0)&&(c=c<0?0:c,h.paddingTop=`${v+c}px`);let C=he((f&&f.contentPadding&&f.contentPadding.bottom)??-1);(C>=0||I>0)&&(C=C<0?0:C,h.paddingBottom=`${I+C}px`);const D=he((f&&f.contentPadding&&f.contentPadding.left)??-1);D>=0&&(h.paddingLeft=`${D}px`);const T=he((f&&f.contentPadding&&f.contentPadding.right)??-1);return T>=0&&(h.paddingRight=`${T}px`),h}if(a.padding){const v=lt(a.padding);v.left&&(h.paddingLeft=`${v.left}px`),v.top&&(h.paddingTop=`${v.top}px`),v.right&&(h.paddingRight=`${v.right}px`),v.bottom&&(h.paddingBottom=`${v.bottom}px`)}return h}),d=(0,t.ref)(null),y=()=>{if(f&&d.value){const h=Il(d.value);f.contentInnerHeight=h.height,f.contentInnerWidth=h.width}},z=Ze(y,120);let S=null;return(0,t.onMounted)(()=>{s||o||(requestAnimationFrame(y),window.ResizeObserver&&d.value&&(S=new window.ResizeObserver(z),S.observe(d.value)))}),(0,t.onUnmounted)(()=>{s||o||S&&(S.disconnect(),S=null)}),()=>o?r.default?.():(0,t.h)(a.tag??"view",{...n,ref:d,class:i.value,style:m.value},r)}}}var{componentName:Es,create:_s,scope:$s}=ie("content"),Vs=_s(Ts(Es,$s)),Wn=Vs,$t="GroupStateKey",po=Symbol.for("GroupScopeKey");function Al(){return(0,t.inject)(po,!1)}function Ll(e=!0){(0,t.provide)(po,e)}function Bs(e,l={}){Reflect.ownKeys(l).forEach(a=>{if(typeof a!="string")return;const r=l[a];Ye(r)||(e[a]=r)})}function Ds(e,l={}){const a={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Bs(a,l);const r=(0,t.markRaw)({layout:(0,t.shallowRef)(a),passport:0,order:{index:0}});return e.set($t,r),r}function on(e,l,a=-1,r=-1,n=!1,o,s,u){const i=e.get($t);if(!i)return;const f=e.get("groupLayout")??{};a===-1&&(a=f.column??1),r===-1&&(r=f.gutter??0),o||(o=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const m=he(o),d=he(s);u||(u=f.type??"grid");const y=()=>{const z=l===""||l===-1,S=he(l);let h=ve(a);const v=he(r);if(!z){let c=(S-(h-1)*v)/h;for(;d!==-1&&c>d;)h++,c=(S-(h-1)*v)/h;for(;m!==-1&&h>1&&c<m;)h--,c=(S-(h-1)*v)/h}let I=!1;const g=i.layout;g.value.width=l,g.value.column!==h&&(g.value.column=h,I=!0),g.value.gutter!==v&&(g.value.gutter=v,I=!0),g.value.type!==u&&(g.value.type=u,I=!0),I&&(0,t.triggerRef)(g)};if(n)y();else{const z=++i.passport;setTimeout(()=>{z===i.passport&&y()},50)}}function Pl(e,l=!1){let a;return l?a=e.getForParent($t):a=e.get($t),a.layout}function Fl(e,l=!1){let a;return l?a=e.getForParent($t):a=e.get($t),a.order}function Ga(e,l=1){if(l==="stretch")return-1;const a=ve(l);return a===-1?100:100*a/e}function Rl(e,l,a=1,r=0,n){const o={};let s=0;n?s=he(n):s=Ga(l.column,a),s>0&&(o.width=`${s}%`);const u=Ga(l.column,r);u>0&&(o["margin-left"]=`${u}%`);const i=he(l.gutter)/2;return i>0&&(o["padding-left"]=`${i}px`,o["padding-right"]=`${i}px`),o}function Ol(e,l,a=1,r=0){if(a==="stretch"){const i=e.index%l.column,f=i+(l.column-i);return e.index=e.index+(f-i),{"grid-column":`${i+1} / -1`}}let n=ve(a);if(n===-1){const i=e.index%l.column;return l.column,i==0?e.index=e.index+l.column:e.index=e.index+(l.column-i)+l.column,{"grid-column":"1 / -1"}}if(n>l.column){const i=e.index%l.column;return l.column,i==0?e.index=e.index+l.column:e.index=e.index+(l.column-i)+l.column,{"grid-column":"1 / -1"}}const o=ve(r)%l.column;let s=(e.index+o)%l.column,u=s+n;return u>l.column?(s=0,u=s+n,e.index=e.index+(l.column-s)+n):e.index=e.index+o+n,o>0?{"grid-column":`${s+1} / span ${n}`}:{"grid-column-start":`span ${n}`}}var go=Symbol("RollingStateKey");function Ms(e){(0,t.provide)(go,e)}function Is(){return(0,t.inject)(go,null)}function Nn(e){let l=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(a.getPropertyValue("padding-top")),n=parseFloat(a.getPropertyValue("padding-bottom"));l=e.clientHeight-r-n}else l=e.offsetHeight;return l}function As(e){let l=Nn(e);if(l<=0){const a=e.cloneNode(!0);a.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),l=Nn(a),document.body.removeChild(a)}return l}function Ls(e,l,a){const r=typeof e=="number"?e:parseInt(e),n=typeof l=="number"?l:parseInt(l),o=typeof a=="number"?a:parseInt(a);if(r<=0)return"1fr";const s=(r-(n-1)*o)/n;return s>0?`${s}px`:"1fr"}function vo(e){const l=[];return e.forEach(a=>{a.type===t.Fragment&&Array.isArray(a.children)?l.push(...vo(a.children)):l.push(a)}),l}function Ps(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Un(e){function l(){return vo(e?.()??[]).filter(Ps)}return{getChildren:l}}var Fs={...Ne,...uo,...co};function Rs(e,l,a){return{props:Fs,emits:["update:collapse","header-click"],setup(r,n){const o=Pn(r.prop??r.name,r,fo),s=Ds(o,{type:r.type}),u=Al();Ll(!0);const i=r.rollingDisplay?Is():null,f=(0,t.ref)(null),m=(0,t.computed)(()=>r.rollingDisplay?i&&!i.disabled:!1),d=(0,t.computed)(()=>u&&o?Pl(o,!0).value:null),y=(0,t.getCurrentInstance)(),z=(R,Q=!1)=>{const w=y?.proxy;w&&typeof w.setNameValidateRules=="function"&&w.setNameValidateRules(R,!0,Q)};(0,t.watch)([()=>r.rules,()=>r.pureDataRules],([R,Q],[w,p])=>{if(R&&w){const B=(0,t.toRaw)(w),H=(0,t.toRaw)(R),te=H?Reflect.ownKeys(H):[];(B?Reflect.ownKeys(B):[]).forEach(ae=>{te.includes(ae)||(H[ae]=[])}),z(H)}if(Q&&p){const B=(0,t.toRaw)(p),H=(0,t.toRaw)(Q),te=H?Reflect.ownKeys(H):[];(B?Reflect.ownKeys(B):[]).forEach(ae=>{te.includes(ae)||(H[ae]=[])}),z(H,!0)}},{deep:!0});const S=e,h=(0,t.computed)(()=>{const R={};R.height=V.value;const Q=u?Fl(o,!0):null;if(d.value&&Q){if(d.value.type==="grid"){const w=Ol(Q,d.value,r.span,r.offset);Object.assign(R,w)}else if(d.value.type==="flow"){const w=Rl(Q,d.value,r.span,r.offset,r.width);Object.assign(R,w)}}else r.width&&(R.width=xe(r.width));return R}),v=(0,t.computed)(()=>{const R=s.layout.value.type;return R==="grid"||R==="flow"?{[`${S}--${R}`]:!0,[`${S}--${R}-justify-${r.justify}`]:!0,[`${S}--${R}-align-${r.align}`]:!0,[`${S}--gutter`]:!0}:{[`${S}--${R}`]:!0,[`${S}--gutter`]:!0}}),I=(0,t.computed)(()=>{if(s.layout.value.type==="grid"){let R="";if(r.columnWidth)R=`repeat(auto-fill, ${r.columnWidth})`;else{const Q=Ls(A.value,s.layout.value.column,s.layout.value.gutter);R=`repeat(${s.layout.value.column}, ${Q})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":R}}}),g=(0,t.toRef)(r,"gutter"),c=(0,t.toRef)(r,"column"),C=(0,t.computed)(()=>u||m.value?!0:fe(r.isWrap)),D=[],T=R=>{D.push(R)},N=()=>{let R=D.length;D.splice(0,R)},A=(0,t.ref)(-1),$=R=>{const Q=Il(R).width;Q>0&&Q!==A.value&&(A.value=Q)};on(o,A.value,c.value,g.value,!0,r.minItemWidth,r.maxItemWidth,r.type),r.autoLayout&&(0,t.watch)([A,c,g],([R,Q,w])=>{s.order.index=0,on(o,R,Q,w,!1,r.minItemWidth,r.maxItemWidth,r.type)});const j=(0,t.computed)(()=>M.value?r.expandText??"":r.collapseText??""),b=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),E=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),Z=(0,t.ref)(),x=(0,t.ref)(),V=(0,t.computed)(()=>K.value||xe(r.height)||""),M=(0,t.ref)(!1),K=(0,t.ref)(""),Y=(0,t.ref)(!1);let P=-1;const k=(R,Q=!0)=>{const w=Z.value;if(w&&M.value!==R){if(P=P===-1?As(w):P,Y.value=!0,Q)if(w.style["will-change"]="height",w.ontransitionend=function(){w.ontransitionend=null,this.style["will-change"]="auto",R||(K.value="",Y.value=!1)},R){let p=0;r.collapseHeight?p=he(r.collapseHeight):x.value&&x.value.classList.contains(`${e}__header`)&&(p=x.value.offsetHeight),K.value=`${P}px`,(0,t.nextTick)(()=>{K.value=`${p}px`})}else K.value=`${P}px`;else if(R){let p=0;r.collapseHeight?p=he(r.collapseHeight):x.value&&x.value.classList.contains(`${e}__header`)&&(p=x.value.offsetHeight),K.value=`${p}px`}else Y.value=!1,K.value=`${P}px`;M.value=R,n.emit("update:collapse",R)}};(0,t.watch)(()=>r.collapse,R=>{k(fe(R))});const U=R=>{n.emit("header-click",R)},G=()=>{F()},F=R=>{R=R??!M.value,k(R)};be({toggleCollapse:F,doLayout:()=>{D[0]&&($(D[0]),on(o,A.value,c.value,g.value,!0,r.minItemWidth,r.maxItemWidth,r.type))}});let X=null,L=!0;const ee=R=>{if(r.rules&&z((0,t.toRaw)(r.rules)),r.pureDataRules&&z((0,t.toRaw)(r.pureDataRules),!0),!!ht&&(R&&k(fe(r.collapse),!1),r.autoLayout&&Array.isArray(D)&&D.length>0)){const Q=D[0];if($(Q),window.ResizeObserver){const w=Ze(()=>$(Q),120);X=new window.ResizeObserver(w),X.observe(Q)}}},le=()=>{X?.disconnect(),X=null},W=!m.value||i?.acquire();W&&(f.value=m.value?!0:null),(0,t.onMounted)(()=>{if(W&&(ee(L),L=!1),m.value&&i){let R=null,Q=i.initialHeight;i.observe(Z.value,w=>{if(w!==f.value)if(w)f.value=!0,M.value||(K.value=""),R=setTimeout(()=>{R=null,f.value!==!1&&(ee(L),L=!1)},100);else{if(R!==null&&clearTimeout(R),f.value=!1,!M.value)if(L)K.value=i.initialHeight;else{let p=Nn(Z.value);p<=0?K.value=Q:(K.value=`${p}px`,Q=K.value)}L||le()}})}}),(0,t.onUnmounted)(()=>{X?.disconnect(),i&&i.unobserve(Z.value)});const O=(R="right")=>{const Q=[];if(j.value){const B=(0,t.h)("span",{class:b.value},[j.value]);Q.push(B)}const w={class:E.value},p=a(r.collapseIcon,w);return p&&Q.push(p),Q.length>0?(0,t.h)("div",{class:{[`${S}__header-collapse`]:!0,[`is-${R}`]:!0},onClick:G},Q):null},J=(R,Q,w,p)=>{const B={...v.value};if(Q===0&&(B[`${S}__first`]=!0),w>=p-1&&(B[`${S}__last`]=!0),C.value===!1){const H=n.attrs.class;H&&(B[`${H}`]=!0)}return(0,t.h)("div",{ref:T,key:`${Q}`,class:B,style:I.value},R)};return()=>{const R=r.prop??r.name;if(m.value&&f.value!==!0)return(0,t.h)(r.tag||"div",{ref:Z,prop:R,class:{[`${S}`]:!0,"is-collapse":Y.value},style:h.value},[]);s.order.index=0;const Q=[];let w=0;if(n.slots.header){const te=(0,t.h)("div",{key:`${w++}`,ref:x,class:{[`${S}__header`]:!0,[`${S}__first`]:!0},onClick:U},[n.slots.header()]);Q.push(te)}else{const te=[],ae=r.collapsePosition==="left";if(ae&&r.showCollapse){const re=O("left");re&&te.push(re)}if(r.title||n.slots.title){if(r.showMark){const re={class:{[`${S}__header-mark`]:!0}};r.markColor&&(re.style={background:r.markColor});const ce=(0,t.h)("div",re);te.push(ce)}if(n.slots.title){const re=(0,t.h)("div",{class:{[`${S}__header-title`]:!0}},[n.slots.title()]);te.push(re)}else if(r.title){const re=(0,t.h)("div",{class:{[`${S}__header-title`]:!0}},[r.title]);te.push(re)}}if(n.slots.toolbar&&te.push(n.slots.toolbar()),!ae&&r.showCollapse){const re=O("right");re&&te.push(re)}if(te.length>0){const re=(0,t.h)("div",{key:`${w++}`,ref:x,class:{[`${S}__header`]:!0,[`${S}__first`]:!0},onClick:U},te);Q.push(re)}}N();const{getChildren:p}=Un(n.slots.default),B=p(),H=s.layout.value.type;if(H==="grid"){const te=J(B,w++,0,B.length);Q.push(te)}else if(H==="flow"){const te=J(B,w++,0,B.length);Q.push(te)}else for(let te=0;te<B.length;te++){const ae=B[te],re=J([ae],w++,te,B.length);Q.push(re)}return C.value?(0,t.h)(r.tag||"div",{ref:Z,prop:R,class:{[`${S}`]:!0,"is-collapse":Y.value},style:h.value},[Q]):Q}}}}var{componentName:Os,create:qs,scope:Hs}=ie("group"),js=(e,l)=>(e=e??_e.ArrowUp,(0,t.h)(_.ElIcon,l,{default:()=>[(0,t.h)(e)]})),Ks=qs(Rs(Os,Hs,js)),Gn=Ks;function Ys(e){return e===window}var Ws=/matrix\((.+)\)/,Xn=e=>{const l=(0,t.unref)(e);if(!l)return{x:0,y:0};if(Ys(l))return{x:0,y:0};let a=0,r=0,n=l;for(;n!==null;)a+=n.offsetLeft,r+=n.offsetTop,n=n.offsetParent;let o=0,s=0,u=0,i=0;for(n=l;n!==document;){s+=n.scrollTop,o+=n.scrollLeft;const{transform:f}=window.getComputedStyle(n);if(f){const m=Ws.exec(f);if(m){let d=m[1].split(/\s*,\s*/);d.length==6&&(u+=Number(d[4]),i+=Number(d[5]))}}n=n.parentNode}return a-=o,r-=s,a+=u,r+=i,{x:a,y:r}},Us=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const l=this.watchedListeners.indexOf(e);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},Gs=class{monitorRegister=new WeakMap;watch(e,l){let a=e.parentNode;const r=document.body.parentNode;for(;a&&a!==r;){let n=this.monitorRegister.get(a);n||(n=new Us,a.addEventListener("scroll",n.listen),a===document.body&&a.addEventListener("resize",n.listen),this.monitorRegister.set(a,n)),n.add(l),a=a.parentNode}}unwatch(e,l){let a=e.parentNode;const r=document.body.parentNode;for(;a&&a!==r;){let n=this.monitorRegister.get(a);n&&(n.remove(l),n.size()===0&&(this.monitorRegister.delete(a),a.removeEventListener("scroll",n.listen),a===document.body&&a.removeEventListener("resize",n.listen))),a=a.parentNode}}},Kt=new Gs,yo={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:Xs,create:Zs}=ie("price"),Js=Zs({props:{...yo},setup(e){const l=(0,t.computed)(()=>({[Xs]:!0})),a=(0,t.computed)(()=>e.needSymbol?e.symbol:""),r=(0,t.computed)(()=>ut(e.price)==0?"":zl(e.price,e.decimalLength,!0,ve(e.digits),e.separator));return{classes:l,showSymbol:a,intText:(0,t.computed)(()=>{let n=r.value;if(n.length==0)return"";let o=n.indexOf(".");return n.substring(0,o)}),decimalText:(0,t.computed)(()=>{let n=r.value;if(n.length==0)return"";let o=n.indexOf(".");return n.substring(o+1)})}}}),Re=(e,l)=>{const a=e.__vccOpts||e;for(const[r,n]of l)a[r]=n;return a},Qs=["innerHTML"],eu=["innerHTML"];function tu(e,l,a,r,n,o){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Qs)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--${e.size}`)},(0,t.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,t.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,eu)):(0,t.createCommentVNode)("",!0)],2)}var ql=Re(Js,[["render",tu]]),{componentName:sn,create:lu}=ie("hint-text"),nu=lu({components:{Price:ql},props:{...yo,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,l){const a=(0,t.ref)({top:null,right:null,bottom:null,left:null}),r=(0,t.ref)({x:0,y:0}),n=(0,t.ref)(0),o=(0,t.ref)(0),s=(0,t.ref)(e.placement),u=(0,t.ref)(!1),i=(0,t.ref)(null),f=(b,E,Z,x,V,M)=>{const K=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight,P=b.split("-");let k=[];P[0]==="top"?k=["top","bottom","right","left"]:P[0]==="bottom"?k=["bottom","top","right","left"]:P[0]==="left"?k=["left","top","bottom","right"]:P[0]==="right"&&(k=["right","top","bottom","left"]);const U={top:null,right:null,bottom:null,left:null},G=[];for(let F=0;F<k.length;F++){const q=k[F];if(G[0]=q,P[1]&&(G[1]=P[1]),q==="top"){const X=E.y-M-e.arrowSize-e.offset;if(X>=0){U.top=X;let L=0;P[1]==="start"?L=E.x:P[1]==="end"?L=E.x+Z-V:L=E.x+Z/2-V/2;const ee=K-L-V;ee<0?(L+=ee,d.value=-ee):d.value=0,U.left=L<0?0:L;break}}else if(q==="bottom"){const X=E.y+x+e.arrowSize+e.offset;if(X+M<=Y){U.top=X;let L=0;P[1]==="start"?L=E.x:P[1]==="end"?L=E.x+Z-V:L=E.x+Z/2-V/2;const ee=K-L-V;ee<0?(L+=ee,d.value=-ee):d.value=0,U.left=L<0?0:L;break}}else if(q==="left"){const X=E.x-V-e.arrowSize-e.offset;if(X>=0){U.left=X;let L=0;P[1]==="start"?L=E.y:P[1]==="end"?L=E.y+x-M:L=E.y+x/2-M/2,U.top=L<0?0:L;break}}else if(q==="right"){const X=E.x+Z+e.arrowSize+e.offset;if(X+V<=K){U.left=X;let L=0;P[1]==="start"?L=E.y:P[1]==="end"?L=E.y+x-M:L=E.y+x/2-M/2,U.top=L<0?0:L;break}}}return{bestPlacement:G.join("-"),bestInsetRect:U}},m=(b,E,Z=10)=>{if(!ht||E===!1||!b)return;r.value=Xn(e.reference),n.value=e.reference.offsetWidth,o.value=e.reference.offsetHeight;const x=i.value.offsetHeight,V=i.value.offsetWidth,{bestPlacement:M,bestInsetRect:K}=f(e.placement,r.value,n.value,o.value,V,x);s.value=M,a.value=K,u.value=!0},d=(0,t.ref)(0),y=Ze(()=>{m(e.message,e.visible)},10),z=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,b=>{z.value=b});const S=(0,t.computed)(()=>z.value&&h.value),h=(0,t.ref)(!0),v=Ze(b=>{const E=b[0];E&&(h.value=E.isIntersecting)},10),I=new IntersectionObserver(v);(0,t.watch)([()=>e.message,()=>e.visible],([b,E])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{m(e.message,e.visible)},0),Kt.watch(e.reference,y),I.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Kt.unwatch(e.reference,y),I.unobserve(e.reference),I.disconnect()});const g=(0,t.computed)(()=>{const b={[sn]:!0};return s.value.startsWith("top")?b["is-top"]=!0:s.value.startsWith("right")?b["is-right"]=!0:s.value.startsWith("bottom")?b["is-bottom"]=!0:s.value.startsWith("right")&&(b["is-right"]=!0),e.size==="small"?b["is-small"]=!0:e.size==="large"&&(b["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(b[`${e.customClass}`]=!0),b}),c=(0,t.computed)(()=>{const b={};return a.value.top!==null&&(b.top=`${a.value.top}px`),a.value.right!==null&&(b.right=`${a.value.right}px`),a.value.bottom!==null&&(b.bottom=`${a.value.bottom}px`),a.value.left!==null&&(b.left=`${a.value.left}px`),e.autoFit&&(b["min-width"]=`${n.value}px`),b["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(b.opacity="1"),e.transition||(b.transition="none"),e.zIndex&&(b["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(b,e.customStyle),b}),C=(0,t.computed)(()=>{const b=[`${sn}__content`];return e.customTextClass&&b.push(e.customTextClass),b}),D=(0,t.computed)(()=>{const b={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(b,e.customTextStyle),b}),T=(0,t.computed)(()=>({[`${sn}__arrow`]:!0})),N=(0,t.computed)(()=>{const b={};return e.showArrow?(b.width=`${e.arrowSize}px`,b.height=`${e.arrowSize}px`,s.value==="top"?(b.left="50%",b.bottom=`-${e.arrowSize}px`,b.transform=" translate(-50%, 0%)"):s.value==="top-start"?(b.left=`${e.arrowOffset+d.value}px`,b.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(b.right=`${e.arrowOffset-d.value}px`,b.bottom=`-${e.arrowSize}px`):s.value==="right"?(b.left=`-${e.arrowSize}px`,b.top="50%",b.transform=" translate(0%, -50%)"):s.value==="right-start"?(b.left=`-${e.arrowSize}px`,b.top=`${e.arrowOffset}px`):s.value==="right-end"?(b.left=`-${e.arrowSize}px`,b.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(b.left="50%",b.top=`-${e.arrowSize}px`,b.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(b.left=`${e.arrowOffset+d.value}px`,b.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(b.right=`${e.arrowOffset-d.value}px`,b.top=`-${e.arrowSize}px`):s.value==="left"?(b.right=`-${e.arrowSize}px`,b.top="50%",b.transform=" translate(0%, -50%)"):s.value==="left-start"?(b.right=`-${e.arrowSize}px`,b.top=`${e.arrowOffset}px`):s.value==="left-end"&&(b.right=`-${e.arrowSize}px`,b.bottom=`-${e.arrowOffset}px`),b):{display:"none"}}),A=(0,t.computed)(()=>S.value&&e.closeOnClick),$=(0,t.computed)(()=>{const b={};return e.zIndex&&(b["z-index"]=`${e.zIndex}`),b});return{show:S,tipRef:i,classes:g,styles:c,textClasses:C,textStyles:D,arrowClasses:T,arrowStyles:N,overlayShow:A,overlayStyle:$,onClickOverlay:()=>{z.value=!1,l.emit("update:visible",!1)}}}}),au=["innerHTML"];function ru(e,l,a,r,n,o){const s=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:l[0]||(l[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,au))],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.arrowClasses),style:(0,t.normalizeStyle)(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}var bo=Re(nu,[["render",ru]]),wo=class{seed=new Date().getTime();constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},kn={},ou=new wo,Tt=new Map,Nl=e=>{if(e){const l=document.getElementById(e);Tt.delete(e),l&&l.parentNode?.removeChild(l)}else{for(const l of Tt.keys()){const a=document.getElementById(l);a&&a.parentNode?.removeChild(a)}Tt.clear()}},iu=e=>{e.unmount=Nl;const l=document.getElementById(e.id);if(l){const a=Tt.get(e.id);a?e={...kn,...a,...e}:e={...kn,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(bo,e),l)}return e.id},su=e=>{e.unmount=Nl;let l=e.id??`hinttext_${ou.get()}`;e={...kn,...e},e.id=l,Tt.set(l,e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(bo,e),a),document.body.appendChild(a),l},uu=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Pe={show(e,l,a={},r=!0){uu(l);const n=a.id;return n&&Tt.has(n)?iu({...a,message:l,reference:e}):(r&&Nl(),su({...a,message:l,reference:e}))},hide(e){Nl(e)},install(e){e.config.globalProperties.$hintText=Pe}};function cu(e,l,a,r=!1){return{inheritAttrs:!0,props:{...Ne,...Te},emits:["appear","disappear"],setup(n,o){const s=n.prop??o.attrs.name;ze({componentName:e,validate:!1},s);const u=pt(),i=Al();Ll(!1);const f=(0,t.computed)(()=>i&&u?Pl(u,!1).value:null),m=e,d=(0,t.ref)(null),y=(0,t.computed)(()=>{const p={[m]:!0,[`${m}__gutter`]:f.value&&f.value.type!=="flow",[`${m}__stretch`]:n.span==="stretch",[`${m}__input--border`]:fe(n.hasBorder)};if(p[n.errorMarkClass]=!!M.value,p[n.warnMarkClass]=!!x.value,p[n.infoMarkClass]=!!E.value,typeof d.value=="function"){const B=d.value(s);p[B]=!0}else if(typeof d.value=="string"){const B=d.value;p[B]=!0}return p}),z=(0,t.ref)(null),S=(0,t.computed)(()=>{const p={};if(n.width)n.width!=="auto"&&(p.width=xe(n.width));else{const B=i&&u?Fl(u,!1):null;if(f.value&&B){if(f.value.type==="grid"){const H=Ol(B,f.value,n.span,n.offset);Object.assign(p,H)}else if(f.value.type==="flow"){const H=Rl(B,f.value,n.span,n.offset,n.width);Object.assign(p,H)}}}if(typeof z.value=="function"){const B=z.value(s);B&&Object.assign(p,B)}else if(z.value&&typeof z.value=="object"){const B=z.value;Object.assign(p,B)}return p}),h=(0,t.ref)(null),v=(0,t.computed)({get:()=>h.value??fe(n.isRequired),set:p=>{h.value=p}}),I=()=>typeof n.label=="string"&&n.label.length>0||typeof o.slots.label=="function",g=$e((0,t.toRef)(n,"labelPosition"),"labelPosition",qe.Near),c=(0,t.computed)(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),C=(0,t.computed)(()=>({[`${m}__main`]:!0,[`${m}__main--${c.value}`]:!0})),D=(0,t.computed)(()=>({label:!0,[`label--${c.value}`]:!0})),T=$e((0,t.toRef)(n,"labelWidth"),"labelWidth",qe.Near),N=(0,t.computed)(()=>T&&T.value?{width:xe(T.value)}:{}),A=(0,t.computed)(()=>({"label--string":!0,"label--required":v.value})),$=(0,t.computed)(()=>({content:!0,[n.contentClass]:!0})),j=(0,t.computed)(()=>({...n.contentStyle})),b=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(p){v.value=p},setErrorTip(p){b.errorTip=p},setErrorIcon(p){b.errorIcon=p},setWarnTip(p){b.warnTip=p},setWarnIcon(p){b.warnIcon=p},setInfoTip(p){b.infoTip=p},setInfoIcon(p){b.infoIcon=p},setCustomClassName(p){d.value=p},setCustomStyle(p){z.value=p}});const E=(0,t.computed)(()=>n.infoTip||b.infoTip),Z=(0,t.computed)(()=>n.infoIcon||b.infoIcon),x=(0,t.computed)(()=>n.warnTip||b.warnTip),V=(0,t.computed)(()=>n.warnIcon||b.warnIcon),M=(0,t.computed)(()=>n.errorTip||b.errorTip),K=(0,t.computed)(()=>n.errorIcon||b.errorIcon),Y=(0,t.computed)(()=>M.value?"error":x.value?"warn":E.value?"info":""),P=()=>Y.value.length>0,k=(0,t.computed)(()=>Y.value==="error"?M.value:Y.value==="warn"?x.value:Y.value==="info"?E.value:""),U=(0,t.computed)(()=>Y.value==="error"?K.value:Y.value==="warn"?V.value:Y.value==="info"?Z.value:null),G=(0,t.computed)(()=>{const p={[`${m}__tip`]:!0,[`${m}__tip--${Y.value}`]:!0,[`${m}--animate`]:!0};return Y.value==="error"&&n.errorClass?p[`${n.errorClass}`]=!0:Y.value==="warn"&&n.warnClass?p[`${n.warnClass}`]=!0:Y.value==="info"&&n.infoClass&&(p[`${n.infoClass}`]=!0),p}),F=(0,t.computed)(()=>{const p={};return g&&g.value==="top"||!I()?p["padding-left"]="0px":T&&T.value&&(p["padding-left"]=xe(T.value)),p}),q=(0,t.ref)();let X="";(0,t.watch)([()=>n.hintVisible,()=>n.hintText,()=>n.hintType,()=>n.hintProps],([p,B,H,te])=>{q.value&&(p&&!me(B)?X?a.show(q.value,B,{...te,id:X,type:H},!0):X=a.show(q.value,B,{...te,type:H},!0):a.hide(X))});let L=null;const ee=()=>{L||!q.value||(L=new IntersectionObserver(p=>{let B=!1;for(let H of p)if(H.intersectionRatio>0){B=!0,B&&o.emit("appear",H);break}B||o.emit("disappear")}),L.observe(q.value))},le=()=>{!L||!q.value||(L.unobserve(q.value),L=null)};(0,t.watch)(()=>fe(n.appearListen),p=>{p?ee():le()}),(0,t.onMounted)(()=>{fe(n.appearListen)&&ee()}),(0,t.onUnmounted)(le);const W=()=>{if(!I())return null;const p=[],B=o.slots?.label?.()??n.label,H=(0,t.h)("div",{class:A.value},[B]);if(p.push(H),o.slots.fixedPreTip){const te=o.slots.fixedPreTip();p.push(te)}return(0,t.h)("div",{class:D.value,style:N.value},p)},O=()=>{const p=[];if(o.slots.prepend){const B=o.slots.prepend();p.push(B)}if(o.slots.default){const B=o.slots.default();p.push(B)}if(o.slots.append){const B=o.slots.append();p.push(B)}if(o.slots.fixedTip){const B=(0,t.h)("div",{class:[`${m}__fixed-tip`]},[o.slots.fixedTip()]);p.push(B)}return(0,t.h)("div",{ref:q,class:$.value,style:j.value},p)},J=()=>{const p=U.value;return p?typeof p=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[p()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(p)]):null},R=()=>{const p=k.value;return p?typeof p=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[p()]):(0,t.h)("div",{class:"fox-item__tip--text"},[p]):null},Q=()=>{if(!P())return null;const p=[],B=J();B&&p.push(B);const H=R();return H&&p.push(H),(0,t.h)("div",{class:G.value,style:F.value},p)},w=()=>o.slots?.hide?.()??null;return()=>{const p=[],B=[],H=W();H&&B.push(H);const te=O();te&&B.push(te);const ae=(0,t.h)("div",{class:C.value},B);p.push(ae);const re=Q();re&&p.push(re);const ce=w();return ce&&p.push(ce),(0,t.h)("div",{class:y.value,style:S.value,prop:n.prop},p)}}}}var{componentName:du,create:fu,scope:mu}=ie("item"),hu=fu(cu(du,mu,Pe,!1)),el=hu,Zn={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function pu(e,l){return{props:{...Zn},setup(a,r){const n=pt(),o=Al();Ll(!1);const s=(0,t.computed)(()=>o&&n?Pl(n,!1).value:null),u=e,i=(0,t.computed)(()=>({[u]:!0,[`${u}__gutter`]:s.value&&s.value.type!=="flow",[`${u}__stretch`]:a.span==="stretch"})),f=(0,t.computed)(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=xe(a.width));else{const d=o&&n?Fl(n,!1):null;if(s.value&&d)if(s.value.type==="grid"){const y=Ol(d,s.value,a.span,a.offset);Object.assign(m,y)}else if(s.value.type==="flow"){const y=Rl(d,s.value,a.span,a.offset,a.width);Object.assign(m,y)}else return a.width&&(m.width=xe(a.width)),m}return m});return()=>{const m={class:i.value,style:f.value};return r.slots&&typeof r.slots.default=="function"?(0,t.h)("div",m,r.slots.default()):(0,t.h)("div",m)}}}}var{componentName:gu,create:vu,scope:yu}=ie("slot-item"),bu=vu(pu(gu,yu)),Hl=bu,zn={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 wu(e,l){return{props:{...zn},setup(a,r){const n=e,o=(0,t.computed)(()=>({[n]:!0,[`${n}__stretch`]:a.span==="stretch",[`${n}__${a.align}`]:!0})),s=pt(),u=Al();Ll(!1);const i=(0,t.computed)(()=>{const f={};if(a.width)a.width!=="auto"&&(f.width=xe(a.width));else if(u&&s){const m=Pl(s,!1),d=Fl(s,!1);if(m.value&&d)if(m.value.type==="grid"){const y=Ol(d,m.value,a.span,a.offset);Object.assign(f,y)}else if(m.value.type==="flow"){const y=Rl(d,m.value,a.span,a.offset,a.width);Object.assign(f,y)}else a.width&&(f.width=xe(a.width))}return a.gutter&&(f.gap=xe(a.gutter)),f});return()=>{const f=[];if(r.slots.default){const m=r.slots.default();if(a.divide)for(let d=0;d<m.length;d++){if(d>0){const y=(0,t.h)("div",{class:{[`${n}__divide`]:!0}});f.push(y)}f.push(m[d])}else Reflect.apply([].push,f,m)}return(0,t.h)("div",{class:o.value,style:i.value},f)}}}}var{componentName:Su,create:xu,scope:Cu}=ie("row-item"),Nu=xu(wu(Su,Cu)),jl=Nu;function ku(e,l){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const r=a.getBoundingClientRect().width;if(r>0){l(r);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const n=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),l(n)},500)}var zu={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function Tu(e,l,a,r=!1){return{props:{...zu},emits:["click"],setup(n,o){const s=(0,t.ref)(null),u=(0,t.computed)(()=>{const c={[`${e}`]:!0,"is-truncated":n.truncated};return n.type&&(c[`${e}--${n.type??"default"}`]=!0),n.size&&(c[`${e}--${n.size}`]=!0),c}),i=(0,t.computed)(()=>{const c={},C=n.textColor??n.color;return C&&(c.color=C),c}),f=(c,C)=>{let D=null;if(typeof n.highlightFilter=="string"&&n.highlightFilter.length>0){const T=n.highlightFilter;c.indexOf(T)!==-1&&(C.innerHTML=c.replace(new RegExp(T,"g"),`<span>${T}</span>`),C.class["is-highlight"]=!0,D=(0,t.h)(n.tag,C))}else if(typeof n.highlightFilter=="function"){const T=n.highlightFilter(c);T&&(C.innerHTML=T,C.class["is-highlight"]=!0,D=(0,t.h)(n.tag,C))}return D},m=c=>{o.emit("click",c)};let d="";const y=()=>{const c=s.value;if(!c)return;const C=c.clientWidth;ku(c,D=>{const T=c.innerHTML??"";me(T)||D<C||(d?a?.show(c,T,{type:"text",id:d,showArrow:n.showArrow},!0):d=a?.show(c,T,{type:"text",showArrow:n.showArrow},!0)??"")})},z=()=>{d&&a?.hide(d)};let S=null;const h=c=>{S||(S=setTimeout(()=>{y(),S=null},n.showAfter??0))},v=c=>{S&&(clearTimeout(S),S=null),setTimeout(()=>{z()},n.hideAfter??0)},I=()=>{const c=s.value;c&&(c.addEventListener("mouseover",h),c.addEventListener("mouseleave",v))},g=()=>{const c=s.value;c&&(c.removeEventListener("mouseover",h),c.removeEventListener("mouseleave",v))};return(0,t.onMounted)(()=>{!fe(n.showOverflowTooltip)||!a||I()}),(0,t.onBeforeUnmount)(()=>{!fe(n.showOverflowTooltip)||!a||g()}),()=>{const c={onClick:m,class:u.value,style:i.value,ref:s};let C=null;if(fe(n.numberFormat)&&typeof o.slots.default=="function"){const T=o.slots.default();if(Array.isArray(T)&&T.length===1){const N=T[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const A=ve(n.digits),$=ve(n.decimalLength),j=fe(n.autoPadding);let b=`${T[0].children}`,E=b.split("").reverse().join("");E=zl(E,$,j,A,n.separator),b=E.split("").reverse().join(""),n.highlightFilter!==void 0&&(C=f(b,c)),C||(c.innerHTML=b,C=(0,t.h)(n.tag,c))}}}else{if(n.highlightFilter!==void 0&&typeof o.slots.default=="function"){const T=o.slots.default();if(Array.isArray(T)&&T.length===1){const N=T[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const A=`${T[0].children}`;C=f(A,c),C||(c.innerHTML=A,C=(0,t.h)(n.tag,c))}}}C||(C=(0,t.h)(n.tag,c,{default:o.slots.default}))}if(!n.mark&&!o.slots.mark)return C;const D=[];if(o.slots.mark){const T={[`${e}__mark-wrap`]:!0};n.type&&(T[`${e}__mark-wrap--${n.type}`]=!0);const N={},A=n.color;A&&(N.color=A);const $=(0,t.h)("view",{onClick:m,class:T,style:N},{default:o.slots.mark});D.push($)}else{const T={[`${e}__mark`]:!0};n.type&&(T[`${e}__mark--${n.type??"default"}`]=!0);const N={},A=n.color;A&&(N["background-color"]=A);const $=(0,t.h)("view",{onClick:m,class:T,style:N});D.push($)}if(n.divide){const T=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});D.push(T)}return D.push(C),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":n.textPosition==="left","text-right":n.textPosition==="right"}},D)}}}}var{componentName:Eu,create:_u,scope:$u}=ie("text"),Vu=_u(Tu(Eu,$u,Pe,!1)),Vt=Vu,Bu={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 Du(e,l,a=!1){return{props:{...Bu},emits:["update:visible"],setup(r,{emit:n,slots:o,expose:s}){const u=(0,t.ref)({top:null,right:null,bottom:null,left:null}),i=(0,t.ref)(0),f=(0,t.ref)(0),m=(0,t.ref)(0),d=(0,t.ref)(0),y=(0,t.ref)(r.placement),z=(0,t.ref)(!1),S=(0,t.ref)(!1),h=(0,t.ref)(null),v=()=>typeof r.reference=="string"?document.querySelector(r.reference):r.reference,I=(k,U,G,F,q,X,L,ee=!0)=>{const le=document.documentElement.clientWidth||document.body.clientWidth,W=document.documentElement.clientHeight||document.body.clientHeight,O=k.split("-");let J=[];ee?O[0]==="top"?J=["top","bottom","right","left"]:O[0]==="bottom"?J=["bottom","top","right","left"]:O[0]==="left"?J=["left","top","bottom","right"]:O[0]==="right"&&(J=["right","top","bottom","left"]):J=[k[0]];const R={top:null,right:null,bottom:null,left:null},Q=[];for(let w=0;w<J.length;w++){const p=J[w];if(Q[0]=p,O[1]&&(Q[1]=O[1]),p==="top"){const B=G-L-r.arrowSize/2-r.offset;if(B>=0){R.top=B;let H=0;O[1]==="start"?H=U:O[1]==="end"?H=U+F-X:H=U+F/2-X/2;const te=le-H-X;te<0?(H+=te,c.value=-te):c.value=0,R.left=H<0?0:H;break}}else if(p==="bottom"){const B=G+q+r.arrowSize/2+r.offset;if(B+L<=W){R.top=B;let H=0;O[1]==="start"?H=U:O[1]==="end"?H=U+F-X:H=U+F/2-X/2;const te=le-H-X;te<0?(H+=te,c.value=-te):c.value=0,R.left=H<0?0:H;break}}else if(p==="left"){const B=U-X-r.arrowSize/2-r.offset;if(B>=0){R.left=B;let H=0;O[1]==="start"?H=G:O[1]==="end"?H=G+q-L:H=G+q/2-L/2,R.top=H<0?0:H;break}}else if(p==="right"){const B=U+F+r.arrowSize/2+r.offset;if(B+X<=le){R.left=B;let H=0;O[1]==="start"?H=G:O[1]==="end"?H=G+q-L:H=G+q/2-L/2,R.top=H<0?0:H;break}}}return{bestPlacement:Q.join("-"),bestInsetRect:R}},g=()=>{const k=r.visible,U=r.autoFit;if(!ht||k===!1)return;if(r.reference){const L=v(),ee=Xn(L);i.value=ee.x,f.value=ee.y,m.value=L.offsetWidth,d.value=L.offsetHeight}else r.referenceInset&&(i.value=r.referenceInset.left,f.value=r.referenceInset.top,m.value=r.referenceInset.right-r.referenceInset.left,d.value=r.referenceInset.bottom-r.referenceInset.top);const G=h.value.offsetWidth,F=h.value.offsetHeight,{bestPlacement:q,bestInsetRect:X}=I(r.placement,i.value,f.value,m.value,d.value,G,F,U);y.value=q,u.value=X},c=(0,t.ref)(0),C=Ze(()=>{g()},10),D=(0,t.ref)(r.visible);(0,t.watch)([()=>r.visible],([k])=>{D.value=k,k?(z.value=k,setTimeout(()=>{g(),S.value=!0},0)):S.value=!1});const T=(0,t.computed)(()=>D.value&&N.value),N=(0,t.ref)(!0),A=Ze(k=>{const U=k[0];U&&(N.value=U.isIntersecting)},10),$=new IntersectionObserver(A);(0,t.watch)([()=>r.reference,()=>r.referenceInset],([k,U],[G,F])=>{!k&&!U||(setTimeout(()=>{g()},0),r.autoFit&&(G&&(Kt.unwatch(G,C),$.unobserve(G)),k&&(Kt.watch(k,C),$.observe(k))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{r.reference&&(Kt.unwatch(r.reference,C),$.unobserve(r.reference),$.disconnect())});const j=(0,t.computed)(()=>{const k={[e]:!0};return y.value.startsWith("top")?k["is-top"]=!0:y.value.startsWith("right")?k["is-right"]=!0:y.value.startsWith("bottom")?k["is-bottom"]=!0:y.value.startsWith("left")&&(k["is-left"]=!0),k[`is-${r.effect}`]=!0,!S.value&&T.value&&(k["is-opacity"]=!0),S.value&&T.value&&(k["is-show"]=!0),T.value||(k["is-hide"]=!0),r.customClass&&typeof r.customClass=="string"&&(k[`${r.customClass}`]=!0),k}),b=(0,t.computed)(()=>{const k={};return u.value.top!==null&&(k.top=`${u.value.top}px`),u.value.right!==null&&(k.right=`${u.value.right}px`),u.value.bottom!==null&&(k.bottom=`${u.value.bottom}px`),u.value.left!==null&&(k.left=`${u.value.left}px`),r.width&&(k.width=r.width),r.zIndex&&(k["z-index"]=`${r.zIndex}`),r.customStyle&&typeof r.customStyle=="object"&&Object.assign(k,r.customStyle),k}),E=()=>{D.value=!1,n("update:visible",!1)},Z=()=>r.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:E}):null,x=()=>{let k=null;return o.title?k=(0,t.h)("div",{class:`${e}__title`},{default:o.title}):r.title&&(k=(0,t.h)("div",{class:`${e}__title`},[r.title])),k},V=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),M=(0,t.computed)(()=>{const k={};return r.showArrow?(k.width=`${r.arrowSize}px`,k.height=`${r.arrowSize}px`,y.value==="top"?(k.left="50%",k.bottom="0",k.transform="translate(-50%, 50%)"):y.value==="top-start"?(k.left=`${r.arrowOffset+c.value}px`,k.bottom="0",k.transform="translate(-50%, 50%)"):y.value==="top-end"?(k.right=`${r.arrowOffset-c.value}px`,k.bottom="0",k.transform="translate(-50%, 50%)"):y.value==="right"?(k.left="0",k.top="50%",k.transform="translate(-50%, -50%)"):y.value==="right-start"?(k.left="0",k.top=`${r.arrowOffset}px`,k.transform="translate(-50%, 50%)"):y.value==="right-end"?(k.left="0",k.bottom=`-${r.arrowOffset}px`,k.transform="translate(-50%, 50%)"):y.value==="bottom"?(k.left="50%",k.top="0",k.transform="translate(-50%, -50%)"):y.value==="bottom-start"?(k.left=`${r.arrowOffset+c.value}px`,k.top="0",k.transform="translate(-50%, -50%)"):y.value==="bottom-end"?(k.right=`${r.arrowOffset-c.value}px`,k.top="0",k.transform="translate(-50%, -50%)"):y.value==="left"?(k.right="0",k.top="50%",k.transform="translate(50%, -50%)"):y.value==="left-start"?(k.right="0",k.top=`${r.arrowOffset}px`,k.transform="translate(50%, -50%)"):y.value==="left-end"&&(k.right="0",k.bottom=`-${r.arrowOffset}px`,k.transform="translate(50%, -50%)"),k):{display:"none"}}),K=()=>(0,t.h)("div",{class:V.value,style:M.value}),Y=()=>{D.value===!1&&(z.value=!1)},P=k=>{if(!h.value||D.value===!1)return;const{relatedTarget:U}=k;h.value.contains(U)||(D.value=!1,n("update:visible",!1))};return s({doLayout:g}),()=>{if(!z.value)return null;const k=[],U=Z();U&&k.push(U);const G=[],F=x();if(F&&G.push(F),o.default){const ee=o.default();G.push(ee)}const q=K();q&&G.push(q);const X={ref:h,class:j.value,style:b.value,onAnimationend:Y};r.leaveHide&&(X.onMouseleave=P);const L=(0,t.h)("div",X,{default:()=>G});return k.push(L),(0,t.h)(t.Teleport,{to:r.teleport,disabled:r.teleportDisable},{default:()=>k})}}}}var{componentName:Mu,create:Iu,scope:Au}=ie("popover-dialog"),Lu=Iu(Du(Mu,Au,!1)),Kl=Lu,Pu={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 Fu(e,l,a){return{props:{...zn,...Pu},emits:["click"],setup(r,{slots:n,attrs:o}){const{toLocaleRefs:s}=(0,Ce.useFoxI18n)(l),u=s(r,["moreText"]),i=e,f=(0,t.computed)(()=>({[i]:!0}));function m(T){return T.props||{}}function d(T){return!!m(T).disabled}function y(T){return T.children??[]}const z=(0,t.ref)(),S=(0,t.computed)(()=>z.value?.$el??null),h=(0,t.ref)(!1),v=T=>{h.value=T},I=()=>{h.value=!h.value};function g(T,N){return()=>{N||(h.value=!1,m(T)?.onClick?.())}}function c(T,N){const A=y(T),$=d(T),j=g(T,$),b=[`${i}__dropdown-item`];return $&&b.push("is-disabled"),(0,t.h)("span",{class:b,onClick:j},A)}const C=T=>{const N=r.maxDisplayCount??T.length;if(N>=T.length)return T;const A=[],$=N-1;for(let x=0;x<$;x++)A.push(T[x]);const j=(n.moreIcon&&n.moreIcon())??(r.moreIcon&&(0,t.h)(r.moreIcon))??(0,t.h)(a),b=(0,t.h)(Vt,{ref:x=>z.value=x,class:`${i}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:r.type,onClick:I},{default:()=>u.moreText.value,mark:()=>j});A.push(b);const E=[];for(let x=$;x<T.length;x++){const V=c(T[x],x);E.push(V)}const Z=(0,t.h)(Kl,{placement:r.dropdownPlacement,"onUpdate:visible":v,visible:h.value,reference:S.value,"custom-class":`${i}__popover`},{default:()=>E});return A.push(Z),A},D=()=>(n.default?.()||[]).filter(T=>T.type!==Comment);return()=>{const T=C(D()),N=nt(r,zn);return Object.assign(N,o??{}),N.class=f.value,(0,t.h)(jl,N,{default:()=>T})}}}}var{componentName:Ru,create:Ou,scope:qu}=ie("buttons-item"),Hu=Ou(Fu(Ru,qu,_e.ArrowDown)),Jn=Hu;function Le(e,l={}){return(0,t.h)(el,e,l)}function ju(e,l,a,r,n){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],u=l[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[n]){let i=l;for(let f=0;i&&f<o.length;f++){let m=o[f],d=i.find(y=>y[r]===m);if(!d)break;s.push(d[a])}return s}if(Array.isArray(u))for(let i=0;i<l.length&&i<o.length;i++){let f=l[i],m=o[i];const d=f.find(y=>y[r]===m);if(!d)break;s.push(d[a])}else{let i=l;for(let f=0;i&&f<o.length;f++){let m=o[f],d=i.find(y=>y[r]===m);if(!d)break;s.push(d[a]),i=d[n]}}return s}var Ku=class{proxy;constructor(e){this.proxy=e}async load(e,l,a){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a);const r=Fe(this.proxy,e);return r===null?(console.error(`${e} component not found api function`),[]):(Ue(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await r(l,a))}};function Yu(){return new Ku((0,t.getCurrentInstance)().proxy)}var So={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 Wu(e,l){return{props:{...So},setup(a,{attrs:r,slots:n}){const o=Yu(),s=(0,t.ref)([]);(0,t.watch)([()=>a.source,()=>a.params],async([i,f])=>{s.value=await o.load(a.sourceType,i,f)},{immediate:!0});const u=(0,t.computed)(()=>{if(!Array.isArray(s.value)||s.value.length===0)return a.emptyText;let i=ju(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return i.length==0?a.emptyText??"":i.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${i[0]}`:i[0]:i.join(a.separator)});return()=>{const i={...r};if(n.default)return n.default({text:u.value,value:a.modelValue});const f=a.tag??"span";return typeof f=="object"?(0,t.h)(f,i,{default:()=>u.value}):(0,t.h)(f,i,[u.value])}}}}var{componentName:Uu,create:Gu,scope:Xu}=ie("mapping"),Zu=Gu(Wu(Uu,Xu)),Bt=Zu;function He(e,l,a,r){const n="fox-browse-item";let o=null;a?o=(0,t.h)(Bt,{class:[`${n}__mapping`],source:a,modelValue:e,separator:r},{default:u=>(0,t.h)(Vt,{class:[`${n}__text`]},{default:()=>u.text})}):o=(0,t.h)(Vt,{class:[`${n}__text`]},{default:()=>e});const s={label:l.default,default:()=>o};return(0,t.h)(el,{class:[n]},s)}var et=(e={})=>{if(!e)return{};const l={};return Reflect.ownKeys(e).forEach(a=>{typeof a=="string"&&a.indexOf("data-fox")!==0&&(l[a]=e[a])}),l},xo={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},maxLength:{type:[String,Number]}},Ju={...Ne,...Te,...xo};function Qu(e,l,a,r){return{props:Ju,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),{toLocaleRefs:y}=(0,Ce.useFoxI18n)(l),z=y(n,["placeholder"]),S=(0,t.ref)(!1),h=ye(n,"modelValue",null,d),v=e,I=(0,t.computed)(()=>({[v]:!0,[`${v}__disabled`]:u.value,[`${v}__readonly`]:f.value})),g=K=>{h.value=K,d("update:modelValue",K),d("input",K)},c=K=>{d("change",K)};let C=ye(n,"hintText"),D=(0,t.ref)(!1);const T=K=>{let Y=K.target.value;S.value=!0,me(C.value)||(D.value=!0),d("focus",Y,K)},N=K=>{setTimeout(()=>{D.value&&(D.value=!1),S.value=!1},0);let Y=K.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),d("blur",Y,K)},A=()=>{d("clear","")},$=(0,t.ref)(!1);let j=null;const b=()=>{n.showTooltip&&$.value===!1&&(j&&clearTimeout(j),j=setTimeout(()=>{$.value=!0},150))},E=()=>{j&&(clearTimeout(j),$.value=!1,j=null)},Z=(0,t.computed)(()=>$.value||D.value),x=(0,t.computed)(()=>$.value?h.value:C.value),V=(0,t.computed)(()=>ut(n.unit)>0),M=(0,t.ref)();return be({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()},setDisabled:K=>{s.value=K},setReadonly:K=>{i.value=K}}),()=>{if(m.value==="on"&&(f.value||u.value))return r(h.value,o.slots);const K={...et(o.attrs),ref:M,class:I.value,placeholder:z.placeholder.value,clearable:n.clearable,disabled:u.value,readonly:f.value,modelValue:h.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:A,onChange:c,onInput:g,onFocus:T,onBlur:N,onMouseover:b,onMouseleave:E},Y={};o.slots.prepend&&(Y.prepend=o.slots.prepend),o.slots.append&&(Y.append=o.slots.append),o.slots.prefix&&(Y.prefix=o.slots.prefix),o.slots.suffix?Y.suffix=o.slots.suffix:V.value&&(Y.suffix=()=>[n.unit]);const P=[],k=(0,t.h)(_.ElInput,K,Y);P.push(k);const U={default:()=>P};U.label=o.slots.default,U.fixedPreTip=o.slots.fixedPreTip,U.fixedTip=o.slots.fixedTip;const G={...Ie(n,xo),hintText:x.value,hintVisible:Z.value};return n.prop&&(G.prop=`${n.prop}_item`),a(G,U)}}}}var{componentName:ec,create:tc,scope:lc}=ie("input-item"),nc=tc(Qu(ec,lc,Le,He)),Qn=nc;function dt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Gt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Co(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}function ac(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}var rc=class{proxy;constructor(e){this.proxy=e}async load(e,l,a){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a);const r=Fe(this.proxy,e);return r===null?(console.error(`${e} component not found api function`),[]):(Ue(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await r(l,a))}};function oc(){return new rc((0,t.getCurrentInstance)().proxy)}function No(e,l,a){return!(dt(e,l)!==dt(e,a)||Gt(e,l)!==Gt(e,a))}function ko(e,l,a,r){if(r.length===0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const n=[];return l.forEach(o=>{for(let s of r){const u=Co(e,s);if(Array.isArray(u)&&u.length>0){const i=ko(e,o,a,u)??[];Reflect.apply([].push,n,i)}else{let i=!1;if(a==="text")i=dt(e,s)===o;else if(a==="item")i=No(e,s,o);else{let f=Gt(e,s);f==null&&(f=dt(e,s)),i=f===o}if(i){n.push(s);break}}}}),n}function ic(e){return{text:e,value:e}}var zo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},sourceFilter:{type:[Function]},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}},sc={...Ne,...Te,...zo};function uc(e,l,a,r){return{props:sc,emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),{toLocaleRefs:y}=(0,Ce.useFoxI18n)(l),z=y(n,["placeholder"]),S=(0,t.ref)(null),h=(0,t.ref)([]),v=(0,t.computed)(()=>h.value?h.value.map(w=>dt(n,w)).join(" "):""),I=(w,p,B,H=!0)=>{if(!B||B.length==0){S.value=w,H&&(d("update:modelValue",w),d("change",w));return}const te=ko(n,w,p,B);if(te===null){if(h.value===null||h.value.length===0)return;S.value=null,h.value=[],H&&(d("update:modelValue",null),d("update:text",null),d("change",null));return}let ae=!0;if(te.length!==h.value.length)ae=!1;else for(let re=0;re<te.length;re++){const ce=te[re],pe=h.value[re];if(!No(n,ce,pe)){ae=!1;break}}if(!ae){h.value=te;let re=[],ce=[],pe=[];te.forEach(Je=>{const At=Gt(n,Je),il=dt(n,Je);re.push(At),pe.push(il),n.valueType==="text"?ce.push(il):n.valueType==="item"?ce.push(Je):ce.push(At)});let Se,Ve,je;fe(n.multiple)?(S.value=re,Se=(0,t.toRaw)(ce),Ve=pe,je=(0,t.toRaw)(te)):(S.value=re[0]??"",Se=(0,t.toRaw)(ce[0]??""),Ve=pe[0]??"",je=(0,t.toRaw)(te[0])),H&&(d("update:modelValue",Se),d("change",Se,je)),d("update:text",Ve)}},g=(0,t.ref)(null),c=(0,t.ref)(null),C=(0,t.computed)(()=>{let w=c.value??g.value??[];return Array.isArray(w)&&typeof n.sourceFilter=="function"&&(w=w.filter(n.sourceFilter)),w}),D=$e((0,t.computed)(()=>n.appearLoad),"appearLoad",qe.Near,w=>fe(w)),T=oc(),N=async(w,p)=>{if(w){const B=await T.load("select",w,p);B.length>0?typeof B[0]=="string"?g.value=B.map(H=>ic(H)):g.value=B:g.value=null}};(0,t.watch)([()=>n.source,()=>n.params],([w,p])=>{c.value=null,N(w,p)},{immediate:!D.value});let A=!1;const $=()=>{A||(A=!0,N(n.source,n.params))};(0,t.watch)([()=>g.value,()=>n.modelValue],([w,p])=>{if(Z()&&fe(n.multiple)){Xe(p,S.value)||(S.value=p);return}I(p,n.valueType,C.value,!1),d("setValue",p)}),n.source||(S.value=n.modelValue);let j=null,b=(0,t.ref)(!1);typeof n.remoteMethod=="function"&&(j=async w=>{if(w==null){c.value=null;return}b.value=!0;try{const p=await n.remoteMethod(w);p&&(c.value=p)}catch(p){c.value=null,console.error(p)}b.value=!1});let E=null;typeof n.filterMethod=="function"&&(E=async w=>{if(w==null){c.value=null;return}b.value=!0;try{const p=await n.filterMethod(w,g.value);p&&(c.value=p)}catch(p){c.value=null,console.error(p)}b.value=!1});const Z=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",x=(0,t.ref)(!1),V=e,M=(0,t.computed)(()=>({[V]:!0})),K=w=>{n.allowCreate||Z()&&fe(n.multiple)?(d("update:modelValue",w),d("change",w),d("update:text",w),S.value=w):I(w,"value",C.value,!0)};let Y=ye(n,"hintText"),P=(0,t.ref)(!1);const k=w=>{let p=w.target.value;x.value=!0,me(Y.value)||(P.value=!0),d("focus",p,w)},U=w=>{setTimeout(()=>{P.value&&(P.value=!1),x.value=!1},0);const p=w.target.value;W.value||d("blur",p,w)},G=()=>{d("clear","")},F=(0,t.ref)(!1);let q=null;const X=()=>{n.showTooltip&&F.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{F.value=!0},150))},L=()=>{q&&(clearTimeout(q),F.value=!1,q=null)},ee=(0,t.computed)(()=>F.value||P.value),le=(0,t.computed)(()=>F.value?v.value:Y.value),W=(0,t.ref)(!1),O=w=>{W.value=w,d("visible-change",w),w||d("selected")},J=w=>{d("remove-tag",w)},R=(w,p)=>{const B=[];return w.forEach((H,te)=>{const ae=Co(n,H);if(Array.isArray(ae)&&ae.length>0){const re=R(ae,p),ce=dt(n,H),pe={key:`${ce}_${te}`,label:ce};B.push((0,t.h)(_.ElOptionGroup,pe,{default:()=>re}))}else{const re=Gt(n,H),ce=dt(n,H),pe=ac(n,H),Se={key:`${re}_${te}`,label:ce,disabled:pe,value:re};if(typeof p=="function")B.push((0,t.h)(_.ElOption,Se,{default:()=>p(H)}));else if(n.optionType==="item"){const Ve=(0,t.h)("span",{class:{"fox-select-item__option-left":!0}},[re]),je=(0,t.h)("span",{class:{"fox-select-item__option-right":!0}},[ce]),Je=(0,t.h)("div",{class:{"fox-select-item__option":!0}},[Ve,je]);B.push((0,t.h)(_.ElOption,Se,{default:()=>Je}))}else n.optionType==="value"?B.push((0,t.h)(_.ElOption,Se,{default:()=>[re]})):B.push((0,t.h)(_.ElOption,Se))}}),B},Q=(0,t.ref)();return be({focus:()=>{Q?.value.focus()},blur:()=>{Q?.value.blur()},setDisabled:w=>{s.value=w},setReadonly:w=>{i.value=w}}),()=>{if(m.value==="on"&&(f.value||u.value))return r(S.value,o.slots,C.value);const w={...et(o.attrs),ref:Q,class:M.value,clearable:n.clearable,multiple:n.multiple,placeholder:z.placeholder.value,disabled:u.value||f.value,modelValue:S.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:G,onChange:K,onFocus:k,onBlur:U,onVisibleChange:O,onRemoveTag:J};typeof j=="function"&&(w["remote-method"]=j,w.loading=b.value),typeof E=="function"&&(w["filter-method"]=E,w.loading=b.value);const p={};o.slots.prefix&&(p.prefix=o.slots.prefix),o.slots.empty&&(p.empty=o.slots.empty),o.slots.options?p.default=o.slots.options:p.default=()=>R(C.value,o.slots.option);const B=[],H=(0,t.h)(_.ElSelect,w,p);B.push(H);const te={default:()=>B};te.label=o.slots.default,te.fixedPreTip=o.slots.fixedPreTip,te.fixedTip=o.slots.fixedTip;const ae={...Ie(n,zo),hintText:le.value,hintVisible:ee.value,onMouseover:X,onMouseleave:L};return n.prop&&(ae.prop=`${n.prop}_item`),D.value&&(ae["appear-listen"]=!0,ae.onAppear=$),a(ae,te)}}}}var{componentName:cc,create:dc,scope:fc}=ie("select-item"),mc=dc(uc(cc,fc,Le,He)),ea=mc,hc=it(((e,l)=>{(function(a,r){typeof e=="object"&&typeof l<"u"?l.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs=r()})(e,(function(){"use strict";var a=1e3,r=6e4,n=36e5,o="millisecond",s="second",u="minute",i="hour",f="day",m="week",d="month",y="quarter",z="year",S="date",h="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|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,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var V=["th","st","nd","rd"],M=x%100;return"["+x+(V[(M-20)%10]||V[M]||V[0])+"]"}},c=function(x,V,M){var K=String(x);return!K||K.length>=V?x:""+Array(V+1-K.length).join(M)+x},C={s:c,z:function(x){var V=-x.utcOffset(),M=Math.abs(V),K=Math.floor(M/60),Y=M%60;return(V<=0?"+":"-")+c(K,2,"0")+":"+c(Y,2,"0")},m:function x(V,M){if(V.date()<M.date())return-x(M,V);var K=12*(M.year()-V.year())+(M.month()-V.month()),Y=V.clone().add(K,d),P=M-Y<0,k=V.clone().add(K+(P?-1:1),d);return+(-(K+(M-Y)/(P?Y-k:k-Y))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:d,y:z,w:m,d:f,D:S,h:i,m:u,s,ms:o,Q:y}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},D="en",T={};T[D]=g;var N="$isDayjsObject",A=function(x){return x instanceof E||!(!x||!x[N])},$=function x(V,M,K){var Y;if(!V)return D;if(typeof V=="string"){var P=V.toLowerCase();T[P]&&(Y=P),M&&(T[P]=M,Y=P);var k=V.split("-");if(!Y&&k.length>1)return x(k[0])}else{var U=V.name;T[U]=V,Y=U}return!K&&Y&&(D=Y),Y||!K&&D},j=function(x,V){if(A(x))return x.clone();var M=typeof V=="object"?V:{};return M.date=x,M.args=arguments,new E(M)},b=C;b.l=$,b.i=A,b.w=function(x,V){return j(x,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var E=(function(){function x(M){this.$L=$(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[N]=!0}var V=x.prototype;return V.parse=function(M){this.$d=(function(K){var Y=K.date,P=K.utc;if(Y===null)return new Date(NaN);if(b.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var k=Y.match(v);if(k){var U=k[2]-1||0,G=(k[7]||"0").substring(0,3);return P?new Date(Date.UTC(k[1],U,k[3]||1,k[4]||0,k[5]||0,k[6]||0,G)):new Date(k[1],U,k[3]||1,k[4]||0,k[5]||0,k[6]||0,G)}}return new Date(Y)})(M),this.init()},V.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},V.$utils=function(){return b},V.isValid=function(){return this.$d.toString()!==h},V.isSame=function(M,K){var Y=j(M);return this.startOf(K)<=Y&&Y<=this.endOf(K)},V.isAfter=function(M,K){return j(M)<this.startOf(K)},V.isBefore=function(M,K){return this.endOf(K)<j(M)},V.$g=function(M,K,Y){return b.u(M)?this[K]:this.set(Y,M)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(M,K){var Y=this,P=!!b.u(K)||K,k=b.p(M),U=function(W,O){var J=b.w(Y.$u?Date.UTC(Y.$y,O,W):new Date(Y.$y,O,W),Y);return P?J:J.endOf(f)},G=function(W,O){return b.w(Y.toDate()[W].apply(Y.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(O)),Y)},F=this.$W,q=this.$M,X=this.$D,L="set"+(this.$u?"UTC":"");switch(k){case z:return P?U(1,0):U(31,11);case d:return P?U(1,q):U(0,q+1);case m:var ee=this.$locale().weekStart||0,le=(F<ee?F+7:F)-ee;return U(P?X-le:X+(6-le),q);case f:case S:return G(L+"Hours",0);case i:return G(L+"Minutes",1);case u:return G(L+"Seconds",2);case s:return G(L+"Milliseconds",3);default:return this.clone()}},V.endOf=function(M){return this.startOf(M,!1)},V.$set=function(M,K){var Y,P=b.p(M),k="set"+(this.$u?"UTC":""),U=(Y={},Y[f]=k+"Date",Y[S]=k+"Date",Y[d]=k+"Month",Y[z]=k+"FullYear",Y[i]=k+"Hours",Y[u]=k+"Minutes",Y[s]=k+"Seconds",Y[o]=k+"Milliseconds",Y)[P],G=P===f?this.$D+(K-this.$W):K;if(P===d||P===z){var F=this.clone().set(S,1);F.$d[U](G),F.init(),this.$d=F.set(S,Math.min(this.$D,F.daysInMonth())).$d}else U&&this.$d[U](G);return this.init(),this},V.set=function(M,K){return this.clone().$set(M,K)},V.get=function(M){return this[b.p(M)]()},V.add=function(M,K){var Y,P=this;M=Number(M);var k=b.p(K),U=function(q){var X=j(P);return b.w(X.date(X.date()+Math.round(q*M)),P)};if(k===d)return this.set(d,this.$M+M);if(k===z)return this.set(z,this.$y+M);if(k===f)return U(1);if(k===m)return U(7);var G=(Y={},Y[u]=r,Y[i]=n,Y[s]=a,Y)[k]||1,F=this.$d.getTime()+M*G;return b.w(F,this)},V.subtract=function(M,K){return this.add(-1*M,K)},V.format=function(M){var K=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||h;var P=M||"YYYY-MM-DDTHH:mm:ssZ",k=b.z(this),U=this.$H,G=this.$m,F=this.$M,q=Y.weekdays,X=Y.months,L=Y.meridiem,ee=function(O,J,R,Q){return O&&(O[J]||O(K,P))||R[J].slice(0,Q)},le=function(O){return b.s(U%12||12,O,"0")},W=L||function(O,J,R){var Q=O<12?"AM":"PM";return R?Q.toLowerCase():Q};return P.replace(I,(function(O,J){return J||(function(R){switch(R){case"YY":return String(K.$y).slice(-2);case"YYYY":return b.s(K.$y,4,"0");case"M":return F+1;case"MM":return b.s(F+1,2,"0");case"MMM":return ee(Y.monthsShort,F,X,3);case"MMMM":return ee(X,F);case"D":return K.$D;case"DD":return b.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return ee(Y.weekdaysMin,K.$W,q,2);case"ddd":return ee(Y.weekdaysShort,K.$W,q,3);case"dddd":return q[K.$W];case"H":return String(U);case"HH":return b.s(U,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return W(U,G,!0);case"A":return W(U,G,!1);case"m":return String(G);case"mm":return b.s(G,2,"0");case"s":return String(K.$s);case"ss":return b.s(K.$s,2,"0");case"SSS":return b.s(K.$ms,3,"0");case"Z":return k}return null})(O)||k.replace(":","")}))},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(M,K,Y){var P,k=this,U=b.p(K),G=j(M),F=(G.utcOffset()-this.utcOffset())*r,q=this-G,X=function(){return b.m(k,G)};switch(U){case z:P=X()/12;break;case d:P=X();break;case y:P=X()/3;break;case m:P=(q-F)/6048e5;break;case f:P=(q-F)/864e5;break;case i:P=q/n;break;case u:P=q/r;break;case s:P=q/a;break;default:P=q}return Y?P:b.a(P)},V.daysInMonth=function(){return this.endOf(d).$D},V.$locale=function(){return T[this.$L]},V.locale=function(M,K){if(!M)return this.$L;var Y=this.clone(),P=$(M,K,!0);return P&&(Y.$L=P),Y},V.clone=function(){return b.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},x})(),Z=E.prototype;return j.prototype=Z,[["$ms",o],["$s",s],["$m",u],["$H",i],["$W",f],["$M",d],["$y",z],["$D",S]].forEach((function(x){Z[x[1]]=function(V){return this.$g(V,x[0],x[1])}})),j.extend=function(x,V){return x.$i||(x(V,E,j),x.$i=!0),j},j.locale=$,j.isDayjs=A,j.unix=function(x){return j(1e3*x)},j.en=T[D],j.Ls=T,j.p={},j}))})),pc=it(((e,l)=>{(function(a,r){typeof e=="object"&&typeof l<"u"?l.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var a={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,o=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,i={},f=function(v){return(v=+v)+(v>68?1900:2e3)},m=function(v){return function(I){this[v]=+I}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(I){if(!I||I==="Z")return 0;var g=I.match(/([+-]|\d\d)/g),c=60*g[1]+(+g[2]||0);return c===0?0:g[0]==="+"?-c:c})(v)}],y=function(v){var I=i[v];return I&&(I.indexOf?I:I.s.concat(I.f))},z=function(v,I){var g,c=i.meridiem;if(c){for(var C=1;C<=24;C+=1)if(v.indexOf(c(C,0,I))>-1){g=C>12;break}}else g=v===(I?"pm":"PM");return g},S={A:[u,function(v){this.afternoon=z(v,!1)}],a:[u,function(v){this.afternoon=z(v,!0)}],Q:[n,function(v){this.month=3*(v-1)+1}],S:[n,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,m("seconds")],ss:[s,m("seconds")],m:[s,m("minutes")],mm:[s,m("minutes")],H:[s,m("hours")],h:[s,m("hours")],HH:[s,m("hours")],hh:[s,m("hours")],D:[s,m("day")],DD:[o,m("day")],Do:[u,function(v){var I=i.ordinal;if(this.day=v.match(/\d+/)[0],I)for(var g=1;g<=31;g+=1)I(g).replace(/\[|\]/g,"")===v&&(this.day=g)}],w:[s,m("week")],ww:[o,m("week")],M:[s,m("month")],MM:[o,m("month")],MMM:[u,function(v){var I=y("months"),g=(y("monthsShort")||I.map((function(c){return c.slice(0,3)}))).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[u,function(v){var I=y("months").indexOf(v)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,m("year")],YY:[o,function(v){this.year=f(v)}],YYYY:[/\d{4}/,m("year")],Z:d,ZZ:d};function h(v){for(var I=v,g=i&&i.formats,c=(v=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(j,b,E){var Z=E&&E.toUpperCase();return b||g[E]||a[E]||g[Z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,V,M){return V||M.slice(1)}))}))).match(r),C=c.length,D=0;D<C;D+=1){var T=c[D],N=S[T],A=N&&N[0],$=N&&N[1];c[D]=$?{regex:A,parser:$}:T.replace(/^\[|\]$/g,"")}return function(j){for(var b={},E=0,Z=0;E<C;E+=1){var x=c[E];if(typeof x=="string")Z+=x.length;else{var V=x.regex,M=x.parser,K=j.slice(Z),Y=V.exec(K)[0];M.call(b,Y),j=j.replace(Y,"")}}return(function(P){var k=P.afternoon;if(k!==void 0){var U=P.hours;k?U<12&&(P.hours+=12):U===12&&(P.hours=0),delete P.afternoon}})(b),b}}return function(v,I,g){g.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(f=v.parseTwoDigitYear);var c=I.prototype,C=c.parse;c.parse=function(D){var T=D.date,N=D.utc,A=D.args;this.$u=N;var $=A[1];if(typeof $=="string"){var j=A[2]===!0,b=A[3]===!0,E=j||b,Z=A[2];b&&(Z=A[2]),i=this.$locale(),!j&&Z&&(i=g.Ls[Z]),this.$d=(function(K,Y,P,k){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*K);var U=h(Y)(K),G=U.year,F=U.month,q=U.day,X=U.hours,L=U.minutes,ee=U.seconds,le=U.milliseconds,W=U.zone,O=U.week,J=new Date,R=q||(G||F?1:J.getDate()),Q=G||J.getFullYear(),w=0;G&&!F||(w=F>0?F-1:J.getMonth());var p,B=X||0,H=L||0,te=ee||0,ae=le||0;return W?new Date(Date.UTC(Q,w,R,B,H,te,ae+60*W.offset*1e3)):P?new Date(Date.UTC(Q,w,R,B,H,te,ae)):(p=new Date(Q,w,R,B,H,te,ae),O&&(p=k(p).week(O).toDate()),p)}catch{return new Date("")}})(T,$,N,g),this.init(),Z&&Z!==!0&&(this.$L=this.locale(Z).$L),E&&T!=this.format($)&&(this.$d=new Date("")),i={}}else if($ instanceof Array)for(var x=$.length,V=1;V<=x;V+=1){A[1]=$[V-1];var M=g.apply(this,A);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}V===x&&(this.$d=new Date(""))}else C.call(this,D)}}}))})),gc=it(((e,l)=>{(function(a,r){typeof e=="object"&&typeof l<"u"?l.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(a,r){var n=r.prototype,o=n.format;n.format=function(s){var u=this,i=this.$locale();if(!this.isValid())return o.bind(this)(s);var f=this.$utils(),m=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return i.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return i.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),d==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),d==="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 d}}));return o.bind(this)(m)}}}))})),vc=it(((e,l)=>{(function(a,r){typeof e=="object"&&typeof l<"u"?l.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(a,r,n){var o=r.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},u=function(d,y,z,S,h){var v=d.name?d:d.$locale(),I=s(v[y]),g=s(v[z]),c=I||g.map((function(D){return D.slice(0,S)}));if(!h)return c;var C=v.weekStart;return c.map((function(D,T){return c[(T+(C||0))%7]}))},i=function(){return n.Ls[n.locale()]},f=function(d,y){return d.formats[y]||(function(z){return z.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,h,v){return h||v.slice(1)}))})(d.formats[y.toUpperCase()])},m=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):u(d,"months")},monthsShort:function(y){return y?y.format("MMM"):u(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):u(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):u(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):u(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return f(d.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return m.bind(this)()},n.localeData=function(){var d=i();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(y){return f(d,y)},meridiem:d.meridiem,ordinal:d.ordinal}},n.months=function(){return u(i(),"months")},n.monthsShort=function(){return u(i(),"monthsShort","months",3)},n.weekdays=function(d){return u(i(),"weekdays",null,null,d)},n.weekdaysShort=function(d){return u(i(),"weekdaysShort","weekdays",3,d)},n.weekdaysMin=function(d){return u(i(),"weekdaysMin","weekdays",2,d)}}}))})),yc=it(((e,l)=>{(function(a,r){typeof e=="object"&&typeof l<"u"?l.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekOfYear=r()})(e,(function(){"use strict";var a="week",r="year";return function(n,o,s){var u=o.prototype;u.week=function(i){if(i===void 0&&(i=null),i!==null)return this.add(7*(i-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(r).add(1,r).date(f),d=s(this).endOf(a);if(m.isBefore(d))return 1}var y=s(this).startOf(r).date(f).startOf(a).subtract(1,"millisecond"),z=this.diff(y,a,!0);return z<0?s(this).startOf("week").week():Math.ceil(z)},u.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}}))})),bc=it(((e,l)=>{(function(a,r){typeof e=="object"&&typeof l<"u"?l.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekYear=r()})(e,(function(){"use strict";return function(a,r){r.prototype.weekYear=function(){var n=this.month(),o=this.week(),s=this.year();return o===1&&n===11?s+1:n===0&&o>=52?s-1:s}}}))})),wc=it(((e,l)=>{(function(a,r){typeof e=="object"&&typeof l<"u"?l.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_dayOfYear=r()})(e,(function(){"use strict";return function(a,r,n){r.prototype.dayOfYear=function(o){var s=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}}))})),Sc=it(((e,l)=>{(function(a,r){typeof e=="object"&&typeof l<"u"?l.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(a,r){r.prototype.isSameOrAfter=function(n,o){return this.isSame(n,o)||this.isAfter(n,o)}}}))})),xc=it(((e,l)=>{(function(a,r){typeof e=="object"&&typeof l<"u"?l.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(a,r){r.prototype.isSameOrBefore=function(n,o){return this.isSame(n,o)||this.isBefore(n,o)}}}))})),at=st(hc(),1),Cc=st(pc(),1),Nc=st(gc(),1),kc=st(vc(),1),zc=st(yc(),1),Tc=st(bc(),1),Ec=st(wc(),1),_c=st(Sc(),1),$c=st(xc(),1);at.default.extend(kc.default);at.default.extend(Nc.default);at.default.extend(Cc.default);at.default.extend(zc.default);at.default.extend(Tc.default);at.default.extend(Ec.default);at.default.extend(_c.default);at.default.extend($c.default);var De={format(e,l="YYYY-MM-DD"){return(0,at.default)(e).format(l)},parser(e,l){return(0,at.default)(e,l).toDate()},getDay(e,l,a){let r=l??new Date;const n=e*(1e3*60*60*24);return r=new Date(r.getTime()+n),a=a??"YYYY-MM-DD",this.format(r,a)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,l,a){let r=new Date(e+"/"+l+"/"+a).getDay();return r==0&&(r=7),r},getMonthDays(e,l){return/^0/.test(l)&&(l=l.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][l]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,l){return l=l||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(l)},compare(e,l,a){const r=typeof e=="string"?this.parser(e,a):e,n=typeof l=="string"?this.parser(l,a):l,o=r.getTime(),s=n.getTime();return o==s?0:o>s?1:-1},between(e,l,a,r){let n;r==="year"?n=new Date(new Date(l).setFullYear(l.getFullYear()+a)):r==="month"?n=new Date(new Date(l).setMonth(l.getMonth()+a)):n=new Date(new Date(l).setDate(l.getDate()+a));const o=e.getTime(),s=n.getTime(),u=l.getTime();return s>u?o>=u&&o<=s:o>=s&&o<=u},inScope4Day(e,l,a){return this.between(e,l,a,"day")},inScope4Month(e,l,a){return this.between(e,l,a,"month")},inScope4Year(e,l,a){return this.between(e,l,a,"year")}},To={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"},rangeSeparator:{type:[String],required:!1},maxLength:{type:[String,Number]}},Eo={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}},Vc={...Ne,...Te,...To,...Eo};function Bc(e,l,a,r){return{props:Vc,emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),{toLocaleRefs:y}=(0,Ce.useFoxI18n)(l),z=y(n,["placeholder"]),S=(0,t.ref)(!1),h=ye(n,"modelValue",null,d),v=(0,t.computed)(()=>P.value&&Array.isArray(h.value)&&h.value.length==2?h.value[0]:h.value),I=(0,t.computed)(()=>P.value?"longTermKey":"normalKey"),g=w=>{if(P.value&&n.type==="daterange"){const p=[...h.value];p[0]=w,h.value=p}else h.value=w;d("update:modelValue",h.value),d("change",h.value)},c=(0,t.computed)(()=>P.value&&n.type==="daterange"?"date":n.type),C=e,D=(0,t.computed)(()=>({[`${C}`]:!0,"is-long":P.value,"is-readonly":f.value,"is-disabled":u.value}));let T=ye(n,"hintText"),N=(0,t.ref)(!1);const A=w=>{let p=w.target.value;S.value=!0,me(T.value)||(N.value=!0),d("focus",p,w)},$=w=>{setTimeout(()=>{N.value&&(N.value=!1),S.value=!1},0);let p=w.target.value;n.maxLength&&p.length>Number(n.maxLength)&&(p=p.slice(0,Number(n.maxLength))),d("blur",p,w)},j=()=>{d("clear","")},b=w=>{d("calendar-change",w)},E=(w,p,B)=>{d("panel-change",w,p,B)},Z=w=>{d("visible-change",w)},x=$e((0,t.computed)(()=>n.longTermText),"longTermText",qe.Near),V=$e((0,t.computed)(()=>n.longTermActionLabel),"longTermActionLabel",qe.Near),M=$e((0,t.computed)(()=>n.longTermValue),"longTermValue",qe.Near),K=$e((0,t.computed)(()=>n.compatibleLongTermValue),"compatibleLongTermValue",qe.Near);let Y=null;const P=(0,t.ref)(fe(n.longTerm)),k=w=>{if(P.value=w,d("update:longTerm",w),w){if(Y=h.value,n.type==="daterange"){const p=[];Array.isArray(M.value)?(p[0]=h.value?h.value[0]??M.value[0]:null,p[1]=M.value[1]??M.value[0]):(p[0]=h.value?h.value[0]??M.value:null,p[1]=P.value),p[0]||(p[0]=n.valueFormat?De.format(new Date,n.valueFormat):new Date),p[1]||(p[1]=n.valueFormat?De.format(new Date,n.valueFormat):new Date),h.value=p}else Array.isArray(M.value)?h.value=M.value[1]??M.value[0]:h.value=M.value,h.value||(h.value=n.valueFormat?De.format(new Date,n.valueFormat):new Date);d("update:modelValue",h.value)}else{if(n.type==="daterange"){const p=[];p[0]=Array.isArray(h.value)?h.value[0]:h.value,Array.isArray(Y)?p[1]=Y[1]:p[1]=Y,p[0]||(p[0]=n.valueFormat?De.format(new Date,n.valueFormat):new Date),p[1]||(p[1]=n.valueFormat?De.format(new Date,n.valueFormat):new Date),h.value=p}else h.value=Y;d("update:modelValue",h.value),setTimeout(()=>{J()},100)}},U=fe(n.isLongTerm);if(U){const w=()=>{if(P.value===!0){if(Y=h.value,n.type==="daterange"){const p=[h.value[0]];Array.isArray(M.value)?p[1]=M.value[1]??M.value[0]:p[1]=P.value,p[0]||(p[0]=n.valueFormat?De.format(new Date,n.valueFormat):new Date),p[1]||(p[1]=n.valueFormat?De.format(new Date,n.valueFormat):new Date),h.value=p}else h.value=M.value;d("update:modelValue",h.value)}else Xe(M.value,h.value)&&(P.value=!0)};w(),(0,t.watch)([()=>n.longTerm],([p])=>{P.value!==p&&w()}),(0,t.watch)([()=>h.value],([p])=>{let B=!1;if(n.type==="daterange"&&Array.isArray(p))try{let H=p[1];if(!H)return;if(p[0]==null){d("update:modelValue",[]);return}typeof H!="string"&&n.valueFormat&&(H=De.format(H,n.valueFormat));let te=Array.isArray(M.value)?M.value[1]:M.value;(H===te||Array.isArray(K.value)&&K.value.findIndex(ae=>H==ae)!==-1)&&(B=!0)}catch(H){console.error(H)}P.value!==B&&(P.value=B)},{immediate:!0})}const G=(0,t.computed)(()=>({"fox-date-item__long":!0,"is-active":S.value})),F=(0,t.ref)(),q=(0,t.ref)(),X=/^\d+$/,L=(w,p)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(w,p):X.test(w)&&w.length===n.flashFillThreshold,ee=(w,p)=>{let B;if(typeof n.flashFillFormat=="function")B=n.flashFillFormat(w,p);else{const te=n.flashFillFormat??"YYYYMMDD";B=De.parser(w,te)}const H=n.valueFormat??"YYYY-MM-DD";return De.format(B,H)},le=w=>w?w.endsWith("range"):!1,W=w=>{if(!w.target)return;const p=w.target.value??"";if(L(p,n.type)){const B=ee(p,n.type);if(le(n.type)){const H=Array.isArray(h.value)?[...h.value]:[];H[0]=B,g(H)}else g(B)}},O=w=>{if(!w.target)return;const p=w.target.value??"";if(L(p,n.type)){const B=ee(p,n.type);if(le(n.type)){const H=Array.isArray(h.value)?[...h.value]:[];H[1]=B,g(H)}else g(B)}},J=()=>{if(n.flashFill&&F.value&&F.value.$el)if(le(n.type)){const w=F.value.$el.querySelectorAll("input.el-range-input");w[0]&&w[0].addEventListener("input",W),w[1]&&w[1].addEventListener("input",O)}else{const w=F.value.$el.querySelector("input.el-input__inner");w&&w.addEventListener("input",W)}},R=()=>{if(n.flashFill&&F.value&&F.value.$el)if(le(n.type)){const w=F.value.$el.querySelectorAll("input.el-range-input");w[0]&&w[0].removeEventListener("input",W),w[1]&&w[1].removeEventListener("input",O)}else{const w=F.value.$el.querySelector("input.el-input__inner");w&&w.removeEventListener("input",W)}};(0,t.onMounted)(J),(0,t.onBeforeUnmount)(R),be({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()},setDisabled:w=>{s.value=w},setReadonly:w=>{i.value=w}});const Q=(0,t.computed)(()=>{if(Ye(v.value))return"";const w=n.rangeSeparator??" - ",p=Array.isArray(v.value)?v.value:[v.value];U&&P.value&&(p[1]=x.value);const B=[];for(let te=0;te<p.length;te++){const ae=p[te];if(ae==="string"&&B.push(ae),ae instanceof Date){const re=De.format(ae,n.format);B.push(re)}}const H=` ${w} `;return B.join(H)});return()=>{if(m.value==="on"&&(f.value||u.value))return r(Q.value,o.slots);const w={...o.attrs,key:I.value,type:c.value,ref:q,class:D.value,placeholder:z.placeholder.value,rangeSeparator:n.rangeSeparator,disabled:u.value,readonly:f.value,modelValue:v.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:j,onFocus:A,onBlur:$,onCalendarChange:b,onPanelChange:E,onVisibleChange:Z},p={};o.slots["range-separator"]&&(p["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(p.default=o.slots.cell);const B=[],H=(0,t.h)(_.ElDatePicker,w,p);B.push(H);const te={default:()=>B};if(te.label=o.slots.default,te.fixedPreTip=o.slots.fixedPreTip,te.fixedTip=o.slots.fixedTip,U){if(P.value){const re=(0,t.h)("span",{class:["fox-date-item__long-splitor"]},["-"]),ce=(0,t.h)("input",{class:["fox-date-item__long-text"],value:x.value,readonly:!0}),pe=(0,t.h)("div",{class:G.value},{default:()=>[re,ce]});B.push(pe)}if(!f.value&&!u.value){const re=(0,t.h)(_.ElCheckbox,{label:V.value||x.value,disabled:f.value||u.value,modelValue:P.value,"onUpdate:modelValue":k}),ce=(0,t.h)("div",{class:{[`${C}__append`]:!0}},[re]);te.append=()=>ce}}const ae={...Ie(n,To,Eo),ref:F,class:{[`${C}__wrapper`]:!0,"has-append":U},hintText:T.value,hintVisible:N.value};return n.prop&&(ae.prop=`${n.prop}_item`),a(ae,te)}}}}var{componentName:Dc,create:Mc,scope:Ic}=ie("date-item"),Ac=Mc(Bc(Dc,Ic,Le,He)),ta=Ac,ue={format(e,l="YYYY-MM-DD"){return De.format(e,l)},parser(e,l){return De.parser(e,l)},isLeapYear:function(e){return De.isLeapYear(e)},getWhatDay:function(e,l,a){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+l+"/"+a).getDay()]},getMonthPreDay:function(e,l){let a=new Date(e+"/"+l+"/01").getDay();return a==0&&(a=7),a},getMonthDays:function(e,l){return/^0/.test(l)&&(l=l.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][l]},getNumTwoBit:function(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,l){return l=l||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(l)},getDay:function(e){e=e||0;let l=new Date;const a=e*(1e3*60*60*24);return l=new Date(l.getTime()+a),this.date2Str(l)},compareDate:function(e,l){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(l.replace("-","/").replace("-","/")))},isEqual:function(e,l){return new Date(e).getTime()==new Date(l).getTime()},getMonthWeek:function(e,l,a,r=0){const n=new Date(Number(e),parseInt(l)-1,Number(a));let o=n.getDay();const s=n.getDate();let u=6-o;return r!==0&&(o=o==0?7:o,u=7-o),Math.ceil((s+u)/7)},getYearWeek:function(e,l,a,r=0){const n=new Date(Number(e),parseInt(l)-1,Number(a)),o=new Date(Number(e),0,1),s=Math.round((n.valueOf()-o.valueOf())/864e5);return Math.ceil((s+(o.getDay()+1-1))/7)},getWeekDate:function(e,l,a,r=0){const n=new Date(Number(e),parseInt(l)-1,Number(a)),o=n.getTime();let s=n.getDay();if(r===0){const i=o-s*864e5,f=o+(6-s)*864e5;return[this.date2Str(new Date(i)),this.date2Str(new Date(f))]}else{s=s==0?7:s;const u=1440*60*1e3,i=o-(s-1)*u,f=o+(7-s)*u;return[this.date2Str(new Date(i)),this.date2Str(new Date(f))]}},formatResultDate:function(e){const l=[...e.split("-")];return l[2]=ue.getNumTwoBit(Number(l[2])),l[3]=`${l[0]}-${l[1]}-${l[2]}`,l[4]=ue.getWhatDay(+l[0],+l[1],+l[2]),l}},Lc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),la={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popClass:{type:String},popStyle:{type:Object}},na={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:{}}},_o=2e3,Xa=_o,Pc=(e,l)=>({components:l,props:{...na},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:r}){const n=(0,t.reactive)({zIndex:a.zIndex,showSlot:!0,closed:a.closeable}),o=(0,t.computed)(()=>({[e]:!0,round:a.round,[`fox-popup--${a.position}`]:!0,[`fox-popup--${a.position}--safebottom`]:a.position==="bottom"&&a.safeAreaInsetBottom,[a.popClass]:!0})),s=(0,t.computed)(()=>({zIndex:n.zIndex,transitionDuration:`${a.duration}s`,...a.style})),u=(0,t.computed)(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),i=()=>{a.zIndex!==_o&&(Xa=Number(a.zIndex)),r("update:visible",!0),n.zIndex=++Xa,a.destroyOnClose&&(n.showSlot=!0),r("open")},f=()=>{r("update:visible",!1),r("close"),a.destroyOnClose&&setTimeout(()=>{n.showSlot=!1},+a.duration*1e3)},m=h=>{r("click-pop",h)},d=h=>{h.stopPropagation(),r("click-close-icon",h),r("update:visible",!1)},y=h=>{r("click-overlay",h),a.closeOnClickOverlay&&r("update:visible",!1)},z=h=>{r("opend",h)},S=h=>{r("closed",h)};return(0,t.watch)(()=>a.visible,h=>{a.visible?i():f()}),(0,t.watch)(()=>a.closeable,h=>{n.closed=h}),{...(0,t.toRefs)(n),popStyle:s,transitionName:u,classes:o,onClick:m,onClickCloseIcon:d,onClickOverlay:y,onOpened:z,onClosed:S}}}),Rt=0,Za="fox-overflow-hidden",Ja=()=>ht?document.body:{classList:[]},Fc=e=>[()=>{if(e())try{!Rt&&Ja().classList.add(Za),Rt++}catch{}},()=>{if(e()&&Rt)try{Rt--,!Rt&&Ja().classList.remove(Za)}catch{}}],Rc={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:Oc,create:qc}=ie("overlay"),Hc=qc({props:{...Rc},emits:["click","update:visible"],setup(e,{emit:l}){const[a,r]=Fc(()=>e.lockScroll),n=(0,t.computed)(()=>({[Oc]:!0,[e.overlayClass]:!0})),o=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,u=>{u?a():r()}),{classes:n,style:o,onClick:u=>{l("click",u),e.closeOnClickOverlay&&l("update:visible",!1)}}}});function jc(e,l,a,r,n,o){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:l[0]||(l[0]=(0,t.withModifiers)((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var Yl=Re(Hc,[["render",jc]]);var Kc=["aria-labelledby"],Yc=[(0,t.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)],Wc=(0,t.defineComponent)({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Yc,14,Kc))}});var Uc=["aria-labelledby"],Gc=[(0,t.createElementVNode)("path",{d:"M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512zm0-938.667c-234.667 0-426.667 192-426.667 426.667s192 426.667 426.667 426.667 426.667-192 426.667-426.667S746.667 85.333 512 85.333zM448 320a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm-17.067 149.333h51.2c12.8 0 21.334 8.534 21.334 21.334v8.533c0 12.8-8.534 21.333-21.334 21.333h-51.2c-12.8 0-25.6-12.8-25.6-25.6s12.8-25.6 25.6-25.6zm51.2 0H524.8c25.6 0 51.2 21.334 51.2 51.2v8.534L537.6 755.2c0 8.533-8.533 17.067-21.333 17.067H473.6c-25.6 0-51.2-21.334-51.2-51.2v-8.534L460.8 486.4c4.267-8.533 12.8-17.067 21.333-17.067zm8.534 251.734h76.8c12.8 0 25.6 12.8 25.6 25.6s-12.8 25.6-25.6 25.6h-76.8c-12.8 0-21.334-8.534-21.334-21.334v-12.8c4.267-12.8 12.8-17.066 21.334-17.066z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Xc=(0,t.defineComponent)({__name:"Tips",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Gc,14,Uc))}});var Zc=["aria-labelledby"],Jc=[(0,t.createElementVNode)("path",{d:"M762.311 391.396C655.36 466.489 566.613 552.96 491.52 659.91c-20.48 27.307-61.44 27.307-79.644-2.275-34.134-52.338-72.818-91.023-125.156-125.156-25.031-15.929-9.102-54.613 20.48-50.062 56.889 11.378 100.124 34.133 143.36 72.818 77.369-93.298 175.218-166.116 286.72-213.903 27.307-9.102 50.062 31.858 25.031 50.063M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Qc=(0,t.defineComponent)({__name:"Success",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Jc,14,Zc))}});var e1=["aria-labelledby"],t1=[(0,t.createElementVNode)("path",{d:"M512 1024C228.43 1024 0 795.57 0 512S228.43 0 512 0s512 228.43 512 512-228.43 512-512 512zm0-945.23C273.067 78.77 78.77 273.066 78.77 512S273.066 945.23 512 945.23 945.23 750.934 945.23 512 750.934 78.77 512 78.77zM984.615 1024c-10.502 0-21.005-2.626-28.882-10.503L824.451 882.215c-15.754-15.753-15.754-39.384 0-55.138s39.385-15.754 55.139 0l131.282 131.282c15.754 15.754 15.754 39.385 0 55.138-5.251 7.877-15.754 10.503-26.257 10.503z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],l1=(0,t.defineComponent)({__name:"Search2",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},t1,14,e1))}});var n1=["aria-labelledby"],a1=[(0,t.createElementVNode)("path",{d:"M381.262 1005.563c-16.132 21.51-45.708 24.198-67.216 8.066-21.51-16.132-24.198-45.708-8.066-67.217C413.526 806.602 518.384 666.79 625.932 529.67c8.066-10.755 8.066-24.198 0-34.953C518.384 354.905 413.526 215.093 305.98 77.972c-16.132-21.51-10.755-51.085 8.066-67.217C335.556-5.377 365.13 0 381.262 18.82c107.547 142.5 212.405 282.31 319.952 419.433 34.952 43.019 34.952 104.858 0 150.565C593.667 728.63 488.81 868.44 381.262 1005.562",fill:"currentColor","fill-opacity":"0.9"},null,-1)],r1=(0,t.defineComponent)({__name:"Right",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},a1,14,n1))}});var o1=["aria-labelledby"],i1=[(0,t.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)],s1=(0,t.defineComponent)({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},i1,14,o1))}});var u1=["aria-labelledby"],c1=[(0,t.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)],tl=(0,t.defineComponent)({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},c1,14,u1))}});var d1=["aria-labelledby"],f1=[(0,t.createElementVNode)("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1)],m1=(0,t.defineComponent)({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},f1,14,d1))}});var h1=["aria-labelledby"],p1=[(0,t.createElementVNode)("path",{d:"M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267zm111.502 282.169c13.654-13.654 34.134-13.654 47.787 0 11.378 11.377 13.653 31.857 2.275 45.51l-2.275 2.276-111.502 111.502 111.502 111.503c13.653 13.653 13.653 34.133 0 47.786-13.653 13.654-34.133 13.654-47.787 0L512 557.511 400.498 669.013c-11.378 11.378-31.858 13.654-45.511 2.276l-2.276-2.276c-11.378-11.377-13.653-31.857-2.275-45.51l2.275-2.276 111.502-111.503-111.502-111.502c-13.653-13.653-13.653-34.133 0-47.786s34.133-13.654 47.787 0L512 461.938l111.502-111.502z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],g1=(0,t.defineComponent)({__name:"Failure",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},p1,14,h1))}});var v1=["aria-labelledby"],y1=[(0,t.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)],$o=(0,t.defineComponent)({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},y1,14,v1))}});var b1=["aria-labelledby"],w1=[(0,t.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)],Vo=(0,t.defineComponent)({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},w1,14,b1))}});var S1=["aria-labelledby"],x1=[(0,t.createElementVNode)("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0zm281.6 369.778C779.378 381.156 600.178 500.622 472.178 691.2c0 0 0 2.844-2.845 2.844-8.533 5.69-48.355 36.978-88.177-8.533-39.823-51.2-62.578-99.555-142.223-142.222-2.844 0-2.844-2.845-2.844-2.845-8.533-11.377-39.822-56.888 19.911-56.888 45.511 0 91.022 11.377 162.133 73.955 5.69 5.689 14.223 5.689 17.067 0C469.333 517.69 608.711 366.933 768 318.578c0 0 19.911-2.845 31.289 14.222 5.689 11.378 11.378 22.756-5.689 36.978z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],C1=(0,t.defineComponent)({__name:"Checked",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},x1,14,S1))}});var N1=["aria-labelledby"],k1=[(0,t.createElementVNode)("path",{d:"M512 1024c-136.533 0-264.533-54.044-361.244-150.756C54.044 776.534 0 648.534 0 512c0-136.533 54.044-264.533 150.756-361.244C247.466 54.044 375.466 0 512 0c136.533 0 264.533 54.044 361.244 150.756C969.956 247.466 1024 375.466 1024 512s-54.044 264.533-150.756 361.244C776.534 969.956 648.534 1024 512 1024zm0-938.667c-113.778 0-221.867 45.511-301.511 125.156S85.333 398.222 85.333 512s45.511 221.867 125.156 301.511S398.222 938.667 512 938.667s221.867-45.511 301.511-125.156S938.667 625.778 938.667 512 893.156 290.133 813.51 210.489 625.778 85.333 512 85.333z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],z1=(0,t.defineComponent)({__name:"CheckNormal",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},k1,14,N1))}});var T1=["aria-labelledby"],E1=[(0,t.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)],_1=(0,t.defineComponent)({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,r=l,n=i=>{r("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(a.height)??o(a.size),i.width=o(a.width)??o(a.size),i.color=a.color,i});return(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},E1,14,T1))}});var{componentName:$1,create:V1}=ie("popup"),B1=V1(Pc($1,{FoxOverLay:Yl,Close:$o}));function D1(e,l,a,r,n,o){const s=(0,t.resolveComponent)("FoxOverLay"),u=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(s,(0,t.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"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:l[1]||(l[1]=(...i)=>e.onClick&&e.onClick(...i))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:l[0]||(l[0]=(...i)=>e.onClickCloseIcon&&e.onClickCloseIcon(...i)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(u)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var wt=Re(B1,[["render",D1]]),{create:M1,scope:I1}=ie("calendar-pane"),A1=M1({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ue.getDay(0)},endDate:{type:String,default:ue.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:l,slots:a}){const{toLocaleRefs:r,t:n}=(0,Ce.useFoxI18n)(I1),o=r(e,["title","confirmText","startText","endText","today"]),s=(0,t.computed)(()=>({height:"39px"})),u=(0,t.computed)(()=>({height:"64px"})),i=JSON.parse(n("weekdays")),f=(0,t.ref)([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),m=(0,t.ref)(null),d=(0,t.ref)(null),y=(0,t.ref)(null),z=(0,t.ref)(null),S=(0,t.ref)(0),h=(0,t.computed)(()=>c.monthsData.slice(c.defaultRange[0],c.defaultRange[1])),v=(0,t.computed)(()=>a.btn),I=(0,t.computed)(()=>a["top-info"]),g=(0,t.computed)(()=>a["bottom-info"]),c=(0,t.reactive)({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),C=W=>W.split("-"),D=W=>ue.isEqual(c.currDate[0],W),T=W=>ue.isEqual(c.currDate[1],W),N=W=>c.currDate?.length>0?c.currDate?.some(O=>ue.isEqual(O,W)):!1,A=(W,O)=>O.curData[0]+"-"+O.curData[1]+"-"+ue.getNumTwoBit(+W.day),$=(W,O)=>{const J=A(W,O),{type:R}=e;return W.type=="curr"?ue.isEqual(c.currDate,J)||(R=="range"||R=="week")&&(D(J)||T(J))||R=="multiple"&&N(J)?`${c.dayPrefix}--active`:c.propStartDate&&ue.compareDate(J,c.propStartDate)||c.propEndDate&&ue.compareDate(c.propEndDate,J)?`${c.dayPrefix}--disabled`:(R=="range"||R=="week")&&Array.isArray(c.currDate)&&Object.values(c.currDate).length==2&&ue.compareDate(c.currDate[0],J)&&ue.compareDate(J,c.currDate[1])?`${c.dayPrefix}--choose`:null:`${c.dayPrefix}--disabled`},j=()=>{const{type:W}=e;if(W=="range"&&c.chooseData.length==2||W!="range"){let O=c.chooseData.slice(0);W=="week"&&(O={weekDate:[E(c.chooseData[0]),E(c.chooseData[1])]}),l("choose",O),e.poppable&&l("update")}},b=(W,O,J=!1)=>{if($(W,O)!=`${c.dayPrefix}--disabled`){const{type:R}=e;let[Q,w]=O.curData,p=[...O.curData];if(p[2]=ue.getNumTwoBit(Number(W.day)),p[3]=`${p[0]}-${p[1]}-${p[2]}`,p[4]=ue.getWhatDay(+p[0],+p[1],+p[2]),R=="multiple")if(c.currDate?.length>0){let B;c.currDate?.forEach((H,te)=>{H==p[3]&&(B=te)}),J?c.chooseData.push([...p]):B!==void 0?(c.currDate.splice(B,1),c.chooseData.splice(B,1)):(c.currDate.push(p[3]),c.chooseData.push([...p]))}else c.currDate=[p[3]],c.chooseData=[[...p]];else if(R=="range"){let B=Object.values(c.currDate).length;B==2||B==0?c.currDate=[p[3]]:ue.compareDate(c.currDate[0],p[3])?Array.isArray(c.currDate)&&c.currDate.push(p[3]):Array.isArray(c.currDate)&&c.currDate.unshift(p[3]),c.chooseData.length==2||!c.chooseData.length?c.chooseData=[[...p]]:ue.compareDate(c.chooseData[0][3],p[3])?c.chooseData=[...c.chooseData,[...p]]:c.chooseData=[[...p],...c.chooseData]}else if(R=="week"){let B=ue.getWeekDate(Q,w,W.day,e.firstDayOfWeek);c.propStartDate&&ue.compareDate(B[0],c.propStartDate)&&B.splice(0,1,c.propStartDate),c.propEndDate&&ue.compareDate(c.propEndDate,B[1])&&B.splice(1,1,c.propEndDate),c.currDate=B,c.chooseData=[ue.formatResultDate(B[0]),ue.formatResultDate(B[1])]}else c.currDate=p[3],c.chooseData=[...p];if(!J){let B=c.chooseData;R=="week"&&(B={weekDate:[E(c.chooseData[0]),E(c.chooseData[1])]}),l("select",B),(e.isAutoBackFill||!e.poppable)&&j()}}},E=W=>{let[O,J,R]=W;return{date:W,monthWeekNum:ue.getMonthWeek(O,J,R,e.firstDayOfWeek),yearWeekNum:ue.getYearWeek(O,J,R,e.firstDayOfWeek)}},Z=W=>{const O=W=="prev"?c.monthsData[0]:c.monthsData[c.monthsData.length-1];let J=parseInt(O.curData[0]),R=parseInt(O.curData[1].toString().replace(/^0/,""));switch(W){case"prev":R==1&&(J-=1),R=R==1?12:--R;break;case"next":R==12&&(J+=1),R=R==12?1:++R;break}return[J+"",ue.getNumTwoBit(R),ue.getMonthDays(String(J),String(R))+""]},x=(W,O,J)=>{let{year:R,month:Q}=J;return O=="prev"&&W>=7&&(W-=7),Array.from(Array(W),(w,p)=>({day:String(p+1),type:O,year:R,month:Q}))},V=(W,O,J,R)=>{W=W-e.firstDayOfWeek;let{year:Q,month:w}=J;return O=="prev"&&W>=7&&(W-=7),Array.from(Array(R),(p,B)=>({day:String(B+1),type:O,year:Q,month:w})).slice(R-W)},M=(W,O)=>{const J=ue.getMonthPreDay(+W[0],+W[1]);let R=Number(W[1])-1,Q=Number(W[0]);R<=0&&(R=12,Q+=1);const w=ue.getMonthDays(String(W[0]),String(W[1])),p=ue.getMonthDays(Q+"",R+""),B={year:W[0],month:W[1]},H={curData:W,title:n("monthTitle",{year:B.year,month:B.month}),monthData:[...V(J,"prev",{month:String(R),year:String(Q)},p),...x(w,"curr",B)],cssHeight:0,cssScrollHeight:0};H.cssHeight=39+64*(H.monthData.length>35?6:5);let te=0;c.monthsData.length>0&&(te=c.monthsData[c.monthsData.length-1].cssScrollHeight+c.monthsData[c.monthsData.length-1].cssHeight),H.cssScrollHeight=te,O=="next"?(!c.endData||!ue.compareDate(`${c.endData[0]}-${c.endData[1]}-${ue.getMonthDays(c.endData[0],c.endData[1])}`,`${W[0]}-${W[1]}-${W[2]}`))&&c.monthsData.push(H):!c.startData||!ue.compareDate(`${W[0]}-${W[1]}-${W[2]}`,`${c.startData[0]}-${c.startData[1]}-01`)?c.monthsData.unshift(H):c.unLoadPrev=!0},K=()=>{let W=e.startDate?e.startDate:ue.getDay(0),O=e.endDate?e.endDate:ue.getDay(365);c.propStartDate=W,c.propEndDate=O,c.startData=C(W),c.endData=C(O),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(c.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const J={year:Number(c.startData[0]),month:Number(c.startData[1])},R={year:Number(c.endData[0]),month:Number(c.endData[1])};let Q=R.month-J.month;R.year-J.year>0&&(Q=Q+12*(R.year-J.year)),Q<=0&&(Q=1),M(c.startData,"next");let w=1;do M(Z("next"),"next");while(w++<Q);if(c.monthsNum=Q,e.type=="range"&&Array.isArray(c.currDate))c.currDate.length>0&&(W&&ue.compareDate(c.currDate[0],W)&&c.currDate.splice(0,1,W),O&&ue.compareDate(O,c.currDate[1])&&c.currDate.splice(1,1,O),c.defaultData=[...C(c.currDate[0]),...C(c.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let p=[],B={};c.currDate.forEach(H=>{W&&!ue.compareDate(H,W)&&O&&!ue.compareDate(O,H)&&(Object.hasOwnProperty.call(B,H)||(p.push(H),B[H]=H))}),c.currDate=[...p],c.defaultData=[...C(p[0])]}}else if(e.type=="week"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let[p,B,H]=C(c.currDate[0]);c.currDate=ue.getWeekDate(p,B,H,e.firstDayOfWeek),W&&ue.compareDate(c.currDate[0],W)&&c.currDate.splice(0,1,W),O&&ue.compareDate(O,c.currDate[1])&&c.currDate.splice(1,1,O),c.defaultData=[...C(c.currDate[0]),...C(c.currDate[1])]}}else c.currDate&&(W&&ue.compareDate(c.currDate,W)?c.currDate=W:O&&!ue.compareDate(c.currDate,O)&&(c.currDate=O),c.defaultData=[...C(c.currDate)])};be({scrollToDate:W=>{ue.compareDate(W,c.propStartDate)?W=c.propStartDate:ue.compareDate(W,c.propEndDate)||(W=c.propEndDate);let O=C(W);c.monthsData.forEach((J,R)=>{if(J.title==n("monthTitle",{year:O[0],month:O[1]})&&m.value){let Q=c.monthsData[R].cssScrollHeight-m.value.scrollTop;if(e.toDateAnimation){let w=0,p=setInterval(()=>{if(w++,m.value){let B=Q/10;m.value.scrollTop=m.value.scrollTop+B}w>=10&&(clearInterval(p),m.value&&(m.value.scrollTop=c.monthsData[R].cssScrollHeight))},40)}else m.value.scrollTop=c.monthsData[R].cssScrollHeight}})},initPosition:()=>{m?.value&&(m.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)},doLayout:()=>{let W=0,O=0;c.defaultData.length>0&&c.monthsData.forEach((Q,w)=>{Q.title==n("monthTitle",{year:c.defaultData[0],month:c.defaultData[1]})&&(W=w),(e.type=="range"||e.type=="week")&&Q.title==n("monthTitle",{year:c.defaultData[3],month:c.defaultData[4]})&&(O=w)}),U(c.monthsNum,W),c.currentIndex=W,c.yearMonthTitle=c.monthsData[c.currentIndex].title,c.defaultData.length>0&&(c.isRange?(b({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0),b({day:c.defaultData[5],type:"curr"},c.monthsData[O],!0)):e.type=="week"?b({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0):e.type=="multiple"?[...c.currDate].forEach(Q=>{let w=C(Q),p=c.currentIndex;c.monthsData.forEach((B,H)=>{B.title==n("monthTitle",{year:w[0],month:w[1]})&&(p=H)}),b({day:w[2],type:"curr"},c.monthsData[p],!0)}):b({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0));let J=c.monthsData[c.monthsData.length-1],R=J.cssHeight+J.cssScrollHeight;Vn(()=>{m?.value&&d?.value&&z?.value&&(S.value=m.value.clientHeight,d.value.style.height=`${R}px`,m.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)}),c.avgHeight=Math.floor(R/(c.monthsNum+1))}});const U=(W,O)=>{W>=3?O>0&&O<W?c.defaultRange=[O-1,O+3]:O==0?c.defaultRange=[O,O+4]:O==W&&(c.defaultRange=[O-2,O+2]):c.defaultRange=[0,W+2],c.translateY=c.monthsData[c.defaultRange[0]].cssScrollHeight},G=(W,O)=>(e.type=="range"||e.type=="week")&&W.type=="curr"&&$(W,O)=="fox-calendar__day--active",F=(W,O)=>G(W,O)&&D(A(W,O)),q=(W,O)=>c.currDate.length>=2&&T(A(W,O))?G(W,O):!1,X=()=>{if(c.currDate.length>=2)return ue.isEqual(c.currDate[0],c.currDate[1])},L=W=>{const O=`${W.year}-${W.month}-${Number(W.day)<10?"0"+W.day:W.day}`;return ue.isEqual(O,ue.date2Str(new Date))},ee=W=>{if(c.monthsData.length<=1)return;const O=W.target.scrollTop;let J=Math.floor(O/c.avgHeight);if(J==0)O>=c.monthsData[J+1].cssScrollHeight&&(J+=1);else if(J>0&&J<c.monthsNum-1)O>=c.monthsData[J+1].cssScrollHeight&&(J+=1),O<c.monthsData[J].cssScrollHeight&&(J-=1);else{const R=Math.round(O+S.value);R<c.monthsData[J].cssScrollHeight+c.monthsData[J].cssHeight&&O>c.monthsData[J-1].cssScrollHeight&&(J-=1),J+1<=c.monthsNum&&R>=c.monthsData[J+1].cssScrollHeight+c.monthsData[J+1].cssHeight&&(J+=1),J>=1&&O<c.monthsData[J-1].cssScrollHeight&&(J-=1)}c.currentIndex!==J&&(c.currentIndex=J,U(c.monthsNum,J)),c.yearMonthTitle=c.monthsData[J].title},le=()=>{c.chooseData.splice(0),c.monthsData.splice(0),K()};return K(),(0,t.watch)(()=>e.defaultValue,W=>{W&&e.poppable&&le()}),{dayTitleStyle:s,dayCellStyle:u,weeks:f,compConthsData:h,showTopBtn:v,topInfo:I,bottomInfo:g,rangeTip:X,mothsViewScroll:ee,getClass:$,isStartTip:F,isEndTip:q,chooseDay:b,isCurrDay:L,confirm:j,months:m,...(0,t.toRefs)(c),...(0,t.toRefs)(e),...o,monthsPanel:d,weeksPanel:y,viewArea:z}}}),L1={class:"fox-calendar__header"},P1={key:0,class:"fox-calendar__header-title"},F1={key:1,class:"fox-calendar__header-slot"},R1={key:2,class:"fox-calendar__header-subtitle"},O1={class:"fox-calendar__weekdays",ref:"weeksPanel"},q1={class:"fox-calendar__panel",ref:"monthsPanel"},H1={class:"fox-calendar__days"},j1=["onClick"],K1={class:"fox-calendar__day-value"},Y1={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},W1={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},U1={key:2,class:"fox-calendar__day-tips--curr"},G1={key:4,class:"fox-calendar__day-tip"},X1={key:0,class:"fox-calendar__footer"};function Z1(e,l,a,r,n,o){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",L1,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",P1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",F1,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",R1,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",O1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(s,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:u},(0,t.toDisplayString)(s),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:l[0]||(l[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[(0,t.createElementVNode)("view",q1,[(0,t.createElementVNode)("view",{class:"fox-calendar__body",ref:"viewArea",style:(0,t.normalizeStyle)({transform:`translateY(${e.translateY}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.compConthsData,(s,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:u},[(0,t.createElementVNode)("view",{class:"fox-calendar__month-title",style:(0,t.normalizeStyle)(e.dayTitleStyle)},(0,t.toDisplayString)(s.title),5),(0,t.createElementVNode)("view",H1,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.monthData,(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:f,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(i,s)]),style:(0,t.normalizeStyle)(e.dayCellStyle),onClick:m=>e.chooseDay(i,s)},[(0,t.createElementVNode)("view",K1,[(0,t.renderSlot)(e.$slots,"day",{date:i.type=="curr"?i:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(i.type=="curr"?i.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Y1,[(0,t.renderSlot)(e.$slots,"top-info",{date:i.type=="curr"?i:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",W1,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:i.type=="curr"?i:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(i)?((0,t.openBlock)(),(0,t.createElementBlock)("view",U1,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(i,s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:3,class:(0,t.normalizeClass)(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},(0,t.toDisplayString)(e.startText),3)):(0,t.createCommentVNode)("",!0),e.isEndTip(i,s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",G1,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],14,j1))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",X1,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:l[1]||(l[1]=(...s)=>e.confirm&&e.confirm(...s))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var J1=Re(A1,[["render",Z1]]),{create:Q1}=ie("calendar-picker"),e0=Q1({components:{CalendarPane:J1,Popup:wt},props:{...la},emits:["choose","close","update:visible","select"],setup(e,{emit:l,slots:a}){const r=(0,t.computed)(()=>a.btn),n=(0,t.computed)(()=>a["top-info"]),o=(0,t.computed)(()=>a.day),s=(0,t.computed)(()=>a["bottom-info"]),u=(0,t.ref)(null),i=v=>{u.value?.scrollToDate(v)},f=()=>{u.value?.initPosition()},m=(0,t.computed)(()=>{const v=["fox-calendar__popup"];return e.popClass&&v.push(e.popClass),v});(0,t.watch)(()=>e.visible,v=>{v&&(0,t.nextTick)(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),be({scrollToDate:i,initPosition:f});const d=()=>{l("update:visible",!1)},y=()=>{l("close"),l("update:visible",!1)};return{popClasses:m,closePopup:()=>{y()},update:d,close:y,select:v=>{l("select",v)},choose:v=>{y(),l("choose",v)},calendarRef:u,showTopBtn:r,topInfo:n,dayInfo:o,bottomInfo:s}}});function t0(e,l,a,r,n,o){const s=(0,t.resolveComponent)("CalendarPane"),u=(0,t.resolveComponent)("Popup");return e.poppable?((0,t.openBlock)(),(0,t.createBlock)(u,(0,t.mergeProps)({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(i=>[(0,t.renderSlot)(e.$slots,"day",{date:i.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(i=>[(0,t.renderSlot)(e.$slots,"top-info",{date:i.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(i=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:i.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","pop-class","style"])):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(i=>[(0,t.renderSlot)(e.$slots,"day",{date:i.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(i=>[(0,t.renderSlot)(e.$slots,"top-info",{date:i.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(i=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:i.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}var Wl=Re(e0,[["render",t0]]),un=(e,l)=>{let a;return ft(e)?a=e:typeof e=="string"&&ut(e)>0?a=ue.parser(e,l):a=new Date,a},St=(e,l,a)=>(ft(l)||(l=new Date),ue.format(l,a)),xt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,ue.date2Str(e),ue.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Bo={...la,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:[String],default:"-"},valueFormat:{type:[String],default:"YYYY-MM-DD"},format:{type:[String],default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:[String]},textAlign:{type:[String]},clearable:{type:[Boolean],default:!0},maxLength:{type:[String,Number]}},l0={...Ne,...Te,...Bo};function n0(e,l,a,r){return{props:l0,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),{toLocaleRefs:y}=(0,Ce.useFoxI18n)(l),z=y(n,["placeholder"]);let S=ye(n,"hintText"),h=(0,t.ref)(!1);const v=(0,t.ref)(!1),I=(0,t.computed)(()=>n.type==="range"),g=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),c=()=>{g.startDate!==null&&(g.startDate=null,g.endDate=null,g.startArray=[],g.endArray=[])},C=(k,U="one",G="YYYY-MM-DD")=>{if(Lc(k)){c();return}if(I.value&&Array.isArray(k)&&k.length==2){let F,q;typeof k[0]=="string"?(F=un(k[0],G),q=un(k[1],G)):(F=k[0],q=k[1]);let X=xt(F),L=xt(q);(g.startDate===null||g.startDate.getTime()!==F.getTime()||g.endDate?.getTime()!==q.getTime())&&(g.startDate=F,g.startArray=X,g.endDate=q,g.endArray=L)}else{let F;typeof k=="string"?F=un(k,G):F=k;let q=xt(F);(g.startDate===null||g.startDate.getTime()!==F.getTime())&&(g.startDate=F,g.startArray=q)}};C(n.modelValue,n.type,n.valueFormat),(0,t.watch)(()=>n.modelValue,k=>{C(k,n.type,n.valueFormat),d("setValue",k)});const D=(0,t.computed)(()=>{if(g.startDate===null)return"";if(I.value){let k=St(n,g.startDate,n.format),U=St(n,g.endDate,n.format);return`${k} ${n.rangeSeparator} ${U}`}else{let k=St(n,g.startDate,n.format);return n.showWeek&&(k=`${k} ${g.startArray[4]}`),k}}),T=(0,t.computed)(()=>g.startDate===null?null:I.value?[ue.date2Str(g.startDate),ue.date2Str(g.endDate??new Date)]:ue.date2Str(g.startDate)),N="fox-input-item",A=(0,t.computed)(()=>({[N]:!0,[`${N}__disabled`]:u.value})),$=$e((0,t.computed)(()=>n.textAlign),"textAlign"),j=(0,t.computed)(()=>({textAlign:$.value??"right"})),b=(0,t.ref)(!1),E=()=>{f.value||u.value||(b.value=!0)},Z=()=>{b.value=!1},x=k=>{b.value=k},V=k=>{if(k){if(I.value&&Array.isArray(k)){let U=k[0],G=ve(U[0]),F=ve(U[1]),q=ve(U[2]),X=new Date(G,F-1,q),L=k[1];G=ve(L[0]),F=ve(L[1]),q=ve(L[2]);let ee=new Date(G,F-1,q);g.startDate=X,g.startArray=xt(X),g.endDate=ee,g.endArray=xt(ee),n.valueFormat?d("update:modelValue",[St(n,X,n.valueFormat),St(n,ee,n.valueFormat)],{}):d("update:modelValue",[X,ee],{})}else{let U=k,G=ve(U[0]),F=ve(U[1]),q=ve(U[2]),X=new Date(G,F-1,q);g.startDate=X,g.startArray=xt(X),n.valueFormat?d("update:modelValue",St(n,X,n.valueFormat),{}):d("update:modelValue",X,{})}d("change",k,{})}},M=k=>{let U=k.target.value;v.value=!0,d("focus",U,k)},K=k=>{setTimeout(()=>{v.value=!1},0);let U=k.target.value;n.maxLength&&U.length>Number(n.maxLength)&&(U=U.slice(0,Number(n.maxLength))),d("blur",U,k)},Y=k=>{c(),d("update:modelValue",null,k),d("change","",k),d("clear","")},P=(0,t.ref)();return be({showPicker:E,hidePicker:Z,focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()},setDisabled:k=>{s.value=k},setReadonly:k=>{i.value=k}}),()=>{if(m.value==="on"&&(f.value||u.value))return r(D.value,o.slots);const k={class:A.value,style:j.value,type:"text",maxlength:n.maxLength,placeholder:z.placeholder.value,readonly:!0,clearable:n.clearable,value:D.value,onClick:E,onFocus:M,onBlur:K,onClear:Y},U={};o.slots.prepend&&(U.prepend=o.slots.prepend),o.slots.append&&(U.append=o.slots.append),o.slots.prefix?U.prefix=o.slots.prefix:U.prefix=()=>(0,t.h)(_.ElIcon,{},{default:()=>(0,t.h)(_e.Calendar)}),o.slots.suffix&&(U.suffix=o.slots.suffix);const G=[],F=(0,t.h)(_.ElInput,k,U);G.push(F);const q={default:()=>G};q.label=o.slots.default,q.fixedPreTip=o.slots.fixedPreTip,q.fixedTip=o.slots.fixedTip;const X=nt(n,la);X.visible=b.value,X["onUpdate:visible"]=x,X["default-value"]=T.value,X.onChoose=V;const L={};if(o.slots.btn){const W=o.slots.btn();L.btn=()=>W}o.slots.day&&(L.day=o.slots.day),o.slots.topInfo&&(L.topInfo=o.slots.topInfo),o.slots.bottomInfo&&(L.bottomInfo=o.slots.bottomInfo);const ee=(0,t.h)(Wl,X,L);q.hide=()=>[ee];const le={...Ie(n,Bo),hintText:S.value,hintVisible:h.value};return n.prop&&(le.prop=`${n.prop}_item`),a(le,q)}}}}var{componentName:a0,create:r0,scope:o0}=ie("calendar-item"),i0=r0(n0(a0,o0,Le,He)),aa=i0,Do={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},rangeSeparator:{type:[String],required:!1},format:{type:[String],required:!1},maxLength:{type:[String,Number]}},s0={...Ne,...Te,...Do};function u0(e,l,a,r){return{props:s0,emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),{toLocaleRefs:y}=(0,Ce.useFoxI18n)(l),z=y(n,["placeholder"]),S=(0,t.ref)(!1),h=ye(n,"modelValue",null,d),v=e,I=(0,t.computed)(()=>({[v]:!0})),g=b=>{h.value=b,d("update:modelValue",b),d("change",b)};let c=ye(n,"hintText"),C=(0,t.ref)(!1);const D=b=>{let E=b.target.value;S.value=!0,me(c.value)||(C.value=!0),d("focus",E,b)},T=b=>{setTimeout(()=>{C.value&&(C.value=!1),S.value=!1},0);let E=b.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),d("blur",E,b)},N=()=>{d("clear","")},A=b=>{d("visible-change",b)},$=(0,t.ref)();be({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},handleOpen:()=>{$?.value.handleOpen()},handleClose:()=>{$?.value.handleClose()},setDisabled:b=>{s.value=b},setReadonly:b=>{i.value=b}});const j=(0,t.computed)(()=>{if(Ye(h.value))return"";const b=n.rangeSeparator??" - ",E=Array.isArray(h.value)?h.value:[h.value],Z=[];for(let V=0;V<E.length;V++){const M=E[V];if(M==="string"&&Z.push(M),M instanceof Date){const K=De.format(M,n.format);Z.push(K)}}const x=` ${b} `;return Z.join(x)});return()=>{if(m.value==="on"&&(f.value||u.value))return r(j.value,o.slots);const b={...o.attrs,ref:$,class:I.value,placeholder:z.placeholder.value,rangeSeparator:n.rangeSeparator,format:n.format,disabled:u.value,readonly:f.value,modelValue:h.value,"onUpdate:modelValue":g,onClear:N,onFocus:D,onBlur:T,onVisibleChange:A},E={},Z=[],x=(0,t.h)(_.ElTimePicker,b,E);Z.push(x);const V={default:()=>Z};V.label=o.slots.default,V.fixedPreTip=o.slots.fixedPreTip,V.fixedTip=o.slots.fixedTip;const M={...Ie(n,Do),hintText:c.value,hintVisible:C.value};return n.prop&&(M.prop=`${n.prop}_item`),a(M,V)}}}}var{componentName:c0,create:d0,scope:f0}=ie("time-item"),m0=d0(u0(c0,f0,Le,He)),ra=m0,Mo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},format:{type:[String],required:!1},rangeSeparator:{type:[String],required:!1},maxLength:{type:[String,Number]}},h0={...Ne,...Te,...Mo};function p0(e,l,a,r){return{props:h0,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),{toLocaleRefs:y}=(0,Ce.useFoxI18n)(l),z=y(n,["placeholder"]),S=(0,t.ref)(!1),h=ye(n,"modelValue",null,d),v=e,I=(0,t.computed)(()=>({[v]:!0})),g=j=>{h.value=j,d("update:modelValue",j),d("change",j)};let c=ye(n,"hintText"),C=(0,t.ref)(!1);const D=j=>{let b=j.target.value;S.value=!0,me(c.value)||(C.value=!0),d("focus",b,j)},T=j=>{setTimeout(()=>{C.value&&(C.value=!1),S.value=!1},0);let b=j.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),d("blur",b,j)},N=()=>{d("clear","")},A=(0,t.ref)();be({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()},setDisabled:j=>{s.value=j},setReadonly:j=>{i.value=j}});const $=(0,t.computed)(()=>{if(Ye(h.value))return"";const j=n.rangeSeparator??" - ",b=Array.isArray(h.value)?h.value:[h.value],E=[];for(let x=0;x<b.length;x++){const V=b[x];if(V==="string"&&E.push(V),V instanceof Date){const M=De.format(V,n.format);E.push(M)}}const Z=` ${j} `;return E.join(Z)});return()=>{if(m.value==="on"&&(f.value||u.value))return r($.value,o.slots);const j={...o.attrs,ref:A,class:I.value,placeholder:z.placeholder.value,rangeSeparator:n.rangeSeparator,foramt:n.format,disabled:u.value,readonly:f.value,modelValue:h.value,"onUpdate:modelValue":g,onClear:N,onFocus:D,onBlur:T},b={},E=[],Z=(0,t.h)(_.ElTimeSelect,j,b);E.push(Z);const x={default:()=>E};x.label=o.slots.default,x.fixedPreTip=o.slots.fixedPreTip,x.fixedTip=o.slots.fixedTip;const V={...Ie(n,Mo),hintText:c.value,hintVisible:C.value};return n.prop&&(V.prop=`${n.prop}_item`),a(V,x)}}}}var{componentName:g0,create:v0,scope:y0}=ie("time-select-item"),b0=v0(p0(g0,y0,Le,He)),oa=b0;function Qa(e,l=0){let a=`${e}`,r=a.indexOf(".");if(r==-1)return a;let n=r;for(let o=a.length-1;o>=r;o--)if(a.charAt(o)!="0"){n=o;break}return n-r<l?n=r+l+1:n!=r&&(n+=1),n>a.length?a=a.padEnd(n,"0"):a=a.substring(0,n),a}function er(e,l,a=20){return typeof l=="string"&&(l=ve(l)),l==1||l==-1?`${e}`:l==0?"0":l>0?Qa(Mr(`${e}`,`${l}`)):Qa(Dn(`${e}`,Ir(`${l}`),20))}function w0(e,l=-1,a=!1,r=3,n=","){return zl(e,ve(l),a,r,n)}function tr(e,l,a,r,n=!0){if(e==="")return"";if(e=Ar(e),l=ve(l),l==1)return e;if(r)e=er(e,l),a&&(e=="0"&&n?e=`${e}.`.padEnd(ve(a)+2,"0"):e=Dn(e,1,ve(a)));else{let o=-1*l;e=er(e,o)}return e}function lr(e,l){let a={maxValid:!0,minValid:!0,message:""};if(l.min!==void 0){let r=fe(l.minInclude),n=bn(e,l.min);(r&&n==-1||!r&&(n==0||n==-1))&&(a.message="请输入不小于 {0} 的数值".replace("{0}",l.min),a.minValid=!1)}if(l.max!=null){let r=fe(l.maxInclude),n=bn(e,l.max);(r&&n==1||!r&&(n==0||n==1))&&(a.maxValid=!1)}return a}var Io={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},textAlign:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:!0},alwaysSystem:{type:[Boolean],default:!1},maxLength:{type:[String,Number]}},S0={...Ne,...Te,...Io};function x0(e,l,a,r){return{props:S0,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),y=(0,t.ref)(!1),z=ye(n,"modelValue",null,d),S=(0,t.ref)("");(0,t.watch)([()=>z.value,()=>n.rates,()=>n.precision],([P,k,U])=>{if(me(P)){S.value="";return}const G=tr(P,k,U,!1);S.value!==G&&(S.value=G)},{immediate:!0});const h=(0,t.computed)(()=>{let P="";return y.value&&(P=S.value),P}),{t:v}=(0,Ce.useFoxI18n)(l),I=(0,t.computed)(()=>{let P=n.placeholder??"";return!y.value&&!me(S.value)?P=w0(S.value,n.decimalLength,n.autoPadding,n.digits,n.separator):P=v(["placeholder",P]),P}),g=e,c=(0,t.computed)(()=>({[g]:!0,[`${g}__disabled`]:u.value,[`${g}__placeholder`]:S.value.length>0})),C=$e((0,t.computed)(()=>n.textAlign),"textAlign"),D=(0,t.computed)(()=>y.value?{textAlign:"left"}:{textAlign:C.value??"right"}),T=(0,t.ref)(""),N=(0,t.computed)(()=>{let P=T.value;return me(P)&&(P=n.errorTip??""),P}),A=(0,t.ref)(""),$=(0,t.ref)(!1),j=(P,k)=>{if(P=`${P}`,me(P)){S.value="",z.value="",k.forEach(U=>{d(U,"")}),fe(n.showTip)&&$.value&&($.value=!1);return}if(P.length>=2){let U=P;if(U.charAt(0)=="-"&&(U=U.substring(1)),U.length>=2&&U.charAt(0)=="0"&&U.charAt(1)!="."){(0,t.triggerRef)(S);return}}if(P!="-"){if(!An(P)){(0,t.triggerRef)(S);return}if(n.integerLength!=-1&&jr(P)>Number(n.integerLength)){(0,t.triggerRef)(S);return}if(n.decimalLength&&n.decimalLength!=-1&&Kr(P)>Number(n.decimalLength)){(0,t.triggerRef)(S);return}let U=lr(P,n);if(U.maxValid===!1){T.value=U.message,(0,t.triggerRef)(S);return}}else if(n.min!=null&&ve(n.min)>=0){(0,t.triggerRef)(S);return}A.value=P,fe(n.showTip)&&($.value=P.length>0),S.value=P,z.value=tr(P,n.rates,n.precision,!0),k.forEach(U=>{d(U,z.value)})},b=P=>{j(P,["update:modelValue","input"])},E=P=>{j(P,["update:modelValue","change"])},Z=P=>{if(y.value=!0,fe(n.showTip)){let k=S.value;me(k)&&(k=n.hintText),me(k)||(A.value=k,$.value=!0)}T.value="",d("focus",z.value,P)},x=P=>{if(setTimeout(()=>{y.value=!1,fe(n.showTip)&&$.value===!0&&($.value=!1)},0),!me(S.value)){let k=lr(S.value,n);if(k.minValid===!1||k.maxValid===!1){T.value=k.message;return}}d("update:modelValue",z.value,P),d("blur",z.value,P)},V=()=>{d("clear","")},M=(0,t.computed)(()=>ut(n.unit)>0),K=(0,t.ref)();be({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},select:()=>{K?.value.select()},setDisabled:P=>{s.value=P},setReadonly:P=>{i.value=P}});const Y=()=>z.value?I.value:z.value;return()=>{if(m.value==="on"&&(f.value||u.value))return r(Y(),o.slots);const P={...et(o.attrs),ref:K,class:c.value,style:D.value,type:"digit",maxlength:n.maxLength,placeholder:I.value,clearable:n.clearable,disabled:u.value,readonly:f.value,modelValue:h.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onInput:b,onChange:E,onFocus:Z,onBlur:x},k={};o.slots.prepend&&(k.prepend=o.slots.prepend),o.slots.append&&(k.append=o.slots.append),o.slots.prefix&&(k.prefix=o.slots.prefix),o.slots.suffix?k.suffix=o.slots.suffix:M.value&&(k.suffix=()=>[n.unit]);const U=[],G=(0,t.h)(_.ElInput,P,k);U.push(G);const F={default:()=>U};F.label=o.slots.default,F.fixedPreTip=o.slots.fixedPreTip,F.fixedTip=o.slots.fixedTip;const q={...Ie(n,Io),errorTip:N.value,hintText:A.value,hintVisible:$.value,hintType:"number"};return n.prop&&(q.prop=`${n.prop}_item`),a(q,F)}}}}var{componentName:C0,create:N0,scope:k0}=ie("money-item"),z0=N0(x0(C0,k0,Le,He)),ia=z0,Ao={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},maxLength:{type:[String,Number]}},T0={...Ne,...Te,...Ao};function E0(e,l,a,r){return{props:T0,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),{toLocaleRefs:y}=(0,Ce.useFoxI18n)(l),z=y(n,["placeholder"]),S=(0,t.ref)(!1),h=ye(n,"modelValue",null,d),v=e,I=(0,t.computed)(()=>({[v]:!0,[`${v}__append`]:j.value})),g=(0,t.computed)(()=>({[`${v}__unit`]:!0})),c=E=>{h.value=E,d("update:modelValue",E),d("input",E)},C=E=>{d("change",E)};let D=ye(n,"hintText"),T=(0,t.ref)(!1);const N=E=>{let Z=E.target.value;S.value=!0,me(D.value)||(T.value=!0),d("focus",Z,E)},A=E=>{setTimeout(()=>{T.value&&(T.value=!1),S.value=!1},0);let Z=E.target.value;n.maxLength&&Z.length>Number(n.maxLength)&&(Z=Z.slice(0,Number(n.maxLength))),d("blur",Z,E)},$=()=>{d("clear","")},j=(0,t.computed)(()=>ut(n.unit)>0),b=(0,t.ref)();return be({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},setDisabled:E=>{s.value=E},setReadonly:E=>{i.value=E}}),()=>{if(m.value==="on"&&(f.value||u.value))return r(h.value,o.slots);const E={...et(o.attrs),ref:b,class:I.value,placeholder:z.placeholder.value,clearable:n.clearable,disabled:u.value,readonly:f.value,modelValue:h.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:$,onChange:C,onInput:c,onFocus:N,onBlur:A},Z={},x=[],V=(0,t.h)(_.ElInputNumber,E,Z);x.push(V);const M={default:()=>x};M.label=o.slots.default,M.fixedPreTip=o.slots.fixedPreTip,M.fixedTip=o.slots.fixedTip;const K={...Ie(n,Ao),hintText:D.value,hintVisible:T.value};if(n.prop&&(K.prop=`${n.prop}_item`),o.slots.append)M.append=o.slots.append;else if(j.value){const Y=(0,t.h)("div",{class:g.value},[n.unit]);M.append=()=>Y}return a(K,M)}}}}var{componentName:_0,create:$0,scope:V0}=ie("input-number-item"),B0=$0(E0(_0,V0,Le,He)),sa=B0;function ot(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function yt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function D0(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}var M0=class{proxy;constructor(e){this.proxy=e}async load(e,l,a,r){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a,r);const n=Fe(this.proxy,e);return n===null?(console.error(`${e} component not found api function`),[]):(Ue(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await n(l,a,r))}};function I0(){return new M0((0,t.getCurrentInstance)().proxy)}function Tn(e,l,a){return!(ot(e,l)!==ot(e,a)||yt(e,l)!==yt(e,a))}function Lo(e,l,a,r){if(r.length==0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const n=[];let o=r;for(let s=0;Array.isArray(o)&&s<l.length;s++){const u=l[s];if(Array.isArray(u)){const i=Lo(e,u,a,r);n.push(i)}else{let i=!1;for(let f of o){if(a==="text")i=ot(e,f)===u;else if(a==="item")i=Tn(e,f,u);else{let m=yt(e,f);m==null&&(m=ot(e,f)),i=m===u}if(i){n.push(f),o=D0(e,f);break}}if(!i)break}}return n}function A0(e){return{text:e,value:e}}var Po={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},allowCreate:{type:[Boolean]},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},maxLength:{type:[String,Number]}},L0={...Ne,...Te,...Po};function P0(e,l,a,r){return{props:L0,emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),{toLocaleRefs:y}=(0,Ce.useFoxI18n)(l),z=y(n,["placeholder"]),S=(0,t.ref)(null),h=(0,t.ref)([]),v=(0,t.computed)(()=>h.value?h.value.map(R=>Array.isArray(R)?R.map(Q=>ot(n,Q)).join(" "):ot(n,R)).join(" "):""),I=(R,Q,w,p=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(S.value===R)return;S.value=R;const ae=(0,t.toRaw)(R);if(p){const re=J?.value.getCheckedNodes();if(re)if(n.multiple){const ce=[];re.forEach(pe=>{const Se=(pe.pathNodes??[]).map(Ve=>Ve.data);ce.push(Se)}),d("update:pathNodes",ce)}else d("update:pathNodes",(re[0]?.pathNodes??[]).map(ce=>ce.data));d("update:modelValue",ae),d("change",ae)}return}const B=Lo(n,R,Q,w);if(B===null){if(h.value.length===0||h.value===null)return;h.value=[],S.value=null,p&&(d("update:pathNodes",[]),d("update:modelValue",null),d("change",null));return}const H=B[B.length-1];if(x.value.checkStrictly!==!0&&H&&!Array.isArray(H)&&Array.isArray(H.children)&&H.children.length>0){const ae=[];B.forEach(re=>{const ce=`${ot(n,re)}`;ae.push(ce)}),ae.length>0&&(E.value=ae.join(n.separator))}else E.value=null;let te=!0;if(B.length!==h.value.length)te=!1;else for(let ae=0;ae<B.length;ae++){const re=B[ae],ce=h.value[ae];if(Array.isArray(re)){if(!Array.isArray(ce)||re.length!==ce.length)te=!1;else for(let pe=0;pe<re.length;pe++)if(!Tn(n,re[pe],ce[pe])){te=!1;break}}else Tn(n,re,ce)||(te=!1);if(!te)break}if(!te){h.value=B;let ae=[],re=[];B.forEach(pe=>{if(Array.isArray(pe)){let Se=[],Ve=[];for(let je of pe)Se.push(yt(n,je)),n.valueType==="text"?Ve.push(ot(n,je)):n.valueType==="item"?Ve.push(je):Ve.push(yt(n,je));ae.push(Se),re.push(Ve)}else ae.push(yt(n,pe)),n.valueType==="text"?re.push(ot(n,pe)):n.valueType==="item"?re.push(pe):re.push(yt(n,pe))}),S.value=ae;const ce=(0,t.toRaw)(re);p&&(d("update:pathNodes",B),d("update:modelValue",ce),d("change",ce))}},g=(0,t.ref)([]),c=$e((0,t.computed)(()=>n.appearLoad),"appearLoad",qe.Near,R=>fe(R)),C=I0(),D=async(R,Q)=>{if(R){const w=await C.load("cascader",R,Q);w.length>0&&(typeof w[0]=="string"?g.value=w.map(p=>A0(p)):g.value=w)}};(0,t.watch)([()=>n.source,()=>n.params],async([R,Q])=>{D(R,Q)},{immediate:!(c.value||n.lazy)});let T=!1;const N=()=>{T||(T=!0,D(n.source,n.params))};(0,t.watch)([()=>g.value,()=>n.modelValue],([R,Q])=>{I(Q,n.valueType,R,!1),d("setValue",Q)}),n.lazy&&I(n.modelValue,"value",[],!1);let A=null,$=(0,t.ref)(!1);typeof n.remoteMethod=="function"&&(A=async R=>{if(R!=null){$.value=!0;try{g.value=await n.remoteMethod(R)}catch(Q){console.error(Q)}$.value=!1}});const j=(0,t.ref)(!1),b=e,E=(0,t.ref)(null),Z=(0,t.computed)(()=>({[b]:!0,"is-incomplete":E.value&&E.value.length>0})),x=(0,t.computed)(()=>{let R={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(R.multiple=!0),n.props&&Object.assign(R,n.props),n.lazy&&(R.lazy=!0,typeof n.lazyLoad=="function"?R.lazyLoad=n.lazyLoad:R.lazyLoad=async(Q,w)=>{let p={};n.params&&Object.assign(p,n.params),Q&&Object.assign(p,Q);const B=await C.load("cascader",n.source,p,!0);if(Q?.config?.checkStrictly!==!0&&Array.isArray(S.value)&&S.value.length===Q.level){const H=Q.pathLabels??[];let te=[];H.forEach(ae=>{ae&&te.push(ae)}),te.length>0&&(E.value=te.join(n.separator))}else E.value=null;w(B)}),R}),V=R=>{n.allowCreate?(d("update:modelValue",R),d("change",R),S.value=R):I(R,"value",g.value,!0)};let M=ye(n,"hintText"),K=(0,t.ref)(!1);const Y=R=>{let Q=R.target.value;j.value=!0,me(M.value)||(K.value=!0),d("focus",Q,R)},P=R=>{setTimeout(()=>{K.value&&(K.value=!1),j.value=!1},0);let Q=R.target.value;n.maxLength&&Q.length>Number(n.maxLength)&&(Q=Q.slice(0,Number(n.maxLength))),ee.value||d("blur",Q,R)},k=()=>{d("clear","")},U=(0,t.ref)(!1);let G=null;const F=()=>{n.showTooltip&&U.value===!1&&(G&&clearTimeout(G),G=setTimeout(()=>{U.value=!0},150))},q=()=>{G&&(clearTimeout(G),U.value=!1,G=null)},X=(0,t.computed)(()=>U.value||K.value),L=(0,t.computed)(()=>U.value?v.value:M.value),ee=(0,t.ref)(!1),le=R=>{ee.value=R,d("visible-change",R),R||d("selected")},W=R=>{d("remove-tag",R)},O=R=>{d("expand-change",R)},J=(0,t.ref)();return be({focus:()=>{J?.value.focus()},blur:()=>{J?.value.blur()},getCheckedNodes:()=>J?.value.getCheckedNodes(),setDisabled:R=>{s.value=R},setReadonly:R=>{i.value=R}}),()=>{if(m.value==="on"&&(f.value||u.value))return r(S.value,o.slots,g.value,n.separator);const R={...o.attrs,ref:J,class:Z.value,props:x.value,clearable:n.clearable,placeholder:E.value||z.placeholder.value,disabled:u.value||f.value,options:g.value,modelValue:S.value,separator:n.separator,onClear:k,onChange:V,onFocus:Y,onBlur:P,onVisibleChange:le,onRemoveTag:W,expandChange:O};typeof A=="function"&&(R["remote-method"]=A,R.loading=$.value);const Q={};o.slots.option&&(Q.default=o.slots.option),o.slots.empty&&(Q.empty=o.slots.empty);const w=[],p=(0,t.h)(_.ElCascader,R,Q);w.push(p);const B={default:()=>w};B.label=o.slots.default,B.fixedPreTip=o.slots.fixedPreTip,B.fixedTip=o.slots.fixedTip;const H={...Ie(n,Po),hintText:L.value,hintVisible:X.value,onMouseover:F,onMouseleave:q};return n.prop&&(H.prop=`${n.prop}_item`),c.value&&!n.lazy&&(H["appear-listen"]=!0,H.onAppear=N),a(H,B)}}}}var{componentName:F0,create:R0,scope:O0}=ie("cascader-item"),q0=R0(P0(F0,O0,Le,He)),ua=q0,Fo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},maxLength:{type:[String,Number]}},H0={...Ne,...Te,...Fo};function j0(e,l,a,r){return{props:H0,emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),{toLocaleRefs:y}=(0,Ce.useFoxI18n)(l),z=y(n,["placeholder"]),S=(0,t.ref)(!1),h=ye(n,"modelValue",null,d),v=e,I=(0,t.computed)(()=>({[v]:!0})),g=b=>{h.value=b,d("update:modelValue",b),d("input",b)},c=b=>{d("change",b)},C=b=>{d("select",b)};let D=ye(n,"hintText"),T=(0,t.ref)(!1);const N=b=>{let E=b.target.value;S.value=!0,me(D.value)||(T.value=!0),d("focus",E,b)},A=b=>{setTimeout(()=>{T.value&&(T.value=!1),S.value=!1},0);let E=b.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),d("blur",E,b)},$=()=>{d("clear","")},j=(0,t.ref)();return be({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()},setDisabled:b=>{s.value=b},setReadonly:b=>{i.value=b}}),()=>{if(m.value==="on"&&(f.value||u.value))return r(h.value,o.slots);const b={...o.attrs,ref:j,class:I.value,placeholder:z.placeholder.value,clearable:n.clearable,disabled:u.value,readonly:f.value,modelValue:h.value,onClear:$,onChange:c,onInput:g,onFocus:N,onBlur:A,onSelect:C},E={};o.slots.prepend&&(E.prepend=o.slots.prepend),o.slots.append&&(E.append=o.slots.append),o.slots.prefix&&(E.prefix=o.slots.prefix),o.slots.suffix&&(E.suffix=o.slots.suffix),o.slots.option&&(E.default=o.slots.option);const Z=[],x=(0,t.h)(_.ElAutocomplete,b,E);Z.push(x);const V={default:()=>Z};V.label=o.slots.default,V.fixedPreTip=o.slots.fixedPreTip,V.fixedTip=o.slots.fixedTip;const M={...Ie(n,Fo),hintText:D.value,hintVisible:T.value};return n.prop&&(M.prop=`${n.prop}_item`),a(n,V)}}}}var{componentName:K0,create:Y0,scope:W0}=ie("autocomplete-item"),U0=Y0(j0(K0,W0,Le,He)),ca=U0;function G0(e,l){let a=l.split("."),r=e;for(let n=0;n<a.length;n++){let o=a[n],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let f=o.substring(u+1,i);if(/^\d+$/.test(f)){let m=parseInt(f);if(s==0){let d=o.substring(0,u);r=r[d][m]}else r=r[m];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(r=r[o])}return r}function X0(e,l){return{props:{...So},setup(a,{attrs:r,slots:n}){return()=>{const o={default:s=>{const u=G0(s.row,s.column.property);return n.default?(0,t.h)(Bt,{...a,modelValue:u},{default:n.default}):(0,t.h)(Bt,{...a,modelValue:u})}};for(let s in n)s!=="default"&&(o[s]=n[s]);return(0,t.h)(_.ElTableColumn,{...r},o)}}}}var{componentName:Z0,create:J0,scope:Q0}=ie("table-mapping-column"),e2=J0(X0(Z0,Q0)),da=e2,t2=Symbol.for("TableStateKey");function nr(e,l){let a=l.split("."),r=e;for(let n=0;n<a.length;n++){let o=a[n],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let f=o.substring(u+1,i);if(/^\d+$/.test(f)){let m=parseInt(f);if(s==0){let d=o.substring(0,u);r=r[d][m]}else r=r[m];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(r=r[o])}return r}function l2(e,l){return{props:{prop:{type:[String],require:!1}},setup(a,{attrs:r}){const n=(0,t.inject)(t2,{});let o=null;return()=>{const s={default:u=>{const i=n.currentRow?n.currentRow.value:null;u.$index!==-1&&(o=u.row);const f=u.$index!==-1?u.row:o;let m=!1;if(f){const y=a.prop??u.column.property;y?m=nr(f,y)===(i?nr(i,y):null):m=Xe(f,i)}const d=(0,t.h)("span",{class:{"el-radio__input":!0,"is-checked":m}},[(0,t.h)("span",{class:{"el-radio__inner":!0}})]);return(0,t.h)("label",{class:{"el-radio":!0,"is-checked":m}},[d])}};return(0,t.h)(_.ElTableColumn,{...r},s)}}}}var{componentName:n2,create:a2,scope:r2}=ie("table-radio-column"),o2=a2(l2(n2,r2)),fa=o2,i2={},s2={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 u2(e,l){return(0,t.openBlock)(),(0,t.createElementBlock)("svg",s2,[...l[0]||(l[0]=[(0,t.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)])])}var c2=Re(i2,[["render",u2]]),{componentName:y6,create:d2,scope:b6}=ie("table-setting"),f2={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:"不固定"}},m2=d2({components:{FoxPopover:_.ElPopover,FoxCheckbox:_.ElCheckbox,FoxCheckboxGroup:_.ElCheckboxGroup,FoxButton:_.ElButton,FoxIcon:_.ElIcon,DragIcon:c2,Download:_e.Download,RefreshLeft:_e.RefreshLeft},props:{...f2},setup(e,{emit:l,attrs:a}){let r=[];const n=(0,t.ref)([]),o=(0,t.computed)(()=>n.value.filter(L=>L.label===""||L.type?!1:L.fixed===""||L.fixed===!0||L.fixed==="left")),s=(0,t.computed)(()=>n.value.filter(L=>L.label===""||L.type?!1:L.fixed==="right")),u=(0,t.computed)(()=>n.value.filter(L=>!(L.label===""||L.type||L.fixed!==void 0))),i=(0,t.computed)(()=>(o.value.length>0||s.value.length>0)&&u.value.length>0),f=(0,t.computed)(()=>o.value.length>0),m=(0,t.computed)(()=>s.value.length>0),d=L=>L.length>1,y=(L,ee)=>{Array.isArray(L)&&Array.isArray(ee)&&L.forEach(W=>{ee.some(O=>O.prop===W.prop?(W.label=O.label,!0):!1)});const le=[];n.value=L.map((W,O)=>(!(W.label===""||W.type)&&W.visible!==!1&&le.push(W.prop),{...W,sortIndex:O})),u.value.length+o.value.length+s.value.length===le.length?g.value=!0:le.length>0&&(c.value=!0),T.value=le},z=L=>L?L.type?L.type:L.label?L.prop:"":"",S=(L,ee)=>{if(L.length!==ee.length)return!1;const le=L.map(W=>z(W));for(let W of ee){const O=z(W);if(le.indexOf(O)===-1)return!1}return!0},h=L=>{if(!L){const ee=e.tableRef.getColumnSetting(),le=ee.srcColumnPropertyList;r=le.map((W,O)=>({...W,sortIndex:O})),L=ee.columnPropertyList,L&&L.length>0&&S(le,L)||(L=le)}y(L,r)},v=()=>{e.tableRef.setColumnSetting(n.value)},I=(0,t.computed)(()=>({"max-width":`${e.popoverWidth-125}px`})),g=(0,t.ref)(!1),c=(0,t.ref)(!1),C=L=>{const ee=[];n.value.forEach(le=>{L&&!(le.label===""||le.type)&&ee.push(le.prop),le.visible=L}),g.value=!1,c.value=!1,u.value.length+o.value.length+s.value.length===ee.length?g.value=!0:ee.length>0&&(c.value=!0),T.value=ee,v()},D=()=>{h(r),v()},T=(0,t.ref)([]),N=L=>{n.value.forEach(le=>{le.label===""||le.type||(le.visible=L.indexOf(le.prop)!==-1)}),g.value=!1,c.value=!1;const ee=u.value.length+o.value.length+s.value.length;L.length===ee?g.value=!0:L.length>0&&(c.value=!0),v()},A=()=>{h()};(0,t.onMounted)(()=>{setTimeout(()=>{h()},50)});const $={currentRow:null,index:null,roleType:null},j=L=>L?L.dataset&&L.dataset.role==="row"?L:L.tagName.toLowerCase()!=="body"?(L=L.parentElement,j(L)):null:null,b=L=>{const ee=L.currentTarget;ee&&ee.dataset&&($.roleType=ee.dataset.roleType,$.index=ee.dataset.index)},E=L=>{$.currentRow&&($.currentRow.classList.remove("is-dragover"),$.currentRow=null),$.index=null,$.roleType=null},Z=L=>{const ee=L.currentTarget;L.relatedTarget;const le=j(ee);if(!le)return;const W=le.dataset&&le.dataset.roleType;$.roleType===W&&(L.preventDefault(),$.currentRow&&$.currentRow!==le&&$.currentRow.classList.remove("is-dragover"),le.classList.add("is-dragover"),$.currentRow=le)},x=L=>{L.preventDefault(),$.currentRow&&($.currentRow.classList.remove("is-dragover"),$.currentRow=null)},V=L=>{const ee=L.currentTarget,le=j(ee);if(!le)return;const W=le.dataset&&le.dataset.roleType;if($.roleType!==W)return;L.preventDefault();const O=Number($.index),J=Number(le.dataset.index);if(O!==J){if(O<J){const R=n.value[O];n.value.splice(O,1),n.value.splice(J,0,R)}else{const R=n.value[O];n.value.splice(O,1),n.value.splice(J+1,0,R)}y(n.value,r),v()}},M=L=>{const ee=n.value[L];ee.fixed="left",v()},K=L=>{const ee=n.value[L];ee.fixed="right",v()},Y=L=>{const ee=n.value[L];ee.fixed=void 0,v()},P=new Map;let k=null;function U(L){const ee=document.createRange();return ee.setStart(L,0),ee.setEnd(L,L.childNodes.length),ee.getBoundingClientRect().width}return{attrs:a,leftFixedColumns:o,rightFixedColumns:s,unFixedColumns:u,isShowNotFixedTitle:i,isShowLeftFixedTitle:f,isShowRightFixedTitle:m,isDraggble:d,isCheckAll:g,isIndeterminate:c,handleCheckAllChange:C,handleReset:D,checkedValue:T,handleCheckChange:N,onShow:A,onDragStart:b,onDragEnd:E,onDragOver:Z,onDragLeave:x,onDrop:V,toLeftFixed:M,toRightFixed:K,toUnFixed:Y,checkboxLabelStyle:I,onMouseOverForOverflowText:(L,ee,le)=>{const W=L.currentTarget;if(W){const O=Math.floor(W.offsetWidth);if(Math.floor(U(W))>O){let J=P.get(ee);if(J){if(J===k)return;Pe.hide(J)}J=Pe.show(W,le,{type:"text",placement:"top",closeOnClick:!1}),J&&(P.set(ee,J),k=J)}}},onMouseLeaveForOverflowText:(L,ee)=>{const le=P.get(ee);le&&(Pe.hide(le),le===k&&(k=null))},onMouseOverForTip:(L,ee)=>{const le=L.currentTarget;le&&(k&&Pe.hide(k),k=Pe.show(le,ee,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:L=>{k&&(Pe.hide(k),k=null)}}}}),h2={class:"fox-table-setting"},p2={class:"fox-table-setting__header"},g2={class:"fox-table-setting__body"},v2={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},y2={key:0,class:"fox-table-setting__body-title"},b2=["data-index","draggable"],w2=["onMouseover","onMouseleave"],S2={class:"tools-item"},x2={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},C2={key:0,class:"fox-table-setting__body-title"},N2=["data-index","draggable"],k2=["onMouseover","onMouseleave"],z2={class:"tools-item"},T2={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},E2={key:0,class:"fox-table-setting__body-title"},_2=["data-index","draggable"],$2=["onMouseover","onMouseleave"],V2={class:"tools-item"};function B2(e,l,a,r,n,o){const s=(0,t.resolveComponent)("FoxCheckbox"),u=(0,t.resolveComponent)("FoxButton"),i=(0,t.resolveComponent)("DragIcon"),f=(0,t.resolveComponent)("RefreshLeft"),m=(0,t.resolveComponent)("FoxIcon"),d=(0,t.resolveComponent)("Download"),y=(0,t.resolveComponent)("fox-checkbox"),z=(0,t.resolveComponent)("FoxCheckboxGroup"),S=(0,t.resolveComponent)("FoxPopover");return(0,t.openBlock)(),(0,t.createBlock)(S,(0,t.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",h2,[(0,t.createElementVNode)("div",p2,[(0,t.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,t.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,t.createElementVNode)("div",g2,[(0,t.createVNode)(z,{modelValue:e.checkedValue,"onUpdate:modelValue":l[28]||(l[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:(0,t.withCtx)(()=>[e.leftFixedColumns.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("div",v2,[e.isShowLeftFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("div",y2,(0,t.toDisplayString)(e.leftFixedTitle),1)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.leftFixedColumns,h=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:l[5]||(l[5]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:l[6]||(l[6]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:l[7]||(l[7]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:l[8]||(l[8]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:l[9]||(l[9]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.leftFixedColumns)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"icon-item"})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(s,{class:"checkbox-item",value:h.prop},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,h.prop,h.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,h.prop),class:"checkbox-item__label",style:(0,t.normalizeStyle)(e.checkboxLabelStyle)},(0,t.toDisplayString)(h.label),45,w2)]),_:2},1032,["value"]),(0,t.createElementVNode)("div",S2,[(0,t.createVNode)(m,{onClick:v=>e.toUnFixed(h.sortIndex),onMouseover:l[1]||(l[1]=v=>e.onMouseOverForTip(v,e.unFixedText)),onMouseleave:l[2]||(l[2]=v=>e.onMouseLeaveForTip(v))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f)]),_:1},8,["onClick"]),(0,t.createVNode)(m,{onClick:v=>e.toRightFixed(h.sortIndex),onMouseover:l[3]||(l[3]=v=>e.onMouseOverForTip(v,e.fixedRightText)),onMouseleave:l[4]||(l[4]=v=>e.onMouseLeaveForTip(v))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d)]),_:1},8,["onClick"])])],40,b2))),128))])):(0,t.createCommentVNode)("",!0),e.unFixedColumns.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("div",x2,[e.isShowNotFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("div",C2,(0,t.toDisplayString)(e.unFixedTitle),1)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.unFixedColumns,h=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:l[14]||(l[14]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:l[15]||(l[15]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:l[16]||(l[16]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:l[17]||(l[17]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:l[18]||(l[18]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.unFixedColumns)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"icon-item"})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(s,{class:"checkbox-item",value:h.prop},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,h.prop,h.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,h.prop),class:"checkbox-item__label",style:(0,t.normalizeStyle)(e.checkboxLabelStyle)},(0,t.toDisplayString)(h.label),45,k2)]),_:2},1032,["value"]),(0,t.createElementVNode)("div",z2,[(0,t.createVNode)(m,{onClick:v=>e.toLeftFixed(h.sortIndex),onMouseover:l[10]||(l[10]=v=>e.onMouseOverForTip(v,e.fixedLeftText)),onMouseleave:l[11]||(l[11]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d)]),_:1},8,["onClick"]),(0,t.createVNode)(m,{onClick:v=>e.toRightFixed(h.sortIndex),onMouseover:l[12]||(l[12]=v=>e.onMouseOverForTip(v,e.fixedRightText)),onMouseleave:l[13]||(l[13]=v=>e.onMouseLeaveForTip(v))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d)]),_:1},8,["onClick"])])],40,N2))),128))])):(0,t.createCommentVNode)("",!0),e.rightFixedColumns.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("div",T2,[e.isShowRightFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("div",E2,(0,t.toDisplayString)(e.rightFixedTitle),1)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.rightFixedColumns,h=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:l[23]||(l[23]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:l[24]||(l[24]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:l[25]||(l[25]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:l[26]||(l[26]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:l[27]||(l[27]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.rightFixedColumns)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"icon-item"})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(y,{class:"checkbox-item",label:h.prop},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,h.prop,h.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,h.prop),class:"checkbox-item__label",style:(0,t.normalizeStyle)(e.checkboxLabelStyle)},(0,t.toDisplayString)(h.label),45,$2)]),_:2},1032,["label"]),(0,t.createElementVNode)("div",V2,[(0,t.createVNode)(m,{onClick:v=>e.toUnFixed(h.sortIndex),onMouseover:l[19]||(l[19]=v=>e.onMouseOverForTip(v,e.unFixedText)),onMouseleave:l[20]||(l[20]=v=>e.onMouseLeaveForTip(v))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f)]),_:1},8,["onClick"]),(0,t.createVNode)(m,{onClick:v=>e.toLeftFixed(h.sortIndex),onMouseover:l[21]||(l[21]=v=>e.onMouseOverForTip(v,e.fixedLeftText)),onMouseleave:l[22]||(l[22]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d)]),_:1},8,["onClick"])])],40,_2))),128))])):(0,t.createCommentVNode)("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var Ul=Re(m2,[["render",B2]]),D2=class{proxy;constructor(e){this.proxy=e}async load(e,l,a,r,n,o,s){if(Array.isArray(l)){let i=(a-1)*r,f=i+r;f>l.length&&(f=l.length);const m=l.slice(i,f);return{totalSize:l.length,page:m}}if(typeof l=="function")return await Reflect.apply(l,null,[a,r,n,o,s]);const u=Fe(this.proxy,e);return u===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Ue(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await Reflect.apply(u,null,[l,a,r,n,o,s]))}};function M2(){return new D2((0,t.getCurrentInstance)().proxy)}var I2=class{proxy;constructor(e){this.proxy=e}async load(e){let l=null;const a=Fe(this.proxy,"tableSetting");return typeof a=="function"&&(l=await Reflect.apply(a,null,["load",e])),l}save(e,l){const a=Fe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["save",e,l])}remove(e){const l=Fe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",e])}};function A2(){return new I2((0,t.getCurrentInstance)().proxy)}var L2=Symbol.for("TableStateKey"),Ro={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},lazyLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},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"}},Oo={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:()=>"large"},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}},En={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},P2={infiniteLoad:{type:Boolean,default:!0},loadText:{type:String,default:"加载中..."},noMoreText:{type:String,default:"无更多数据"}};function F2(e,l){let a=l.split("."),r=e;for(let n=0;n<a.length;n++){let o=a[n],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let f=o.substring(u+1,i);if(/^\d+$/.test(f)){let m=parseInt(f);if(s==0){let d=o.substring(0,u);r=r[d][m]}else r=r[m];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(r=r[o])}return r}function cn(e,l){return e.filter(a=>{for(let r in l)if(l[r]!==F2(a,r))return!1;return!0})}var R2={...Ne,...Te,...Ro,...Oo,...En,...P2};function O2(e,l,a){return{props:R2,emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(r,n){const{locale:o,toLocaleRefs:s}=(0,Ce.useFoxI18n)(l),u=s(r,["loadText","noMoreText"]),{emitEvent:i,broadcast:f}=ze({componentName:e,validateHandler:{getValue(...ne){return $.value}}},r.prop??n.attrs.name),m=e,d=(0,t.computed)(()=>({[m]:!0})),y=(0,t.computed)(()=>({[`${m}__setting`]:!0})),z=(0,t.computed)(()=>({[`${m}__footer`]:!0,[`${m}__footer__${r.footerAlign}`]:!0})),S=(0,t.computed)(()=>({[`${m}__pagination`]:!0,[`${m}__pagination__${r.paginationAlign}`]:!0})),h=(0,t.shallowRef)({}),v=(0,t.computed)(()=>({...h.value,...r.params??{},...r.baseParams??{}})),I=(0,t.ref)(r.infiniteLoad===!0?0:r.pageIndex),g=(0,t.ref)(r.pageSize),c=fe(r.infiniteLoad);c||((0,t.watch)(()=>r.pageIndex,ne=>{I.value=ne}),(0,t.watch)(()=>r.pageSize,ne=>{g.value=ne}),(0,t.watch)([I,g],([ne,oe],[se,de])=>{oe!==de&&(I.value=1,ne=1),Z(r.data,ne,oe,v.value)}));const C=()=>Array.isArray(r.data)?!0:fe(r.autoLoad);C()&&(0,t.watch)([()=>r.data,v],async([ne,oe],[se,de])=>{C()&&(ne!==se&&(b.value=!0),!(!Array.isArray(ne)&&Xe(ne,se)&&Xe(oe,de))&&(c?(I.value=0,N.value=!0,$.value=[],V()):I.value===1?Z(ne,I.value,g.value,oe):I.value=1))},{deep:!0});const D=ne=>{I.value=ne,i("page-index-change",ne)},T=ne=>{g.value=ne,i("page-size-change",ne)},N=(0,t.ref)(!0),A=(0,t.ref)(0),$=(0,t.ref)([]),j=M2();let b=(0,t.ref)(!0);const E=$e((0,t.computed)(()=>r.lazyLoad),"lazyLoad",qe.Near,ne=>fe(ne)),Z=async(ne,oe,se,de,Oe)=>{try{if(Oe===!0){if(!N.value)return!1;const we=await j.load("table",ne,oe,se,de,b.value,o.value);return A.value=we.totalSize,!we.page||!Array.isArray(we.page)||(Reflect.apply([].push,$.value,we.page),setTimeout(()=>{i("loaded-data")},250),($.value?.length??0)>=A.value)||we.page.length<se?(N.value=!1,!1):!0}else{const we=await j.load("table",ne,oe,se,de,b.value,o.value);return A.value=we.totalSize,$.value=we.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(we){console.error("[FoxUI] Load Table Data Fail",we),A.value=0,$.value=[]}finally{b.value=!1}return!1};let x=!1;const V=async()=>{if(!x){if(x=!0,!N.value){x=!1;return}I.value+=1,await Z(r.data,I.value,g.value,v.value,!0),x=!1}},M=(ne={},oe=!1)=>new Promise(async se=>{h.value={...(0,t.toRaw)(ne??{})},oe||(I.value=r.pageIndex??1),c===!0?(I.value=0,$.value=[],N.value=!0,await V()):await Z(r.data,I.value,g.value,v.value),se()}),K=()=>{A.value=0,$.value=[],c===!0&&(I.value=0,N.value=!0)};let Y=!1;const P=()=>{Y||(Y=!0,M())},k=(0,t.ref)(null);if(c===!0){let ne=null;const oe=()=>{k.value&&(ne=new IntersectionObserver(de=>{let Oe=!1;for(let we of de)if(we.intersectionRatio>0){Oe=!0;break}Oe&&b.value===!1&&V()}),ne.observe(k.value))},se=()=>{!ne||!k.value||(ne.unobserve(k.value),ne=null)};(0,t.onMounted)(oe),(0,t.onBeforeUnmount)(se)}C()&&!E.value&&M();const U=(0,t.ref)(null);(0,t.provide)(L2,{currentRow:U});const G=(ne,oe)=>{U.value=ne,i("current-change",ne,oe)},F=(ne,oe,se)=>{i("row-click",ne,oe,se),fe(r.rowClickSelectable)===!0&&Be?.value.toggleRowSelection(ne)},q=[],X=(ne,oe)=>{if(i("expand-change",ne,oe),fe(r.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const se=q.length;q.splice(0,se)}else{q.forEach(de=>{de!==ne&&Be?.value.toggleRowExpansion(de,!1)});const se=q.length;q.splice(0,se,ne)}},L=n.attrs.id??r.prop??n.attrs.name,ee=A2(),le=(0,t.ref)([]);let W=[];const O=()=>({srcColumnPropertyList:W.map(ne=>({...ne})),columnPropertyList:le.value}),J=ne=>{le.value=[...ne],Q()},R=async()=>{const ne=await ee.load(L);ne&&(le.value=ne)},Q=()=>{ee.save(L,le.value)},w=()=>{ee.remove(L)};R();const p=ne=>ne?ne.type?ne.type:ne.label?ne.prop:"":"",B=(ne,oe={})=>{for(let se in oe){const de=oe[se];typeof de!="function"&&(ne[se]=de)}},H=ne=>{const oe=ne?ne():[],se=new Map;if(W=[],oe.forEach(de=>{const Oe=de;if(!Oe.props)return;const we=p(Oe.props);se.set(we,Oe);const ke={label:"",prop:""};B(ke,Oe.props),W.push(ke)}),le.value.length===W.length){const de=[];for(let Oe of le.value){const we=p(Oe),ke=se.get(we);if(!ke)return oe;if(Oe.visible===!1)continue;const rt=ke;rt.props.fixed=Oe.fixed,de.push(rt)}return de}return oe},te=(0,t.shallowRef)(new Map),ae=({row:ne,column:oe,rowIndex:se,columnIndex:de})=>{const Oe=`${se}_${oe.property}`,we=`${se}_${de}`;let ke=te.value.get(Oe);return ke||(ke=te.value.get(we)),typeof ke=="string"?ke:""},re=ne=>ne?oe=>{const se=[];let de=ae(oe);return de&&se.push(de),de=typeof ne=="function"?ne(oe):ne,de&&se.push(de),se.length===0?"":se.join(" ")}:ae,ce=(ne=!1)=>{te.value.forEach((oe,se)=>{pe(se,oe,ne)})},pe=(ne,oe,se=!1)=>{const de=`${ne}_item`;se?(f.clearPersistantMessage(),Array.isArray(oe)?f.emitToChildren({name:ne},"setCellClassNames",[]):f.emitToChildren({name:de},"setCustomClassName","")):Array.isArray(oe)?f.emitToChildren({name:ne,cachePolicy:"Persistant",uniqueId:de},"setCellClassNames",oe):f.emitToChildren({name:de,cachePolicy:"Persistant",uniqueId:de},"setCustomClassName",oe)},Se=(ne,oe,se)=>{const de=`${ne}_${oe}`;se?(te.value.set(de,se),pe(de,se)):(te.value.delete(de),pe(de,"",!0)),(0,t.triggerRef)(te)},Ve=ne=>{ce(!0),te.value.clear(),ne.forEach(oe=>{const se=`${oe.rowIndex}_${oe.column}`;Array.isArray(oe.children)?te.value.set(se,oe.children):typeof oe.cellClassName=="string"&&te.value.set(se,oe.cellClassName)}),ce(),(0,t.triggerRef)(te)},je=()=>{ce(),te.value.clear(),(0,t.triggerRef)(te)},Je=(0,t.shallowRef)(new Map),At=({rowIndex:ne})=>{const oe=`${ne}`;return Je.value.get(oe)??""},il=ne=>ne?oe=>{const se=[];let de=At(oe);return de&&se.push(de),de=typeof ne=="function"?ne(oe):ne,de&&se.push(de),se.length===0?"":se.join(" ")}:At,ci=(ne,oe)=>{const se=`${ne}`;oe?Je.value.set(se,oe):Je.value.delete(se),(0,t.triggerRef)(Je)},di=()=>{Je.value.clear(),(0,t.triggerRef)(Je)},Be=(0,t.ref)();return be({clearSelection:()=>Be?.value.clearSelection(),getSelectionRows:()=>Be?.value.getSelectionRows(),toggleRowSelection:(ne,oe)=>{Be?.value.toggleRowSelection(ne,oe)},toggleRowSelectionByProp:(ne,oe)=>{if(!$.value)return;const se=cn($.value,ne);se.length!==0&&se.forEach(de=>{Be?.value.toggleRowSelection(de,oe)})},toggleAllSelection:()=>{Be?.value.toggleAllSelection()},toggleRowExpansion:(ne,oe)=>{Be?.value.toggleRowExpansion(ne,oe)},toggleRowExpansionByProp:(ne,oe)=>{if(!$.value)return;const se=cn($.value,ne);se.length!==0&&se.forEach(de=>{Be?.value.toggleRowExpansion(de,oe)})},setCurrentRow:ne=>{Be?.value.setCurrentRow(ne)},setCurrentRowByProp:ne=>{if(!$.value)return;const oe=cn($.value,ne);oe.length!==0&&Be?.value.setCurrentRow(oe[0])},getCurrentRow:()=>U.value,clearSort:()=>{Be?.value.clearSort()},clearFilter:ne=>{Be?.value.clearFilter(ne)},doLayout:()=>{Be?.value.doLayout()},sort:(ne,oe)=>{Be?.value.sort(ne,oe)},scrollTo:(ne,oe)=>{Be?.value.scrollTo(ne,oe)},setScrollTop:ne=>{Be?.value.setScrollTop(ne)},setScrollLeft:ne=>{Be?.value.setScrollLeft(ne)},loadData:M,clearData:K,getData(){return $.value},getTotalSize(){return A.value},getPageIndex(){return I.value},getPageSize(){return g.value},getColumnSetting:O,setColumnSetting:J,removeColumnSetting:w,setCellClassName:Se,setCellClassNames:Ve,clearCellClassName:je,setRowClassName:ci,clearRowClassName:di}),()=>{const ne={...et(n.attrs),onCurrentChange:G,onRowClick:F,onExpandChange:X,data:$.value,ref:Be,class:d.value,"cell-class-name":re(r.cellClassName),"row-class-name":il(r.rowClassName)},oe={};if(n.slots.default&&(oe.default=()=>H(n.slots.default)),n.slots.append&&(oe.append=n.slots.append),n.slots.empty&&(oe.empty=n.slots.empty),c===!0){const ke=[];if(N.value){const Lt=(0,t.h)(_e.Loading,{class:`${m}__infinite-icon`});ke.push(Lt);const tn=(0,t.h)("span",{class:`${m}__infinite-text`},[u.loadText.value]);ke.push(tn)}else{const Lt=(0,t.h)("span",{class:`${m}__infinite-text`},[u.noMoreText.value]);ke.push(Lt)}const rt=[`${m}__infinite`];b.value&&rt.push("is-hide");const en=(0,t.h)("div",{ref:k,class:rt},ke);oe.append=()=>en}const se=(0,t.h)(_.ElTable,ne,oe),de=[];if(de.push(se),!c){let ke=null;if(typeof n.slots.pagination=="function"?ke=n.slots.pagination():r.showPagination&&(ke=(0,t.h)(_.ElPagination,{class:S.value,total:A.value,pageSize:g.value,"onUpdate:pageSize":T,pageSizes:r.pageSizes,currentPage:I.value,"onUpdate:currentPage":D,hideOnSinglePage:r.hideOnSinglePage,layout:r.paginationLayout,size:r.paginationSize,background:r.paginationBackground,appendSizeTo:r.paginationAppendSizeTo,teleported:r.paginationTeleported,popperClass:r.paginationPopperClass,prevText:r.paginationpPrevText,prevIcos:r.paginationPrevIcon,nextText:r.paginationNextText,pnextIcon:r.paginationNextIcon,disabled:r.paginationDisabled})),r.showSetting){const rt=[];ke&&rt.push(ke);const en=(0,t.h)(_.ElIcon,{class:y.value},{default:()=>(0,t.h)(_e.Setting)}),Lt=(0,t.h)(Ul,{...nt(r,En),tableRef:{getColumnSetting:O,setColumnSetting:J,removeColumnSetting:w}},{default:()=>en});rt.push(Lt);const tn=(0,t.h)("div",{class:z.value},rt);de.push(tn)}else ke&&de.push(ke)}const Oe={default:()=>de},we={...Ie(r,Ro,Oo,En)};return r.prop&&(we.prop=`${r.prop}_item`),we.contentClass=`${m}__wrap`,we.errorMarkClass="is-table-error",E.value&&C()&&(we["appear-listen"]=!0,we.onAppear=P),a(we,Oe)}}}}var{componentName:q2,create:H2,scope:j2}=ie("table-item"),K2=H2(O2(q2,j2,Le)),ma=K2;function Dt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Xt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Y2(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}var W2=class{proxy;constructor(e){this.proxy=e}async load(e,l,a){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a);const r=Fe(this.proxy,e);return r===null?(console.error(`${e} component not found api function`),[]):(Ue(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await r(l,a))}};function U2(){return new W2((0,t.getCurrentInstance)().proxy)}function qo(e,l,a){return l===a?!0:!(l===null||a===null||Dt(e,l)!==Dt(e,a)||Xt(e,l)!==Xt(e,a))}function G2(e,l,a,r){if(r.length==0||l===""||l===null||l===void 0)return null;let n=null;for(let o of r){let s=!1;if(a==="text")s=Dt(e,o)===l;else if(a==="item")s=qo(e,o,l);else{let u=Xt(e,o);u==null&&(u=Dt(e,o)),s=u===l}if(s){n=o;break}}return n}function X2(e){return{text:e,value:e}}function Z2(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}var Ho={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},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}},J2={...Ne,...Te,...Ho};function Q2(e,l,a,r){return{inheritAttrs:!0,props:J2,emits:["change","update:modelValue","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),y=(0,t.ref)(null),z=(0,t.ref)(null),S=(b,E,Z,x=!0)=>{const V=G2(n,b,E,Z);if(V===null){if(z.value===null)return;z.value=null,y.value=null,x&&(d("update:modelValue",null),d("change",null));return}if(!qo(n,V,z.value)){y.value=b;const M=(0,t.toRaw)(V);z.value=M;let K=null;n.valueType==="text"?K=Dt(n,M):n.valueType==="item"?K=M:K=Xt(n,M),x&&(d("update:modelValue",K),d("change",K))}},h=(0,t.ref)([]),v=$e((0,t.computed)(()=>n.appearLoad),"appearLoad",qe.Near,b=>fe(b)),I=U2(),g=async(b,E)=>{if(b){const Z=await I.load("radio",b,E);Z.length>0&&(typeof Z[0]=="string"?h.value=Z.map(x=>X2(x)):h.value=Z)}};(0,t.watch)([()=>n.source,()=>n.params],async([b,E])=>{g(b,E)},{immediate:!v.value});let c=!1;const C=()=>{c||(c=!0,g(n.source,n.params))};(0,t.watch)([()=>h.value,()=>n.modelValue],([b,E])=>{S(E,n.valueType,b,!1),d("setValue",E)});const D=e,T=(0,t.computed)(()=>({[D]:!0,[`is-${n.direction}`]:!0})),N=b=>{S(b,"value",h.value,!0)};let A=ye(n,"hintText"),$=ye(n,"hintVisible");const j=(b,E)=>{typeof n.sourceFilter=="function"&&(b=b.filter(n.sourceFilter));const Z=[];return b.forEach((x,V)=>{const M=Xt(n,x),K=Dt(n,x);let Y=Y2(n,x);u.value===!0&&(Y=u.value),f.value===!0&&(Y=f.value);const P=Z2(n,x,V)??{},k=`${M}_${V}`,U={...P,key:k,value:M,size:n.size,border:fe(n.border)};Y&&(U.disabled=Y),n.itemType==="button"?Z.push((0,t.h)(_.ElRadioButton,U,{default:()=>[K]})):typeof E=="function"?Z.push((0,t.h)(_.ElRadio,U,{default:()=>E(x)})):Z.push((0,t.h)(_.ElRadio,U,{default:()=>[K]}))}),Z};return be({setDisabled:b=>{s.value=b},setReadonly:b=>{i.value=b}}),()=>{if(m.value==="on"&&(f.value||u.value))return r(y.value,o.slots,h.value);const b={...et(o.attrs),class:T.value,disabled:u.value||f.value,modelValue:y.value,"text-color":n.textColor,fill:n.fill,onChange:N},E=[],Z={};o.slots.options?Z.default=o.slots.options:Z.default=()=>j(h.value,o.slots.text);const x=(0,t.h)(_.ElRadioGroup,b,Z);E.push(x);const V={default:()=>E};V.label=o.slots.default,V.fixedPreTip=o.slots.fixedPreTip,V.fixedTip=o.slots.fixedTip;const M={...Ie(n,Ho),hintText:A.value,hintVisible:$.value};return n.prop&&(M.prop=`${n.prop}_item`),v.value&&(M["appear-listen"]=!0,M.onAppear=C),a(M,V)}}}}var{componentName:e3,create:t3,scope:l3}=ie("radio-item"),n3=t3(Q2(e3,l3,Le,He)),ha=n3;function Mt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Et(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function a3(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}var r3=class{proxy;constructor(e){this.proxy=e}async load(e,l,a){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a);const r=Fe(this.proxy,e);return r===null?(console.error(`${e} component not found api function`),[]):(Ue(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await r(l,a))}};function o3(){return new r3((0,t.getCurrentInstance)().proxy)}function jo(e,l,a){return l===a?!0:!(l===null||a===null||Mt(e,l)!==Mt(e,a)||Et(e,l)!==Et(e,a))}function i3(e,l,a,r){if(r.length==0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const n=[];return l.forEach(o=>{for(let s of r){let u=!1;if(a==="text")u=Mt(e,s)===o;else if(a==="item")u=jo(e,s,o);else{let i=Et(e,s);i==null&&(i=Mt(e,s)),u=i===o}if(u){n.push(s);break}}}),n}function s3(e){return{text:e,value:e}}function u3(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}var Ko={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},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},separator:{type:[String],required:!1,default:", "}},c3={...Ne,...Te,...Ko};function d3(e,l,a,r){return{inheritAttrs:!0,props:c3,emits:["change","update:modelValue","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),y=(0,t.ref)([]),z=(0,t.ref)([]),S=(b,E,Z,x=!0)=>{const V=i3(n,b,E,Z);if(V===null){if(z.value===null||z.value.length===0)return;y.value=[],z.value=[],x&&(d("update:modelValue",[]),d("change",[]));return}let M=!0;if(V.length!==z.value.length)M=!1;else for(let K=0;K<V.length;K++){const Y=V[K],P=z.value[K];if(!jo(n,Y,P)){M=!1;break}}if(!M){z.value=V;let K=[],Y=[];V.forEach(k=>{K.push(Et(n,k)),n.valueType==="text"?Y.push(Mt(n,k)):n.valueType==="item"?Y.push(k):Y.push(Et(n,k))}),y.value=K;const P=(0,t.toRaw)(Y);x&&(d("update:modelValue",P),d("change",P))}},h=(0,t.ref)([]),v=$e((0,t.computed)(()=>n.appearLoad),"appearLoad",qe.Near,b=>fe(b)),I=o3(),g=async(b,E)=>{if(b){const Z=await I.load("checkbox",b,E);Z.length>0&&(typeof Z[0]=="string"?h.value=Z.map(x=>s3(x)):h.value=Z)}};(0,t.watch)([()=>n.source,()=>n.params],async([b,E])=>{g(b,E)},{immediate:!v.value});let c=!1;const C=()=>{c||(c=!0,g(n.source,n.params))};(0,t.watch)([()=>h.value,()=>n.modelValue],([b,E])=>{S(E,n.valueType,b,!1),d("setValue",E)});const D=e,T=(0,t.computed)(()=>({[D]:!0,[`is-${n.direction}`]:!0})),N=b=>{S(b,"value",h.value,!0)};let A=ye(n,"hintText"),$=ye(n,"hintVisible");const j=(b,E)=>{typeof n.sourceFilter=="function"&&(b=b.filter(n.sourceFilter));const Z=[];return b.forEach((x,V)=>{const M=Et(n,x),K=Mt(n,x);let Y=a3(n,x);u.value===!0&&(Y=u.value),f.value===!0&&(Y=f.value);const P=u3(n,x,V)??{},k=`${M}_${V}`,U={...P,key:k,value:M,size:n.size,border:fe(n.border)};Y&&(U.disabled=Y),n.itemType==="button"?Z.push((0,t.h)(_.ElCheckboxButton,U,{default:()=>[K]})):typeof E=="function"?Z.push((0,t.h)(_.ElCheckbox,U,{default:()=>E(x)})):Z.push((0,t.h)(_.ElCheckbox,U,{default:()=>[K]}))}),Z};return be({setDisabled:b=>{s.value=b},setReadonly:b=>{i.value=b}}),()=>{if(m.value==="on"&&(f.value||u.value))return r(y.value,o.slots,h.value,n.separator);const b={...et(o.attrs),class:T.value,disabled:u.value||f.value,modelValue:y.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:N},E=[],Z={};o.slots.options?Z.default=o.slots.options:Z.default=()=>j(h.value,o.slots.text);const x=(0,t.h)(_.ElCheckboxGroup,b,Z);E.push(x);const V={default:()=>E};V.label=o.slots.default,V.fixedPreTip=o.slots.fixedPreTip,V.fixedTip=o.slots.fixedTip;const M={...Ie(n,Ko),hintText:A.value,hintVisible:$.value};return n.prop&&(M.prop=`${n.prop}_item`),v.value&&(M["appear-listen"]=!0,M.onAppear=C),a(M,V)}}}}var{componentName:f3,create:m3,scope:h3}=ie("checkbox-item"),p3=m3(d3(f3,h3,Le,He)),pa=p3,Yo={modelValue:{type:[Number,String],required:!1}},g3={...Ne,...Te,...Yo};function v3(e,l,a,r){return{props:g3,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),y=ye(n,"modelValue",c=>ve(c),d),z=e,S=(0,t.computed)(()=>({[z]:!0})),h=c=>{d("update:modelValue",c),d("change",c)};let v=ye(n,"hintText"),I=(0,t.ref)(!1);const g=(0,t.ref)();return be({setDisabled:c=>{s.value=c},setReadonly:c=>{i.value=c}}),()=>{if(m.value==="on"&&(f.value||u.value))return r(y.value,o.slots);const c={...et(o.attrs),ref:g,class:S.value,readonly:f.value||u.value,modelValue:y.value,onChange:h},C={},D=[],T=(0,t.h)(_.ElRate,c,C);D.push(T);const N={default:()=>D};N.label=o.slots.default,N.fixedPreTip=o.slots.fixedPreTip,N.fixedTip=o.slots.fixedTip;const A={...Ie(n,Yo),hintText:v.value,hintVisible:I.value};return n.prop&&(A.prop=`${n.prop}_item`),a(A,N)}}}}var{componentName:y3,create:b3,scope:w3}=ie("rate-item"),S3=b3(v3(y3,w3,Le,He)),ga=S3,Wo={modelValue:{type:[Boolean,String,Number],required:!1},activeValue:{type:[Boolean,String,Number],required:!1,default:()=>!0},inactiveValue:{type:[Boolean,String,Number],required:!1,default:()=>!1},activeText:{type:[String],required:!1},inactiveText:{type:[String],required:!1}};({...Ne,...Te,...Wo});function x3(e,l,a,r){return{props:{},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),y=(0,t.ref)(n.modelValue);(0,t.watch)(()=>n.modelValue,C=>{y.value!==C&&(y.value=C)});const z=e,S=(0,t.computed)(()=>({[z]:!0})),h=C=>{y.value=C,d("update:modelValue",C),d("change",C)};let v=ye(n,"hintText"),I=ye(n,"hintVisible");const g=(0,t.ref)();be({setDisabled:C=>{s.value=C},setReadonly:C=>{i.value=C}});const c=(0,t.computed)(()=>{let C=`${y.value}`;return n.inactiveText&&y.value===n.inactiveValue?C=n.inactiveText:n.activeText&&y.value===n.activeValue&&(C=n.activeText),C});return()=>{if(m.value==="on"&&(f.value||u.value))return r(c.value,o.slots);const C={...et(o.attrs),ref:g,class:S.value,readonly:f.value,disabled:u.value,"active-value":n.activeValue,"inactive-value":n.inactiveValue,"active-text":n.activeText,"inactive-text":n.inactiveText,modelValue:y.value,"onUpdate:modelValue":h},D={},T=[],N=(0,t.h)(_.ElSwitch,C,D);T.push(N);const A={default:()=>T};A.label=o.slots.default,A.fixedPreTip=o.slots.fixedPreTip,A.fixedTip=o.slots.fixedTip;const $={...Ie(n,Wo),hintText:v.value,hintVisible:I.value};return n.prop&&($.prop=`${n.prop}_item`),a($,A)}}}}var{componentName:C3,create:N3,scope:k3}=ie("switch-item"),z3=N3(x3(C3,k3,Le,He)),va=z3,Uo={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}},T3=class{proxy;constructor(e){this.proxy=e}async load(e,l,a,r,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a,r);const o=Fe(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(Ue(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await o(l,a,r))}};function E3(){return new T3((0,t.getCurrentInstance)().proxy)}var Go={modelValue:{type:[String,Number,Boolean,Array],required:!1},maxLength:{type:[String,Number]}},_3={...Ne,...Te,...Go,...Uo};function $3(e,l,a,r){return{props:_3,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),d=(0,t.ref)(!1),{emitEvent:y}=ze({componentName:e,get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),z=ye(n,"modelValue",null,y),S=e,h=(0,t.computed)(()=>({[S]:!0})),v=x=>{z.value=x,y("update:modelValue",x),y("change",x)};let I=ye(n,"hintText"),g=(0,t.ref)(!1);const c=x=>{let V=x.target.value;d.value=!0,me(I.value)||(g.value=!0),y("focus",V,x)},C=x=>{setTimeout(()=>{g.value&&(g.value=!1),d.value=!1},0);let V=x.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),T.value||y("blur",V,x)},D=()=>{y("clear","")},T=(0,t.ref)(!1),N=x=>{T.value=x,y("visible-change",x),x||y("selected")},A=(0,t.ref)([]),$=E3(),j=async(x,V)=>{try{A.value=await $.load("treeselect",x,V)}catch(M){console.error(M)}};(0,t.watch)([()=>n.data,()=>n.params,()=>n.lazy],([x,V,M])=>{!x||M||j(x,V)},{immediate:!0});let b=null;n.lazy&&(typeof n.load=="function"?b=n.load:b=async(x,V)=>{debugger;let M={};n.params&&Object.assign(M,n.params),x&&Object.assign(M,x),V(await $.load("treeselect",n.data,M,!0))});let E={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey};const Z=(0,t.ref)();return be({focus:()=>{Z?.value.focus()},blur:()=>{Z?.value.blur()},setDisabled:x=>{s.value=x},setReadonly:x=>{i.value=x}}),()=>{if(m.value==="on"&&(f.value||u.value))return r(z.value,o.slots);const x={...et(o.attrs),ref:Z,class:h.value,disabled:u.value||f.value,modelValue:z.value,"onUpdate:modelValue":v,lazy:n.lazy,props:E,onClear:D,onFocus:c,onBlur:C,onVisibleChange:N};b?x.load=b:x.data=A.value;const V={};o.slots.option&&(V.default=o.slots.option);const M=[],K=(0,t.h)(_.ElTreeSelect,x,V);M.push(K);const Y={default:()=>M};Y.label=o.slots.default,Y.fixedPreTip=o.slots.fixedPreTip,Y.fixedTip=o.slots.fixedTip;const P={...Ie(n,Go,Uo),hintText:I.value,hintVisible:g.value};return n.prop&&(P.prop=`${n.prop}_item`),a(P,Y)}}}}var{componentName:V3,create:B3,scope:D3}=ie("tree-select-item"),M3=B3($3(V3,D3,Le,He)),ya=M3,I3=class{proxy;constructor(e){this.proxy=e}async load(e){let l=null;const a=Fe(this.proxy,"tableSetting");return typeof a=="function"&&(l=await Reflect.apply(a,null,["load",e])),l}save(e,l){const a=Fe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["save",e,l])}remove(e){const l=Fe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",e])}};function A3(){return new I3((0,t.getCurrentInstance)().proxy)}var L3={},P3={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 F3(e,l){return(0,t.openBlock)(),(0,t.createElementBlock)("svg",P3,[...l[0]||(l[0]=[(0,t.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)])])}var R3=Re(L3,[["render",F3]]),{componentName:w6,create:O3,scope:S6}=ie("group-setting"),q3={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:"到底部"}},H3=O3({components:{FoxPopover:_.ElPopover,FoxCheckbox:_.ElCheckbox,FoxCheckboxGroup:_.ElCheckboxGroup,FoxButton:_.ElButton,FoxIcon:_.ElIcon,DragIcon:R3,Download:_e.Download,RefreshLeft:_e.RefreshLeft},props:{...q3},emits:["change"],setup(e,{emit:l,attrs:a,expose:r}){let n=null;const o=(0,t.ref)([]),s=A3(),u=G=>G.length>1,i=()=>{const G=[];o.value=[...o.value].map((F,q)=>(F.visible!==!1&&G.push(F.prop),{...F,sortIndex:q})),o.value.length===G.length?h.value=!0:G.length>0&&(v.value=!0),c.value=G},f=G=>{let F=null;if(typeof G=="string")F=document.querySelectorAll(`.fox-group[prop="${G}"] > div > .fox-item[prop]`);else if(G&&typeof G=="object"){const X=G.$el??G;typeof X.querySelectorAll=="function"&&(F=X.querySelectorAll(".fox-item[prop]"))}if(!F)return[];const q=[];return F.forEach(X=>{const L=X.querySelector(".label--string");let ee="";L&&(ee=L.textContent??"");const le=X.getAttribute("prop")??"",W=window.getComputedStyle(X,null).getPropertyValue("display");q.push({label:ee,prop:le,sortIndex:0,visible:W!=="none"})}),q},m=()=>{if(!n){const G=f(e.groupRef??e.groupProp);if(G.length===0)return!1;n=G}return!0},d=async(G=!1)=>{const F=await s.load(e.groupProp),q=X=>{if(!X||!n)return;const L=n.map(ee=>({...ee}));Array.isArray(F)&&F.forEach(ee=>{L.some(le=>{if(le.prop===ee.prop){const W=le.label;return Object.assign(le,ee),le.label=W,!0}return!1})}),o.value=L.sort((ee,le)=>ee.sortIndex-le.sortIndex),i(),G&&z(!1)};n?q(!0):$l(m,e.initDelay,5,50,!1,q)},y=()=>{o.value=(n??[]).map(G=>({...G})),i(),z()},z=(G=!0)=>{G&&s.save(e.groupProp,o.value),l("change",o.value.map(F=>({...F})))},S=(0,t.computed)(()=>({"max-width":`${e.popoverWidth-125}px`})),h=(0,t.ref)(!1),v=(0,t.ref)(!1),I=G=>{const F=[];o.value.forEach(q=>{G&&F.push(q.prop),q.visible=G}),h.value=!1,v.value=!1,o.value.length===F.length?h.value=!0:F.length>0&&(v.value=!0),c.value=F,z()},g=()=>{y()},c=(0,t.ref)([]),C=G=>{o.value.forEach(q=>{q.visible=G.indexOf(q.prop)!==-1}),h.value=!1,v.value=!1;const F=o.value.length;G.length===F?h.value=!0:G.length>0&&(v.value=!0),z()},D=()=>{d()};(0,t.onMounted)(()=>{d(!0)});const T={currentRow:null,index:null},N=G=>G?G.dataset&&G.dataset.role==="row"?G:G.tagName.toLowerCase()!=="body"?(G=G.parentElement,N(G)):null:null,A=G=>{const F=G.currentTarget;F&&F.dataset&&(T.index=F.dataset.index)},$=G=>{T.currentRow&&(T.currentRow.classList.remove("is-dragover"),T.currentRow=null),T.index=null},j=G=>{const F=G.currentTarget;G.relatedTarget;const q=N(F);q&&(G.preventDefault(),T.currentRow&&T.currentRow!==q&&T.currentRow.classList.remove("is-dragover"),q.classList.add("is-dragover"),T.currentRow=q)},b=G=>{G.preventDefault(),T.currentRow&&(T.currentRow.classList.remove("is-dragover"),T.currentRow=null)},E=G=>{const F=G.currentTarget,q=N(F);if(!q)return;G.preventDefault();const X=Number(T.index),L=Number(q.dataset.index);if(X!==L){if(X<L){const ee=o.value[X];o.value.splice(X,1),o.value.splice(L,0,ee)}else{const ee=o.value[X];o.value.splice(X,1),o.value.splice(L+1,0,ee)}i(),z()}},Z=G=>{const F=o.value[G];o.value.splice(G,1),o.value.splice(0,0,F),i(),z()},x=G=>{const F=o.value[G];o.value.splice(G,1),o.value.push(F),i(),z()};r({refresh:()=>{n=null,d(!1)}});const V=new Map;let M=null;function K(G){const F=document.createRange();return F.setStart(G,0),F.setEnd(G,G.childNodes.length),F.getBoundingClientRect().width}return{attrs:a,itemPropertyList:o,isDraggble:u,isCheckAll:h,isIndeterminate:v,handleCheckAllChange:I,handleReset:g,checkedValue:c,handleCheckChange:C,onShow:D,onDragStart:A,onDragEnd:$,onDragOver:j,onDragLeave:b,onDrop:E,checkboxLabelStyle:S,toTop:Z,toBottom:x,onMouseOverForOverflowText:(G,F,q)=>{const X=G.currentTarget;if(X){const L=Math.floor(X.offsetWidth);if(Math.floor(K(X))>L){let ee=V.get(F);if(ee){if(ee===M)return;Pe.hide(ee)}ee=Pe.show(X,q,{type:"text",placement:"top",closeOnClick:!1}),V.set(F,ee),M=ee}}},onMouseLeaveForOverflowText:(G,F)=>{const q=V.get(F);q&&(Pe.hide(q),q===M&&(M=null))},onMouseOverForTip:(G,F)=>{const q=G.currentTarget;q&&(M&&Pe.hide(M),M=Pe.show(q,F,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:G=>{M&&(Pe.hide(M),M=null)}}}}),j3={class:"fox-group-setting"},K3={class:"fox-group-setting__header"},Y3={class:"fox-group-setting__body"},W3={class:"fox-group-setting__body-list","data-role":"container"},U3=["data-index","draggable"],G3=["onMouseover","onMouseleave"],X3={class:"tools-item"};function Z3(e,l,a,r,n,o){const s=(0,t.resolveComponent)("FoxCheckbox"),u=(0,t.resolveComponent)("FoxButton"),i=(0,t.resolveComponent)("DragIcon"),f=(0,t.resolveComponent)("Download"),m=(0,t.resolveComponent)("FoxIcon"),d=(0,t.resolveComponent)("FoxCheckboxGroup"),y=(0,t.resolveComponent)("FoxPopover");return(0,t.openBlock)(),(0,t.createBlock)(y,(0,t.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",j3,[(0,t.createElementVNode)("div",K3,[(0,t.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=z=>e.isCheckAll=z),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,t.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,t.createElementVNode)("div",Y3,[(0,t.createVNode)(d,{modelValue:e.checkedValue,"onUpdate:modelValue":l[10]||(l[10]=z=>e.checkedValue=z),onChange:e.handleCheckChange},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",W3,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.itemPropertyList,z=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:z.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":z.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:l[5]||(l[5]=(...S)=>e.onDragStart&&e.onDragStart(...S)),onDragend:l[6]||(l[6]=(...S)=>e.onDragEnd&&e.onDragEnd(...S)),onDrop:l[7]||(l[7]=(...S)=>e.onDrop&&e.onDrop(...S)),onDragover:l[8]||(l[8]=(...S)=>e.onDragOver&&e.onDragOver(...S)),onDragleave:l[9]||(l[9]=(...S)=>e.onDragLeave&&e.onDragLeave(...S))},[e.isDraggble(e.itemPropertyList)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"icon-item"})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(s,{class:"checkbox-item",label:z.prop},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",{onMouseover:S=>e.onMouseOverForOverflowText(S,z.prop,z.label),onMouseleave:S=>e.onMouseLeaveForOverflowText(S,z.prop),class:"checkbox-item__label",style:(0,t.normalizeStyle)(e.checkboxLabelStyle)},(0,t.toDisplayString)(z.label),45,G3)]),_:2},1032,["label"]),(0,t.createElementVNode)("div",X3,[(0,t.createVNode)(m,{onClick:S=>e.toTop(z.sortIndex),onMouseover:l[1]||(l[1]=S=>e.onMouseOverForTip(S,e.toTopText)),onMouseleave:l[2]||(l[2]=S=>e.onMouseLeaveForTip(S)),class:"is-reverse"},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f)]),_:1},8,["onClick"]),(0,t.createVNode)(m,{onClick:S=>e.toBottom(z.sortIndex),onMouseover:l[3]||(l[3]=S=>e.onMouseOverForTip(S,e.toBottomText)),onMouseleave:l[4]||(l[4]=S=>e.onMouseLeaveForTip(S))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(f)]),_:1},8,["onClick"])])],40,U3))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var ba=Re(H3,[["render",Z3]]),J3={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}},Q3=class{proxy;constructor(e){this.proxy=e}async load(e,l,a,r,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a,r);const o=Fe(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(Ue(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await o(l,a,r))}};function e4(){return new Q3((0,t.getCurrentInstance)().proxy)}var t4={...Zn,...J3};function l4(e,l,a){return{props:t4,setup(r,n){const o=e,s=(0,t.computed)(()=>({[o]:!0})),u=(0,t.ref)([]),i=e4(),f=async(c,C)=>{try{u.value=await i.load("tree",c,C)}catch(D){console.error(D)}},m=(0,t.shallowRef)({}),d=(0,t.computed)(()=>({...m.value,...r.params??{}}));(Array.isArray(r.data)?!0:r.lazy?!1:fe(r.autoLoad))&&(0,t.watch)([()=>r.data,()=>d.value],([c,C])=>{c&&f(c,C)},{immediate:!0,deep:!0});let z=null;r.lazy&&(typeof r.load=="function"?z=r.load:z=async(c,C)=>{let D={};r.params&&Object.assign(D,r.params),c&&Object.assign(D,c),C(await i.load("treeselect",r.data,D,!0))});const S={label:r.textKey,value:r.valueKey,children:r.childrenKey,isLeaf:r.leafKey,class:r.classKey,disabled:r.disabledKey,...r.props??{}},h=(c={})=>new Promise(async C=>{m.value={...(0,t.toRaw)(c??{})},await f(r.data,d.value),C()}),v=function(c,C){if(typeof r.filterNodeMethod=="function")return r.filterNodeMethod(c,C);if(!r.filterKeyword)return!0;const D=`${C[S.label]}`,T=`${c}`;return D.includes(T)},I=(0,t.ref)();(0,t.watch)(()=>r.filterKeyword,c=>{I.value.filter(c)});const g=c=>(...C)=>{const D=I.value[c];return Reflect.apply(D,I.value,[...C])};return n.expose({loadData:h,filter:g("filter"),updateKeyChildren:g("updateKeyChildren"),getCheckedNodes:g("getCheckedNodes"),setCheckedNodes:g("setCheckedNodes"),getCheckedKeys:g("getCheckedKeys"),setCheckedKeys:g("setCheckedKeys"),setChecked:g("setChecked"),getHalfCheckedNodes:g("getHalfCheckedNodes"),getHalfCheckedKeys:g("getHalfCheckedKeys"),getCurrentKey:g("getCurrentKey"),getCurrentNode:g("getCurrentNode"),setCurrentKey:g("setCurrentKey"),setCurrentNode:g("setCurrentNode"),getNode:g("getNode"),remove:g("remove"),append:g("append"),insertBefore:g("insertBefore"),insertAfter:g("insertAfter")}),()=>{const c={...et(n.attrs),class:s.value,lazy:r.lazy,props:S,ref:N=>I.value=N};z?c.load=z:c.data=u.value,c["filter-node-method"]=v;const C=[],D=(0,t.h)(_.ElTree,c,n.slots);C.push(D);const T={default:()=>C};return(0,t.h)(a,{...nt(r,Zn)},T)}}}}var{componentName:n4,create:a4,scope:r4}=ie("tree-item"),o4=a4(l4(n4,r4,Hl)),wa=o4,kl={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function i4(e,l,a,r="value"){for(let n=0;n<l.length;n++){let o=l[n];if(r==="text"){if(pl(e,o)===a)return n}else if(r==="item"){if(Xe(a,o))return n}else if(Xo(e,o)===a)return n}return-1}function pl(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function ar(e,l){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?l[e.subTextKey]:l.text}function Xo(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function s4(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function u4(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}var c4=class{proxy;constructor(e){this.proxy=e}async load(e,l,a,r,n,o,s){if(Array.isArray(l)){let i=l;typeof s=="function"&&(i=i.filter(s));let f=(a-1)*r,m=f+r;m>i.length&&(m=i.length);const d=i.slice(f,m);return{totalSize:i.length,page:d}}if(typeof l=="function")return await Reflect.apply(l,null,[a,r,n,o]);const u=Fe(this.proxy,e);return u===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Ue(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await Reflect.apply(u,null,[l,a,r,n]))}};function d4(){return new c4((0,t.getCurrentInstance)().proxy)}function f4(e,l,a,r,n,o,s,u,i,f,m){return{props:kl,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:y}){const{emitEvent:z}=Fn(),{toLocaleRefs:S}=(0,Ce.useFoxI18n)(l),h=S(d,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),v=d4(),I=(0,t.ref)([]),g=(0,t.ref)(0),c=(0,t.ref)(""),C=(0,t.shallowRef)(null),D=(0,t.computed)(()=>{const O={};return d.params&&Object.assign(O,d.params),me(c.value)||(O[`${d.searchKey}`]=c.value),C.value&&Object.assign(O,C.value),O});let T=!0;const N=async(O,J,R)=>{try{if($.value===!1)return;let Q=null;me(c.value)||(Q=p=>{const B=pl(d,p);if(typeof B=="string"&&B.includes(c.value))return!0;const H=ar(d,p);return!!(typeof H=="string"&&H.includes(c.value))});const w=await v.load("actionsheet",O,J,R,D.value,T,Q??void 0);T=!1,Array.isArray(w)?(I.value=w,g.value=1,$.value=!1):!Array.isArray(w.page)||w.page.length===0?(console.warn("[FoxUI] can not load more data"),$.value=!1):(Reflect.apply([].push,I.value,w.page),g.value=Math.ceil(I.value.length/d.pageSize),(w.totalSize&&I.value.length>=w.totalSize||R<w.page.length)&&($.value=!1)),A.value=!1}catch(Q){console.error("[FoxUI] ActionSheet load more data fail",Q),$.value=!0,g.value=0,I.value=[]}setTimeout(()=>{z("loaded-data")},250)},A=(0,t.ref)(!1),$=(0,t.ref)(!0),j=async()=>{if(!d.source){A.value=!1;return}await N(d.source,g.value+1,d.pageSize)};(0,t.watch)(()=>c.value,(O,J)=>{me(O)&&!me(J)&&j()}),(0,t.watch)([()=>d.source,()=>d.pageSize,()=>d.params],async([O,J,R])=>{d.source&&j()},{immediate:!0});const b=(0,t.computed)(()=>!d.multiple&&d.isAutoBackFill),E=(0,t.ref)([]);let Z=null;const x=(0,t.ref)(d.visible);(0,t.watch)(()=>d.visible,O=>{x.value!==O&&(x.value=O),O?Z=[...E.value]:Z=null});const V=(O,J)=>{const R=[];return Array.isArray(O)||(O=[O]),O.forEach(Q=>{let w=i4(d,J,Q,d.valueType);w!==-1&&R.push(w)}),Xe(R,E.value)?!1:(E.value=R,!0)};(0,t.watch)([()=>d.modelValue,()=>I.value],([O,J],[R,Q])=>{V(O,J)&&K(M())},{deep:!0});const M=()=>{const O=[],J=[],R=[];for(let B of E.value){const H=I.value[B];J.push(H);const te=pl(d,H);if(R.push(te),d.valueType==="item")O.push(H);else if(d.valueType==="text")O.push(te);else{const ae=Xo(d,H);O.push(ae)}}let Q=null,w=null,p=null;return d.multiple?(Q=O,w=R,p=J):(Q=O[0]??null,w=R[0]??null,p=J[0]??null),{value:Q,text:w,item:p}},K=O=>{z("update:modelValue",O.value),z("update:text",O.text),z("change",O.value,O.item,O.text)},Y=()=>{Z&&(E.value=Z)},P=O=>{const J=E.value.indexOf(O);d.multiple?J===-1?E.value.push(O):E.value.splice(J,1):J===-1?E.value=[O]:E.value=[],(b.value||!d.poppable&&!d.showFooter)&&G()},k=O=>{x.value=O,z("update:visible",O)},U=()=>{const O=()=>{Y(),k(!1)},J=d.beforeMethod??d.beforeClose;if(typeof J=="function"){const R=J("close");yl(R)?R.then(Q=>{Q!==!1&&O()}).catch(()=>{O()}):R!==!1&&O()}else O()},G=()=>{const O=M(),J=()=>{K(O),k(!1)},R=d.beforeMethod??d.beforeClose;if(typeof R=="function"){const Q=R("confirm",O.value,O.item,O.text);yl(Q)?Q.then(w=>{w!==!1&&J()}).catch(()=>{J()}):Q!==!1&&J()}else J()},F=()=>{$.value=!0,g.value=0,I.value=[],d.source&&j()},q=()=>{let O=h.title.value??"";return y.title&&(O=y.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[O]),(0,t.h)(i,{class:["fox-actionsheet__header-icon"],onClick:U})])},X=()=>{let O=null;return y.search?O=y.search():O=(0,t.h)(o,{onSearch:F,placeholder:h.seachPlaceholder.value,disabled:d.disabled,modelValue:c.value,"onUpdate:modelValue":J=>{c.value=J}},{leftin:()=>(0,t.h)(f)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[O])},L=(O,J,R,Q,w)=>{if(y.optionLabel)return y.optionLabel({text:O,checked:J,disabled:R,subText:Q,item:w});const p=[],B=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[O]);if(p.push(B),Q){const H=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[Q]);p.push(H)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},p)},ee=(O,J,R,Q)=>y.optionIcon?y.optionIcon({checked:O,disabled:J,iconSize:R,item:Q}):O?y.checkedIcon?y.checkedIcon({disabled:J,item:Q}):(0,t.h)(d.checkedIcon??u,{width:R,height:R,class:["fox-actionsheet__list-item-icon"]}):y.icon?y.icon({disabled:J,item:Q}):(0,t.h)(d.icon??s,{width:R,height:R,class:["fox-actionsheet__list-item-icon"]}),le=()=>{const O=[];for(let J=0;J<I.value.length;J++){const R=I.value[J],Q=pl(d,R),w=ar(d,R),p=["fox-actionsheet__list-item"],B={};let H=s4(d,R),te=d.iconSize?he(d.iconSize):null;const ae=u4(d,R,J);ae&&(H=H||ae.disabled,ae.class&&p.push(ae.class),ae.style&&Object.assign(B,ae.style)),H=!!(d.disabled||H);const re=E.value.includes(J);H&&p.push("is-disabled"),re&&p.push("is-checked");const ce={class:p,style:B,key:`${J}`,onClick:()=>{H||P(J)}};let pe=[];if(y.option)pe.push(y.option({item:R,checked:re,disabled:H}));else{const Ve=L(Q,re,H,w,R);pe.push(Ve);const je=ee(re,H,te,R);pe.push(je)}const Se=(0,t.h)("view",ce,pe);O.push(Se)}return O},W=()=>{let O=[];if(y.buttons)O=y.buttons();else{const J=(0,t.h)(n,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:G,disabled:d.disabled},{default:()=>h.confirmText.value});O.push(J)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[O])};return be({search:async(O=null,J=!0)=>{C.value=O&&(0,t.toRaw)(O),(0,t.triggerRef)(C),J&&($.value=!0,g.value=0,I.value=[]),(0,t.nextTick)(()=>{j()})},clear:()=>{$.value=!0,g.value=0,I.value=[]},confirm:()=>{G()},cancel:()=>{U()}}),()=>{const O=[];if(d.showHeader){const H=q();O.push(H)}if(d.showSearchbar){const H=X();O.push(H)}let J=null;if(y.content)J=y.content();else{const H=le();J=(0,t.h)(r,{hasMore:$.value,loadText:h.loadText.value,noMoreText:h.noMoreText.value,modelValue:A.value,"onUpdate:modelValue":te=>{A.value=te},onLoadMore:j},{default:()=>H})}const R={};d.optionsHeight&&(R.height=d.optionsHeight);const Q={"fox-actionsheet__list":!0};d.poppable||(Q["fox-actionsheet__list--inner"]=!0);const w=(0,t.h)("view",{class:Q,style:R},[J]);if(O.push(w),d.showFooter&&!b.value){const H=W();O.push(H)}const p=(0,t.h)("view",{class:"fox-actionsheet"},O);if(!d.poppable)return p;const B=["fox-actionsheet__popup"];return d.popClass&&B.push(d.popClass),(0,t.h)(a,{popClass:B.join(" "),visible:x.value,closeable:!1,"onUpdate:visible":k,position:d.position,round:"round",onClickOverlay:U,closeOnClickOverlay:d.closeOnClickOverlay},{default:()=>p})}}}}var m4=/scroll|auto|overlay/i,Zo=window;function h4(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function p4(e,l=Zo){let a=e;for(;a&&a!==l&&h4(a);){const{overflowY:r}=window.getComputedStyle(a);if(m4.test(r))return a;a=a.parentNode}return l}function Jo(e,l=Zo){const a=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(a.value=p4(e.value,l))}),a}var Qo=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,g4={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 v4(e,l,a){return{props:{...g4},emits:["scroll-change","load-more","update:modelValue"],setup(r,{emit:n,slots:o}){const{toLocaleRefs:s}=(0,Ce.useFoxI18n)(l),u=s(r,["pullText","loadText","noMoreText"]),i=(0,t.ref)(),f=Jo(i),m=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=(0,t.computed)(()=>({[e]:!0})),y=g=>g?g.offsetTop+y(g.offsetParent):0,z=()=>{let g=0,c=0,C="down";if(f.value==window){const D=Qo();i.value&&(g=y(i.value)+i.value.offsetHeight-D-window.innerHeight),c=D}else{const{scrollHeight:D,clientHeight:T,scrollTop:N}=f.value;g=D-T-N,c=N}return m.beforeScrollTop>c?C="up":C="down",m.beforeScrollTop=c,n("scroll-change",c),g<=r.threshold&&C=="down"},S=()=>{Vn(()=>{if(!z()||!r.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,n("update:modelValue",!0),(0,t.nextTick)(()=>n("load-more"))})},h=()=>{f.value&&f.value.addEventListener("scroll",S,r.useCapture)},v=()=>{f.value&&f.value.removeEventListener("scroll",S,r.useCapture)};(0,t.onMounted)(()=>{h(),r.immediate&&S()}),(0,t.onUnmounted)(()=>{v()});const I=(0,t.ref)(!1);return(0,t.onActivated)(()=>{I.value&&(I.value=!1,h())}),(0,t.onDeactivated)(()=>{I.value=!0,v()}),(0,t.watch)(()=>r.modelValue,g=>{g||(m.isInfiniting=!1)}),()=>{const g=(0,t.h)("view",{class:"fox-infinite__container"},[o?.default?.()]),c=[];if(m.isInfiniting){let D=o?.loading?.()??null;if(!D){let N=o?.loadingIcon?.()??null;N||(N=(0,t.h)(a,{class:["fox-infinite__bottom-box__img"]}));const A=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[u.loadText.value]);D=[N,A]}const T=(0,t.h)("view",{class:"fox-infinite__bottom-box"},D);c.push(T)}else if(!r.hasMore){let D=o?.finished?.()??null;D||(D=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[u.noMoreText.value]),c.push(D))}const C=(0,t.h)("view",{class:"fox-infinite__bottom"},c);return(0,t.h)("view",{class:d.value,ref:i},[g,C])}}}}var{componentName:y4,create:b4,scope:w4}=ie("infinite-loading"),S4=b4(v4(y4,w4,tl)),Gl=S4,x4={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},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"}},C4=(e,l,a)=>({props:{...x4},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(r,{slots:n}){const{emitEvent:o}=Fn(),{toLocaleRefs:s}=(0,Ce.useFoxI18n)(l),u=s(r,["placeholder"]),i=(0,t.reactive)({active:!1}),f=(0,t.computed)(()=>({background:r.background})),m=(0,t.computed)(()=>({background:r.inputBackground})),d=$=>{let j=$.target.value;r.maxLength&&j.length>Number(r.maxLength)&&(j=j.slice(0,Number(r.maxLength))),o("update:modelValue",j,$),o("change",j,$)},y=(0,t.ref)({}),z=$=>{let j=$.target.value;i.active=!0,y.value=r.focusStyle,o("focus",j,$)},S=$=>{setTimeout(()=>{i.active=!1},0);let j=$.target.value;r.maxLength&&j.length>Number(r.maxLength)&&(j=j.slice(0,Number(r.maxLength))),y.value={},o("blur",j,$)},h=$=>{o("update:modelValue","",$),o("change","",$),o("clear","")},v=(0,t.computed)(()=>String(r.modelValue).length>0),I=(0,t.computed)(()=>{const $={};return v.value||($.display="none"),$}),g=()=>{o("search",r.modelValue)},c=$=>{o("keyup-input",$),$.key.toLocaleUpperCase()==="ENTER"&&g()},C=$=>{o("click-input",$)},D=$=>{o("click-left-icon",r.modelValue,$)},T=(0,t.computed)(()=>({textAlign:r.inputAlign})),N=(0,t.ref)(null);(0,t.onMounted)(()=>{r.autofocus&&N.value.focus()});const A=()=>{const $=[];if(n.leftin){const E=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:D},[n.leftin()]);$.push(E)}const j=(0,t.h)("input",{ref:N,class:[`${e}__input-inner`],style:T.value,type:r.inputType,maxlengt:r.maxLength,placeholder:u.placeholder.value,value:r.modelValue,disabled:r.disabled,readonly:r.readonly,onClick:C,onInput:d,onFocus:z,onBlur:S,onkeyup:c});$.push(j);const b=[];if(r.clearable){const E=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:I.value,onClick:h},[(0,t.h)(n?.clear?.()??r.clearIcon??a)]);b.push(E)}if(n.rightin){const E=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[n.rightin()]);b.push(E)}if(b.length>0){const E=(0,t.h)("view",{class:`${e}__input-inner-right`},b);$.push(E)}return(0,t.h)("view",{class:[`${e}__search-input`,`${r.shape}`],style:{...m.value,...y.value}},$)};return()=>{const $=[];if(r.label){const b=(0,t.h)("span",{class:`${e}__search-label`},[r.label]);$.push(b)}if(n.leftout){const b=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[n.leftout()]);$.push(b)}const j=A();if($.push(j),n.rightout){const b=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[n.rightout()]);$.push(b)}return(0,t.h)("view",{class:`${e}`,style:f.value},$)}}}),{componentName:N4,create:k4,scope:z4}=ie("searchbar"),T4=k4(C4(N4,z4,_e.CircleClose)),Xl=T4,{componentName:E4,create:_4,scope:$4}=ie("actionsheet-pane"),V4=_4(f4(E4,$4,wt,Gl,_.ElButton,Xl,z1,C1,$o,l1,!1)),Zl=V4,ei={type:{type:String,default:"text"},placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}},B4={...Ne,...Te,...ei,...kl};function D4(e,l,a,r,n,o){return{props:B4,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,u){const{innerDisabled:i,disabled:f,innerReadonly:m,readonly:d,browse:y}=Ae(s),{emitEvent:z}=ze({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return d.value},get disabled(){return f.value}},s.prop??u.attrs.name),{toLocaleRefs:S}=(0,Ce.useFoxI18n)(l),h=S(s,["placeholder"]),v=(0,t.ref)(!1),I=ye(s,"modelValue",null,z),g=(0,t.ref)(""),c=(0,t.computed)(()=>Array.isArray(g.value)?g.value.join(s.separator):g.value),C="fox-input-item",D=(0,t.computed)(()=>({[C]:!0,[`${C}__disabled`]:f.value})),T=$e((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const P={};return T.value&&(P["text-align"]=T.value),P}),A=(0,t.ref)(!1),$=()=>{A.value=!0},j=P=>{A.value=P},b=P=>{I.value=P,z("update:modelValue",P)},E=(P,k)=>{z("change",P,k)},Z=P=>{let k=P.target.value;v.value=!0,z("focus",k,P)},x=P=>{setTimeout(()=>{v.value=!1},0);let k=P.target.value;s.maxLength&&k.length>Number(s.maxLength)&&(k=k.slice(0,Number(s.maxLength))),z("blur",k,P)},V=P=>{g.value=P,z("update:text",P)},M=(0,t.computed)(()=>ut(s.unit)>0),K=(0,t.ref)(),Y=(0,t.ref)(null);return be({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},select:()=>{K?.value.select()},search:P=>{Y.value&&Y.value.search(P)},clear:()=>{Y.value&&Y.value.clear},confirm:P=>{Y.value&&Y.value.confirm()},cancel:()=>{Y.value&&Y.value.cancel()},setDisabled:P=>{i.value=P},setReadonly:P=>{m.value=P}}),()=>{if(y.value==="on"&&(d.value||f.value))return r(c.value,u.slots);const P={ref:K,class:D.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:h.placeholder.value,readonly:!0,value:c.value,onClick:$,onFocus:Z,onBlur:x},k={};u.slots.prepend&&(k.prepend=u.slots.prepend),u.slots.append&&(k.append=u.slots.append),u.slots.prefix&&(k.prefix=u.slots.prefix),u.slots.suffix?k.suffix=u.slots.suffix:M.value?k.suffix=()=>[s.unit]:k.suffix=()=>(0,t.h)(_.ElIcon,{},{default:()=>(0,t.h)(_e.ArrowDown)});const U=[],G=(0,t.h)(_.ElInput,P,k);U.push(G);const F={default:()=>U};F.label=u.slots.default,F.prepend=u.slots.prepend,F.append=u.slots.append,F.fixedPreTip=u.slots.fixedPreTip,F.fixedTip=u.slots.fixedTip;const q=nt(s,kl);q.ref=Y,q.class=s.actionSheetClass,q.disabled=f.value||d.value,q.visible=A.value,q["onUpdate:visible"]=j,q.modelValue=I.value,q["onUpdate:modelValue"]=b,q.text=g.value,q["onUpdate:text"]=V,q.onChange=E,q.poppable=!0;const X=(0,t.h)(n,q,{title:u.slots.title,search:u.slots.search,option:u.slots.option,optionLabel:u.slots.optionLabel,optionIcon:u.slots.optionIcon,buttons:u.slots.buttons});F.hide=()=>[X];const L={...Ie(s,ei,kl)};return s.prop&&(L.prop=`${s.prop}_item`),a(L,F)}}}}var{componentName:M4,create:I4,scope:A4}=ie("actionsheet-item"),L4=I4(D4(M4,A4,Le,He,Zl)),Sa=L4,ti={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},xa={...na,...ti,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:!0}};function P4(e){return e===window}var Ca=e=>{const l=(0,t.unref)(e);if(P4(l)){const a=l.innerWidth,r=l.innerHeight;return{top:0,left:0,right:a,bottom:r,width:a,height:r}}return l&&l.getBoundingClientRect?l.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},rr=10;function li(e,l){return e>l&&e>rr?"horizontal":l>e&&l>rr?"vertical":""}function ll(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function nl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},l=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",r=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const u=s.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=s;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=li(e.offsetX,e.offsetY))}),start:(s=>{if(r(),s.touches){const u=s.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:r,isVertical:l,isHorizontal:a,state:e}}function ni(){const e=(0,t.ref)(0),l=(0,t.ref)(0),a=(0,t.ref)(0),r=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),s=(0,t.ref)(0),u=(0,t.ref)(0),i=(0,t.ref)(0),f=(0,t.ref)(0),m=(0,t.ref)(""),d=()=>m.value==="vertical",y=()=>m.value==="horizontal",z=()=>{s.value=0,u.value=0,i.value=0,f.value=0,m.value="",a.value=0};return{move:(v=>{if(v.touches){const I=v.touches[0];s.value=I.clientX-e.value,u.value=I.clientY-l.value,n.value=I.clientX,o.value=I.clientY}else{const I=v;s.value=I.clientX-e.value,u.value=I.clientY-l.value,n.value=I.clientX,o.value=I.clientY}i.value=Math.abs(s.value),f.value=Math.abs(u.value),r.value=Date.now()-a.value,m.value||(m.value=li(i.value,f.value))}),start:(v=>{if(z(),v.touches){const I=v.touches[0];e.value=I.clientX,l.value=I.clientY}else{const I=v;e.value=I.clientX,l.value=I.clientY}a.value=Date.now()}),reset:z,startX:e,startY:l,startTime:a,duration:r,moveX:n,moveY:o,deltaX:s,deltaY:u,offsetX:i,offsetY:f,direction:m,isVertical:d,isHorizontal:y}}var ai=36;function F4(){return ai}function R4(e){ai=e}function tt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function _n(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]:l.children??null}function O4(e,l,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(l[e.childrenKey]=a),l.children=a}function bt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function or(e,l){return typeof e.itemOptions=="function"?e.columnOptions(l):e.columnOptions}var q4=class{proxy;constructor(e){this.proxy=e}async load(e,l,a){if(Array.isArray(l))return l;if(typeof l=="function")return await l(a);const r=Fe(this.proxy,e);return r===null?(console.error(`${e} component not found api function`),[]):(Ue(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await r(l,a))}};function H4(){return new q4((0,t.getCurrentInstance)().proxy)}function ir(e,l,a){return!(tt(e,l)!==tt(e,a)||bt(e,l)!==bt(e,a))}function j4(e,l,a,r){if(a.length==0)return[];Array.isArray(l)||(l=[l]);const n=[],o=e.valueType??"value";if(r==="singleColumn"||r==="multipleColumn")for(let s=0;s<l.length&&s<a.length;s++){const u=l[s];let i=a[s].findIndex(f=>{if(o==="text")return tt(e,f)===u;if(o==="value"){let m=bt(e,f);return m==null&&(m=tt(e,f)),m===u}else if(o==="item")return ir(e,f,u)});if(i==-1)break;n.push(i)}else{let s=a[0];for(let u=0;u<l.length;u++){const i=l[u];let f=s.findIndex(d=>{if(o==="text")return tt(e,d)===i;if(o==="value"){let y=bt(e,d);return y==null&&(y=tt(e,d)),y===i}else if(o==="item")return ir(e,d,i)});if(f==-1)break;n.push(f);const m=_n(e,s[f]);if(!Array.isArray(m))break;s=m}}return n}function sr(e,l,a,r){if(a.length==0)return null;const n={texts:[],values:[],items:[]},o=e.valueType??"value";if(r==="singleColumn"||r==="multipleColumn")for(let s=0;s<l.length&&s<a.length;s++){const u=a[s];let i=l[s];i<0&&i>=u.length&&(i=0);const f=u[i],m=tt(e,f);if(n.texts.push(m),n.items.push(f),o==="text")n.values.push(m);else if(o==="value"){let d=bt(e,f);d==null&&(d=m),n.values.push(d)}else n.values.push(f)}else{let s=a[0];for(let u=0;u<l.length;u++){let i=l[u];i<0&&i>=s.length&&(i=0);const f=s[i],m=tt(e,f),d=Object.assign({},f);if(d.children=null,n.texts.push(m),n.items.push(d),o==="text")n.values.push(m);else if(o==="value"){let y=bt(e,f);y==null&&(y=m),n.values.push(y)}else n.values.push(d);if(!Array.isArray(f.children))break;s=f.children}}return n}function ur(e){return{text:e,value:e}}var K4=15,Y4=300,W4=200,{create:U4}=ie("picker-column");function G4(e){e.stopPropagation()}function X4(e,l){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),l&&G4(e)}var Z4={source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...ti},J4=U4({props:Z4,emits:["click","change","update:modelValue"],setup(e,{emit:l}){const a=(0,t.computed)(()=>({"fox-picker__list":!0})),r=(0,t.computed)(()=>({height:`${ve(e.visibleItemCount)*+e.itemHeight}px`})),n=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),o=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=N=>{const A=N+1;return A>=d.currIndex+8||A<=d.currIndex-8},u=(0,t.computed)(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${o.value}px`})),i=N=>{const A=N+1;return`transform: rotate3d(1, 0, 0, ${-d.rotation*A}deg) translate3d(0px, 0px, 104px)`},f=(0,t.computed)(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+o.value}px, 0)`})),m=(0,t.ref)(null),d=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),y=N=>tt(e,N),z=N=>bt(e,N),S=ni(),h=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},v=(N,A=!1,$=!1)=>{if(d.currIndex=N,A){const j=()=>{d.moving=!1,l("update:modelValue",N),l("change",N)};$?d.transitionEndTrigger=j:j()}},I=(N,A,$)=>{let j=N+d.startDistance;if(A==="end"){const b=-(e.source.length-1)*e.itemHeight;j<b&&(j=b),j>0&&(j=0);let E=Math.abs(Math.round(-j/e.itemHeight));const Z=-E*e.itemHeight,x=`${(E+1)*d.rotation}deg`;v(E,!0,$?$>0:!1),g(Z,A,$,x)}else{let b=(-j/e.itemHeight+1)*d.rotation;const E=(e.source.length+1)*d.rotation,Z=0;if(b=Math.min(Math.max(b,Z),E),e.threeDimensional&&(b<Z||b>E))return;g(j,null,void 0,`${b}deg`)}},g=(N=0,A,$=W4,j)=>{A==="end"?d.scrollTime=$:d.scrollTime=0,d.deg=j,d.scrollDistance=N},c=(N,A)=>(N=Math.abs(N/A)/.003*(N<0?-1:1),N),C=N=>{e.readonly||(d.startDistance=d.scrollDistance,S.start(N),d.transitionEndTrigger=null)},D=N=>{e.readonly||(d.moving=!0,S.move(N),S.isVertical()&&(d.moving=!0,X4(N,!0)),I(S.deltaY.value,"",0))},T=()=>{if(e.readonly)return;const N=S.deltaY.value,A=S.duration.value;A<Y4&&Math.abs(N)>K4?I(c(N,A),"end",ve(e.swipeDuration)):I(N,"end",0)};return(0,t.watch)(()=>e.modelValue,N=>{const A=d.currIndex-N;A!==0&&(d.currIndex=N,d.startDistance=d.scrollDistance,I(A*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,N=>{if(d.currIndex>=N.length){const A=(N.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,I(A,"end",0)}}),(0,t.watch)(()=>e.visible,N=>{N===!1&&h()}),(0,t.onMounted)(()=>{I(-e.modelValue*e.itemHeight)}),{classes:a,styles:r,contentClasses:n,itemText:y,itemValue:z,...(0,t.toRefs)(d),roller:m,getItemText:tt,onTouchStart:C,onTouchMove:D,onTouchEnd:T,isHidden:s,setRollerStyle:i,touchRollerStyle:u,touchTileStyle:f,stopMomentum:h}}}),Q4={key:1,class:"fox-picker__item-tile"};function ed(e,l,a,r,n,o){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:l[0]||(l[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:l[1]||(l[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:l[2]||(l[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:l[3]||(l[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:l[4]||(l[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(s,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(u))},(0,t.toDisplayString)(e.itemText(s)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Q4,(0,t.toDisplayString)(e.itemText(s)),1))],64))),128))],6)],38)}var td=Re(J4,[["render",ed]]),{create:ld,componentName:nd,scope:ad}=ie("picker"),rd=ld({components:{PickerColumn:td,Popup:wt},props:xa,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:l}){const{toLocaleRefs:a,t:r}=(0,Ce.useFoxI18n)(ad),n=a(e,["title","cancelText","clearText","confirmText"]),o=(0,t.ref)(null),s=(0,t.ref)(F4());(0,t.watch)(()=>e.visible,E=>{E&&s.value<=0&&setTimeout(()=>{o.value&&(s.value=Ca(o.value).height,R4(s.value))},50)});const u=(0,t.computed)(()=>({[nd]:!0})),i=H4(),f=(0,t.ref)("singleColumn"),m=(0,t.ref)([]),d=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const E=[];for(let Z=0;Z<m.value.length;Z++){const x=m.value[Z];if(Array.isArray(x)){const V=x.filter(e.sourceFilter);E.push(V)}}return E}return m.value});(0,t.watch)([()=>e.source,()=>e.params],async([E,Z])=>{if(E){let x=await i.load("select",E,Z);if(x.length>0){let V=x[0];if(Array.isArray(V)){if(typeof V[0]=="string"){let M=x,K=[];M.forEach(Y=>{let P=Y.map(k=>ur(k));K.push(P)}),m.value=K}else m.value=x;f.value="multipleColumn"}else if(typeof V=="string"){let M=x,K=[],Y=M.map(P=>ur(P));K.push(Y),m.value=K,f.value="singleColumn"}else{const M=_n(e,V);Array.isArray(M)?(f.value="cascade",m.value=[x]):(f.value="singleColumn",m.value=[x])}}else m.value=[]}},{immediate:!0});const y=(0,t.ref)([]),z=(0,t.ref)(e.modelValue),S=(0,t.ref)([]),h=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>d.value],([E,Z])=>{let x=j4(e,E,Z,f.value);if(!Xe(x,h.value)){h.value=x;let V=sr(e,x,Z,f.value);V&&(y.value=V.texts,l("update:text",y.value))}});const v=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,E=>{v.value=E});const I=E=>{let Z=or(e,E);return Ue(Z)?Z.defaultIndex??0:0},g=E=>{if(e.readonly===!0)return!0;let Z=or(e,E);return Ue(Z)?Z.readonly??!1:!1},c=(E,Z)=>{let x=h.value;x[E]=Z;for(let M=0;M<E;M++)x[M]==null&&(x[M]=I(M));if(f.value==="cascade")for(let M=E+1;M<D.value.length;M++){let K=I(M);M<x.length?x[M]=K:x.push(K)}else for(let M=x.length;M<D.value.length;M++){let K=I(M);x.push(K)}h.value=x;let V=sr(e,x,d.value,f.value);V&&(y.value=V.texts,z.value=V.values,S.value=V.items)},C=E=>E<h.value.length?h.value[E]:I(E),D=(0,t.computed)(()=>{if(d.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return d.value;let E=[],Z=0,x=d.value[0],V=0;for(;;){const M=x.map(P=>{let k=Object.assign({},P);return O4(e,k,null),k});E.push(M),Z>=h.value.length?V=0:V=h.value[Z],(V<0||V>=x.length)&&(V=0);let K=x[V];const Y=_n(e,K);if(!Array.isArray(Y))break;x=Y,Z++}return E}),T=(0,t.computed)(()=>ve(+e.visibleItemCount-1)/2*s.value),N=(E=!1)=>{if(e.readonly===!0){E&&l("update:visible",!1);return}let Z=d.value.length-1;for(;Z>=0&&!(h.value[Z]===null||h.value[Z]===void 0);Z--);if(Z>=0&&c(Z,0),f.value==="singleColumn"){let x=z.value.length>0?z.value[0]:"",V=S.value.length>0?S.value[0]:null;l("update:modelValue",x),l("update:text",y.value),l("change",x,V),E&&(l("confirm",x),l("update:visible",!1))}else l("update:modelValue",z.value),l("update:text",y.value),l("change",z.value,S.value),E&&(l("confirm",z.value),l("update:visible",!1))};return{...n,pickerLineRef:o,classes:u,columns:D,dataType:f,show:v,itemHeight:s,top:T,isReadonly:g,getIndex:C,change:(E,Z)=>{c(E,Z),e.isAutoBackFill&&N(!v.value)},close:()=>{l("close"),l("update:visible",!1)},confirm:()=>{N(!0)},clear:()=>{if(e.readonly===!0){l("update:visible",!1);return}f.value==="singleColumn"?(l("update:modelValue",""),l("change","")):(l("update:modelValue",[]),l("change",[])),l("clear",""),l("update:visible",!1)}}}}),od={class:"fox-picker__bar"},id={class:"fox-picker__title"},sd={class:"fox-picker__bar__action"},ud={class:"fox-picker__column"};function cd(e,l,a,r,n,o){const s=(0,t.resolveComponent)("PickerColumn"),u=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(u,{position:"bottom","pop-class":"fox-picker__popup",visible:e.show,"onUpdate:visible":l[3]||(l[3]=i=>e.show=i),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",od,[(0,t.createElementVNode)("view",id,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",sd,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:l[0]||(l[0]=(...i)=>e.close&&e.close(...i))},(0,t.toDisplayString)(e.cancelText),1),(0,t.createElementVNode)("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:l[1]||(l[1]=(...i)=>e.confirm&&e.confirm(...i))},(0,t.toDisplayString)(e.confirmText),1),e.clearText?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:l[2]||(l[2]=(...i)=>e.clear&&e.clear(...i))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])]),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",ud,[(0,t.createElementVNode)("view",{class:"fox-picker__mask",style:(0,t.normalizeStyle)({backgroundSize:`100% ${e.top}px`})},null,4),(0,t.createElementVNode)("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:(0,t.normalizeStyle)({top:` ${e.top}px`})},null,4),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(i,f)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:f,class:"fox-picker__columnitem"},[(0,t.createVNode)(s,{visible:e.show,source:i,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":m=>e.change(f,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}var al=Re(rd,[["render",cd]]),cr={...xa,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function dd(e,l,a,r){return{props:{...Ne,...Te,...cr},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(n,o){const{innerDisabled:s,disabled:u,innerReadonly:i,readonly:f,browse:m}=Ae(n),{emitEvent:d}=ze({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return u.value}},n.prop??o.attrs.name),{toLocaleRefs:y}=(0,Ce.useFoxI18n)(l),z=y(n,["placeholder"]),S=(0,t.ref)(!1),h=e,v=(0,t.computed)(()=>({[h]:!0})),I=$e((0,t.computed)(()=>n.textAlign),"textAlign"),g=(0,t.computed)(()=>({textAlign:I.value??"right"})),c=ye(n,"modelValue",null,d),C=(0,t.ref)([]),D=(0,t.computed)(()=>Array.isArray(C.value)?C.value.join(" "):C.value),T=(0,t.ref)(!1),N=()=>{T.value=!0},A=P=>{T.value=P},$=P=>{c.value=P,d("update:modelValue",P)},j=P=>{C.value=P,Array.isArray(P)&&P.length===0?d("update:text",P[0]):d("update:text",P)},b=(P,k)=>{d("change",P,k)};let E=ye(n,"hintText"),Z=(0,t.ref)(!1);const x=P=>{let k=P.target.value;S.value=!0,me(E.value)||(Z.value=!0),d("focus",k,P)},V=P=>{setTimeout(()=>{Z.value&&(Z.value=!1),S.value=!1},0);let k=P.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),T.value?setTimeout(()=>{d("blur",k,P)},50):d("blur",k,P)},M=()=>{d("clear","")},K=(0,t.computed)(()=>ut(n.unit)>0),Y=(0,t.ref)();return be({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},select:()=>{Y?.value.select()},setDisabled:P=>{s.value=P},setReadonly:P=>{i.value=P}}),()=>{if(m.value==="on"&&(f.value||u.value))return r(D.value,o.slots);const P={class:v.value,style:g.value,type:"text",maxlength:n.maxLength,placeholder:z.placeholder.value,clearable:fe(n.clearable),readonly:!0,value:D.value,onClick:N,onFocus:x,onBlur:V},k={};o.slots.prepend&&(k.prepend=o.slots.prepend),o.slots.append&&(k.append=o.slots.append),o.slots.prefix&&(k.prefix=o.slots.prefix),o.slots.suffix?k.suffix=o.slots.suffix:K.value?k.suffix=()=>[n.unit]:k.suffix=()=>(0,t.h)(_.ElIcon,{},{default:()=>(0,t.h)(_e.ArrowDown)});const U=[],G=(0,t.h)(_.ElInput,P,k);U.push(G);const F={default:()=>U};F.label=o.slots.default,F.fixedPreTip=o.slots.fixedPreTip,F.fixedTip=o.slots.fixedTip;const q=nt(n,xa);q.disabled=!1,q.readonly=u.value||f.value,q.visible=T.value,q["onUpdate:visible"]=A,q.modelValue=c.value,q["onUpdate:modelValue"]=$,q.text=C.value,q["onUpdate:text"]=j,q.onClear=M,q.onChange=b;const X=(0,t.h)(al,q);F.hide=()=>[X];const L={...Ie(n,cr),hintText:E.value,hintVisible:Z.value};return n.prop&&(L.prop=`${n.prop}_item`),a(L,F)}}}}var{componentName:fd,create:md,scope:hd}=ie("picker-item"),pd=md(dd(fd,hd,Le,He)),Na=pd,gd={...Ne,...Te,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1}};function vd(e,l,a,r){return{props:gd,emits:["click","focus","blur","change"],setup(n,o){const{disabled:s,readonly:u}=Ae(n),{emitEvent:i}=ze({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return u.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:f}=(0,Ce.useFoxI18n)(l),m=f(n,["placeholder"]),d=(0,t.ref)(n.modelValue);(0,t.watch)(()=>n.modelValue,b=>{d.value=b,i("change",b)});const y=(0,t.computed)(()=>({[`${e}`]:!0})),z=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&me(d.value),"is-disabled":s.value,"is-readonly":u.value})),S=$e((0,t.computed)(()=>n.textAlign),"textAlign"),h=(0,t.computed)(()=>{const b={};return S.value&&(b["text-align"]=S.value),b}),v=(0,t.computed)(()=>!me(n.modelValue)||o.slots.main?!0:!!me(n.desc)),I=(0,t.computed)(()=>me(d.value)?m.placeholder.value:d.value),g=(0,t.computed)(()=>!me(n.desc)||o.slots.sub),c=(0,t.computed)(()=>({[`${e}__sub`]:!0})),C=(0,t.computed)(()=>{const b={};return S.value&&(b["text-align"]=S.value),b}),D=()=>{i("focus",d.value)},T=()=>{i("blur",d.value)},N=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":u.value})),A=b=>{s.value==!0||u.value==!0||i("click")},$=(0,t.computed)(()=>n.icon??a),j=(0,t.computed)(()=>({action:!0}));return()=>{const b=[];if(typeof o.slots.content=="function"){const P=o.slots.content();b.push(P)}else{const P=[];if(v.value){const U={tabIndex:0,class:z.value,style:h.value,onFocus:D,onBlur:T};let G=null;o.slots.main?G=(0,t.h)("view",U,[o.slots.main(I.value)]):G=(0,t.h)("view",U,[I.value]),P.push(G)}if(g.value){const U={tabIndex:0,class:c.value,style:C.value,onFocus:D,onBlur:T};let G=null;o.slots.sub?G=(0,t.h)("view",U,[o.slots.sub(n.desc)]):G=(0,t.h)("view",U,[n.desc]),P.push(G)}const k=(0,t.h)("view",{class:y.value,onClick:A},P);b.push(k)}const E=[],Z=he(n.iconSize);let x=o.slots.icon;if(!x){const P={width:Z,height:Z,class:["action-icon"]};x=(0,t.h)($.value,P)}const V=(0,t.h)("view",{class:j.value,onClick:A},{default:()=>[x]});E.push(V);const M=(0,t.h)("view",{class:N.value},{default:()=>E});b.push(M);const K={default:()=>b};K.label=o.slots.default,K.prepend=o.slots.prepend,K.append=o.slots.append,K.fixedPreTip=o.slots.fixedPreTip,K.fixedTip=o.slots.fixedTip;const Y={...nt(n,Te,Ne)};return n.prop&&(Y.prop=`${n.prop}_item`),r(Y,K)}}}}var{componentName:yd,create:bd,scope:wd}=ie("link-item"),Sd=bd(vd(yd,wd,_e.ArrowRight,Le)),ka=Sd,za={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},dr=(e,l)=>l[e.textKey],Ot=(e,l)=>l[e.valueKey],xd=(e,l)=>l[e.visibleKey],fr=(e,l)=>l[e.disabledKey],Cd=(e,l)=>{const a=l[e.doitKey];return fe(a)},Nd=(e,l)=>{const a=l[e.numKey];return a==null?null:ve(l[a])},mr=(e,l,a)=>{const r=e.itemOptions;return typeof r=="function"?r(l,a):r||null};function kd(e,l,a,r,n,o=!1){return{props:za,emits:["update:modelValue","change","click"],setup(s,{slots:u,emit:i}){const f=(0,t.computed)(()=>{const w={};return w[`${e}`]=!0,w}),m=(0,t.computed)(()=>{const w={};return w[`${e}__titles`]=!0,w[`${s.direction}`]=!0,s.align&&(w[`${s.align}`]=!0),s.scroll===!0&&(w.scrollable=!0),s.shape&&(w[`${s.shape}`]=!0),s.showScrollArrow?(L.value===!0&&(w["has-left-scroll-arrow "]=!0),ee.value===!0&&(w["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(w["has-navigation"]=!0),w}),d=(0,t.computed)(()=>({})),y=(0,t.computed)(()=>{if(!s.gutter)return 0;const w=he(s.gutter);return w<=0?0:w}),z=(0,t.ref)(s.modelValue);(0,t.watch)(()=>s.modelValue,w=>{z.value!==w&&(z.value=w,P(!1))});const S=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),h=(0,t.computed)(()=>{const w={};return I.value||(w.display="none"),w}),v=(0,t.ref)(),I=(0,t.ref)(!1),g=()=>{c(!I.value)},c=w=>{const p=w;p?(I.value=p,setTimeout(()=>{S.value["fox-tabs-bar__popup--show"]=!0,S.value["fox-tabs-bar__popup--hide"]=!1},0)):(S.value["fox-tabs-bar__popup--show"]=!1,S.value["fox-tabs-bar__popup--hide"]=!0,v.value?v.value.addEventListener("transitionend",()=>{I.value=!1},{once:!0}):setTimeout(()=>{I.value=!1},0))},C=(0,t.ref)(),D=(0,t.ref)([]),T=(w,p)=>{D.value[p]=w},N=w=>p=>{T(p,w)},A=(w,p)=>{const B=C.value,H=D.value;if(!B||!H||!H[w])return;const te=H[w];let ae=0;s.direction==="vertical"?ae=te.offsetTop-(B.offsetHeight-te.offsetHeight)/2:ae=te.offsetLeft-(B.offsetWidth-te.offsetWidth)/2,$(B,ae,p?0:.3,s.direction)},$=(w,p,B,H)=>{let te=0;const ae=H==="horizontal"?w.scrollLeft:w.scrollTop,re=B===0?1:Math.round(B*1e3/16);function ce(){H==="horizontal"?w.scrollLeft+=(p-ae)/re:w.scrollTop+=(p-ae)/re,++te<re&&Mn(ce)}ce()},j=(w,p)=>{const B=Ot(s,w),H={};return H[`${e}__titles-item`]=!0,H.disabled=fr(s,w),H.active=B===z.value,s.shape&&(H[`${s.shape}`]=!0),s.ellipsis&&(H.ellipsis=!0),p&&(p.class&&(H[`${p.class}`]=!0),p.disabled===!0&&(H.disabled=p.disabled)),H},b=(w,p)=>{const B={};if(y.value>0){const H=Math.abs(y.value/2);s.direction==="vertical"?(B["margin-top"]=`${H}px`,B["margin-bottom"]=`${H}px`):(B["margin-left"]=`${H}px`,B["margin-right"]=`${H}px`)}return p&&p.style&&Object.assign(B,p.style),B},E=(w,p)=>`${Ot(s,w)??p}`,Z=(w,p)=>{const B=Ot(s,w),H={};H[`${e}__popup-item`]=!0,H.disabled=fr(s,w),H.active=B===z.value,s.shape&&(H[`${s.shape}`]=!0);const te=mr(s,w,p);return te&&te.disabled===!0&&(H.disabled=te.disabled),H},x=(0,t.computed)(()=>(s.data??[]).filter(w=>xd(s,w)!==!1)),V=(w,p)=>{const B=Ot(s,w);if(i("click",w,p),z.value==B)return;const H=()=>{z.value=B,s.scroll&&A(p,!1),i("update:modelValue",B),i("change",w,p)};if(typeof s.beforeChange=="function"){const te=s.beforeChange(w,p);yl(te)?te.then(ae=>{ae!==!1&&H()}).catch(()=>{H()}):te!==!1&&H()}else H()},M=(w,p)=>function(){V(w,p)},K=(w,p)=>{V(w,p),c(!1)},Y=(w,p)=>function(){K(w,p)},P=w=>{if(!Array.isArray(s.data)||!s.scroll)return;X()&&J();const p=s.data.findIndex(B=>Ot(s,B)===z.value);p!==-1&&A(p,w)},k=()=>{X()||R()};(0,t.watch)(()=>s.data,()=>{setTimeout(P,0)}),(0,t.onMounted)(()=>{P(!0)}),(0,t.onBeforeUnmount)(()=>{k()});const U=(w,p)=>{if(u.item)return u.item({item:w,index:p});const B=mr(s,w,p),H=[];if(u.text){const ae=u.text({item:w,index:p});H.push(ae)}else{const ae=[];if(B?.doit===!0||Cd(s,w)){const Se=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ae.push(Se)}const re=B?.num??Nd(s,w);if(re){let Se="";const Ve=ve(re);Ve>=100?Se="99+":Se=`${Ve}`;const je=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Se]);ae.push(je)}const ce={class:`${e}__titles-item-text`};ae.push(dr(s,w));const pe=(0,t.h)("view",ce,ae);H.push(pe)}const te=(0,t.h)("view",{class:`${e}__titles-item-line`});return H.push(te),(0,t.h)("view",{ref:N(p),class:j(w,B),style:b(w,B),key:E(w,p),onClick:M(w,p)},H)},G=()=>{const w=u.default?u.default():[];if(w.length===0)for(let p=0;p<x.value.length;p++){const B=x.value[p],H=U(B,p);w.push(H)}return(0,t.h)("view",{ref:C,class:m.value,style:d.value},w)},F=()=>{let w=null;return u.navigation?w=u.navigation():w=(0,t.h)(a),(0,t.h)("view",{class:`${e}__navigation`,onClick:g},[w])},q=()=>{const w=[];for(let p=0;p<x.value.length;p++){const B=x.value[p];let H=null;u.popupItem?H=u.popupItem({item:B,index:p}):H=dr(s,B);const te=(0,t.h)("view",{class:Z(B,p),key:E(B,p),onClick:Y(B,p)},[H]);w.push(te)}return(0,t.h)("view",{class:S.value,style:h.value},w)},X=()=>s.showScrollArrow&&s.direction=="horizontal",L=(0,t.ref)(!1),ee=(0,t.ref)(!1),le=w=>{const p=C.value,B=D.value;if(!(!p||!B))if(w==="left"){const H=p.scrollLeft;let te=H;for(let ae=0;ae<B.length;ae++){const re=B[ae].offsetLeft;if(H-re<0)break;te=re}$(p,te,.3,"horizontal")}else{const H=p.scrollLeft;let te=H,ae=p.offsetWidth;for(let re=B.length-1;re>=0;re--){const ce=B[re].offsetLeft+B[re].offsetWidth;if(ce-H<p.offsetWidth){te+=ae-ce;break}ae=ce}$(p,te,.3,"horizontal")}},W=Ze(()=>{const w=C.value;if(!w)return;let p=w.scrollLeft>0;p!==L.value&&(L.value=p);let B=w.scrollWidth-w.scrollLeft>w.offsetWidth;B!==ee.value&&(ee.value=B)},50),O=w=>{W()},J=()=>{const w=C.value;w&&(W(),w.addEventListener("scroll",O))},R=()=>{const w=C.value;w&&w.removeEventListener("scroll",O)},Q=w=>{if(w==="left"&&L.value!==!0||w==="right"&&ee.value!==!0)return null;let p=null;return w==="left"?u.leftArrow?p=u.leftArrow():p=(0,t.h)(r):u.rightArrow?p=u.rightArrow():p=(0,t.h)(n),(0,t.h)("view",{class:[`${e}__scroll-arrow`,w],onClick:()=>{le(w)}},[p])};return()=>{const w=[],p=G();if(w.push(p),X()){const B=Q("left");B&&w.push(B);const H=Q("right");H&&w.push(H)}else if(s.showQuickNavigation){const B=F();w.push(B);const H=q();w.push(H)}return(0,t.h)("view",{class:f.value},w)}}}}var{create:zd,componentName:Td,scope:Ed}=ie("tabs-bar"),_d=zd(kd(Td,Ed,s1,m1,r1,!1)),rl=_d,ri=Symbol("TabsStatesKey"),Ta={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},$d=15,Vd=300,Bd=200;function Dd(e,l,a=1){return e=Math.abs(e/l)/.003*(e<0?-1:1),e*a}function hr(e,l=0,a,r,n=Bd){a==="end"?e.style.transition=`transform ${n}ms linear`:e.style.transition="transform 0ms linear",r==="horizontal"?e.style.transform=`translate3d(${l}px, 0, 0)`:e.style.transform=`translate3d(0, ${l}px, 0)`}var 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(e,l,a,r=1){this.onStart=e,this.onMove=l,this.onEnd=a,this.momentumReduceRatio=r,this.isTouch=ll()}open(e){this.el=e;const l=nl(),a=(r,n,o)=>{const s={delta:r,direction:n,type:o};this.onMove(s)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=r=>{if(this.moving)return;l.start(r),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.removeEventListener("transitionend",this.transitionend),e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const n={delta:0,type:"start",direction:this.direction};this.onStart(n)},this.touchmove=r=>{if(!this.moving)return;l.move(r);let n=0;if(this.direction==="horizontal"){if(l.isVertical())return;n=l.state.deltaX}else{if(l.isHorizontal())return;n=l.state.deltaY}a(n,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let r=0;if(this.direction==="horizontal"){if(l.isVertical()){this.moving=!1;return}r=l.state.deltaX}else{if(l.isHorizontal()){this.moving=!1;return}r=l.state.deltaY}const n=l.state.duration;n<Vd&&Math.abs(r)>$d?(r=Dd(r,n,this.momentumReduceRatio),a(r,this.direction,"end")):a(r,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Id(e,l,a,r=1){return new Md(e,l,a,r)}function Ad(e,l,a=!1){return{props:Ta,emits:["update:modelValue","change"],setup(r,{emit:n,slots:o}){const s=(0,t.shallowRef)([]),u={current:(0,t.ref)(r.modelValue??""),direction:(0,t.ref)(r.direction),transition:r.transition,tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:N=>{const A={name:N};u.current.value===N&&(A.loaded=!0),s.value.push(A),(0,t.triggerRef)(s)},remove:N=>{const A=s.value.findIndex($=>$.name===N);A!==-1&&s.value.splice(A,1)},isLoaded:N=>{if(!r.lazy)return!0;const A=s.value.findIndex($=>$.name===N);return A!==-1?u.current.value?s.value[A].loaded??!1:A===0:!1}};(0,t.provide)(ri,u);const i=N=>{const A=s.value.findIndex($=>$.name===N);A!==-1&&(s.value[A].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>r.modelValue,()=>r.direction],([N,A])=>{u.current.value!==N&&(u.current.value=N??"",i(N??"")),u.direction.value!==A&&(u.direction.value=A)});const f=(0,t.ref)(null),m=(0,t.ref)(null),d=(0,t.computed)(()=>({[e]:!0,[`${r.direction}`]:!0})),y=(0,t.computed)(()=>{const N={};if(r.width){const A=xe(r.width);A&&(N.width=A)}if(r.height){const A=xe(r.height);A&&(N.height=A)}return N});let z=!0;const S=(0,t.computed)(()=>{const N={};if(r.transition===!1)return N;const A=s.value.length;if(A<=0)return N;const $=s.value.findIndex(j=>j.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(N.height=`${A*u.tabHeight.value}px`,$!==-1&&(N.transform=`translate(0, -${$*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(N.width=`${A*u.tabWidth.value}px`,$!==-1&&(N.transform=`translate(-${$*u.tabWidth.value}px, 0)`)),z&&(z=!1,N.transition="transform 0s ease"),N}),h={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},v=N=>{const A=s.value.length,$=s.value.findIndex(j=>j.name===u.current.value);h.moved=0,N.direction==="vertical"?(h.min=-1*(u.tabHeight.value*(A-1)+u.tabHeight.value/4),h.max=u.tabHeight.value/4,h.start=-$*u.tabHeight.value,h.itemDistance=u.tabHeight.value):(h.min=-1*(u.tabWidth.value*(A-1)+u.tabWidth.value/4),h.max=u.tabWidth.value/4,h.start=-$*u.tabWidth.value,h.itemDistance=u.tabWidth.value)},I=N=>{const A=m.value;if(!A)return;let $=h.start+N.delta;if($>h.max?$=h.max:$<h.min&&($=h.min),N.type==="move")hr(A,$,"move",N.direction,300);else if(N.type==="end"){let j=Math.floor(Math.abs($)*1/h.itemDistance);const b=Math.abs($)%h.itemDistance;h.start>$?b>=h.itemDistance*h.triggerAutoMoveRatio&&(j+=1):b>h.itemDistance-h.itemDistance*h.triggerAutoMoveRatio&&(j+=1),$=-1*j*h.itemDistance,hr(A,$,"end",N.direction,300),h.moved=$;const E=s.value[j].name;u.current.value=E??"",i(E??""),n("update:modelValue",E)}},g=()=>{},c=()=>{if(!f.value)return;const N=Il(f.value);u.tabWidth.value=N.width,u.tabHeight.value=N.height},C=Qr(c,250);let D=null,T=null;return(0,t.onMounted)(()=>{r.transition!==!1&&f.value&&(c(),window.ResizeObserver&&(T=new window.ResizeObserver(C),T.observe(f.value)),r.draggle&&(D=Id(v,I,g),D.open(m.value)))}),(0,t.onBeforeUnmount)(()=>{T&&(T.disconnect(),T=null),D&&D.close()}),be({doLayout(){c()}}),()=>{const N=(0,t.h)("view",{class:`${e}__panes`,style:S.value,ref:m},[o?.default?.()]);return(0,t.h)("view",{class:d.value,style:y.value,ref:f},[N])}}}}var{create:Ld,componentName:Pd,scope:Fd}=ie("tabs-container"),Rd=Ld(Ad(Pd,Fd,!1)),ol=Rd,Od={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function qd(e,l,a){return{props:Od,setup(r,{emit:n,slots:o}){const s=(0,t.inject)(ri);(0,t.onMounted)(()=>{s.add(r.paneKey)}),(0,t.onBeforeUnmount)(()=>{s.remove(r.paneKey)});const u=(0,t.computed)(()=>{const m=[e];return s.direction.value==="vertical"?m.push("is-vertical"):m.push("is-horizontal"),s.transition===!1?m.push("is-no-transition"):m.push("is-transition"),m}),i=(0,t.computed)(()=>{const m={};return s.transition===!1?(s.current.value!==r.paneKey&&(m.display="none"),m):(s.direction.value==="vertical"&&s.tabHeight.value>0?m.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(m.width=`${s.tabWidth.value}px`),m)}),f=(0,t.computed)(()=>r.loaded!=null?fe(r.loaded):s.isLoaded(r.paneKey));return()=>{let m=[];if(f.value)m=o?.default?.()??[];else if(o.empty)m=o.empty();else{const d={class:`${e}__empty-icon`},y=(0,t.h)(r.emptyIcon??a,d),z=(0,t.h)("view",{class:`${e}__empty-text`},[r.emptyText??"Loading"]),S=(0,t.h)("view",{class:`${e}__empty`},[y,z]);m.push(S)}return(0,t.h)("view",{class:u.value,style:i.value,prop:r.paneKey},m)}}}}var{create:Hd,componentName:jd,scope:Kd}=ie("tabs-pane"),Yd=Hd(qd(jd,Kd,tl)),Jl=Yd,Wd={...za,...Ta,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function Ud(e,l,a,r){return{props:Wd,emits:["update:modelValue","change"],setup(n,{emit:o,slots:s}){const u=e,i=(0,t.computed)(()=>{const h=[`${u}`];return n.direction==="vertical"?h.push("vertical-tabbar"):h.push("horizontal-tabbar"),h}),f=(0,t.computed)(()=>{const h={};if(n.width){const v=xe(n.width);v&&(h.width=v)}if(n.height){const v=xe(n.height);v&&(h.height=v)}return h}),m=(0,t.computed)(()=>[`${u}__bar`]),d=(0,t.computed)(()=>[`${u}__container`]),y=(0,t.ref)(n.modelValue);(0,t.watch)(()=>n.modelValue,h=>{y.value!==h&&(y.value=h)});const z=h=>{o("change",h)},S=h=>{y.value!==h&&(y.value=h,o("update:modelValue",h))};return()=>{const{getChildren:h}=Un(s.default),v=h(),I=[];if(Array.isArray(n.data))I.push(...n.data);else for(let A=0;A<v.length;A++){const $=v[A].props??{},j={text:$.label??"",value:$["pane-key"]??$.paneKey??""};I.push(j)}const g={};for(let A in s)A!=="default"&&(g[A]=s[A]);const c=nt(n,za);Object.assign(c,{data:I,class:m.value,modelValue:y.value,direction:n.direction,onChange:z,"onUpdate:modelValue":S});const C=(0,t.h)(a,c,g),D={default:()=>v},T=nt(n,Ta);Object.assign(T,{class:d.value,modelValue:y.value,onChange:z,"onUpdate:modelValue":S});const N=(0,t.h)(r,T,D);return(0,t.h)("view",{class:i.value,style:f.value},[C,N])}}}}var{create:Gd,componentName:Xd,scope:Zd}=ie("tabs-frame"),Jd=Gd(Ud(Xd,Zd,rl,ol)),Ea=Jd,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:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function ef(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function pr(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function gr(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function tf(e,l){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?l[e.visibleKey]:l.visible??null}function dn(e,l){return typeof e.statusKey=="string"&&e.statusKey.length>0?l[e.statusKey]:l.statusKey??null}function vr(e,l){return typeof e.doitKey=="string"&&e.doitKey.length>0?l[e.doitKey]:l.doitKey??null}function yr(e,l){return typeof e.labelKey=="string"&&e.labelKey.length>0?l[e.labelKey]:l.labelKey??null}function fn(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}var lf=class{proxy;constructor(e){this.proxy=e}async load(e,l,a){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[a]);const r=Fe(this.proxy,e);return r===null?(console.error(`${e} component not found api function`),[]):(Ue(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(r,null,[l,a]))}};function nf(){return new lf((0,t.getCurrentInstance)().proxy)}function af(e,l,a,r){return{props:{...Qd},emits:["update:modelValue","change","loaded-data"],setup(n,{slots:o,emit:s}){const u=e,i=nf(),f=(0,t.ref)([]),m=(0,t.computed)(()=>f.value.filter(F=>tf(n,F)!==!1)),d=(0,t.ref)(-1),y=()=>{const F=n.modelValue,q=m.value.findIndex(X=>pr(n,X)===F);d.value!==q&&(d.value=q,n.scroll&&U(q,!1))};(0,t.watch)([()=>n.modelValue,m],()=>{y()});const z=F=>d.value===F,S=F=>{if(F<0&&F>=m.value.length)return!1;const q=m.value[F],X=(fn(n,q,F)??{}).status??dn(n,q);return z(F)||X},h=(0,t.computed)(()=>{const F={[u]:!0};return n.mode?F[`is-${n.mode}`]=!0:n.direction&&(F[`is-${n.direction}`]=!0),n.scroll&&(F["is-scroll"]=!0),F}),v=(0,t.computed)(()=>({})),I=(F,q,X,L,ee)=>{const le={[`${u}__step`]:!0};return ee&&(le[`${ee}`]=!0),le[`${g.value}`]=!0,L&&(le["is-doit"]=!0),F===d.value?le["is-active"]=!0:q==="done"?le["is-done"]=!0:q==="error"?le["is-error"]=!0:q==="half"?le["is-half"]=!0:X?le["is-disabled"]=!0:le["is-normal"]=!0,le},g=(0,t.computed)(()=>{let F=n.align;if(!F){if(n.mode==="simple")return"start";n.direction==="vertical"?F="start":F="center"}return F}),c=(F,q={})=>{const X={...q};if(g.value==="start"&&F===m.value.length-1)X.flex="0 0 auto";else if(n.step){const L=typeof n.step=="number"||An(n.step)?xe(n.step):n.step;n.direction==="vertical"?X.height=L:X.width=L}else X.flex="1 1 100%";return X},C=(F,q)=>{let X={};if(q<m.value.length-1){const L=q+1;S(q)&&S(L)?n.direction==="vertical"?X.height="100%":X.width="100%":X.opacity="0"}return X},D=F=>m.value.length-1===F,T=(F,q)=>{if(n.clickNavigatePolicy==="disabled"||(n.clickNavigatePolicy==="only-back"||n.clickNavigatePolicy==="only-back-reset")&&q>d.value||d.value===q)return;const X=d.value,L=q;d.value=q,n.scroll&&U(q,!1);const ee=pr(n,F);s("update:modelValue",ee),s("change",ee,{fromIndex:X,currentIndex:L,item:F,items:m.value,clickNavigatePolicy:n.clickNavigatePolicy})},N=(0,t.ref)(!0),A=async(F,q)=>{try{const X=await i.load("stesbar",F,q);Array.isArray(X)&&(f.value=X),N.value=!1}catch(X){console.error("[FoxUI] Load StepsBar Data Fail",X),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};(0,t.watch)([()=>n.data,()=>n.params],async([F,q])=>{F&&A(F,q)},{immediate:!0});const $=(F,q,X,L,ee)=>{let le=null;if(o.icon)le=o.icon({item:F,index:q,status:L});else if(L==="done"){const W={};n.iconSize&&(W.width=n.iconSize,W.height=n.iconSize),le=(0,t.h)(n.icon??a,W)}else le=(0,t.h)("span",{},[X??`${q+1}`]);return(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{ee||T(F,q)}},[le])},j=(F,q,X)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:C(F,q)})]),b=()=>{let F=null;if(o.markIcon)F=o.markIcon();else{const q={};n.iconSize&&(q.width=n.markIconSize,q.height=n.markIconSize),F=(0,t.h)(n.markIcon??r,q)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[F])},E=(F,q,X,L,ee)=>{const le=[];if(!D(q)){const O=j(F,q,L);le.push(O)}const W=$(F,q,X,L,ee);return le.push(W),(0,t.h)("view",{class:"fox-steps-bar__head"},le)},Z=(F,q,X,L)=>{let ee=null;return o.main?ee=o.main({item:F,index:q,status:X}):ee=ef(n,F),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{L||T(F,q)}},[ee])},x=(F,q,X)=>{let L=null;return o.sub?(L=o.sub({item:F,index:q,status:X}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[L])):null},V=(F,q)=>{const X=fn(n,F,q)??{},L=X.status??dn(n,F);let ee=gr(n,F);X.disabled===!0&&(ee=!0),n.disabled===!0&&(ee=!0);const le=X.label??yr(n,F),W=[],O=$(F,q,le,L,ee);O&&W.push(O);const J=Z(F,q,L,ee);if(J&&W.push(J),!D(q)){const B=j(F,q,L);B&&W.push(B)}const R=(0,t.h)("view",{class:"fox-steps-bar__head"},W),Q=X.class,w=X.style??{};let p=vr(n,F);return X.doit===!0&&(p=!0),(0,t.h)("view",{ref:k(q),class:I(q,L,ee,p,Q),style:c(q,w)},[R])},M=(F,q)=>{const X=fn(n,F,q)??{},L=X.status??dn(n,F);let ee=gr(n,F);X.disabled===!0&&(ee=!0),n.disabled===!0&&(ee=!0);const le=X.label??yr(n,F),W=[],O=n.layout;for(let w of O)if(w==="head"){const p=E(F,q,le,L,ee);W.push(p)}else if(w==="main"){const p=Z(F,q,L,ee);W.push(p)}else if(w==="sub"){const p=x(F,q,L);W.push(p)}else if(w==="mark"){const p=b();W.push(p)}const J=X.class,R=X.style??{};let Q=vr(n,F);return X.doit===!0&&(Q=!0),(0,t.h)("view",{ref:k(q),class:I(q,L,ee,Q,J),style:c(q,R)},W)},K=(0,t.ref)(),Y=(0,t.ref)([]),P=(F,q)=>{Y.value[q]=F},k=F=>q=>{P(q,F)},U=(F,q)=>{const X=K.value,L=Y.value;if(!X||!L||!L[F])return;const ee=L[F];let le=0;n.direction==="vertical"?le=ee.offsetTop-(X.offsetHeight-ee.offsetHeight)/2:le=ee.offsetLeft-(X.offsetWidth-ee.offsetWidth)/2,G(X,le,q?0:.3,n.direction)},G=(F,q,X,L)=>{let ee=0;const le=L==="horizontal"?F.scrollLeft:F.scrollTop,W=X===0?1:Math.round(X*1e3/16);function O(){L==="horizontal"?F.scrollLeft+=(q-le)/W:F.scrollTop+=(q-le)/W,++ee<W&&Mn(O)}O()};return()=>{let F=[];if(n.mode==="simple")for(let X=0;X<m.value.length;X++){const L=m.value[X],ee=V(L,X);F.push(ee)}else for(let X=0;X<m.value.length;X++){const L=m.value[X],ee=M(L,X);F.push(ee)}const q={ref:K,class:h.value,style:v.value};return F.length===0&&typeof o.default=="function"&&(F=o.default()),(0,t.h)("view",q,F)}}}}var{componentName:rf,create:of,scope:sf}=ie("steps-bar"),uf=of(af(rf,sf,Vo,_1)),_a=uf,We=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,gt=e=>e==null,cf=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,l){this.startMove=e,this.updateMove=l,this.isTouch=ll()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const l=nl(),a=(r,n,o,s)=>{this.updateMove({x:r,y:n})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.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&&(l.move(r),a(l.state.deltaX,l.state.deltaY,"",0))},this.touchend=()=>{a(l.state.deltaX,l.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.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(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function br(e,l){return new cf(e,l)}var wr=typeof window<"u"&&typeof document<"u",x6=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function oi(e){const l=Object.create(null);return(a=>l[a]||(l[a]=e(a)))}var df=/\B([A-Z])/g,C6=oi(e=>e.replace(df,"-$1").toLowerCase()),ff=/-(\w)/g,N6=oi(e=>e.replace(ff,(l,a)=>a?a.toUpperCase():"")),Nt=[],Sr=e=>{const l=e;l.key==="Escape"&&Nt.forEach(a=>a(l))},mf=e=>{(0,t.onMounted)(()=>{Nt.length===0&&document.addEventListener("keydown",Sr),wr&&Nt.push(e)}),(0,t.onBeforeUnmount)(()=>{Nt=Nt.filter(l=>l!==e),Nt.length===0&&wr&&document.removeEventListener("keydown",Sr)})},mn="fox-focus-trap.focus-after-trapped",hn="fox-focus-trap.focus-after-released",hf="fox-focus-trap.focusout-prevented",xr={cancelable:!0,bubbles:!1},pf={cancelable:!0,bubbles:!1},Cr="foxFocusAfterTrapped",Nr="foxFocusAfterReleased",gf=Symbol("foxFocusTrap"),$a=(0,t.ref)(),Ql=(0,t.ref)(0),Va=(0,t.ref)(0),dl=0,ii=e=>{const l=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)l.push(a.currentNode);return l},vf=(e,l)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(l&&e===l)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},kr=(e,l)=>{for(const a of e)if(!vf(a,l))return a},yf=e=>{const l=ii(e);return[kr(l,e),kr(l.reverse(),e)]},bf=e=>e instanceof HTMLInputElement&&"select"in e,ct=(e,l)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),Va.value=window.performance.now(),e!==a&&bf(e)&&l&&e.select()}};function zr(e,l){const a=[...e],r=e.indexOf(l);return r!==-1&&a.splice(r,1),a}var wf=()=>{let e=[];return{push:r=>{const n=e[0];n&&r!==n&&n.pause(),e=zr(e,r),e.unshift(r)},remove:r=>{e=zr(e,r),e[0]?.resume?.()}}},Sf=(e,l=!1)=>{const a=document.activeElement;for(const r of e)if(ct(r,l),document.activeElement!==a)return},Tr=wf(),xf=()=>Ql.value>Va.value,fl=()=>{$a.value="pointer",Ql.value=window.performance.now()},Er=()=>{$a.value="keyboard",Ql.value=window.performance.now()},Cf=()=>((0,t.onMounted)(()=>{dl===0&&(document.addEventListener("mousedown",fl),document.addEventListener("touchstart",fl),document.addEventListener("keydown",Er)),dl++}),(0,t.onBeforeUnmount)(()=>{dl--,dl<=0&&(document.removeEventListener("mousedown",fl),document.removeEventListener("touchstart",fl),document.removeEventListener("keydown",Er))}),{focusReason:$a,lastUserFocusTimestamp:Ql,lastAutomatedFocusTimestamp:Va}),ml=e=>new CustomEvent(hf,{...pf,detail:e}),{componentName:k6,create:Nf,scope:z6}=ie("focus-trap"),kf={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"}},zf=Nf({props:kf,emits:[Cr,Nr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:l,emit:a}){const r=(0,t.ref)();let n,o;const{focusReason:s}=Cf();mf(h=>{fe(e.trapped)&&!u.paused&&a("release-requested",h)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=h=>{if(!e.loop&&!fe(e.trapped)||u.paused)return;const{key:v,altKey:I,ctrlKey:g,metaKey:c,currentTarget:C,shiftKey:D}=h,{loop:T}=e,N=v==="Tab"&&!I&&!g&&!c,A=document.activeElement;if(N&&A){const $=C,[j,b]=yf($);if(j&&b){if(!D&&A===b){const E=ml({focusReason:s.value});a("focusout-prevented",E),E.defaultPrevented||(h.preventDefault(),T&&ct(j,!0))}else if(D&&[j,$].includes(A)){const E=ml({focusReason:s.value});a("focusout-prevented",E),E.defaultPrevented||(h.preventDefault(),T&&ct(b,!0))}}else if(A===$){const E=ml({focusReason:s.value});a("focusout-prevented",E),E.defaultPrevented||h.preventDefault()}}};(0,t.provide)(gf,{focusTrapRef:r,onKeydown:i}),(0,t.watch)(()=>e.focusTrapEl,h=>{h&&(r.value=h)},{immediate:!0}),(0,t.watch)([r],([h],[v])=>{h&&(h.addEventListener("keydown",i),h.addEventListener("focusin",d),h.addEventListener("focusout",y)),v&&(v.removeEventListener("keydown",i),v.removeEventListener("focusin",d),v.removeEventListener("focusout",y))});const f=h=>{a(Cr,h)},m=h=>a(Nr,h),d=h=>{const v=(0,t.unref)(r);if(!v)return;const I=h.target,g=h.relatedTarget,c=I&&v.contains(I);fe(e.trapped)||g&&v.contains(g)||(n=g),c&&a("focusin",h),!u.paused&&fe(e.trapped)&&(c?o=I:ct(o,!0))},y=h=>{const v=(0,t.unref)(r);if(!(u.paused||!v))if(!e.escape&&fe(e.trapped)){const I=h.relatedTarget;!Ye(I)&&!v.contains(I)&&setTimeout(()=>{if(!u.paused&&fe(e.trapped)){const g=ml({focusReason:s.value});a("focusout-prevented",g),g.defaultPrevented||ct(o,!0)}},0)}else{const I=h.target;I&&v.contains(I)||a("focusout",h)}};async function z(){await(0,t.nextTick)();const h=(0,t.unref)(r);if(h){Tr.push(u);const v=h.contains(document.activeElement)?n:document.activeElement;if(n=v,!h.contains(v)){const I=new Event(mn,xr);h.addEventListener(mn,f),h.dispatchEvent(I),I.defaultPrevented||(0,t.nextTick)(()=>{let g=e.focusStartEl;Lr(g)||(ct(g),document.activeElement!==g&&(g="first")),g==="first"&&Sf(ii(h),!0),(document.activeElement===v||g==="container")&&ct(h)})}}}function S(){const h=(0,t.unref)(r);if(h){h.removeEventListener(mn,f);const v=new CustomEvent(hn,{...xr,detail:{focusReason:s.value}});h.addEventListener(hn,m),h.dispatchEvent(v),!v.defaultPrevented&&(s.value=="keyboard"||!xf())&&ct(n??document.body,!0),h.removeEventListener(hn,f),Tr.remove(u)}}return(0,t.onMounted)(()=>{fe(e.trapped)&&z(),(0,t.watch)(()=>e.trapped,h=>{fe(h)?z():S()})}),(0,t.onBeforeUnmount)(()=>{fe(e.trapped)&&S()}),()=>typeof l.default=="function"?l.default({"handle-keydown":i}):null}}),Tf=zf,{componentName:Ef,create:_f,scope:T6}=ie("floating-window"),$f=Symbol.for("InnerPageScopeKey"),Vf=Symbol.for("PageWrapperKey"),Bf={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}},Df=_f({inheritAttrs:!1,components:{FoxIcon:_.ElIcon,FocusTrap:Tf},props:{...Bf},emits:["update:modelValue","update:collapse"],setup(e,{emit:l}){const a=Ef,r=(0,t.ref)(e.modelValue),n=(0,t.computed)(()=>!e.teleport);(0,t.watch)(()=>e.modelValue,p=>{r.value=p});const o=(0,t.computed)(()=>r.value===!1?!1:!A.value),s=(0,t.ref)(e.left),u=(0,t.ref)(e.top),i=(0,t.ref)(e.right),f=(0,t.ref)(e.bottom),m=(0,t.computed)(()=>{const p=["fox-floating-window"];return e.customClass&&p.push(e.customClass),p}),d=(0,t.computed)(()=>{const p={};return gt(s.value)?p.left="auto":p.left=We(s.value),gt(u.value)?p.top="auto":p.top=We(u.value),gt(i.value)?p.right="auto":p.right=We(i.value),gt(f.value)?p.bottom="auto":p.bottom=We(f.value),gt(e.zIndex)||(p["z-index"]=We(e.zIndex)),gt(T.value)||(p.height=T.value),gt(N.value)||(p.width=N.value),p}),y=(0,t.computed)(()=>e.closeIcon??_e.Close),z=(0,t.computed)(()=>e.collapseIcon??_e.ArrowUp),S=(0,t.computed)(()=>e.collapseText??""),h=(0,t.computed)(()=>e.collapsePosition==="left"?e.expandIcon??_e.ArrowRight:e.expandIcon??_e.ArrowLeft),v=(0,t.computed)(()=>e.expandText??e.title??"展开"),I=(0,t.computed)(()=>({[`${a}__collapse-text`]:!0})),g=(0,t.computed)(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),c=(0,t.ref)(),C=(0,t.ref)(null),D=(0,t.ref)(null),T=(0,t.computed)(()=>We(e.height)||""),N=(0,t.computed)(()=>We(e.width)||""),A=(0,t.ref)(fe(e.collapse)),$=(p,B=!0)=>{A.value!==p&&(A.value=p,p?F():q(),l("update:collapse",p),p&&typeof E.onHide=="function"?E.onHide():!p&&typeof E.onShow=="function"&&E.onShow())};(0,t.watch)(()=>e.collapse,p=>{$(p)});const j=()=>{b()},b=p=>{p=p??!A.value,$(p)};(0,t.provide)($f,!0);const E={setCollapse:$,setFixedNavVisible:p=>{k.value=p}};(0,t.provide)(Vf,E);const Z=()=>{typeof E.beforeClose=="function"?E.beforeClose(()=>{r.value=!1}):r.value=!1},x=(0,t.ref)(null),V=(0,t.computed)(()=>!e.fixedNavTeleport),M=(0,t.computed)(()=>{const p=["fox-floating-window__fixednav"];return e.expandClass&&p.push(e.expandClass),e.collapsePosition==="left"?p.push("is-left"):e.collapsePosition==="right"&&p.push("is-right"),p}),K=(0,t.ref)(""),Y=(0,t.computed)(()=>{const p={};return K.value?p.top=K.value:e.collapseTop&&(p.top=e.collapseTop),p}),P=(0,t.ref)(A.value),k=(0,t.computed)({set:p=>{P.value=p},get:()=>r.value===!1?!1:P.value});let U=null;const G=()=>{typeof U=="function"&&(U(),U=null)},F=()=>{x.value&&x.value.classList.add("slide-in"),k.value=!0,U=()=>{x.value&&x.value.classList.remove("slide-in")}},q=()=>{x.value&&x.value.classList.add("slide-out"),U=()=>{x.value&&x.value.classList.remove("slide-out"),k.value=!1}},X=()=>{s.value=null,u.value=null,i.value=null,f.value=null},L={x:0,y:0},W=br(p=>{if(!c.value)return;const B=c.value;if(X(),e.origin==="left-top")s.value=B.offsetLeft,u.value=B.offsetTop,L.x=s.value,L.y=u.value;else if(e.origin==="left-bottom"){const H=document.documentElement.clientHeight||document.body.clientHeight;s.value=B.offsetLeft,f.value=H-(B.offsetTop+B.offsetHeight),L.x=s.value,L.y=f.value}else if(e.origin==="right-bottom"){const H=document.documentElement.clientWidth||document.body.clientWidth,te=document.documentElement.clientHeight||document.body.clientHeight;i.value=H-(B.offsetLeft+B.offsetWidth),f.value=te-(B.offsetTop+B.offsetHeight),L.x=i.value,L.y=f.value}else i.value=(document.documentElement.clientWidth||document.body.clientWidth)-(B.offsetLeft+B.offsetWidth),u.value=B.offsetTop,L.x=i.value,L.y=u.value},p=>{if(!c.value)return;const B=c.value;X(),e.origin==="left-top"?(s.value=L.x+p.x,u.value=L.y+p.y,B.style.left=We(s.value),B.style.top=We(u.value)):e.origin==="left-bottom"?(s.value=L.x+p.x,f.value=L.y-p.y,B.style.left=We(s.value),B.style.bottom=We(f.value)):e.origin==="right-bottom"?(i.value=L.x-p.x,f.value=L.y-p.y,B.style.right=We(i.value),B.style.bottom=We(f.value)):(i.value=L.x-p.x,u.value=L.y+p.y,B.style.right=We(i.value),B.style.top=We(u.value))}),O={x:0,y:0},Q=br(p=>{x.value&&(O.x=x.value.offsetLeft,O.y=x.value.offsetTop)},p=>{x.value&&(K.value=`${O.y+p.y}px`)}),w=()=>{c.value&&(D.value=c.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar"))};return(0,t.onMounted)(()=>{if(e.draggable&&c.value){const p=[];C.value&&p.push(C.value),e.footerDraggable&&(w(),D.value&&p.push(D.value)),W.open(p)}e.collapse===!0&&$(e.collapse,!1),x.value&&Q.open(x.value)}),(0,t.onBeforeUnmount)(()=>{e.draggable&&C.value&&W.close(),x.value&&Q.close()}),{classes:m,styles:d,isShow:o,closeIcon:y,onClose:Z,dialogRef:c,headerRef:C,onClickToggle:j,collapseIcon:z,collapseText:S,collapseTextClasses:I,collapseIconClasses:g,expandIcon:h,expandText:v,isShowFixedNav:k,fixedNavRef:x,fixedNavClasses:M,fixedNavStyles:Y,onAnimationEnd:G,teleportDisabled:n,fixedNavTeleportDisabled:V}}}),Mf={ref:"headerRef",class:"fox-floating-window__header"},If={class:"fox-floating-window__title"},Af={class:"fox-floating-window__tools"},Lf={class:"fox-floating-window__body"},Pf={class:"fox-floating-window__fixednav__text"};function Ff(e,l,a,r,n,o){const s=(0,t.resolveComponent)("FoxIcon"),u=(0,t.resolveComponent)("FocusTrap");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[(0,t.createVNode)(t.Transition,{name:"fox-floating-window-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"dialogRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),tabindex:"-1"},[(0,t.createVNode)(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",Mf,[(0,t.renderSlot)(e.$slots,"header",{},()=>[(0,t.createElementVNode)("span",If,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("div",Af,[e.showCollapse?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-floating-window__collapse",onClick:l[0]||(l[0]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[(0,t.createElementVNode)("span",{class:(0,t.normalizeClass)(e.collapseTextClasses)},(0,t.toDisplayString)(e.collapseText),3),(0,t.createVNode)(s,{class:(0,t.normalizeClass)(e.collapseIconClasses)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.collapseIcon)))]),_:1},8,["class"])])):(0,t.createCommentVNode)("",!0),e.showClose?((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.closeIcon)))]),_:1},8,["onClick"])):(0,t.createCommentVNode)("",!0)])])],512),(0,t.createElementVNode)("div",Lf,[(0,t.renderSlot)(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"fixedNavRef",class:(0,t.normalizeClass)(e.fixedNavClasses),style:(0,t.normalizeStyle)(e.fixedNavStyles),onAnimationend:l[2]||(l[2]=(...i)=>e.onAnimationEnd&&e.onAnimationEnd(...i))},[(0,t.createElementVNode)("div",{class:"fox-floating-window__fixednav__inner",onClick:l[1]||(l[1]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[(0,t.createVNode)(s,{class:"fox-floating-window__fixednav__icon"},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.expandIcon)))]),_:1}),(0,t.createElementVNode)("div",Pf,(0,t.toDisplayString)(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}var Ba=Re(Df,[["render",Ff]]),_r=new Date().getFullYear(),Rf={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},$r=(e,l,a)=>{let r;if(ft(l)?r=l:typeof l=="string"&&ut(l)>0?r=De.parser(l,a):r=new Date,r.toString()==="Invalid Date")return null;let n=Math.max(r.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),new Date(n)},Of=(e,l,a)=>{ft(l)||(l=e.minDate);let r=Math.max(l.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),De.format(new Date(r),a)},qf={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:()=>"date"},valueFormat:{type:String},visible:{type:Boolean,default:()=>!1},title:{type:String,default:()=>""},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(_r-10,0,1),validator:ft},maxDate:{type:Date,default:()=>new Date(_r+10,11,31),validator:ft},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:Hf,scope:jf}=ie("date-picker"),Kf=Hf({components:{Picker:al},props:{...qf},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:l}){const{t:a}=(0,Ce.useFoxI18n)(jf),r={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},n=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,c=>{n.value=c});function o(c,C){return new Date(c,C,0).getDate()}const s=(c,C)=>{const D=e[`${c}Date`],T=D.getFullYear();let N=1,A=1,$=0,j=0;c==="max"&&(N=12,A=o(C.getFullYear(),C.getMonth()+1),$=23,j=59);const b=j;return C.getFullYear()===T&&(N=D.getMonth()+1,C.getMonth()+1===N&&(A=D.getDate(),C.getDate()===A&&($=D.getHours(),C.getHours()===$&&(j=D.getMinutes())))),{[`${c}Year`]:T,[`${c}Month`]:N,[`${c}Date`]:A,[`${c}Hour`]:$,[`${c}Minute`]:j,[`${c}Seconds`]:b}},u=(0,t.computed)(()=>{if(!y.value)return[];const{maxYear:c,maxDate:C,maxMonth:D,maxHour:T,maxMinute:N,maxSeconds:A}=s("max",y.value),{minYear:$,minDate:j,minMonth:b,minHour:E,minMinute:Z,minSeconds:x}=s("min",y.value);let V=[{type:"year",range:[$,c]},{type:"month",range:[b,D]},{type:"day",range:[j,C]},{type:"hour",range:[E,T]},{type:"minute",range:[Z,N]},{type:"seconds",range:[x,A]}];switch(e.type){case"date":V=V.slice(0,3);break;case"datetime":V=V.slice(0,5);break;case"time":V=V.slice(3,6);break;case"year-month":V=V.slice(0,2);break;case"month-day":V=V.slice(1,3);break;case"datehour":V=V.slice(0,4);break;case"hour-minute":V=V.slice(3,5);break}return V}),i=(c,C,D,T,N)=>{const A=[];for(;c<=C;){let $=!0;if(typeof e.itemFilter=="function"){const j={text:`${c}`,value:c,type:D,currentYearMonth:T};$=e.itemFilter(j)}if($)if(typeof e.itemFormatter=="function"){const j={text:`${c}`,value:c,type:D,currentYearMonth:T};e.itemFormatter(j),A.push({text:j.text,value:j.value})}else if(e.isShowChinese){let j=`${c}${r[D]}`;if(D==="day"){if(T[0]===N[0]&&T[1]===N[1]&&c===N[2])j=r.today;else{const b=new Date(T[0],T[1],c).getDay();j=`${j} ${r.fullWeekdays[b]}`}A.push({text:j,value:c})}else A.push({text:c+r[D],value:c})}else A.push({text:`${c}`,value:c});D==="minute"?c+=e.minuteStep:c++}return A},f=(0,t.computed)(()=>{const c=new Date,C=[c.getFullYear(),c.getMonth(),c.getDate()],D=[];y.value&&(D[0]=y.value.getFullYear(),D[1]=y.value.getMonth());let T=[];return u.value.forEach(N=>{let A=i(N.range[0],N.range[1],N.type,D,C);A&&T.push(A)}),T}),m=(c,C)=>c==="year"?C.getFullYear():c==="month"?C.getMonth()+1:c==="day"?C.getDate():c==="hour"?C.getHours():c==="minute"?C.getMinutes():c==="seconds"?C.getSeconds():0,d=(0,t.ref)(),y=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,c=>{let C;if(typeof c=="string"?c.length==0||c==="Invalid Date"?C=new Date:e.valueFormat?C=$r(e,e.modelValue,e.valueFormat):C=$r(e,c,Rf[e.type]):ft(c)?C=c:C=new Date,!!C&&(!y.value||C.getTime()!==y.value.getTime())){y.value=C;let D=[];u.value.forEach(T=>{let N=m(T.type,C);D.push(N)}),d.value=D}},{immediate:!0});const z=c=>{if(!c||c.length===0){y.value=new Date;let C=[];u.value.forEach(D=>{let T=m(D.type,y.value);C.push(T)}),d.value=C;return}if(e.type==="date"){const C=c[0],D=c[1]-1,T=Math.min(c[2],o(C,D+1));T!==c[2]&&(c[2]=T),y.value=new Date(C,D,T)}else if(e.type==="datetime"){const C=c[0],D=c[1]-1,T=Math.min(c[2],o(C,D+1)),N=c[3],A=c[4];T!==c[2]&&(c[2]=T),y.value=new Date(C,D,T,N,A)}else if(e.type==="time"){const C=c[0],D=c[1],T=c[2],N=y.value??new Date;y.value=new Date(N.getFullYear(),N.getMonth(),N.getDate(),C,D,T)}else if(e.type==="year-month"){const C=c[0],D=c[1]-1;y.value=new Date(C,D)}else if(e.type==="month-day"){const C=(y.value??new Date).getFullYear(),D=c[0]-1,T=Math.min(c[1],o(C,D+1));T!==c[1]&&(c[1]=T),y.value=new Date(C,D,T)}else if(e.type==="datehour"){const C=c[0],D=c[1]-1,T=Math.min(c[2],o(C,D+1)),N=c[3];T!==c[2]&&(c[2]=T),y.value=new Date(C,D,T,N)}else if(e.type==="hour-minute"){const C=c[0],D=c[1],T=y.value??new Date;y.value=new Date(T.getFullYear(),T.getMonth(),T.getDate(),C,D)}d.value=c};return{columns:f,dateIndexs:d,show:n,onChange:c=>{z(c)},onClose:()=>{l("update:close",!1)},onConfirm:c=>{z(c);const C=y.value??new Date;e.valueFormat?l("update:modelValue",Of(e,C,e.valueFormat)):l("update:modelValue",C),l("confirm",c)},onClear:()=>{l("clear")},onUpdateVisible:c=>{n.value=c,l("update:visible",c)}}}});function Yf(e,l,a,r,n,o){const s=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var Da=Re(Kf,[["render",Yf]]),gl=(e,l,a)=>e.map(r=>{const{value:n="value",text:o="text",children:s="children"}=a??{},{[n]:u,[o]:i,[s]:f,...m}=r,d={loading:!1,...m,level:l?(l&&l.level||0)+1:0,value:u,text:i,children:f,_parent:l};return d.children&&d.children.length&&(d.children=gl(d.children,d,a)),d}),si=(e,l)=>{let a=0,r;for(;(r=e[a++])&&l(r)!==!0;)r.children&&r.children.length&&si(r.children,l)},Wf={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Uf=(e,l)=>{const{topId:a,idKey:r,pidKey:n,sortKey:o}={...Wf,...l||{}};let s=[],u={};return e.forEach(i=>{i={...i};const{[r]:f,[n]:m}=i,d=u[m]=u[m]||[];!s.length&&m===a&&(s=d),d.push(i),i.children=u[f]||(u[f]=[])}),o&&Object.keys(u).forEach(i=>{u[i].length>1&&u[i].sort((f,m)=>f[o]-m[o])}),u=null,s},Vr=class{nodes;config;constructor(e,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=gl(e,null,this.config)}updateChildren(e,l){l?l.children=gl(e,l,this.config):this.nodes=gl(e,null,this.config)}getNodeByValue(e){let l;return si(this.nodes,a=>{if(a.value===e)return l=a,!0}),l}getPathNodesByValue(e){if(!e.length)return[];const l=[];let a=this.nodes;for(;a&&a.length;){const r=a.find(n=>n.value===e[n.level]);if(!r)break;l.push(r),a=r.children}return l}isLeaf(e,l){const{leaf:a,children:r}=e,n=Array.isArray(r)&&!!r.length;return a||!n&&!l}hasChildren(e,l){if(this.isLeaf(e,l))return!1;const{children:a}=e;return Array.isArray(a)&&!!a.length}},{create:Gf,scope:Xf}=ie("cascader-pane"),Zf=Gf({components:{Loading:tl,Checklist:Vo,TabsBar:rl,TabsContainer:ol,TabsPane:Jl},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:l}){const{t:a}=(0,Ce.useFoxI18n)(Xf),r=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),n=(0,t.ref)(0),o=(0,t.ref)(!1),s=(0,t.ref)(e.modelValue),u=(0,t.ref)(new Vr([],{})),i=(0,t.ref)([]),f=(0,t.computed)(()=>r.value.lazy&&!!r.value.lazyLoad),m=(0,t.computed)(()=>o.value==!0||i.value.length==0?[{text:"Loading",value:0}]:i.value.map((g,c)=>({text:g.selectedNode?g.selectedNode.text:a("select"),value:c}))),d=new Map;let y;const z=async()=>{d.clear(),i.value=[],n.value=0,o.value=!1,y=null;let{options:g}=e;r.value.convertConfig&&(g=Uf(g,r.value.convertConfig)),u.value=new Vr(g,{value:r.value.valueKey,text:r.value.textKey,children:r.value.childrenKey}),f.value&&!u.value.nodes.length&&await h({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:u.value.nodes,selectedNode:null}],S()},S=async()=>{const g=s.value;if(g===void 0||!u.value.nodes.length)return;if(g.length===0){n.value=0,i.value=[{nodes:u.value.nodes,selectedNode:null}];return}let c=g;if(f.value&&Array.isArray(g)&&g.length){c=[];let C=u.value.nodes.find(D=>D.value===g[0]);C&&(c=[C.value],o.value=!0,await h(await g.slice(1).reduce(async(D,T)=>{const N=await D;await h(N);const A=N&&N?.children?.find($=>$.value===T);return A&&c.push(T),Promise.resolve(A)},Promise.resolve(C))),o.value=!1)}c.length&&g===e.modelValue&&u.value.getPathNodesByValue(c).map((C,D)=>{n.value=D,I.handleNode(C,!0)})},h=async g=>{if(!g)return;if(!r.value.lazyLoad){g.leaf=!0;return}if(u.value.isLeaf(g,f.value)||u.value.hasChildren(g,f.value))return;g.loading=!0;const c=g.root?null:g;let C=d.get(g);C||(C=new Promise(T=>{r.value.lazyLoad?.(g,T)}),d.set(g,C));const D=await C;Array.isArray(D)&&D.length>0?u.value.updateChildren(D,c):g.leaf=!0,g.loading=!1,d.delete(g)},v=g=>{const c=g.map(C=>C.value);s.value=c,l("change",c,g),l("update:modelValue",c,g)},I={async handleNode(g,c){const{disabled:C,loading:D}=g;if(!(!c&&C||!i.value[n.value])){if(u.value.isLeaf(g,f.value)){if(g.leaf=!0,i.value[n.value].selectedNode=g,i.value=i.value.slice(0,g.level+1),!c){const T=i.value.map(N=>N.selectedNode);v(T),l("pathChange",T)}return}if(u.value.hasChildren(g,f.value)){const T=g.level+1;i.value[n.value].selectedNode=g,i.value=i.value.slice(0,T),i.value.push({nodes:g.children||[],selectedNode:null}),n.value=T,c||l("pathChange",i.value.map(N=>N.selectedNode));return}y=g,!D&&(await h(g),y===g&&(i.value[n.value].selectedNode=g,I.handleNode(g,c)))}},handleTabChange(g,c){y=null},formatTabTitle(g){return g.selectedNode?g.selectedNode.text:a("select")},isSelected(g,c){return g.selectedNode&&g.selectedNode.value===c.value}};return(0,t.watch)([r,()=>e.options],()=>{z()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,g=>{g!==s.value&&(s.value=g,S())}),(0,t.watch)(()=>e.visible,g=>{g&&Array.isArray(s.value)&&s.value.length>0&&S()}),{panes:i,panesTitles:m,initLoading:o,tabsCursor:n,...I}}}),Jf={class:"fox-cascader"},Qf={role:"menu",class:"fox-cascader__pane"},e5=["aria-checked","aria-disabled","onClick"],t5={class:"fox-cascader__item__title"};function l5(e,l,a,r,n,o){const s=(0,t.resolveComponent)("TabsBar"),u=(0,t.resolveComponent)("Loading"),i=(0,t.resolveComponent)("Checklist"),f=(0,t.resolveComponent)("TabsPane"),m=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",Jf,[(0,t.createVNode)(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":l[0]||(l[0]=d=>e.tabsCursor=d),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(m,{modelValue:e.tabsCursor,"onUpdate:modelValue":l[1]||(l[1]=d=>e.tabsCursor=d)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(d,y)=>((0,t.openBlock)(),(0,t.createBlock)(f,{"pane-key":y,key:y},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Qf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(d.nodes,z=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:z.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(d,z),disabled:z.disabled}]),"aria-checked":e.isSelected(d,z),"aria-disabled":z.disabled||void 0,role:"menuitemradio",onClick:S=>e.handleNode(z,!1)},[(0,t.createElementVNode)("view",t5,(0,t.toDisplayString)(z.text),1),z.loading?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,e5))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(f,{key:1,"pane-key":0},{default:(0,t.withCtx)(()=>[...l[2]||(l[2]=[(0,t.createElementVNode)("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}var n5=Re(Zf,[["render",l5]]),{create:a5}=ie("cascader-picker"),r5=a5({components:{FoxCascaderPane:n5,FoxPopup:wt},props:{...na,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:l}){const a=(0,t.ref)(e.modelValue),r=(0,t.computed)({get(){return e.visible},set(s){l("update:visible",s)}}),n=(s,u)=>{a.value=s,r.value=!1,l("change",s,u),l("update:modelValue",s)},o=s=>{l("pathChange",s)};return(0,t.watch)(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:n,onPathChange:o,innerValue:a,innerVisible:r}}}),o5=["innerHTML"];function i5(e,l,a,r,n,o){const s=(0,t.resolveComponent)("FoxCascaderPane"),u=(0,t.resolveComponent)("FoxPopup");return e.poppable?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,visible:e.innerVisible,"onUpdate:visible":l[0]||(l[0]=i=>e.innerVisible=i),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"header",{},()=>[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,o5)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:3},8,["visible","closeable","close-icon-position"])):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}var Ma=Re(r5,[["render",i5]]),s5=Symbol.for("PageWrapperKey");function u5(e,l){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(a,r){On(!0);const n={};(0,t.provide)(s5,n);const o=f=>{typeof n.beforeClose=="function"&&n.beforeClose()},s=(0,t.ref)(!0),u=f=>{s.value=f},i=(0,t.computed)(()=>{const f={};return a.height&&(f["--fox-dialog-item-body-height"]=xe(a.height)),f});return()=>{const f={...r.attrs,style:i.value,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":u,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":o},m=["fox-dialog-item "];a.hideHeader&&m.push("hide-header"),a.class&&m.push(a.class),f.class=m.join(" ");const d={};return typeof r.slots.default=="function"&&(d.default=r.slots.default),(0,t.h)(_.ElDialog,f,d)}}}}var{componentName:c5,create:d5,scope:f5}=ie("dialog-item"),m5=d5(u5(c5,f5)),Ia=m5,{create:h5}=ie("toast"),p5=h5({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:l}){let a=null;const r=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{r.mounted=!0});const n=()=>{a&&(clearTimeout(a),a=null)},o=()=>{r.mounted=!1},s=()=>{n(),e.duration&&(a=setTimeout(()=>{o()},e.duration))},u=()=>{e.closeOnClickOverlay&&(o(),l("close"))};e.duration&&s(),(0,t.watch)(()=>e.duration,z=>{z&&s()});const i=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const z=he(e.iconSize);return(0,t.h)(e.icon,{width:z,height:z,color:e.iconColor})},m=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":i.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:r,hide:o,clickCover:u,renderIcon:f,hasIcon:i,toastBodyClass:m,toastIconWrapperClass:d,onAfterLeave:()=>{n(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),g5={key:1,class:"fox-toast-title"},v5=["innerHTML"];function y5(e,l,a,r,n,o){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:l[0]||(l[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[(0,t.createElementVNode)("view",{class:"fox-toast-inner",style:(0,t.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.toastIconWrapperClass)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon())))],2)):(0,t.createCommentVNode)("",!0),e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",g5,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,v5)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var Aa=Re(p5,[["render",y5]]),$n={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},kt=[],Yt=[],ui=e=>{if(e){const l=document.getElementById(e);Yt=Yt.filter(a=>a.id!==e),kt=kt.filter(a=>a!==e),l&&document.body.removeChild(l)}else kt.forEach(l=>{const a=document.getElementById(l);a&&document.body.removeChild(a)}),Yt=[],kt=[]},b5=e=>{const l=document.getElementById(e.id);if(l){const a=Yt.find(r=>r.id===e.id);return a?e={...$n,...a,...e}:e={...$n,...e},(0,t.render)((0,t.createVNode)(Aa,e),l),It}},qt=e=>{e.unmount=ui;let l;if(e.id){if(l=e.id,kt.find(r=>r===e.id))return b5(e)}else l=new Date().getTime()+"";e={...$n,...e},e.id=l,kt.push(e.id),Yt.push(e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(Aa,e),a),document.body.appendChild(a),It},hl=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},It={text(e,l={}){return hl(e),qt({...l,type:"text",msg:e})},success(e,l={}){return hl(e),qt({icon:Qc,...l,msg:e,type:"success"})},fail(e,l={}){return hl(e),qt({icon:g1,...l,msg:e,type:"fail"})},warn(e,l={}){return hl(e),qt({icon:Xc,...l,msg:e,type:"warn"})},loading(e,l={}){return qt({icon:tl,...l,msg:e,type:"loading"})},hide(e){ui(e)},install(e){e.use(Aa),e.config.globalProperties.$toast=It}},w5={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}},S5=(e,l,a)=>({props:{...w5},emits:["change","refresh","update:modelValue"],setup(r,{emit:n,slots:o}){const{toLocaleRefs:s}=(0,Ce.useFoxI18n)(l),u=s(r,["pullingText","loosingText","loadingText"]),i=nl(),f=(0,t.ref)(),m=Jo(f),d=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=(0,t.computed)(()=>({[e]:!0})),z=(0,t.computed)(()=>{switch(d.status){case"pulling":return o.pulling?"":u.pullingText.value;case"loosing":return o.loosing?"":u.loosingText.value;case"loading":return o.loading?"":u.loadingText.value;default:return""}}),S=(0,t.computed)(()=>({transitionDuration:`${r.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=(0,t.computed)(()=>{const N={};return r.headHeight!=50&&(N.height=xe(r.headHeight)),N}),v=N=>{const A=+(r.pullDistance||r.headHeight);let $=N;return N>A&&(N<A*2?$=(N+A)/2:$=A+N/4),Math.round($)},I=(N,A)=>{const $=+(r.pullDistance||r.headHeight);d.distance=N,A?d.status="loading":N===0?d.status="normal":N<$?d.status="pulling":d.status="loosing",n("change",{status:d.status,distance:N})},g=()=>d.status!=="loading"&&d.status!=="complete",c=()=>m.value==window?Qo()==0:m.value&&m.value.scrollTop==0,C=N=>{g()&&(c()?(i.start(N),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},D=N=>{g()&&d.moving&&(i.move(N),i.isVertical()&&i.state.deltaY>0&&d.isPullRefresh&&(N.cancelable&&N.preventDefault(),I(v(i.state.deltaY))))},T=()=>{d.moving=!1,d.isPullRefresh&&g()&&i.state.deltaY&&(d.status==="loosing"?(I(+r.headHeight,!0),n("update:modelValue",!0),(0,t.nextTick)(()=>n("refresh"))):I(0)),setTimeout(()=>{i.reset()},0)};return(0,t.watch)(()=>r.modelValue,N=>{N?I(+r.headHeight,!0):I(0)}),()=>{const N=[];let A=null;d.status==="loading"?(A=o?.loading?.()??null,A||(A=(0,t.h)(a,{class:["fox-pull-refresh-container-topbox-icon"]}))):d.status==="pulling"?A=o?.pulling?.()??null:d.status==="loosing"&&(A=o?.loosing?.()??null),A&&N.push(A);const $=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[z.value]);N.push($);const j=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:h.value},N),b=(0,t.h)("div",{class:"fox-pull-refresh-container",style:S.value},[j,o?.default?.()]),E={ref:f,class:y.value};return ll()?Object.assign(E,{onTouchstart:C,onTouchmove:D,onTouchend:T}):Object.assign(E,{onMousedown:C,onMousemove:D,onMouseup:T}),(0,t.h)("div",E,[b])}}}),{componentName:x5,create:C5,scope:N5}=ie("pull-refresh"),k5=C5(S5(x5,N5,tl)),La=k5,z5={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 T5(e,l,a){return{props:{...z5},emits:["click","update:modelValue"],setup(r,{emit:n,slots:o}){const{toLocaleRefs:s}=(0,Ce.useFoxI18n)(l),u=s(r,["collapseText","expandText"]),i=(0,t.computed)(()=>{const S={[`${e}`]:!0};return r.disabled?S[`${e}--disabled`]=!0:S[`${e}--${r.type}`]=!0,S}),f=ye(r,"modelValue"),m=(0,t.computed)(()=>f.value?u.expandText.value??"":u.collapseText.value??""),d=(0,t.computed)(()=>({[`${e}__text`]:!0})),y=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!f.value,"is-collapse":f.value})),z=()=>{n("update:modelValue",!f.value)};return()=>{const S=[];if(m.value){const I=(0,t.h)("span",{class:d.value},[m.value]);S.push(I)}const h={class:y.value},v=(o.icon&&o.icon())??(r.icon&&(0,t.h)(r.icon))??(0,t.h)(a);if(v){const I=(0,t.h)("div",h,[v]);S.push(I)}return r.textPosition==="right"&&S.reverse(),(0,t.h)("div",{class:i.value,onClick:z},S)}}}}var{componentName:E5,create:_5,scope:$5}=ie("more-button"),V5=_5(T5(E5,$5,_e.ArrowUp)),Pa=V5;function B5(e){e.stopPropagation()}var D5=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,l){this.startMove=e,this.updateMove=l,this.isTouch=ll()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const l=nl(),a=(r,n,o,s)=>{this.updateMove({x:r,y:n})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.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&&(l.move(r),B5(r),a(l.state.deltaX,l.state.deltaY,"",0))},this.touchend=()=>{a(l.state.deltaX,l.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.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(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function M5(e,l){return new D5(e,l)}var I5={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]}},A5=(e,l,a,r=!1)=>({props:{...I5},emits:["click"],setup(n,{slots:o,emit:s}){const u=(0,t.reactive)({top:n.top,right:n.right,bottom:n.bottom,left:n.left}),i=(0,t.computed)(()=>{const g=[`${e}`];return n.customClass&&g.push(n.customClass),g}),f=(0,t.computed)(()=>{const g={};return me(u.top)||(g.top=u.top),me(u.right)||(g.right=u.right),me(u.bottom)||(g.bottom=u.bottom),me(u.left)||(g.left=u.left),me(n.width)||(g.width=n.width),me(n.height)||(g.height=n.height),me(n.color)||(g.color=n.color),me(n.background)||(g.background=n.background),me(n.borderRadius)||(g["border-radius"]=n.borderRadius),me(n.zIndex)||(g["z-index"]=n.zIndex),g}),m=(0,t.computed)(()=>({[`${e}__icon`]:!0})),d=()=>{s("click")},y=(0,t.ref)(null),z=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},S={x:0,y:0},I=M5(g=>{if(!y.value)return;const c=y.value;z(),u.left=c.offsetLeft,u.top=c.offsetTop,c.style.left=`${u.left}px`,c.style.top=`${u.top}px`,c.style.right=null,c.style.bottom=null,S.x=u.left,S.y=u.top},g=>{if(!y.value)return;const c=y.value;z(),u.left=S.x+g.x,u.top=S.y+g.y,c.style.left=`${u.left}px`,c.style.top=`${u.top}px`});return(0,t.onMounted)(()=>{if(n.draggable&&y.value){const g=[y.value];I.open(g)}}),(0,t.onBeforeUnmount)(()=>{n.draggable&&y.value&&I.close()}),()=>{let g=[];const c=typeof o.default=="function"?o.default():[];if(c&&c.length>0)g=c;else{const C=(0,t.h)(a,{class:m.value});g.push(C)}return(0,t.h)("view",{ref:C=>{y.value=C},class:i.value,style:f.value,onClick:d},g)}}}),{componentName:L5,create:P5,scope:F5}=ie("floating-button"),R5=P5(A5(L5,F5,Wc,!1)),Fa=R5;function O5(e,l){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(a,{slots:r}){const n=e,o=(0,t.computed)(()=>({[n]:!0})),s=(0,t.computed)(()=>a.icon?{[`${n}__icon`]:!0,[`${n}__icon-${a.type}`]:!0}:{[`${n}__mark`]:!0,[`${n}__mark-${a.type}`]:!0}),u=(0,t.computed)(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),i=(0,t.computed)(()=>{const m={[`${n}__text`]:!0,[`${n}__text-${a.type}`]:!0};return a.textPosition==="left"?m["is-left"]=!0:m["is-right"]=!0,m}),f=(0,t.computed)(()=>a.color?{color:a.color}:null);return()=>{let m=null;if(r.mark)m=r.mark()[0];else{const z={class:s.value,style:u.value};m=(0,t.h)(a.icon??"div",z)}const d=(0,t.h)("div",{class:i.value,style:f.value},r.default?r.default():[]),y={class:o.value};return a.textPosition==="right"?(0,t.h)("div",y,[m,d]):(0,t.h)("div",y,[d,m])}}}}var{componentName:q5,create:H5,scope:j5}=ie("indicator"),K5=H5(O5(q5,j5)),Ra=K5,{componentName:Y5,create:W5,scope:E6}=ie("tour"),U5=W5({components:{Close:_e.Close,ElPopover:_.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:l}){const a=Y5,r=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),n=(0,t.ref)({}),o=(0,t.computed)(()=>`${a}`),s=(0,t.computed)(()=>{const{offset:S,maskWidth:h,maskHeight:v}=e,{width:I,height:g,left:c,top:C}=n.value,D=e.steps[r.active].offset??S,T=[c+I/2,C+g/2],N=Number(h||I),A=Number(v||g);return{width:`${N+ +D.left+D.right}px`,height:`${A+D.top+D.bottom}px`,top:`${T[1]-A/2-+D.top}px`,left:`${T[0]-N/2-+D.left}px`}}),u=S=>{S=="next"?r.active=r.active+1:r.active=r.active-1,r.showPopup=!1,(0,t.nextTick)(()=>{r.showPopup=!0,m()}),l("change",r.active)},i=S=>S.popoverWidth??e.width,f=S=>S.location??e.location,m=()=>{const S=Ca(document.querySelector(`${e.steps[r.active].target}`));n.value={x:S.left,y:S.top,top:S.top,left:S.left,width:S.width,height:S.height}},d=()=>{r.showTour=!1,r.showPopup=!1,l("close",r.active),l("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},z=(S,h=0)=>{S&&m(),e.steps,r.active=h,r.showTour=S,r.showPopup=S};return(0,t.onMounted)(()=>{z(e.modelValue,e.current)}),(0,t.watch)(()=>e.modelValue,S=>{z(S)}),{...(0,t.toRefs)(r),classes:o,maskStyle:s,changeStep:u,popoverWidth:i,popoverLocation:f,close:d,handleClickMask:y}}}),G5={key:0,class:"fox-tour__content"},X5={key:0,class:"fox-tour__content-top"},Z5={class:"fox-tour__content-inner"},J5={class:"fox-tour__content-bottom"},Q5={class:"fox-tour__content-bottom-init"},e6={class:"fox-tour__content-bottom-operate"},t6={key:1,class:"fox-tour__content fox-tour__content-tile"},l6={class:"fox-tour__content-inner"};function n6(e,l,a,r,n,o){const s=(0,t.resolveComponent)("Close"),u=(0,t.resolveComponent)("fox-button"),i=(0,t.resolveComponent)("ElPopover");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-tour__masked",onClick:l[0]||(l[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(f,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:m,style:{height:"0"}},[m==e.active?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:(0,t.withCtx)(()=>[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0)]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",G5,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",X5,[(0,t.createElementVNode)("div",{onClick:l[1]||(l[1]=(...d)=>e.close&&e.close(...d))},[(0,t.createVNode)(s,{class:"fox-tour__content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",Z5,(0,t.toDisplayString)(f.content),1),(0,t.createElementVNode)("div",J5,[(0,t.createElementVNode)("div",Q5,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",e6,[(0,t.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:l[2]||(l[2]=d=>e.changeStep("prev"))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.prevStepText),1)]),_:1})):(0,t.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.completeText),1)]),_:1},8,["onClick"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:l[3]||(l[3]=d=>e.changeStep("next"))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextStepText),1)]),_:1})):(0,t.createCommentVNode)("",!0)])])])])):(0,t.createCommentVNode)("",!0),e.type=="tile"?((0,t.openBlock)(),(0,t.createElementBlock)("div",t6,[(0,t.createElementVNode)("div",l6,(0,t.toDisplayString)(f.content),1)])):(0,t.createCommentVNode)("",!0)])]),_:2},1032,["visible","placement","width"])):(0,t.createCommentVNode)("",!0)]))),128))],2)}var Oa=Re(U5,[["render",n6]]);function a6(e,l){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(a,{slots:r}){return eo(a.name,()=>a.config),Ye(a.innerPageScope)||On(a.innerPageScope),Ye(a.abstractPageScope)||no(a.abstractPageScope),()=>typeof r.default=="function"?r.default():null}}}var{componentName:r6,create:o6,scope:i6}=ie("domain-provider"),s6=o6(a6(r6,i6)),qa=s6,u6={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 c6(e,l){return{inheritAttrs:!1,props:u6,emits:["change"],setup(a,{slots:r,emit:n}){if(ht&&window.IntersectionObserver){const o=new WeakMap;let s=new Map;const u=(y,z)=>{if(m===null){s.set(y,{visible:null,callback:z});return}o.has(y)&&m.unobserve(y),o.set(y,{visible:null,callback:z}),m.observe(y)},i=y=>{if(m===null){s.delete(y);return}o.has(y)&&(o.delete(y),m.unobserve(y))};let f=a.initialVisibleObserverSize;Ms({acquire:()=>{if(a.loadPolicy==="always")return!0;const y=f>0;return f--,y},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:u,unobserve:i});let m=null;const d=(y,z,S)=>{m=new IntersectionObserver(h=>{if(n("change",h),a.loadPolicy!=="always")for(let v of h){let I=!1;v.intersectionRatio>0&&(I=!0);const g=o.get(v.target);if(g)try{if(a.loadPolicy==="lazy"&&!I&&g.visible!==null)return;g.visible=I,g.callback(I)}catch(c){console.error(c)}}},{root:y,rootMargin:z,threshold:S}),s.forEach((h,v)=>{o.set(v,h),m?.observe(v)}),s.clear()};(0,t.watch)([()=>a.root,()=>a.disabled],([y,z])=>{if(z||!y||m)return;let S=null;typeof y=="string"?S=document.querySelector(y):S=y,S&&d(S,a.rootMargin,a.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof r.default=="function"?r.default():null}}}var{componentName:d6,create:f6,scope:m6}=ie("rolling-provider"),h6=f6(c6(d6,m6)),Ha=h6,p6=[Hn,Kn,Yn,Wn,Gn,el,Hl,jl,Jn,Pe,Qn,ea,ta,aa,ra,oa,ia,sa,ua,ca,da,fa,Ul,ma,ha,pa,ga,va,ya,ba,wa,Zl,Sa,Na,ka,rl,ol,Jl,Ea,_a,Ba,Kl,al,Da,Wl,Ma,Ia,Yl,wt,It,Xl,Gl,La,Pa,Fa,Bt,ql,Ra,Vt,Oa,qa,Ha],g6=new rs(p6,[ss],"4.0.0");exports.AbstractPageScopeKey=qn;exports.ActionsheetItem=Sa;exports.FoxActionsheetItem=Sa;exports.ActionsheetPane=Zl;exports.FoxActionsheetPane=Zl;exports.AutocompleteItem=ca;exports.FoxAutocompleteItem=ca;exports.Broadcast=Ln;exports.BroadcastKey=Ee;exports.ButtonsItem=Jn;exports.FoxButtonsItem=Jn;exports.CalendarItem=aa;exports.FoxCalendarItem=aa;exports.CascaderItem=ua;exports.FoxCascaderItem=ua;exports.CheckboxItem=pa;exports.FoxCheckboxItem=pa;exports.Content=Wn;exports.FoxContent=Wn;exports.DataItemsKey=Ct;exports.DateItem=ta;exports.FoxDateItem=ta;exports.DateUtils=De;exports.DialogItem=Ia;exports.FoxDialogItem=Ia;exports.Domain=Vl;exports.DomainKey=Ge;exports.DomainProvider=qa;exports.FoxDomainProvider=qa;exports.FloatingButton=Fa;exports.FoxFloatingButton=Fa;exports.FloatingWindow=Ba;exports.FoxFloatingWindow=Ba;exports.FooterBar=Yn;exports.FoxFooterBar=Yn;exports.FoxAffix=_.ElAffix;exports.FoxAlert=_.ElAlert;exports.FoxAnchor=_.ElAnchor;exports.FoxAnchorLink=_.ElAnchorLink;exports.FoxAside=_.ElAside;exports.FoxAutoResizer=_.ElAutoResizer;exports.FoxAutocomplete=_.ElAutocomplete;exports.FoxAvatar=_.ElAvatar;exports.FoxBacktop=_.ElBacktop;exports.FoxBadge=_.ElBadge;exports.FoxBreadcrumb=_.ElBreadcrumb;exports.FoxBreadcrumbItem=_.ElBreadcrumbItem;exports.FoxButton=_.ElButton;exports.FoxButtonGroup=_.ElButtonGroup;exports.FoxCalendar=_.ElCalendar;exports.FoxCard=_.ElCard;exports.FoxCarousel=_.ElCarousel;exports.FoxCarouselItem=_.ElCarouselItem;exports.FoxCascader=_.ElCascader;exports.FoxCascaderPanel=_.ElCascaderPanel;exports.FoxCheckTag=_.ElCheckTag;exports.FoxCheckbox=_.ElCheckbox;exports.FoxCheckboxButton=_.ElCheckboxButton;exports.FoxCheckboxGroup=_.ElCheckboxGroup;exports.FoxCol=_.ElCol;exports.FoxCollapse=_.ElCollapse;exports.FoxCollapseItem=_.ElCollapseItem;exports.FoxCollapseTransition=_.ElCollapseTransition;exports.FoxColorPicker=_.ElColorPicker;exports.FoxConfigProvider=_.ElConfigProvider;exports.FoxContainer=_.ElContainer;exports.FoxCountdown=_.ElCountdown;exports.FoxDatePicker=_.ElDatePicker;exports.FoxDescriptions=_.ElDescriptions;exports.FoxDescriptionsItem=_.ElDescriptionsItem;exports.FoxDialog=_.ElDialog;exports.FoxDivider=_.ElDivider;exports.FoxDrawer=_.ElDrawer;exports.FoxDropdown=_.ElDropdown;exports.FoxDropdownItem=_.ElDropdownItem;exports.FoxDropdownMenu=_.ElDropdownMenu;exports.FoxEmpty=_.ElEmpty;exports.FoxFooter=_.ElFooter;exports.FoxForm=_.ElForm;exports.FoxFormItem=_.ElFormItem;exports.FoxGroup=Gn;exports.Group=Gn;exports.FoxGroupSetting=ba;exports.GroupSetting=ba;exports.FoxHeader=_.ElHeader;exports.FoxHeaderBar=Kn;exports.HeaderBar=Kn;exports.FoxHintText=Pe;exports.HintText=Pe;exports.FoxIcon=_.ElIcon;exports.FoxImage=_.ElImage;exports.FoxImageViewer=_.ElImageViewer;exports.FoxIndicator=Ra;exports.Indicator=Ra;exports.FoxInfiniteLoading=Gl;exports.InfiniteLoading=Gl;exports.FoxInput=_.ElInput;exports.FoxInputItem=Qn;exports.InputItem=Qn;exports.FoxInputNumber=_.ElInputNumber;exports.FoxInputNumberItem=sa;exports.InputNumberItem=sa;exports.FoxInputTag=_.ElInputTag;exports.FoxItem=el;exports.Item=el;exports.FoxLink=_.ElLink;exports.FoxLinkItem=ka;exports.LinkItem=ka;exports.FoxMain=_.ElMain;exports.FoxMapping=Bt;exports.Mapping=Bt;exports.FoxMention=_.ElMention;exports.FoxMenu=_.ElMenu;exports.FoxMenuItem=_.ElMenuItem;exports.FoxMenuItemGroup=_.ElMenuItemGroup;exports.FoxMessage=_.ElMessage;exports.FoxMessageBox=_.ElMessageBox;exports.FoxMoneyItem=ia;exports.MoneyItem=ia;exports.FoxMoreButton=Pa;exports.MoreButton=Pa;exports.FoxNotification=_.ElNotification;exports.FoxOption=_.ElOption;exports.FoxOptionGroup=_.ElOptionGroup;exports.FoxOverLay=Yl;exports.OverLay=Yl;exports.FoxPage=Hn;exports.Page=Hn;exports.FoxPageHeader=_.ElPageHeader;exports.FoxPagination=_.ElPagination;exports.FoxPickerItem=Na;exports.PickerItem=Na;exports.FoxPopconfirm=_.ElPopconfirm;exports.FoxPopover=_.ElPopover;exports.FoxPopoverDialog=Kl;exports.PopoverDialog=Kl;exports.FoxPopper=_.ElPopper;exports.FoxPopup=wt;exports.Popup=wt;exports.FoxPrice=ql;exports.Price=ql;exports.FoxProgress=_.ElProgress;exports.FoxPullRefresh=La;exports.PullRefresh=La;exports.FoxRadio=_.ElRadio;exports.FoxRadioButton=_.ElRadioButton;exports.FoxRadioGroup=_.ElRadioGroup;exports.FoxRadioItem=ha;exports.RadioItem=ha;exports.FoxRate=_.ElRate;exports.FoxRateItem=ga;exports.RateItem=ga;exports.FoxResult=_.ElResult;exports.FoxRollingProvider=Ha;exports.RollingProvider=Ha;exports.FoxRow=_.ElRow;exports.FoxRowItem=jl;exports.RowItem=jl;exports.FoxScrollbar=_.ElScrollbar;exports.FoxSearchBar=Xl;exports.SearchBar=Xl;exports.FoxSegmented=_.ElSegmented;exports.FoxSelect=_.ElSelect;exports.FoxSelectItem=ea;exports.SelectItem=ea;exports.FoxSelectV2=_.ElSelectV2;exports.FoxSkeleton=_.ElSkeleton;exports.FoxSkeletonItem=_.ElSkeletonItem;exports.FoxSlider=_.ElSlider;exports.FoxSlotItem=Hl;exports.SlotItem=Hl;exports.FoxSpace=_.ElSpace;exports.FoxStatistic=_.ElStatistic;exports.FoxStep=_.ElStep;exports.FoxSteps=_.ElSteps;exports.FoxStepsBar=_a;exports.StepsBar=_a;exports.FoxSubMenu=_.ElSubMenu;exports.FoxSwitch=_.ElSwitch;exports.FoxSwitchItem=va;exports.SwitchItem=va;exports.FoxTabPane=_.ElTabPane;exports.FoxTable=_.ElTable;exports.FoxTableColumn=_.ElTableColumn;exports.FoxTableItem=ma;exports.TableItem=ma;exports.FoxTableMappingColumn=da;exports.TableMappingColumn=da;exports.FoxTableRadioColumn=fa;exports.TableRadioColumn=fa;exports.FoxTableSetting=Ul;exports.TableSetting=Ul;exports.FoxTableV2=_.ElTableV2;exports.FoxTabs=_.ElTabs;exports.FoxTabsBar=rl;exports.TabsBar=rl;exports.FoxTabsContainer=ol;exports.TabsContainer=ol;exports.FoxTabsFrame=Ea;exports.TabsFrame=Ea;exports.FoxTabsPane=Jl;exports.TabsPane=Jl;exports.FoxTag=_.ElTag;exports.FoxText=Vt;exports.Text=Vt;exports.FoxTimeItem=ra;exports.TimeItem=ra;exports.FoxTimePicker=_.ElTimePicker;exports.FoxTimeSelect=_.ElTimeSelect;exports.FoxTimeSelectItem=oa;exports.TimeSelectItem=oa;exports.FoxTimeline=_.ElTimeline;exports.FoxTimelineItem=_.ElTimelineItem;exports.FoxToast=It;exports.Toast=It;exports.FoxTooltip=_.ElTooltip;exports.FoxTour=Oa;exports.Tour=Oa;exports.FoxTransfer=_.ElTransfer;exports.FoxTree=_.ElTree;exports.FoxTreeItem=wa;exports.TreeItem=wa;exports.FoxTreeSelect=_.ElTreeSelect;exports.FoxTreeSelectItem=ya;exports.TreeSelectItem=ya;exports.FoxTreeV2=_.ElTreeV2;exports.FoxUpload=_.ElUpload;exports.FoxWatermark=_.ElWatermark;exports.Foxcalendarpicker=Wl;exports.calendarpicker=Wl;exports.Foxcascaderpicker=Ma;exports.cascaderpicker=Ma;exports.Foxdatepicker=Da;exports.datepicker=Da;exports.Foxpicker=al;exports.picker=al;exports.InnerPageScopeKey=Rn;exports.PriorityPolicy=qe;exports.UniqueID=wo;exports.ValidateSchema=Zr;exports.ValidateSchemaKey=Qe;exports.browseProperty=oo;exports.cancelRaf=wi;exports.clamp=Pi;exports.clearNonNumber=Bi;exports.compareTo=bn;exports.createBroadcast=El;exports.createValidateSchema=_l;exports.debounce=Ze;exports.debounceRef=Ui;exports.decimalLength=Kr;exports.default=g6;exports.defineBroadcast=Fi;exports.defineConfigDomain=eo;exports.defineDataItem=to;exports.defineDomain=Pn;exports.defineDomainItemProperty=Ae;exports.defineItem=ze;exports.definePageState=lo;exports.defineSimpleItem=Fn;exports.deleteGlobalValidator=ji;exports.disabledProperty=ro;exports.divide=Dn;exports.excludeProps=Ie;exports.extend=_t;exports.floatData=Ii;exports.getGlobalIcons=ho;exports.getGlobalValidateCheckEvents=Ur;exports.getGlobalValidateResetEvents=Xr;exports.getPageContentAreaHeight=Sl;exports.getPageContentAreaWidth=xl;exports.getPageFooterAreaHeight=Ml;exports.getPageHeaderAreaHeight=Dl;exports.getRootDomain=zt;exports.hasSymbol=Fr;exports.includeProps=nt;exports.indexOf=Di;exports.injectAbstractPageScope=Qt;exports.injectInnerPageScope=Jt;exports.integerLength=jr;exports.isArray=xi;exports.isArrayLike=qr;exports.isBrowser=ht;exports.isDate=ft;exports.isDisplayNone=In;exports.isESModule=Ti;exports.isEmptyString=me;exports.isEqual=Xe;exports.isFunction=wn;exports.isHidden=Rr;exports.isMap=Ci;exports.isNil=Ye;exports.isNumberString=An;exports.isObject=Ue;exports.isPlainObject=zi;exports.isPromise=yl;exports.isRegExp=Sn;exports.isSet=Ni;exports.isString=Lr;exports.isSubPage=Ji;exports.isSymbol=ki;exports.isTouch=ll;exports.isWindow=Or;exports.kebabToPascal=Ut;exports.lastIndexOf=Mi;exports.makeArray=Vi;exports.merge=Hr;exports.multiply=Mr;exports.negate=Ir;exports.nextTick=_i;exports.numberFormat=zl;exports.objectToString=Pr;exports.once=Gi;exports.overrideGlobalIcons=gs;exports.overrideGlobalValidateHandler=qi;exports.padZero=Li;exports.pascalToKebab=Yr;exports.preventDefault=Ai;exports.property=$e;exports.provideAbstractPageScope=no;exports.provideInnerPageScope=On;exports.raf=Mn;exports.readonlyProperty=ao;exports.setGlobalValidateCheckEvents=Ki;exports.setGlobalValidateHandler=Oi;exports.setGlobalValidateMessages=Wi;exports.setGlobalValidateResetEvents=Yi;exports.setGlobalValidator=Hi;exports.throttle=Qr;exports.toBoolean=fe;exports.toNumber=ve;exports.toPadding=lt;exports.toPx=he;exports.toPxDesc=Zi;exports.toPxString=xe;exports.toTypeString=Tl;exports.toValue=ye;exports.tryTimes=$l;exports.typeOf=bl;exports.unNumberFormat=Ar;exports.updatePageState=xn;exports.useBroadcast=Ht;exports.useDomain=pt;exports.useExpose=be;exports.useInnerSize=Il;exports.usePageState=Bl;exports.usePosition=Xn;exports.useRawTouch=nl;exports.useRect=Ca;exports.useSize=jn;exports.useSlotChildren=Un;exports.useTouch=ni;exports.valueLength=ut;