@fox-js/foxui-pc 4.0.1-12 → 4.0.1-120
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 +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +11886 -4201
- package/dist/index.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -5
- package/dist/types/index.d.ts +725 -315
- package/package.json +16 -8
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0 Mon Dec
|
|
3
|
-
*/const
|
|
4
|
-
* @fox-js/big-decimal v4.0.1-
|
|
5
|
-
*/function Ue(e,t="0"){let r=0,n=-1;e[0]=="-"&&(r++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,n=2,t=t.substring(1),t.length),e=ae(e),t=ae(t),[e,t]=ht(ae(e),ae(t)),r==1&&(n==1?e=dt(e):t=dt(t));let l=Ft(e,t);return r?r==2?"-"+ae(l):e.length<l.length?ae(l.substring(1)):"-"+ae(dt(l)):ae(l)}function dt(e){let t="",r=e.length,n=e.split(".")[1],l=n?n.length:0;for(let s=0;s<r;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return Ft(t,o)}function ae(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function ht(e,t){let r=e.split("."),n=t.split("."),l=r[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(l-o)+1).join("0")+(r[0]?r[0]:""),l=r[1]?r[1].length:0,o=n[1]?n[1].length:0,(l||o)&&(l>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Ft(e,t){[e,t]=ht(e,t);let r="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){r="."+r;continue}let o=parseInt(e[l])+parseInt(t[l])+n;r=o%10+r,n=Math.floor(o/10)}return n?n.toString()+r:r}var Z=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(Z||{});function Pe(e,t=0,r=Z.HALF_EVEN){if(r===Z.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 l=e.split("."),o=l[0],s=l[1];if(t<0){if(t=-t,o.length<=t)return"0";{let i=o.substr(0,o.length-t);return e=i+"."+o.substr(o.length-t)+s,i=Pe(e,0,r),(n?"-":"")+i+new Array(t+1).join("0")}}if(t==0)return o.length,Pt(l[1],o,n,r)?(n?"-":"")+gt(o):(n?"-":"")+o;if(l[1]){if(l[1].length<t)return(n?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");s=l[1].substring(0,t);let u=l[1].substring(t);return u&&Pt(u,s,n,r)&&(s=gt(s),s.length>t)?(n?"-":"")+gt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function Pt(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===Z.DOWN||!r&&n===Z.FLOOR||r&&n===Z.CEILING)return!1;if(n===Z.UP||r&&n===Z.FLOOR||!r&&n===Z.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case Z.HALF_DOWN:return!1;case Z.HALF_UP:return!0;case Z.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function gt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,n="";for(let l=r;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function mt(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=Le(e),t=Le(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=n+l;if(e=Le(e.replace(".","")),t=Le(t.replace(".","")),e.length<t.length){let g=e;e=t,t=g}if(t=="0")return"0";let s=t.length,u=0,i=[],h=s-1,c="";for(let g=0;g<s;g++)i[g]=e.length-1;for(let g=0;g<2*e.length;g++){let E=0;for(let I=t.length-1;I>=h&&I>=0;I--)i[I]>-1&&i[I]<e.length&&(E+=parseInt(e[i[I]--])*parseInt(t[I]));E+=u,u=Math.floor(E/10),c=E%10+c,h--}return c=Le(Tr(c,o)),r==1&&(c="-"+c),c}function Tr(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Le(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 yt(e,t,r=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=ae(t.replace(".","")),l>=0){let h=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(h==-1)e=ae(e+new Array(l+1).join("0"));else if(l>h)e=e.replace(".",""),e=ae(e+new Array(l-h+1).join("0"));else if(l<h){e=e.replace(".","");let c=e.length-h+l;e=ae(e.substring(0,c)+"."+e.substring(c))}else l==h&&(e=ae(e.replace(".","")))}let o=0,s=t.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 h=i.length-i.indexOf(".")-1;i=i.replace(".",""),s>i.length&&(h+=s-i.length,i=i+new Array(s-i.length+1).join("0")),o=h,u="0."+new Array(h).join("0")}for(r=r+2;o<=r;){let h=0;for(;parseInt(i)>=parseInt(t);)i=Ue(i,"-"+t),h++;u+=h,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?"-":"")+ae(Pe(u,r-2))}function pt(e,t){return e=e.toString(),t=t.toString(),t=bt(t),Ue(e,t)}function bt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Lt(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),_t(e),_t(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=pt(e,mt(t,Pe(yt(e,t),0,Z.FLOOR)));return r+n}function _t(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ht(e,t){let r=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),r=!0),[e,t]=ht(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?r?-1:1:r?1:-1;return 0}class K{value;static RoundingModes=Z;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[r,n]=t.split(/[eE]/);r=ae(r);let l="";r[0]=="-"&&(l="-",r=r.substring(1)),r.indexOf(".")>=0?(n=parseInt(n)+r.indexOf("."),r=r.replace(".","")):n=parseInt(n)+r.length,r.length<n?t=l+r+new Array(n-r.length+1).join("0"):r.length>=n&&n>0?t=l+ae(r.substring(0,n))+(r.length>n?"."+r.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+r}return t}constructor(t="0"){this.value=K.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,n){if(!(r||n))r=3,n=",";else if(!(r&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=K.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",u=o;u>0;)u<r?(r=u,u=0):u-=r,s=t.substring(u,u+r)+(u<o-r&&u>=0?n:"")+s;return(l?"-":"")+s+t.substring(o)}getPrettyValue(t,r){return K.getPrettyValue(this.value,t,r)}static round(t,r=0,n=Z.HALF_EVEN){if(t=K.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Pe(t,r,n)}round(t=0,r=Z.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new K(Pe(this.value,t,r))}static floor(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,Z.FLOOR)}floor(){return this.value.indexOf(".")===-1?new K(this.value):new K(this.value).round(0,Z.FLOOR)}static ceil(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,Z.CEILING)}ceil(){return this.value.indexOf(".")===-1?new K(this.value):new K(this.value).round(0,Z.CEILING)}static add(t,r){return t=K.validate(t),r=K.validate(r),Ue(t,r)}add(t){return new K(Ue(this.value,t.getValue()))}static subtract(t,r){return t=K.validate(t),r=K.validate(r),pt(t,r)}subtract(t){return new K(pt(this.value,t.getValue()))}static multiply(t,r){return t=K.validate(t),r=K.validate(r),mt(t,r)}multiply(t){return new K(mt(this.value,t.getValue()))}static divide(t,r,n){return t=K.validate(t),r=K.validate(r),yt(t,r,n)}divide(t,r){return new K(yt(this.value,t.getValue(),r))}static modulus(t,r){return t=K.validate(t),r=K.validate(r),Lt(t,r)}modulus(t){return new K(Lt(this.value,t.getValue()))}static compareTo(t,r){return t=K.validate(t),r=K.validate(r),Ht(t,r)}compareTo(t){return Ht(this.value,t.getValue())}static negate(t){return t=K.validate(t),bt(t)}negate(){return new K(bt(this.value))}}function Kt(e,t){return K.multiply(`${e}`,`${t}`)}function St(e,t,r=8){return K.divide(`${e}`,`${t}`,r)}function wt(e,t){return e=`${e}`,t=`${t}`,K.compareTo(e,t)}function zt(e){return K.negate(e)}function $t(e,t=-1,r=!1,n=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let u=o,i="",h=o.indexOf(".");h!=-1&&(u=o.substring(0,h),i=o.substring(h+1)),t!=-1&&(t<i.length?i=i.substring(0,t):r&&t>i.length&&(i=i.padEnd(t,"0")));let c;if(n>0){let g="",E=u.split("").reverse();for(let I=0;I<E.length;I++)g+=E[I]+((I+1)%n==0&&I+1!=E.length?l:"");i.length==0?c=`${s}${g.split("").reverse().join("")}`:c=`${s}${g.split("").reverse().join("")}.${i}`}else i.length==0?c=`${s}${u}`:c=`${s}${u}.${i}`;return c}function Gt(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const _e=typeof window<"u",Vr=_e&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function Wt(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const Q=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Yt(e){return Q(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),Q(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Ut(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function Xt(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function Zt(e,t,r){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(r,"")}function Ir(e,t=!0,r=!0){t?e=Zt(e,".",/\./g):e=e.replace(/\./g,""),r?e=Zt(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ar(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(_.isEqual(e,r))return!0}):t.indexOf(e)}function Rr(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(_.isEqual(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function He(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function jr(e,...t){const r={};return t.forEach(n=>{for(const l in n)r[l]=e[l]}),r}function ie(e,...t){const r=[];t.forEach(l=>{Reflect.apply([].push,r,Reflect.ownKeys(l))});const n={};for(const l in e)r.includes(l)||(n[l]=e[l]);return n}const kr=(e,t,r)=>{const n=Object.assign({},e),l=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(n[o]=t[l[o]]):t[o]&&(n[o]=t[o])}),n):e},te=Symbol("BroadcastKey");class vt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,n){this.parent=t,this.proxy=r,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(n=>t===n);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):Wt(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const o=[];if(l){const s=this.callbacks.get(r);if(typeof s=="function"){const i=Reflect.apply(s,this.proxy,[...n]);i!=null&&o.push(i)}const u=this.proxy??{};if(typeof u[r]=="function"){const i=Reflect.apply(u[r],u,[...n]);i!=null&&o.push(i)}}return this.children.forEach(s=>{const u=Reflect.apply(s.emit,s,[{...t},r,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,o,[...u])}),o}emitToChildren(t,r,...n){const l=[];return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...t},r,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(t,r){this.callbacks.set(t,r)}}function Xe(e,t,r,n){const l=new vt(t,e,r);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function Mr(e,t,r){const n=r;if(n[te])return n[te];const l=a.inject(te,null),o=new vt(l,r,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[te]=o,a.provide(te,o),a.onUnmounted(()=>{o.destroy(),n[te]=void 0}),o}function Ke(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[te]??a.inject(te,null):a.inject(te,null)}class Dr{error(t,r){const n=r,l=Ke(r);l?l.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=Ke(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=Ke(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const l=n,o=Ke(n),s=r.find(i=>i.required===!0||i.type==="required"&&i.required!==!1),u=t.find(i=>i.required===!0||i.type==="required"&&i.required!==!1);!s&&u?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!u&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Jt=new Dr;function qr(e){Jt=e}function Br(e,t){Ne.default.setValidator(e,t)}function Fr(e){Ne.default.deleteValidator(e)}let Qt=["blur","clear"];function Pr(e){Qt=e}function en(){return Qt}let tn=["focus","change"];function Lr(e){tn=e}function nn(){return tn}function _r(e){Ne.default.messages(e)}function ze(...e){const t=[];return e.forEach(r=>{r.forEach(n=>{const l=t.findIndex(o=>o.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function Ze(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const pe=Symbol("ValidateSchemaKey");class rn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,n){this.parent=t,this.descriptor=r,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;!t||(this.scope=a.effectScope(),this.scope.run(()=>{a.watchEffect(()=>{const r=Ze(ze(this.attrRules,this.rules)),n=[];for(let o in t){let s=t[o];if(this.hasValidator(o,!0)){if(s===!1)continue;let i={type:o};s!==null&&typeof s=="object"&&Object.assign(i,s),n.push(i);continue}let u=this.getValidator(o);if(u!==null){let i={type:o,validator:u};n.push(i)}}this.attrRules=Ze(n);const l=ze(this.attrRules,this.rules);a.nextTick(()=>{this.decorate(l,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...r]);const l=Jt;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...r]):null}decorate(t,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,r,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,r,n=!1){n?Ne.default.setValidator(t,r):this.validators[t]=r}getValidator(t){let r=this.validators[t]??null;return r||(r=this.parent?.getValidator(t)??null),r}deleteValidator(t,r=!1){r?Ne.default.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Ne.default.hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const r=ze(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ze(t):this.rules=Ze([t]);const n=ze(this.attrRules,this.rules);a.nextTick(()=>{this.decorate(n,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=ze(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const l={[`${n}`]:r},o=this.getValue(),s={[`${n}`]:o},u=new Ne.default(l),i=this.proxy??s;return u.validate(s,{context:i}).then(c=>{if(c.pass)this.success();else{let g="error";Array.isArray(c.errors)&&c.errors.length>0&&(g=c.errors[0].message??g,c.errors=[c.errors[0]],c.errors[0].ref=i),this.error(g)}return c}).catch(c=>{const g=c.message??`${c}`;return this.error(g),c})}}return Promise.resolve({pass:!0})}}function Je(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const l=r.valueName;r.validateHandler={getValue(o){return o[l]}}}return new rn(t,r,e)}const an=Symbol("EventEmitterKey");class Hr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(o=>o===r);l!==-1&&n.splice(l,1)}}on(t,r){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(r)}emit(t,...r){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...r])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function Kr(e,t){let r=0;return function(...n){const l=Date.now();l-r>t&&(Reflect.apply(e,{},[...n]),r=l)}}function Et(e,t){let r,n=null;return function(...l){n=l,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...n??[]])},t))}}const Se=Symbol("DomainKey"),Ae=Symbol("DataItemsKey");class Ct{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=a.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const n in t){const l=t[n];r.length>0&&r.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,r){this._props[t]=r}get(t,r){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?r:this.parent.get(t,r)}getForParent(t,r){return this.parent==null?r:this.parent.get(t,r)}getForSelf(t){return this._props[t]}getAll(t){const r=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];r.push(l)}n=n._parent}return r}}const zr=new Ct;function Ge(){return zr}function we(e=null){e||(e=a.getCurrentInstance());const t=e?.proxy;return t?t[Se]??a.inject(Se,null):a.inject(Se,null)}const Ot=Symbol("OriginalDateKey");function Nt(e,t,r=[],n){const l=a.getCurrentInstance(),o=l?.proxy;let s=a.inject(Se,null);s===null&&(s=Ge());const u=e||t.prop||t.name,i=new Ct(u);i.parent=s;const h=$=>{o[Ot]||E($),i.set("modelValue",$)},c=()=>i.getForSelf("modelValue")??null,g=()=>o[Ot]??null,E=$=>{const j={};_.extend(!0,j,a.toRaw($)),o[Ot]=j};a.isReactive(t)?a.watchEffect(()=>{i.merge(t,r)}):i.merge(t,r),t.modelValue&&E(t.modelValue),o[Se]=i,a.provide(Se,i);let I=null,C=null;if(l!==null){const $=a.inject(te,null);I=Xe(o,$,u,n),i.broadcast=I,o[te]=I,a.provide(te,I),o.broadcast=(v,D,...R)=>Reflect.apply(I.emit,I,[v,D,...R]);const j=a.inject(pe,null);C=Je(o,j,{componentName:""}),i.validateSchema=C,o[pe]=C,a.provide(pe,C),o[Ae]=new Map,o.validate=(v=!0)=>{const D=[];let R=null;if(v===!0)R={name:"*"};else if(Array.isArray(v)&&v.length>0){const N=v;R={name:y=>y?N.indexOf(y)!==-1:!1}}else if(v!=null&&typeof v=="object"){const N=v;if(Array.isArray(N.include)&&N.include.length>0){const y=N.include;R={name:p=>p?y.indexOf(p)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const y=N.exclude;R={name:p=>p?y.indexOf(p)===-1:!1}}}if(R){const N=I?.emitToChildren(R,"validate",!1);N&&Reflect.apply([].push,D,N)}return D.length==1?D[0]:D.length>1?Promise.all(D).then(N=>{let y=[];return N.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(y=[...y,...p.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(v,D=!0)=>{if(D){const R=Reflect.ownKeys(v),N=[...R],y={name:p=>{const m=R.includes(p);if(m){const S=N.findIndex(O=>p===O);S!==-1&&N.splice(S,1)}return m}};I?.emitToChildren(y,"setNameValidateRules",v,!1),N.length>0&&N.forEach(p=>{let m=String(p);const O=ln(i,m,{componentName:"",fieldName:m,pureDataValidate:!0},I,C);o[Ae].set(m,O);const w=v[m];w&&O.validateSchema.setRule(w)})}},o.clearValidate=(v=!0)=>{let D=null;if(v===!0)D={name:"*"};else if(Array.isArray(v)&&v.length>0){const R=v;D={name:N=>N?R.indexOf(N)!==-1:!1}}else if(v!=null&&typeof v=="object"){const R=v;if(Array.isArray(R.include)&&R.include.length>0){const N=R.include;D={name:y=>y?N.indexOf(y)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const N=R.exclude;D={name:y=>y?N.indexOf(y)===-1:!1}}}D&&I?.emitToChildren(D,"clearValidate",!1)},o.resetFields=v=>{const D=c();if(!D)return;const R={};if(_.extend(!0,R,g()??{}),Array.isArray(v))v.forEach(N=>{D[N]=R[N]});else if(v&&Array.isArray(v.include))(v.include??[]).forEach(y=>{D[y]=R[y]});else if(v&&Array.isArray(v.exclude)){let N=v.exclude??[];Reflect.ownKeys(R).forEach(y=>{N.includes(y)||(D[y]=R[y])})}else Object.assign(D,R);o.clearValidate(v)},o.setModelValue=(v,D)=>{!D||D===u?h(v):I?.emitToChildren({name:D},"setModelValue",v)},o.getModelValue=()=>c()}return a.onUnmounted(()=>{i.destroy(),o[Se]=void 0,o[Ae]&&(o[Ae].clear(),o[Ae]=void 0),I!==null&&(I.destroy(),o[te]=void 0),C!==null&&(C.destroy(),o[pe]=void 0)}),i}function le(e,t,r){const l=a.getCurrentInstance()?.proxy,o=t??"",s=a.inject(te,null),u=Xe(l,s,o,r);l[te]=u,a.provide(te,u),l.broadcast=(C,$,...j)=>Reflect.apply(u.emit,u,[C,$,...j]);const i=a.inject(pe,null);e.fieldName=e.fieldName??o;const h=Je(l,i,e);l[pe]=h,a.provide(pe,h),l.validate=(C=null)=>{const $=[];if(!Array.isArray(C)||C.indexOf(o)!==-1){const v=h?.validate();$.push(v)}let j=null;if(C===!0)j={name:"*"};else if(Array.isArray(C)&&C.length>0){const v=C;j={name:D=>D?v.indexOf(D)!==-1:!1}}else if(C!=null&&typeof C=="object"){const v=C;if(Array.isArray(v.include)&&v.include.length>0){const D=v.include;j={name:R=>R?D.indexOf(R)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const D=v.exclude;j={name:R=>R?D.indexOf(R)===-1:!1}}}if(j){const v=u.emitToChildren(j,"validate",!1);Reflect.apply([].push,$,v)}return $.length==1?$[0]:$.length>1?Promise.all($).then(v=>{let D=[];return v.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(D=[...D,...R.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=C=>h?.setRule(C),l.setNameValidateRules=(C,$=!1)=>{const j=C[o];if(j&&h?.setRule(j),$){const v={name:D=>Reflect.ownKeys(C).includes(D)};u.emitToChildren(v,"setNameValidateRules",C,!1)}},l.clearValidate=(C=null)=>{(!Array.isArray(C)||C.indexOf(t??"")!==-1)&&h?.clear();let $=null;if(C===!0)$={name:"*"};else if(Array.isArray(C)&&C.length>0){const j=C;$={name:v=>v?j.indexOf(v)!==-1:!1}}else if(C!=null&&typeof C=="object"){const j=C;if(Array.isArray(j.include)&&j.include.length>0){const v=j.include;$={name:D=>D?v.indexOf(D)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const v=j.exclude;$={name:D=>D?v.indexOf(D)===-1:!1}}}$&&u.emitToChildren($,"clearValidate",!1)};const c=new Hr(l);l[an]=c;const g=Et((C="validate")=>{C==="reset"?h.clear():h.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:en()).forEach(C=>{c.on(C,$=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:nn()).forEach(C=>{c.on(C,$=>{g("reset")})}),a.onUnmounted(()=>{u.destroy(),l[te]=void 0,h.destroy(),l[pe]=void 0,c.destroy(),l[an]=void 0}),{broadcast:u,validateSchema:h,emitEvent:(C,...$)=>{Reflect.apply(c.emit,c,[C,...$])},onEvent:(C,$)=>{Reflect.apply(c.on,c,[$])},offEvent:(C,$)=>{Reflect.apply(c.off,c,[$])}}}function ln(e,t,r,n,l){const o={},s=t??"";r.fieldName=s,r.validateHandler={getValue(h){const c=e.getForSelf("modelValue");return c?c[s]:null}};const u=Je({},l,r);o.validate=(h=null)=>{const c=[];if(!Array.isArray(h)||h.indexOf(s)!==-1){const E=u?.validate();c.push(E)}let g=null;if(h===!0)g={name:"*"};else if(Array.isArray(h)&&h.length>0){const E=h;g={name:I=>I?E.indexOf(I)!==-1:!1}}else if(h!=null&&typeof h=="object"){const E=h;if(Array.isArray(E.include)&&E.include.length>0){const I=E.include;g={name:C=>C?I.indexOf(C)!==-1:!1}}else if(Array.isArray(E.exclude)&&E.exclude.length>0){const I=E.exclude;g={name:C=>C?I.indexOf(C)===-1:!1}}}if(g){const E=i.emitToChildren(g,"validate",!1);Reflect.apply([].push,c,E)}return c.length==1?c[0]:c.length>1?Promise.all(c).then(E=>{let I=[];return E.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(I=[...I,...C.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=h=>u?.setRule(h),o.setNameValidateRules=h=>{const c=h[s];c&&u?.setRule(c)};const i=Xe(null,n,s,o);return{broadcast:i,validateSchema:u}}const z=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${X(e,t)}px`:"";function X(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let l=Number(e.substring(0,r)),o=1;if(_e){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(o=Number(s.substring(0,u)))}return l*=o,l}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const n=Number(e);return isNaN(n)?0:n}const $e="PageStateKey";function ye(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=X(e.top)),e.left!==null&&e.left!==void 0&&(t.left=X(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=X(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=X(e.right))),t}function xt(e,t,r={},n=!0,l=-1,o=-1,s=0,u=0){if(e.headerHeight=X(r.headerHeight??t.headerHeight),e.headerPadding=ye(r.headerPadding??t.headerPadding),e.footerHeight=X(r.footerHeight??t.footerHeight),e.footerPadding=ye(r.footerPadding??t.footerPadding),e.contentPadding=ye(r.contentPadding??t.contentPadding),n){const i=r.height??t.height;i?e.height=X(i,o):e.height=X(o)-X(s,o)-X(u,o),e.width=X(r.width??t.width,l)}}function on(e,t={}){const r={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=X(l.top),n.safeAreaBottom=X(l.bottom),n.safeAreaLeft=X(l.left),n.safeAreaRight=X(l.right));const o=e.get("pageLayout");if(!o)return null;const s=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,i=e.get("headerBarHeight")??0,h=e.get("footerBarHeight")??0;xt(n,o,t,!0,s,u,i,h);const c=a.reactive(n),g=e.getForParent($e);g&&(n.height=nt(e,g),n.width=rt(e,g),a.watch([()=>g.height,()=>g.width,()=>g.contentPadding,()=>g.headerMounted,()=>g.footerMounted],()=>{c.height=nt(e,g),c.width=rt(e,g)}));const E=!g;return a.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([I,C,$=-1,j=-1,v=0,D=0])=>{xt(c,C,t,E,$,j,v,D)}),e.set($e,c),c}function Qe(e){return e.get($e)}function et(e,t){return t=t??e.get($e),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function tt(e,t){return t=t??e.get($e),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function nt(e,t){if(t=t??e.get($e),t){const r=et(e,t),n=tt(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function rt(e,t){return t=t??e.get($e),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Gr(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Wr(e){return!!e.getForParent($e)}var at=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(at||{});function Tt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Re(e,t,r=1,n){const l=we();return l==null?e:r===0?a.computed(()=>{const o=l.getAll(t);for(let u=o.length-1;u>=0;u--){const i=o[u];if(Tt(i,n))return i}const s=e.value;return Tt(s,n)?s:null}):a.computed(()=>{const o=e.value;return Tt(o,n)?o:l?.get(t)})}function ce(e){return Re(e,"readonly",0,function(r){return _.toBoolean(r)})}function fe(e){return Re(e,"disabled",0,function(r){return _.toBoolean(r)})}function U(e,t="modelValue",r){const n=a.toRef(e,t);let l=n.value;typeof r=="function"&&(l=r(n.value));const o=a.ref(l);return a.watch(n,s=>{if(typeof r=="function"){const u=r(s);u!==o.value&&(o.value=u)}else s!==o.value&&(o.value=s)}),o}const sn=new Map,lt=new Map;let Vt=null;function Yr(e){Vt=e}function un(e,t,r){if(r){let n=lt.get(r);n||(n=new Map,lt.set(r,n)),n.set(e,t)}else sn.set(e,t)}function xe(e,t,r){!r&&Vt&&(r=Vt(e)??void 0);let n=null;if(r){let l=lt.get(r);l&&(n=l.get(t))}return n||(n=sn.get(t)),n}function Ur(e,t){for(let r in e){const n=e[r];un(r,n,t)}}function Xr(e){lt.delete(e)}function Zr(){return{top:0,left:0,bottom:0,right:0}}function Jr(e=0,t=0){if(_e){const r=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:r,height:n-X(e,n)-X(t,n),headerHeight:44,footerHeight:44};return{rootWidth:r,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Qr{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=Ge();if(this.initPageLayout(r,l),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Et(()=>{const u={...r},i=document.documentElement.clientWidth||document.body.clientWidth,h=document.documentElement.clientHeight||document.body.clientHeight;u.width=i,u.height=h,this.initPageLayout(u,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in r)n.indexOf(o)===-1&&l.set(o,r[o])}initPageLayout(t,r){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,o=_.extend({},Zr(),t.safeAreaInset),s=Jr(n,l),u=_.extend({},s.pageLayout,t.pageLayout);r=r??Ge(),r.set("safeAreaInset",o),r.set("headerBarHeight",n),r.set("footerBarHeight",l),r.set("pageLayout",u),r.set("rootWidth",s.rootWidth),r.set("rootHeight",s.rootHeight)}setScopeGetter(t){Yr(t)}setAPI(t,r,n){un(t,r,n)}getAPI(t,r,n){return xe(t,r,n)}batchSetAPI(t,r){Ur(t,r)}clearScopeAPI(t){Xr(t)}getRootDomain(){return Ge()}}const ea=[d.ElAffix,d.ElAlert,d.ElAutocomplete,d.ElAutoResizer,d.ElAvatar,d.ElBacktop,d.ElBadge,d.ElBreadcrumb,d.ElBreadcrumbItem,d.ElButton,d.ElButtonGroup,d.ElCalendar,d.ElCard,d.ElCarousel,d.ElCarouselItem,d.ElCascader,d.ElCascaderPanel,d.ElCheckTag,d.ElCheckbox,d.ElCheckboxButton,d.ElCheckboxGroup,d.ElCol,d.ElCollapse,d.ElCollapseItem,d.ElCollapseTransition,d.ElColorPicker,d.ElConfigProvider,d.ElContainer,d.ElAside,d.ElFooter,d.ElHeader,d.ElMain,d.ElDatePicker,d.ElDescriptions,d.ElDescriptionsItem,d.ElDialog,d.ElDivider,d.ElDrawer,d.ElDropdown,d.ElDropdownItem,d.ElDropdownMenu,d.ElEmpty,d.ElForm,d.ElFormItem,d.ElIcon,d.ElImage,d.ElImageViewer,d.ElInput,d.ElInputNumber,d.ElLink,d.ElMenu,d.ElSubMenu,d.ElMenuItem,d.ElMenuItemGroup,d.ElPageHeader,d.ElPagination,d.ElPopconfirm,d.ElPopover,d.ElPopper,d.ElProgress,d.ElRadio,d.ElRadioButton,d.ElRadioGroup,d.ElRate,d.ElResult,d.ElRow,d.ElScrollbar,d.ElSelect,d.ElOption,d.ElOptionGroup,d.ElSelectV2,d.ElSkeleton,d.ElSkeletonItem,d.ElSlider,d.ElSpace,d.ElSteps,d.ElStep,d.ElSwitch,d.ElTable,d.ElTableColumn,d.ElTableV2,d.ElTabs,d.ElTabPane,d.ElTag,d.ElTimePicker,d.ElTimeSelect,d.ElTimeline,d.ElTimelineItem,d.ElTooltip,d.ElTransfer,d.ElTree,d.ElTreeSelect,d.ElTreeV2,d.ElUpload],ta=[d.ElInfiniteScroll,d.ElLoading,d.ElMessage,d.ElMessageBox,d.ElNotification,d.ElPopoverDirective],na=e=>{ea.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),ta.forEach(t=>{e.use(t)})};function Y(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=n=>{n.component(r.name,r)},a.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,a.defineComponent(r)}}}const ne={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},se={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},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:{}},hasBorder:{type:Boolean,default:!0}},cn={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},fn={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},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}},dn=[];for(const e in fn)dn.push(e);function ue(e,t=null){if(t||(t=a.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const ra=Symbol.for("InnerPageScopeKey"),aa=(e,t)=>({inheritAttrs:!0,props:{...ne,...cn,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(r,n){const l=Nt(r.name,r);if(l){const h=on(l,r);ue({getPageContentHeight:()=>nt(l,h),getPageContentWidth:()=>rt(l,h),getPageHeaderHeight:()=>et(l,h),getPageFooterHeight:()=>tt(l,h)});const c=a.inject(ra,!1);h&&c&&(h.contentHeight="100%")}const o=a.computed(()=>({[e]:!0})),s=a.computed(()=>({})),u=a.getCurrentInstance(),i=h=>{const c=u?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(h,!0)};return a.watch(()=>r.rules,(h,c)=>{if(!h&&!c)return;const g=a.toRaw(c),E=a.toRaw(h),I=E?Reflect.ownKeys(E):[];(g?Reflect.ownKeys(g):[]).forEach($=>{I.includes($)||(E[$]=[])}),i(E)},{deep:!0}),a.onMounted(()=>{if(r.rules){const h=a.toRaw(r.rules);i(h)}}),{classes:o,styles:s}}}),{componentName:la,create:oa,scope:ti}=Y("page"),ia=oa(aa(la));function sa(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"default")],6)}const Te=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},hn=Te(ia,[["render",sa]]),ua=(e,t)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!1},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,n){const l=we(),o=l?Qe(l):null;o&&(o.headerMounted=!0);const s=a.computed(()=>({[e]:!0})),u=r.height!==null&&r.height!==void 0?X(r.height):null,i=a.computed(()=>{const m={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const S=ye(r.padding??o.footerPadding);return Object.assign(m,S),u&&(o.headerHeight=u),m.height=o.headerHeight,m.safeAreaTop=o.safeAreaTop,m.safeAreaTop&&(m.top=m.safeAreaTop+(S.top??0),m.height=m.height+o.safeAreaTop),m.height,m.safeAreaTop,m}if(u&&(m.height=u),r.padding){const S=ye(r.padding);Object.assign(m,S)}return m});a.onUnmounted(()=>{o&&(o.headerMounted=!1)});const h=a.computed(()=>{const m={};return i.value.height!==null&&i.value.height!==void 0&&(m.height=`${i.value.height}px`),i.value.top!==null&&i.value.top!==void 0&&(m.paddingTop=`${i.value.top}px`),i.value.left!==null&&i.value.left!==void 0&&(m.paddingLeft=`${i.value.left}px`),i.value.right!==null&&i.value.right!==void 0&&(m.paddingRight=`${i.value.right}px`),i.value.bottom!==null&&i.value.bottom!==void 0&&(m.paddingBottom=`${i.value.bottom}px`),m}),c=a.computed(()=>{const m={};return i.value.safeAreaTop!==null&&i.value.safeAreaTop!==void 0&&(m.top=`${i.value.safeAreaTop}px`),m}),g=a.computed(()=>{const m={};return i.value.safeAreaTop!==null&&i.value.safeAreaTop!==void 0&&(m.top=`${i.value.safeAreaTop}px`),m}),E=a.computed(()=>r.leftShow?r.leftIcon||r.leftText||n.slots.left:!1),I=a.computed(()=>!(i.value.height!==null&&i.value.height!==void 0&&i.value.height<=0)),C=a.computed(()=>r.titleShow?r.title||r.titleIcon||n.slots.default:!1),$=a.computed(()=>r.rightShow?r.rightIcon||r.rightText||n.slots.right:!1),j=a.computed(()=>{let m={};return typeof r.leftIcon=="object"?Object.assign(m,r.leftIcon):m.name=r.leftIcon,m}),v=a.computed(()=>{let m={};return typeof r.titleIcon=="object"?Object.assign(m,r.titleIcon):m.name=r.titleIcon,m}),D=a.computed(()=>{let m={};return typeof r.rightIcon=="object"?Object.assign(m,r.rightIcon):m.name=r.rightIcon,m});function R(){n.emit("back")}function N(){n.emit("click-title")}function y(){n.emit("click-right")}function p(){n.emit("click-right-text")}return{classes:s,styles:h,mHeaderShow:I,leftStyles:c,rightStyles:g,mLeftShow:E,mTitleShow:C,mRightShow:$,mLeftIcon:j,mTitleIcon:v,mRightIcon:D,handleLeft:R,handleCenter:N,handleRight:y,handleRightText:p}}}),{componentName:ca,create:fa,scope:ni}=Y("header-bar"),da=fa(ua(ca)),ha={key:1,class:"fox-header-bar__title"};function ga(e,t,r,n,l,o){const s=a.resolveComponent("fox-ext-icon");return e.mHeaderShow?(a.openBlock(),a.createElementBlock("view",{key:0,class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(a.openBlock(),a.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:a.normalizeStyle(e.leftStyles)},[a.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(a.openBlock(),a.createBlock(s,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):a.createCommentVNode("",!0),e.leftText?(a.openBlock(),a.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.handleLeft&&e.handleLeft(...u))},a.toDisplayString(e.leftText),1)):a.createCommentVNode("",!0)])],4)):a.createCommentVNode("",!0),e.mTitleShow?(a.openBlock(),a.createElementBlock("view",ha,[a.renderSlot(e.$slots,"default",{},()=>[e.title?(a.openBlock(),a.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...u)=>e.handleTitle&&e.handleTitle(...u))},a.toDisplayString(e.title),1)):a.createCommentVNode("",!0),e.titleIcon?(a.openBlock(),a.createBlock(s,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0),e.mRightShow?(a.openBlock(),a.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:a.normalizeStyle(e.rightStyles)},[a.renderSlot(e.$slots,"right",{},()=>[e.rightText?(a.openBlock(),a.createElementBlock("view",{key:0,onClick:t[2]||(t[2]=(...u)=>e.handleRightText&&e.handleRightText(...u))},a.toDisplayString(e.rightText),1)):a.createCommentVNode("",!0),e.rightIcon?(a.openBlock(),a.createBlock(s,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):a.createCommentVNode("",!0)])],4)):a.createCommentVNode("",!0)])],6)):a.createCommentVNode("",!0)}const gn=Te(da,[["render",ga]]);function ma(e,t){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,n){const l=we(),o=l?Qe(l):null;o&&(o.footerMounted=!0);const s=a.computed(()=>{const c=e;let g=e;return r.align==="left"?g=`${g}__left`:r.align==="right"?g=`${g}__right`:g=`${g}__center`,{[c]:!0,[g]:!0}}),u=r.height!==null&&r.height!==void 0?X(r.height):null,i=a.computed(()=>{const c={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const g=ye(r.padding??o.footerPadding);return Object.assign(c,g),u&&(o.footerHeight=u),c.height=o.footerHeight,c.safeAreaBottom=o.safeAreaBottom,c.safeAreaBottom&&(c.height=c.height+o.safeAreaBottom,c.bottom=c.safeAreaBottom+(g.bottom??0)),c}if(u&&(c.height=u),r.padding){const g=ye(r.padding);Object.assign(c,g)}return c});a.onUnmounted(()=>{o&&(o.footerMounted=!1)});const h=a.computed(()=>{const c={};return i.value.height!==null&&i.value.height!==void 0&&(c.height=z(i.value.height)),i.value.top!==null&&i.value.top!==void 0&&(c.paddingTop=z(i.value.top)),i.value.left!==null&&i.value.left!==void 0&&(c.paddingLeft=z(i.value.left)),i.value.right!==null&&i.value.right!==void 0&&(c.paddingRight=z(i.value.right)),i.value.bottom!==null&&i.value.bottom!==void 0&&(c.paddingBottom=z(i.value.bottom)),c});return{classes:s,styles:h}}}}const{componentName:ya,create:pa,scope:ri}=Y("footer-bar"),ba=pa(ma(ya));function Sa(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"default")],6)}const mn=Te(ba,[["render",Sa]]);function wa(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=we(),l=a.computed(()=>({[e]:!0})),o=a.computed(()=>{const s={};if(n){const u=Qe(n);if(u){if(r.padding){const g=ye(r.padding);Object.assign(u.contentPadding,g)}const i=et(n,u),h=tt(n,u);let c="";if(u.contentHeight?c=`${u.contentHeight}`:c=`${u.height}px`,u.contentPadding,s.height=c,u.contentPadding.top!==null&&u.contentPadding.top!==void 0||i>0){const g=(u&&u.contentPadding&&u.contentPadding.top)??0;s.paddingTop=`${i+g}px`}if(u.contentPadding.bottom!==null&&u.contentPadding.bottom!==void 0||h>0){const g=(u&&u.contentPadding&&u.contentPadding.bottom)??0;s.paddingBottom=`${h+g}px`}return u.contentPadding.left!==null&&u.contentPadding.left!==void 0&&(s.paddingLeft=`${u.contentPadding.left}px`),u.contentPadding.right!==null&&u.contentPadding.right!==void 0&&(s.paddingRight=`${u.contentPadding.right}px`),s}}if(r.padding){const u=ye(r.padding);u.left!==null&&u.left!==void 0&&(s.paddingLeft=`${u.left}px`),u.top!==null&&u.top!==void 0&&(s.paddingTop=`${u.top}px`),u.right!==null&&u.right!==void 0&&(s.paddingRight=`${u.right}px`),u.bottom!==null&&u.bottom!==void 0&&(s.paddingBottom=`${u.bottom}px`)}return s});return{classes:l,styles:o}}}}const{componentName:$a,create:va,scope:ai}=Y("content"),Ea=va(wa($a));function Ca(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"default")],6)}const yn=Te(Ea,[["render",Ca]]),je="GroupStateKey",pn=Symbol.for("GroupScopeKey");function ot(){return a.inject(pn,!1)}function it(e=!0){a.provide(pn,e)}function Oa(e,t={}){const r=e.get("width",-1),n={type:"form",width:r,column:-1,gutter:-1};Object.assign(n,t);const l=a.shallowRef(n),o=a.markRaw({layout:l,passport:0,order:{index:0}});return e.set(je,o),o}function bn(e,t,r=-1,n=-1,l=!1,o){const s=e.get(je);if(!s)return;const u=e.get("groupLayout")??{};r===-1&&(r=u.column??1),n===-1&&(n=u.gutter??0),o||(o=u.minItemWidth??-1);const i=()=>{const h=t===""||t===-1,c=X(t);let g=_.toNumber(r);const E=X(n);if(!h){let $=(c-(g-1)*E)/g;for(;o!==-1&&g>1&&$<o;)g--,$=(c-(g-1)*E)/g}let I=!1;const C=s.layout;C.value.width=t,C.value.column!==g&&(C.value.column=g,I=!0),C.value.gutter!==E&&(C.value.gutter=E,I=!0),I&&a.triggerRef(C)};if(l)i();else{const h=++s.passport;setTimeout(()=>{h===s.passport&&i()},50)}}function We(e,t=!1){let r;return t?r=e.getForParent(je):r=e.get(je),r.layout}function It(e,t=!1){let r;return t?r=e.getForParent(je):r=e.get(je),r.order}function de(e,t=1){return t==="stretch"?-1:(t=_.toNumber(t),t===-1?100:100*t/e)}function Na(e){return e===window}const st=e=>{const t=a.unref(e);if(Na(t)){const r=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},ve=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,xa=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,r=(t.props&&t.props.span&&t.props.span.default)??1;return typeof r=="function"?r():r}return e.props.span},Ta=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,n=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof n=="function"?n():n}const t=_.toNumber(e.props.offset);return t<0?0:t},Va=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const t=e.type,r=(t.props&&t.props.foxItemType&&t.props.foxItemType.default)??"Item";return typeof r=="function"?r():r}return e.props.foxItemType??"Item"},Ia=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const r=e.type,n=(r.props&&r.props.foxSubItemCount&&r.props.foxSubItemCount.default)??"Item";return typeof n=="function"?n():n}const t=_.toNumber(e.props.foxSubItemCount);return t<0?1:t};function Aa(e,t){return{props:{...ne,...cn,...fn},setup(r,n){const l=Nt(r.name,r,dn),o=Oa(l,{type:r.type}),s=ot();it(!0);const u=a.computed(()=>s&&l?We(l,!0).value:null),i=a.getCurrentInstance(),h=y=>{const p=i?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(y,!0)};a.watch(()=>r.rules,(y,p)=>{if(!y&&!p)return;const m=a.toRaw(p),S=a.toRaw(y),O=S?Reflect.ownKeys(S):[];(m?Reflect.ownKeys(m):[]).forEach(M=>{O.includes(M)||(S[M]=[])}),h(S)},{deep:!0}),a.onMounted(()=>{if(r.rules){const y=a.toRaw(r.rules);h(y)}});const c=e,g=a.computed(()=>{const y={};if(u.value){const p=We(l,!0);if(p.value.type==="flex"){if(r.width){const O=z(r.width);y.width=O}else{const O=de(p.value.column,r.span);O>0&&(y.width=`${O}%`)}if(r.height){const O=z(r.height);y.height=O}const m=de(p.value.column,r.offset);m>0&&(y["margin-left"]=`${m}%`);const S=p.value.gutter/2;S>0&&(y["padding-left"]=`${S}px`,y["padding-right"]=`${S}px`)}else if(p.value.type==="flow"){if(r.width){const O=z(r.width);y.width=O}else{const O=de(p.value.column,r.span);O>0&&(y.width=`${O}%`)}if(r.height){const O=z(r.height);y.height=O}const m=de(p.value.column,r.offset);m>0&&(y["margin-left"]=`${m}%`);const S=p.value.gutter/2;if(S>0){const O=l?It(l,!0):null;if(O){let w=_.toNumber(r.offset)+_.toNumber(r.span);(w===-1||w>p.value.column)&&(w=p.value.column);const M=Math.ceil((O.index+1)/p.value.column),B=Math.ceil((O.index+w)/p.value.column);if(M===B){const A=(O.index+1)%p.value.column,k=(O.index+w)%p.value.column,b=A===1?0:S,x=k===0?0:S;y["padding-left"]=`${b}px`,y["padding-right"]=`${x}px`}else{const A=w%p.value.column,k=0,b=A===0?0:S;y["padding-left"]=`${k}px`,y["padding-right"]=`${b}px`}O.index+=w}else y["padding-left"]=`${S}px`,y["padding-right"]=`${S}px`}}}else{if(r.width){const p=z(r.width);y.width=p}if(r.height){const p=z(r.height);y.height=p}}return y}),E=a.computed(()=>r.type==="flex"?{[`${ve("",r.type)}`]:!0,[`${ve("justify",r.justify)}`]:!0,[`${ve("align",r.align)}`]:!0,[`${ve("flex",r.flexWrap)}`]:!0,[`${c}__gutter`]:!0}:r.type==="flow"?{[`${ve("",r.type)}`]:!0,[`${ve("justify",r.justify)}`]:!0,[`${ve("align",r.align)}`]:!0}:{[`${ve("",r.type)}`]:!0,[`${c}__gutter`]:!0}),I=a.toRef(r,"title"),C=a.toRef(r,"gutter"),$=a.toRef(r,"column"),j=a.computed(()=>s?!0:_.toBoolean(r.isWrap)),v=a.ref([]),D=y=>{v.value.push(y)},R=a.ref(-1);if(bn(l,R.value,$.value,C.value,!0,r.minItemWidth),r.autoLayout){a.watch([R,$,C],([p,m,S])=>{o.order.index=0,bn(l,p,m,S,!1,r.minItemWidth)});let y=null;a.onMounted(()=>{if(_e&&v.value&&v.value.length>0){const p=v.value[0];R.value=st(p).width,window.ResizeObserver&&(y=new window.ResizeObserver(()=>{const m=st(p).width;m>0&&m!==R.value&&(R.value=m)}),y.observe(p))}}),a.onUnmounted(()=>{y?.disconnect()})}const N=(y,p,m,S)=>{const O={...E.value};return p===0&&(O[`${c}__first`]=!0),m>=S-1&&(O[`${c}__last`]=!0),a.h("div",{ref:D,key:`${p}`,class:O},y)};return()=>{o.order.index=0;const y=[];let p=0;if(n.slots.title){const w={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},M=a.h("div",w,[n.slots.title()]);y.push(M)}else if(I.value){const w={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},M=[];if(r.showMark){const k=a.h("div",{class:{[`${c}__title-mark`]:!0}});M.push(k)}const B=a.h("div",{class:{[`${c}__title-text`]:!0}},[I.value]);M.push(B);const A=a.h("div",w,M);y.push(A)}const m=n.slots.default?n.slots.default():[];let S=[],O=0;if(r.type==="flex"){for(let w=0;w<m.length;w++){const M=String(m[w].type);if(M==="Symbol(Comment)")continue;if(M==="Symbol(Fragment)")if(Array.isArray(m[w].children)){const q=m[w].children;if(Reflect.apply([].splice,m,[w,1,...q]),q.length===0){w-=1;continue}}else{m.splice(w,1),w-=1;continue}const B=m[w];if(Va(B)==="fragment"){let q=Ia(B);q>o.layout.value.column?q=o.layout.value.column:q<=0&&(q=1);const V=O+q;if(V>o.layout.value.column){const F=N([...S],p++,w-1,m.length);y.push(F),O=q,S=[B]}else S.push(B),O=V;continue}const k=xa(B),b=Ta(B);if(k==="stretch"){if(O<o.layout.value.column){S.push(B);const q=N([...S],p++,w,m.length);y.push(q)}else{const q=N([...S],p++,w-1,m.length);y.push(q);const V=N([B],p++,w,m.length);y.push(V)}O=0,S=[];continue}let x=_.toNumber(k);if(x===-1){if(S.length>0){const V=N([...S],p++,w-1,m.length);y.push(V)}const q=N([B],p++,w,m.length);y.push(q),O=0,S=[];continue}x>o.layout.value.column?x=o.layout.value.column:x<=0&&(x=1);const T=O+x+b;if(T>o.layout.value.column){const q=N([...S],p++,w-1,m.length);y.push(q),O=x+b,S=[B]}else S.push(B),O=T}if(S.length>0){const w=N([...S],p++,m.length,m.length);y.push(w)}}else if(r.type==="flow"){const w=N(m,p++,0,m.length);y.push(w)}else for(let w=0;w<m.length;w++){const M=m[w],B=N([M],p++,w,m.length);y.push(B)}return j.value?a.h("div",{class:{[`${c}`]:!0},style:g.value},[y]):y}}}}const{componentName:Ra,create:ja,scope:li}=Y("group"),Sn=ja(Aa(Ra)),wn={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:ka,create:Ma}=Y("price"),Da=Ma({props:{...wn},setup(e){const t=a.computed(()=>({[ka]:!0})),r=a.computed(()=>e.needSymbol?e.symbol:""),n=a.computed(()=>He(e.price)==0?"":$t(e.price,e.decimalLength,!0,_.toNumber(e.digits),e.separator)),l=a.computed(()=>{let s=n.value;if(s.length==0)return"";let u=s.indexOf(".");return s.substring(0,u)}),o=a.computed(()=>{let s=n.value;if(s.length==0)return"";let u=s.indexOf(".");return s.substring(u+1)});return{classes:t,showSymbol:r,intText:l,decimalText:o}}}),qa=["innerHTML"],Ba=["innerHTML"];function Fa(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("view",{class:a.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(a.openBlock(),a.createElementBlock("view",{key:0,class:a.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,qa)):a.createCommentVNode("",!0),a.createElementVNode("view",{class:a.normalizeClass(`fox-price--${e.size}`)},a.toDisplayString(e.intText),3),e.decimalText.length!=0?(a.openBlock(),a.createElementBlock("view",{key:1,class:a.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):a.createCommentVNode("",!0),a.createElementVNode("view",{class:a.normalizeClass(`fox-price--decimal-${e.size}`)},a.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(a.openBlock(),a.createElementBlock("view",{key:2,class:a.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ba)):a.createCommentVNode("",!0)],2)}const ut=Te(Da,[["render",Fa]]),{componentName:At,create:Pa}=Y("hint-text"),La=Pa({components:{[ut.name]:ut},props:{...wn,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const l=a.computed(()=>({[At]:!0})),o=a.computed(()=>({left:z(e.startPoint.x),top:z(e.startPoint.y-e.height-10-4),height:z(e.height),width:z(e.width)})),s=a.computed(()=>({[`${At}__content`]:!0})),u=a.computed(()=>({})),i=a.computed(()=>({[`${At}__arrow`]:!0})),h=a.computed(()=>({top:z(e.height)}));return{classes:l,styles:o,textClasses:s,textStyles:u,arrowClasses:i,arrowStyles:h}}}),_a={key:1,class:"text"};function Ha(e,t,r,n,l,o){const s=a.resolveComponent("fox-price");return a.openBlock(),a.createBlock(a.Transition,{name:"hint-text-fade"},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.createElementVNode("div",{class:a.normalizeClass(e.textClasses),style:a.normalizeStyle(e.textStyles)},[e.type=="number"?(a.openBlock(),a.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(a.openBlock(),a.createElementBlock("span",_a,a.toDisplayString(e.message),1))],6),a.createElementVNode("div",{class:a.normalizeClass(e.arrowClasses),style:a.normalizeStyle(e.arrowStyles)},null,6)],6),[[a.vShow,e.visible]])]),_:1})}const ct=Te(La,[["render",Ha]]);class $n{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}function Ka(e){return e===window}const vn=e=>{const t=a.unref(e);if(!t)return{x:0,y:0};if(Ka(t))return{x:0,y:0};let r=0,n=0,l=t;for(;l!==null;)r+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let o=0,s=0;for(l=t;l!==document;)s+=l.scrollTop,o+=l.scrollLeft,l=l.parentNode;return r-=o,n-=s,{x:r,y:n}},Rt={},za=new $n,ke=new Map,jt=e=>{if(e){const t=document.getElementById(e);ke.delete(e),t&&document.body.removeChild(t)}else{for(const t of ke.keys()){const r=document.getElementById(t);r&&document.body.removeChild(r)}ke.clear()}},Ga=e=>{const t=document.getElementById(e.id);if(t){const r=ke.get(e.id);r?e={...Rt,...r,...e}:e={...Rt,...e};const n=a.createVNode(ct,e);return a.render(n,t),e.id}},Wa=e=>{e.unmount=jt;let t;if(e.id){if(t=e.id,ke.has(t))return Ga(e)}else t=`hinttext_${za.get()}`;e={...Rt,...e},e.id=t,ke.set(t,e);const r=document.createElement("div");r.id=e.id;const n=a.createVNode(ct,e);return a.render(n,r),document.body.appendChild(r),t},Ya=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},ft={show(e,t,r={},n=!0){n&&jt(),Ya(t);const l=vn(e),o={x:l.x,y:l.y},s=r.width??st(e).width;return Wa({...r,message:t,startPoint:o,width:s})},hide(e){jt(e)},install(e){e.config.globalProperties.$hintText=ft}},{componentName:En,create:Ua}=Y("item"),Xa=Ua({inheritAttrs:!0,props:{...ne,...se},setup(e,t){le({componentName:En,validate:!1},e.prop??e.name);const r=we(),n=ot();it(!1);const l=a.computed(()=>n&&r?We(r,!1).value:null),o=En,s=a.computed(()=>({[o]:!0,[`${o}__gutter`]:l.value&&l.value.type!=="flow",[`${o}__stretch`]:e.span==="stretch",[`${o}__input--border`]:e.hasBorder,"is-error":!!O.value,"is-warn":!!m.value,"is-info":!!y.value})),u=a.computed(()=>{const V={};if(l.value)if(l.value.type==="flex"){if(e.width)V.width=z(e.width);else{const P=de(l.value.column,e.span);P>0&&(V.width=`${P}%`)}const F=de(l.value.column,e.offset);F>0&&(V["margin-left"]=`${F}%`);const L=l.value.gutter/2;L>0&&(V["padding-left"]=`${L}px`,V["padding-right"]=`${L}px`)}else if(l.value.type==="flow"){if(e.width)V.width=z(e.width);else{const P=de(l.value.column,e.span);P>0&&(V.width=`${P}%`)}const F=de(l.value.column,e.offset);F>0&&(V["margin-left"]=`${F}%`);const L=l.value.gutter/2;if(L>0){const P=r?It(r,!1):null;if(P){let H=_.toNumber(e.offset)+_.toNumber(e.span);(H===-1||H>l.value.column)&&(H=l.value.column);const G=Math.ceil((P.index+1)/l.value.column),W=Math.ceil((P.index+H)/l.value.column);if(G===W){const he=(P.index+1)%l.value.column,re=(P.index+H)%l.value.column,ee=he===1?0:L,J=re===0?0:L;V["padding-left"]=`${ee}px`,V["padding-right"]=`${J}px`}else{const he=H%l.value.column,re=0,ee=he===0?0:L;V["padding-left"]=`${re}px`,V["padding-right"]=`${ee}px`}P.index+=H}else V["padding-left"]=`${L}px`,V["padding-right"]=`${L}px`}}else return e.width&&(V.width=z(e.width)),V;else e.width&&(V.width=z(e.width));return V}),i=a.ref(null),h=a.computed({get:()=>i.value??_.toBoolean(e.isRequired),set:V=>{i.value=V}}),c=a.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),g=Re(a.toRef(e,"labelPosition"),"labelPosition",at.Near),E=a.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),I=a.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${E.value}`]:!0})),C=a.computed(()=>({label:!0,[`label--${E.value}`]:!0})),$=Re(a.toRef(e,"labelWidth"),"labelWidth",at.Near),j=a.computed(()=>$&&$.value?{width:z($.value)}:{}),v=a.computed(()=>({["label--string"]:!0,["label--required"]:h.value})),D=a.computed(()=>({content:!0,[e.contentClass]:!0})),R=a.computed(()=>({...e.contentStyle})),N=a.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ue({setRequired(V){h.value=V},setErrorTip(V){N.errorTip=V},setErrorIcon(V){N.errorIcon=V},setWarnTip(V){N.warnTip=V},setWarnIcon(V){N.warnIcon=V},setInfoTip(V){N.infoTip=V},setInfoIcon(V){N.infoIcon=V}});const y=a.computed(()=>e.infoTip||N.infoTip),p=a.computed(()=>e.infoIcon||N.infoIcon),m=a.computed(()=>e.warnTip||N.warnTip),S=a.computed(()=>e.warnIcon||N.warnIcon),O=a.computed(()=>e.errorTip||N.errorTip),w=a.computed(()=>e.errorIcon||N.errorIcon),M=a.computed(()=>O.value?"error":m.value?"warn":y.value?"info":""),B=a.computed(()=>M.value.length>0),A=a.computed(()=>M.value==="error"?O.value:M.value==="warn"?m.value:M.value==="info"?y.value:""),k=a.computed(()=>M.value==="error"?w.value:M.value==="warn"?S.value:M.value==="info"?p.value:null),b=a.computed(()=>{let V={[`${o}__tip`]:!0,[`${o}__tip--${M.value}`]:!0};return M.value==="error"&&e.errorClass?V[`${e.errorClass}`]=!0:M.value==="warn"&&e.warnClass?V[`${e.warnClass}`]=!0:M.value==="info"&&e.infoClass&&(V[`${e.infoClass}`]=!0),V}),x=a.computed(()=>{let V={};return g&&g.value==="top"?V["padding-left"]="0px":$&&$.value&&(V["padding-left"]=z($.value)),V}),T=a.ref();let q="";return a.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([V,F,L,P])=>{!T.value||(V&&!Q(F)?q?ft.show(T.value,F,{...P,id:q,type:L}):q=ft.show(T.value,F,{...P,type:L}):ft.hide(q))}),{classes:s,styles:u,mainClasses:I,hasLabel:c,labelClasses:C,labelStyles:j,labelStringClasses:v,contentClasses:D,contentStyles:R,contentRef:T,hasTip:B,mTip:A,mIcon:k,tipClasses:b,tipStyles:x}}}),Za={key:0,class:"fox-item__tip-icon"},Ja={class:"fox-item__tip-text"};function Qa(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.createElementVNode("div",{class:a.normalizeClass(e.mainClasses)},[e.hasLabel?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.labelClasses),style:a.normalizeStyle(e.labelStyles)},[a.createElementVNode("div",{class:a.normalizeClass(e.labelStringClasses)},[a.renderSlot(e.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(e.label),1)])],2)],6)):a.createCommentVNode("",!0),a.createElementVNode("div",{ref:"contentRef",class:a.normalizeClass(e.contentClasses),style:a.normalizeStyle(e.contentStyles)},[a.renderSlot(e.$slots,"prepend"),a.renderSlot(e.$slots,"default"),a.renderSlot(e.$slots,"append")],6)],2),a.createVNode(a.Transition,{name:"fox-item__animate"},{default:a.withCtx(()=>[e.hasTip?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.tipClasses),style:a.normalizeStyle(e.tipStyles)},[e.mIcon?(a.openBlock(),a.createElementBlock("div",Za,a.toDisplayString(e.mIcon),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Ja,a.toDisplayString(e.mTip),1)],6)):a.createCommentVNode("",!0)]),_:1}),a.renderSlot(e.$slots,"hide")],6)}const oe=Te(Xa,[["render",Qa]]);function el(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,n){const l=we(),o=ot();it(!1);const s=a.computed(()=>o&&l?We(l,!1).value:null),u=e,i=a.computed(()=>({[u]:!0,[`${u}__gutter`]:s.value&&s.value.type!=="flow",[`${u}__stretch`]:r.span==="stretch"})),h=a.computed(()=>{const c={};if(s.value)if(s.value.type==="flex"){if(r.width)c.width=z(r.width);else{const I=de(s.value.column,r.span);I>0&&(c.width=`${I}%`)}const g=de(s.value.column,r.offset);g>0&&(c["margin-left"]=`${g}%`);const E=s.value.gutter/2;E>0&&(c["padding-left"]=`${E}px`,c["padding-right"]=`${E}px`)}else if(s.value.type==="flow"){if(r.width)c.width=z(r.width);else{const I=de(s.value.column,r.span);I>0&&(c.width=`${I}%`)}const g=de(s.value.column,r.offset);g>0&&(c["margin-left"]=`${g}%`);const E=s.value.gutter/2;if(E>0){const I=l?It(l,!1):null;if(I){let C=_.toNumber(r.offset)+_.toNumber(r.span);(C===-1||C>s.value.column)&&(C=s.value.column);const $=Math.ceil((I.index+1)/s.value.column),j=Math.ceil((I.index+C)/s.value.column);if($===j){const v=(I.index+1)%s.value.column,D=(I.index+C)%s.value.column,R=v===1?0:E,N=D===0?0:E;c["padding-left"]=`${R}px`,c["padding-right"]=`${N}px`}else{const v=C%s.value.column,D=0,R=v===0?0:E;c["padding-left"]=`${D}px`,c["padding-right"]=`${R}px`}I.index+=C}else c["padding-left"]=`${E}px`,c["padding-right"]=`${E}px`}}else return r.width&&(c.width=z(r.width)),c;else r.width&&(c.width=z(r.width));return c});return()=>{const c={class:i.value,style:h.value};return n.slots&&typeof n.slots.default=="function"?a.h("div",c,n.slots.default()):a.h("div",c)}}}}const{componentName:tl,create:nl,scope:oi}=Y("slot-item"),Cn=nl(el(tl));function rl(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(r,n){const l=e,o=a.computed(()=>({[l]:!0,[`${l}__stretch`]:r.span==="stretch",[`${l}__${r.align}`]:!0})),s=we(),u=ot();it(!1);const i=a.computed(()=>{const c={};if(u&&s){const g=We(s,!1);if(g.value.type!=="flex")return r.width&&(c.width=z(r.width)),c;if(r.width)c.width=z(r.width);else{const C=de(g.value.column,r.span);C>0&&(c.width=`${C}%`)}const E=de(g.value.column,r.offset);E>0&&(c["margin-left"]=`${E}%`);const I=g.value.gutter/2;I>0&&(c["padding-left"]=`${I}px`,c["padding-right"]=`${I}px`)}else r.width&&(c.width=z(r.width));return c}),h=a.computed(()=>({[`${l}__content`]:!0}));return()=>{const c=[];if(n.slots.default){const C=n.slots.default();if(r.divide)for(let $=0;$<C.length;$++){if($>0){const j=a.h("div",{class:{[`${l}__divide`]:!0}});c.push(j)}c.push(C[$])}else Reflect.apply([].push,c,C)}const g={class:h.value},E=a.h("div",g,c),I={class:o.value,style:i.value};return a.h("div",I,[E])}}}}const{componentName:al,create:ll,scope:ii}=Y("row-item"),On=ll(rl(al)),Nn={modelValue:{type:[String,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}};function ol(e,t,r){return{props:{...ne,...se,...Nn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),h=fe(a.computed(()=>n.disabled)),c=ce(a.computed(()=>n.readonly)),g=U(n,"modelValue"),E=e,I=a.computed(()=>({[E]:!0})),C=m=>{g.value=m,o("update:modelValue",m),o("input",m)},$=m=>{o("change",m)};let j=U(n,"hintText"),v=a.ref(!1);const D=m=>{let O=m.target.value;i.value=!0,Q(j.value)||(v.value=!0),o("focus",O,m)},R=m=>{setTimeout(()=>{v.value&&(v.value=!1),i.value=!1},0);let O=m.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),o("blur",O,m)},N=()=>{o("clear","")},y=a.computed(()=>He(n.unit)>0),p=a.ref();return ue({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},select:()=>{p?.value.select()}}),()=>{const S={...l.attrs,ref:p,class:I.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:h.value,readonly:c.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onChange:$,onInput:C,onFocus:D,onBlur:R},O={};l.slots.prepend&&(O.prepend=l.slots.prepend),l.slots.append&&(O.append=l.slots.append),l.slots.prefix&&(O.prefix=l.slots.prefix),l.slots.suffix?O.suffix=l.slots.suffix:y.value&&(O.suffix=()=>[n.unit]);const w=[],M=a.h(d.ElInput,S,O);w.push(M);const B={default:()=>w};if(l.slots.default){const x=l.slots.default();B.label=()=>x}const k={...ie(n,Nn),hintText:j.value,hintVisible:v.value,prop:`${n.prop}_item`};return a.h(r,k,B)}}}}const{componentName:il,create:sl,scope:ul}=Y("input-item"),xn=sl(ol(il,ul,oe));function Ve(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Me(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Tn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class cl{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=xe(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function fl(){const e=a.getCurrentInstance();return new cl(e.proxy)}function Vn(e,t,r){const n=Ve(e,t),l=Ve(e,r);if(n!==l)return!1;const o=Me(e,t),s=Me(e,r);return o===s}function In(e,t,r,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){const u=Tn(e,s);if(Array.isArray(u)&&u.length>0){const i=In(e,o,r,u)??[];Reflect.apply([].push,l,i)}else{let i=!1;if(r==="text")i=Ve(e,s)===o;else if(r==="item")i=Vn(e,s,o);else{let h=Me(e,s);h==null&&(h=Ve(e,s)),i=h===o}if(i){l.push(s);break}}}}),l}function dl(e){return{text:e,value:e}}const An={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},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},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function hl(e,t,r){return{props:{...ne,...se,...An},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(null),h=a.ref([]),c=(b,x,T,q=!0)=>{const V=In(n,b,x,T);if(V===null){if(h.value===null||h.value.length===0)return;i.value=null,h.value=[],q&&(o("update:modelValue",null),o("change",null));return}let F=!0;if(V.length!==h.value.length)F=!1;else for(let L=0;L<V.length;L++){const P=V[L],H=h.value[L];if(!Vn(n,P,H)){F=!1;break}}if(!F){h.value=V;let L=[],P=[];V.forEach(G=>{L.push(Me(n,G)),n.valueType==="text"?P.push(Ve(n,G)):n.valueType==="item"?P.push(G):P.push(Me(n,G))});let H;n.multiple?(i.value=L,H=a.toRaw(P)):(i.value=L[0]??"",H=a.toRaw(P[0]??"")),q&&(o("update:modelValue",H),o("change",H))}},g=a.ref([]),E=fl();a.watch([()=>n.source,()=>n.params],async([b,x])=>{if(b){const T=await E.load("select",b,x);if(T.length>0)if(typeof T[0]=="string"){let F=T.map(L=>dl(L));g.value=F}else g.value=T}},{immediate:!0}),a.watch([()=>g.value,()=>n.modelValue],([b,x])=>{c(x,n.valueType,b,!1)});let I=null,C=a.ref(!1);typeof n.remoteMethod=="function"&&(I=async b=>{if(b!=null){C.value=!0;try{const x=await n.remoteMethod(b);g.value=x}catch(x){console.error(x)}C.value=!1}});const $=a.ref(!1),j=fe(a.computed(()=>n.disabled)),v=ce(a.computed(()=>n.readonly)),D=e,R=a.computed(()=>({[D]:!0})),N=b=>{n.allowCreate?(o("update:modelValue",b),o("change",b),i.value=b):c(b,"value",g.value,!0)};let y=U(n,"hintText"),p=a.ref(!1);const m=b=>{let T=b.target.value;$.value=!0,Q(y.value)||(p.value=!0),o("focus",T,b)},S=b=>{setTimeout(()=>{p.value&&(p.value=!1),$.value=!1},0);let T=b.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),w.value?setTimeout(()=>{o("blur",T,b)},50):o("blur",T,b)},O=()=>{o("clear","")},w=a.ref(!1),M=b=>{w.value=b,o("visible-change",b)},B=b=>{o("remove-tag",b)},A=(b,x)=>{const T=[];return b.forEach((q,V)=>{const F=Tn(n,q);if(Array.isArray(F)&&F.length>0){const L=A(F,x),P=Ve(n,q),G={key:`${P}_${V}`,label:P};T.push(a.h(d.ElOptionGroup,G,{default:()=>L}))}else{const L=Me(n,q),P=Ve(n,q),H=_.toBoolean(q.disabled),W={key:`${L}_${V}`,label:P,disabled:H,value:L};typeof x=="function"?T.push(a.h(d.ElOption,W,{default:x})):T.push(a.h(d.ElOption,W))}}),T},k=a.ref();return ue({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()}}),()=>{const x={...l.attrs,ref:k,class:R.value,clearable:n.clearable,multiple:n.multiple,placeholder:u.placeholder.value,disabled:j.value||v.value,modelValue:i.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:O,onChange:N,onFocus:m,onBlur:S,onVisibleChange:M,onRemoveTag:B};typeof I=="function"&&(x["remote-method"]=I,x.loading=C.value);const T={};l.slots.prefix&&(T.prefix=l.slots.prefix),l.slots.empty&&(T.empty=l.slots.empty),T.default=()=>A(g.value,l.slots.option);const q=[],V=a.h(d.ElSelect,x,T);q.push(V);const F={default:()=>q};if(l.slots.default){const G=l.slots.default();F.label=()=>G}const P={...ie(n,An),hintText:y.value,hintVisible:p.value,prop:`${n.prop??n.name}_item`};return a.h(r,P,F)}}}}const{componentName:gl,create:ml,scope:yl}=Y("select-item"),Rn=ml(hl(gl,yl,oe)),jn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function pl(e,t,r){return{props:{...ne,...se,...jn},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),h=fe(a.computed(()=>n.disabled)),c=ce(a.computed(()=>n.readonly)),g=U(n,"modelValue"),E=e,I=a.computed(()=>({[E]:!0})),C=S=>{g.value=S,o("update:modelValue",S),o("change",S)};let $=U(n,"hintText"),j=a.ref(!1);const v=S=>{let w=S.target.value;i.value=!0,Q($.value)||(j.value=!0),o("focus",w,S)},D=S=>{setTimeout(()=>{j.value&&(j.value=!1),i.value=!1},0);let w=S.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,S)},R=()=>{o("clear","")},N=S=>{o("calendar-change",S)},y=(S,O,w)=>{o("panel-change",S,O,w)},p=S=>{o("visible-change",S)},m=a.ref();return ue({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()},handleOpen:()=>{m?.value.handleOpen()},handleClose:()=>{m?.value.handleClose()}}),()=>{const O={...l.attrs,ref:m,class:I.value,placeholder:u.placeholder.value,disabled:h.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:C,onClear:R,onFocus:v,onBlur:D,onCalendarChange:N,onPanelChange:y,onVisibleChange:p},w={};l.slots["range-separator"]&&(w["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(w.default=l.slots.cell);const M=[],B=a.h(d.ElDatePicker,O,w);M.push(B);const A={default:()=>M};if(l.slots.default){const T=l.slots.default();A.label=()=>T}const b={...ie(n,jn),hintText:$.value,hintVisible:j.value,prop:`${n.prop}_item`};return a.h(r,b,A)}}}}const{componentName:bl,create:Sl,scope:wl}=Y("date-item"),kn=Sl(pl(bl,wl,oe)),Mn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function $l(e,t,r){return{props:{...ne,...se,...Mn},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),h=fe(a.computed(()=>n.disabled)),c=ce(a.computed(()=>n.readonly)),g=U(n,"modelValue"),E=e,I=a.computed(()=>({[E]:!0})),C=p=>{g.value=p,o("update:modelValue",p),o("change",p)};let $=U(n,"hintText"),j=a.ref(!1);const v=p=>{let S=p.target.value;i.value=!0,Q($.value)||(j.value=!0),o("focus",S,p)},D=p=>{setTimeout(()=>{j.value&&(j.value=!1),i.value=!1},0);let S=p.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),o("blur",S,p)},R=()=>{o("clear","")},N=p=>{o("visible-change",p)},y=a.ref();return ue({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},handleOpen:()=>{y?.value.handleOpen()},handleClose:()=>{y?.value.handleClose()}}),()=>{const m={...l.attrs,ref:y,class:I.value,placeholder:u.placeholder.value,disabled:h.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:C,onClear:R,onFocus:v,onBlur:D,onVisibleChange:N},S={},O=[],w=a.h(d.ElTimePicker,m,S);O.push(w);const M={default:()=>O};if(l.slots.default){const b=l.slots.default();M.label=()=>b}const A={...ie(n,Mn),hintText:$.value,hintVisible:j.value,prop:`${n.prop}_item`};return a.h(r,A,M)}}}}const{componentName:vl,create:El,scope:Cl}=Y("time-item"),Dn=El($l(vl,Cl,oe)),qn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ol(e,t,r){return{props:{...ne,...se,...qn},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),h=fe(a.computed(()=>n.disabled)),c=ce(a.computed(()=>n.readonly)),g=U(n,"modelValue"),E=e,I=a.computed(()=>({[E]:!0})),C=y=>{g.value=y,o("update:modelValue",y),o("change",y)};let $=U(n,"hintText"),j=a.ref(!1);const v=y=>{let m=y.target.value;i.value=!0,Q($.value)||(j.value=!0),o("focus",m,y)},D=y=>{setTimeout(()=>{j.value&&(j.value=!1),i.value=!1},0);let m=y.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),o("blur",m,y)},R=()=>{o("clear","")},N=a.ref();return ue({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const p={...l.attrs,ref:N,class:I.value,placeholder:u.placeholder.value,disabled:h.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:C,onClear:R,onFocus:v,onBlur:D},m={},S=[],O=a.h(d.ElTimeSelect,p,m);S.push(O);const w={default:()=>S};if(l.slots.default){const k=l.slots.default();w.label=()=>k}const B={...ie(n,qn),hintText:$.value,hintVisible:j.value,prop:`${n.prop}_item`};return a.h(r,B,w)}}}}const{componentName:Nl,create:xl,scope:Tl}=Y("time-select-item"),Bn=xl(Ol(Nl,Tl,oe));function Fn(e,t=0){let r=`${e}`,n=r.indexOf(".");if(n==-1)return r;let l=n;for(let o=r.length-1;o>=n;o--)if(r.charAt(o)!="0"){l=o;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>r.length?r=r.padEnd(l,"0"):r=r.substring(0,l),r}function Pn(e,t,r=20){if(typeof t=="string"&&(t=_.toNumber(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Kt(`${e}`,`${t}`);return Fn(n)}else{let n=St(`${e}`,zt(`${t}`),20);return Fn(n)}}function Vl(e,t=-1,r=!1,n=3,l=","){return $t(e,t,r,n,l)}function Ln(e,t,r,n,l=!0){if(e=="")return"";if(e=Gt(e),t=_.toNumber(t),t==1)return e;if(n)e=Pn(e,t),r&&(e=="0"&&l?e=`${e}.`.padEnd(_.toNumber(r)+2,"0"):e=St(e,1,_.toNumber(r)));else{let o=-1*t;e=Pn(e,o)}return e}function _n(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=_.toBoolean(t.minInclude),l=wt(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=_.toBoolean(t.maxInclude),l=wt(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(r.maxValid=!1)}return r}const Hn={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Il(e,t,r){return{props:{...ne,...se,...Hn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=a.ref(!1),u=fe(a.computed(()=>n.disabled)),i=ce(a.computed(()=>n.readonly)),h=U(n,"modelValue"),c=a.ref("");a.watch([()=>h.value,()=>n.rates,()=>n.precision],([A,k,b])=>{if(Q(A))return"";const x=Ln(A,k,b,!1);c.value!==x&&(c.value=x)},{immediate:!0});const g=a.computed(()=>{let A="";return s.value&&(A=c.value),A}),{t:E}=me.useFoxI18n(t),I=a.computed(()=>{let A=n.placeholder??"";return!s.value&&!Q(c.value)?A=Vl(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):A=E(["placeholder",A]),A}),C=e,$=a.computed(()=>({[C]:!0,[`${C}__disabled`]:u.value,[`${C}__placeholder`]:c.value.length>0})),j=Re(a.computed(()=>n.textAlign),"textAlign");a.computed(()=>s.value?{textAlign:"left"}:{textAlign:j.value??"right"});const v=a.ref(""),D=a.computed(()=>{let A=v.value;return Q(A)&&(A=n.errorTip??""),A}),R=a.ref(""),N=a.ref(!1),y=(A,k)=>{if(A=`${A}`,Q(A)){c.value="",h.value="",k.forEach(b=>{o(b,"")}),_.toBoolean(n.showTip)&&N.value&&(N.value=!1);return}if(A.length>=2){let b=A;if(b.charAt(0)=="-"&&(b=b.substring(1)),b.length>=2&&b.charAt(0)=="0"&&b.charAt(1)!="."){a.triggerRef(c);return}}if(A!="-"){if(!Yt(A)){a.triggerRef(c);return}if(n.integerLength!=-1&&Ut(A)>Number(n.integerLength)){a.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Xt(A)>Number(n.decimalLength)){a.triggerRef(c);return}let b=_n(A,n);if(b.maxValid===!1){v.value=b.message,a.triggerRef(c);return}}else if(n.min!=null&&_.toNumber(n.min)>=0){a.triggerRef(c);return}R.value=A,_.toBoolean(n.showTip)&&(N.value=A.length>0),c.value=A,h.value=Ln(A,n.rates,n.precision,!0),k.forEach(b=>{o(b,h.value)})},p=A=>{y(A,["update:modelValue","input"])},m=A=>{y(A,["update:modelValue","change"])},S=A=>{if(s.value=!0,_.toBoolean(n.showTip)){let k=c.value;Q(k)&&(k=n.hintText),Q(k)||(R.value=k,N.value=!0)}v.value="",o("focus",h.value,A)},O=A=>{if(setTimeout(()=>{s.value=!1,_.toBoolean(n.showTip)&&N.value===!0&&(N.value=!1)},0),!Q(c.value)){let k=_n(c.value,n);if(k.minValid===!1||k.maxValid){v.value=k.message;return}}o("update:modelValue",h.value,A),o("blur",h.value,A)},w=()=>{o("clear","")},M=a.computed(()=>He(n.unit)>0),B=a.ref();return ue({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()}}),()=>{const k={...l.attrs,ref:B,class:$.value,type:"digit",maxlength:n.maxLength,placeholder:I.value,clearable:n.clearable,disabled:u.value,readonly:i.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:w,onInput:p,onChange:m,onFocus:S,onBlur:O},b={};l.slots.prepend&&(b.prepend=l.slots.prepend),l.slots.append&&(b.append=l.slots.append),l.slots.prefix&&(b.prefix=l.slots.prefix),l.slots.suffix?b.suffix=l.slots.suffix:M.value&&(b.suffix=()=>[n.unit]);const x=[],T=a.h(d.ElInput,k,b);x.push(T);const q={default:()=>x};if(l.slots.default){const P=l.slots.default();q.label=()=>P}const F={...ie(n,Hn),errorTip:D.value,hintText:R.value,hintVisible:N.value,hintType:"number",prop:`${n.prop}_item`};return a.h(r,F,q)}}}}const{componentName:Al,create:Rl,scope:jl}=Y("money-item"),Kn=Rl(Il(Al,jl,oe)),zn={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 kl(e,t,r){return{props:{...ne,...se,...zn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),h=fe(a.computed(()=>n.disabled)),c=ce(a.computed(()=>n.readonly)),g=U(n,"modelValue"),E=e,I=a.computed(()=>({[E]:!0,[`${E}__append`]:p.value})),C=a.computed(()=>({[`${E}__unit`]:!0})),$=S=>{g.value=S,o("update:modelValue",S),o("input",S)},j=S=>{o("change",S)};let v=U(n,"hintText"),D=a.ref(!1);const R=S=>{let w=S.target.value;i.value=!0,Q(v.value)||(D.value=!0),o("focus",w,S)},N=S=>{setTimeout(()=>{D.value&&(D.value=!1),i.value=!1},0);let w=S.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,S)},y=()=>{o("clear","")},p=a.computed(()=>He(n.unit)>0),m=a.ref();return ue({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()}}),()=>{const O={...l.attrs,ref:m,class:I.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:h.value,readonly:c.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:y,onChange:j,onInput:$,onFocus:R,onBlur:N},w={},M=[],B=a.h(d.ElInputNumber,O,w);M.push(B);const A={default:()=>M};if(l.slots.default){const T=l.slots.default();A.label=()=>T}const b={...ie(n,zn),hintText:v.value,hintVisible:D.value,prop:`${n.prop}_item`};if(l.slots.append)A.append=l.slots.append;else if(p.value){const T={class:C.value},q=a.h("div",T,[n.unit]);A.append=()=>q}return a.h(r,b,A)}}}}const{componentName:Ml,create:Dl,scope:ql}=Y("input-number-item"),Gn=Dl(kl(Ml,ql,oe));function De(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ie(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Bl(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class Fl{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=xe(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function Pl(){const e=a.getCurrentInstance();return new Fl(e.proxy)}function kt(e,t,r){const n=De(e,t),l=De(e,r);if(n!==l)return!1;const o=Ie(e,t),s=Ie(e,r);return o===s}function Wn(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let o=n;for(let s=0;Array.isArray(o)&&s<t.length;s++){const u=t[s];if(Array.isArray(u)){const i=Wn(e,u,r,n);l.push(i)}else{let i=!1;for(let h of o){if(r==="text")i=De(e,h)===u;else if(r==="item")i=kt(e,h,u);else{let c=Ie(e,h);c==null&&(c=De(e,h)),i=c===u}if(i){l.push(h),o=Bl(e,h);break}}if(!i)break}}return l}function Ll(e){return{text:e,value:e}}const Yn={modelValue:{type:[Array,String],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}};function _l(e,t,r){return{props:{...ne,...se,...Yn},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(null),h=a.ref([]),c=(x,T,q,V=!0)=>{if(n.props&&n.props.lazy===!0){if(i.value===x)return;i.value=x;const P=a.toRaw(x);V&&(o("update:modelValue",P),o("change",P))}const F=Wn(n,x,T,q);if(F===null){if(h.value.length===0||h.value===null)return;h.value=[],i.value=null,V&&(o("update:modelValue",null),o("change",null));return}let L=!0;if(F.length!==h.value.length)L=!1;else for(let P=0;P<F.length;P++){const H=F[P],G=h.value[P];if(Array.isArray(H)){if(!Array.isArray(G)||H.length!==G.length)L=!1;else for(let W=0;W<H.length;W++)if(!kt(n,H[W],G[W])){L=!1;break}}else kt(n,H,G)||(L=!1);if(!L)break}if(!L){h.value=F;let P=[],H=[];F.forEach(W=>{if(Array.isArray(W)){let he=[],re=[];for(let ee of W)he.push(Ie(n,ee)),n.valueType==="text"?re.push(De(n,ee)):n.valueType==="item"?re.push(ee):re.push(Ie(n,ee));P.push(he),H.push(re)}else P.push(Ie(n,W)),n.valueType==="text"?H.push(De(n,W)):n.valueType==="item"?H.push(W):H.push(Ie(n,W))}),i.value=P;const G=a.toRaw(H);V&&(o("update:modelValue",G),o("change",G))}},g=a.ref([]),E=Pl();a.watch([()=>n.source,()=>n.params],async([x,T])=>{if(x){const q=await E.load("cascader",x,T);if(q.length>0)if(typeof q[0]=="string"){let L=q.map(P=>Ll(P));g.value=L}else g.value=q}},{immediate:!0}),a.watch([()=>g.value,()=>n.modelValue],([x,T])=>{c(T,n.valueType,x,!1)});let I=null,C=a.ref(!1);typeof n.remoteMethod=="function"&&(I=async x=>{if(x!=null){C.value=!0;try{const T=await n.remoteMethod(x);g.value=T}catch(T){console.error(T)}C.value=!1}});const $=a.ref(!1),j=fe(a.computed(()=>n.disabled)),v=ce(a.computed(()=>n.readonly)),D=e,R=a.computed(()=>({[D]:!0})),N=a.computed(()=>{let x={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(x.multiple=!0),n.props&&Object.assign(x,n.props),x}),y=x=>{n.allowCreate?(o("update:modelValue",x),o("change",x),i.value=x):c(x,"value",g.value,!0)};let p=U(n,"hintText"),m=a.ref(!1);const S=x=>{let q=x.target.value;$.value=!0,Q(p.value)||(m.value=!0),o("focus",q,x)},O=x=>{setTimeout(()=>{m.value&&(m.value=!1),$.value=!1},0);let q=x.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),M.value?setTimeout(()=>{o("blur",q,x)},50):o("blur",q,x)},w=()=>{o("clear","")},M=a.ref(!1),B=x=>{M.value=x,o("visible-change",x)},A=x=>{o("remove-tag",x)},k=x=>{o("expand-change",x)},b=a.ref();return ue({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},getCheckedNodes:()=>b?.value.getCheckedNodes()}),()=>{const T={...l.attrs,ref:b,class:R.value,props:N.value,clearable:n.clearable,placeholder:u.placeholder.value,disabled:j.value||v.value,options:g.value,modelValue:i.value,onClear:w,onChange:y,onFocus:S,onBlur:O,onVisibleChange:B,onRemoveTag:A,expandChange:k};typeof I=="function"&&(T["remote-method"]=I,T.loading=C.value);const q={};l.slots.option&&(q.default=l.slots.option),l.slots.empty&&(q.empty=l.slots.empty);const V=[],F=a.h(d.ElCascader,T,q);V.push(F);const L={default:()=>V};if(l.slots.default){const W=l.slots.default();L.label=()=>W}const H={...ie(n,Yn),hintText:p.value,hintVisible:m.value,prop:`${n.prop??n.name}_item`};return a.h(r,H,L)}}}}const{componentName:Hl,create:Kl,scope:zl}=Y("cascader-item"),Un=Kl(_l(Hl,zl,oe)),Xn={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Gl(e,t,r){return{props:{...ne,...se,...Xn},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),h=fe(a.computed(()=>n.disabled)),c=ce(a.computed(()=>n.readonly)),g=U(n,"modelValue"),E=e,I=a.computed(()=>({[E]:!0})),C=p=>{g.value=p,o("update:modelValue",p),o("input",p)},$=p=>{o("change",p)};let j=U(n,"hintText"),v=a.ref(!1);const D=p=>{let S=p.target.value;i.value=!0,Q(j.value)||(v.value=!0),o("focus",S,p)},R=p=>{setTimeout(()=>{v.value&&(v.value=!1),i.value=!1},0);let S=p.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),o("blur",S,p)},N=()=>{o("clear","")},y=a.ref();return ue({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},select:()=>{y?.value.select()}}),()=>{const m={...l.attrs,ref:y,class:I.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:h.value,readonly:c.value,modelValue:g.value,onClear:N,onChange:$,onInput:C,onFocus:D,onBlur:R},S={};l.slots.prepend&&(S.prepend=l.slots.prepend),l.slots.append&&(S.append=l.slots.append),l.slots.prefix&&(S.prefix=l.slots.prefix),l.slots.suffix&&(S.suffix=l.slots.suffix),l.slots.option&&(S.default=l.slots.option);const O=[],w=a.h(d.ElAutocomplete,m,S);O.push(w);const M={default:()=>O};if(l.slots.default){const b=l.slots.default();M.label=()=>b}const A={...ie(n,Xn),hintText:j.value,hintVisible:v.value,prop:`${n.prop}_item`};return a.h(r,A,M)}}}}const{componentName:Wl,create:Yl,scope:Ul}=Y("autocomplete-item"),Zn=Yl(Gl(Wl,Ul,oe));function Xl(e,t,r,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],u=t[0];if(Array.isArray(u))for(let i=0;i<t.length&&i<o.length;i++){let h=t[i],c=o[i];const g=h.find(E=>E[n]===c);if(!g)break;s.push(g[r])}else{let i=t;for(let h=0;i&&h<o.length;h++){let c=o[h],g=i.find(E=>E[n]===c);if(!g)break;s.push(g[r]),i=g[l]}}return s}class Zl{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=xe(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function Jl(){const e=a.getCurrentInstance();return new Zl(e.proxy)}const Jn={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"}};function Ql(e,t){return{props:{...Jn},setup(r,{attrs:n}){const l=Jl(),o=a.ref([]);a.watch([()=>r.source,()=>r.params],async([i,h])=>{o.value=await l.load(r.sourceType,i,h)},{immediate:!0});const s=a.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let i=Xl(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return i.length==0?"":i.length===1?i[0]:i.join(r.separator)}),u=r.resolveTag?a.resolveComponent(r.tag):r.tag;return()=>{const i={...n};return r.resolveTag?a.h(u,i,{default:()=>s.value}):a.h(u,i,s.value)}}}}const{componentName:si,create:eo,scope:ui}=Y("mapping"),Mt=eo(Ql());function to(e,t){return{props:{...Jn},setup(r,{attrs:n}){return()=>{const l={default:o=>{const s=o.row[o.column.property];return a.h(Mt,{...r,modelValue:s})}};return a.h(d.ElTableColumn,{...n},l)}}}}const{componentName:ci,create:no,scope:fi}=Y("table-mapping-column"),Qn=no(to());class ro{proxy;constructor(t){this.proxy=t}async load(t,r,n,l,o,s,u){if(Array.isArray(r)){let h=(n-1)*l,c=h+l;c>r.length&&(c=r.length);const g=r.slice(h,c);return{totalSize:r.length,page:g}}if(typeof r=="function")return await Reflect.apply(r,null,[n,l,o,s,u]);const i=xe(this.proxy,t);return i===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(_.isObject(o)&&a.isReactive(o)&&(o=a.toRaw(o)),await await Reflect.apply(i,null,[r,n,l,o,s,u]))}}function ao(){const e=a.getCurrentInstance();return new ro(e.proxy)}const er={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},tr={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function lo(e,t,r){return{inheritAttrs:!1,props:{...ne,...se,...er,...tr},emits:["change","page-size-change","page-index-change","current-change"],setup(n,l){const{locale:o}=me.useFoxI18n(t),{emitEvent:s}=le({componentName:e},n.prop??n.name),u=e,i=a.computed(()=>({[u]:!0})),h=a.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),c=a.ref(n.pageIndex);a.watch(()=>n.pageIndex,M=>{c.value=M});const g=M=>{c.value=M,s("page-index-change",M)},E=a.ref(n.pageSize);a.watch(()=>n.pageSize,M=>{E.value=M});const I=M=>{E.value=M,s("page-size-change",M)},C=a.shallowRef({}),$=a.computed(()=>({...C.value,...n.params??{},...n.baseParams??{}})),j=a.ref(0),v=a.ref(),D=ao();let R=!0;const N=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:_.toBoolean(n.autoLoad),y=async(M,B,A,k)=>{try{const b=await D.load("table",M,B,A,k,R,o.value);j.value=b.totalSize,v.value=b.page}catch(b){console.error("[FoxUI] Load Table Data Fail",b),j.value=0,v.value=[]}R=!1};a.watch([c,E],([M,B],[A,k])=>{B!==k&&(c.value=1,M=1),y(n.data,M,B,$.value)}),a.watch([()=>n.data,$],([M,B],[A,k])=>{!N()||(M!==A&&(R=!0),y(M,c.value,E.value,B))});const p=(M={})=>{C.value=a.toRaw(M??{}),a.triggerRef(C),a.nextTick(()=>{y(n.data,c.value,E.value,$.value)})},m=()=>{j.value=0,v.value=[]};N()&&p();let S=null;const O=(M,B)=>{S=M,s("current-change",M,B)},w=a.ref();return ue({clearSelection:()=>w?.value.clearSelection(),getSelectionRows:()=>w?.value.getSelectionRows(),toggleRowSelection:(M,B)=>{w?.value.toggleRowSelection(M,B)},toggleAllSelection:()=>{w?.value.toggleAllSelection()},toggleRowExpansion:(M,B)=>{w?.value.toggleRowExpansion(M,B)},setCurrentRow:M=>{w?.value.setCurrentRow(M)},getCurrentRow:()=>S,clearSort:()=>{w?.value.clearSort()},clearFilter:M=>{w?.value.clearFilter(M)},doLayout:()=>{w?.value.doLayout()},sort:(M,B)=>{w?.value.sort(M,B)},scrollTo:(M,B)=>{w?.value.scrollTo(M,B)},setScrollTop:M=>{w?.value.setScrollTop(M)},setScrollLeft:M=>{w?.value.setScrollLeft(M)},loadData:p,clearData:m}),()=>{const B={...l.attrs,onCurrentChange:O,data:v.value,ref:w,class:i.value},A={};l.slots.default&&(A.default=l.slots.default),l.slots.append&&(A.append=l.slots.append),l.slots.empty&&(A.empty=l.slots.empty);const k=[],b=a.h(d.ElTable,B,A);if(k.push(b),typeof l.slots.pagination=="function"){const F=l.slots.pagination();k.push(F)}else if(n.paginationVisible){const F={class:h.value,total:j.value,pageSize:E.value,["onUpdate:pageSize"]:I,pageSizes:n.pageSizes,currentPage:c.value,["onUpdate:currentPage"]:g,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},L=a.h(d.ElPagination,F);k.push(L)}const x={default:()=>k},q={...ie(n,er,tr),prop:`${n.prop}_item`};return q.contentClass=`${u}__wrap`,a.h(r,q,x)}}}}const{componentName:oo,create:io,scope:so}=Y("table-item"),nr=io(lo(oo,so,oe));function qe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ye(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class uo{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=xe(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function co(){const e=a.getCurrentInstance();return new uo(e.proxy)}function rr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=qe(e,t),l=qe(e,r);if(n!==l)return!1;const o=Ye(e,t),s=Ye(e,r);return o===s}function fo(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of n){let s=!1;if(r==="text")s=qe(e,o)===t;else if(r==="item")s=rr(e,o,t);else{let u=Ye(e,o);u==null&&(u=qe(e,o)),s=u===t}if(s){l=o;break}}return l}function ho(e){return{text:e,value:e}}const ar={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"},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"},itemClass:{type:[String],required:!1}};function go(e,t,r){return{inheritAttrs:!0,props:{...ne,...se,...ar},emits:["change","update:modelValue"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=a.ref(null),u=a.ref(null),i=(R,N,y,p=!0)=>{const m=fo(n,R,N,y);if(m===null){if(u.value===null)return;u.value=null,s.value=null,p&&(o("update:modelValue",null),o("change",null));return}if(!rr(n,m,u.value)){s.value=R;const O=a.toRaw(m);u.value=O;let w=null;n.valueType==="text"?w=qe(n,O):n.valueType==="item"?w=O:w=Ye(n,O),p&&(o("update:modelValue",w),o("change",w))}},h=a.ref([]),c=co();a.watch([()=>n.source,()=>n.params],async([R,N])=>{if(R){const y=await c.load("radio",R,N);if(y.length>0)if(typeof y[0]=="string"){let S=y.map(O=>ho(O));h.value=S}else h.value=y}},{immediate:!0}),a.watch([()=>h.value,()=>n.modelValue],([R,N])=>{i(N,n.valueType,R,!1)});const g=fe(a.computed(()=>n.disabled)),E=ce(a.computed(()=>n.readonly)),I=e,C=a.computed(()=>({[I]:!0})),$=R=>{i(R,"value",h.value,!0)};let j=U(n,"hintText"),v=U(n,"hintVisible");const D=R=>{const N=[];return R.forEach((y,p)=>{const m=Ye(n,y),S=qe(n,y),O=_.toBoolean(y.disabled),M={key:`${m}_${p}`,class:n.itemClass,label:m,disabled:O,size:n.size,border:_.toBoolean(n.border)};n.itemType==="button"?N.push(a.h(d.ElRadioButton,M,{default:()=>[S]})):N.push(a.h(d.ElRadio,M,{default:()=>[S]}))}),N};return()=>{const N={...l.attrs,class:C.value,disabled:g.value||E.value,modelValue:s.value,["text-color"]:n.textColor,fill:n.fill,onChange:$},y=[],p={};l.slots.options?p.default=l.slots.options:p.default=()=>D(h.value);const m=a.h(d.ElRadioGroup,N,p);y.push(m);const S={default:()=>y};if(l.slots.default){const B=l.slots.default();S.label=()=>B}const w={...ie(n,ar),hintText:j.value,hintVisible:v.value,prop:`${n.prop??n.name}_item`};return a.h(r,w,S)}}}}const{componentName:mo,create:yo,scope:po}=Y("radio-item"),lr=yo(go(mo,po,oe));function Be(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Fe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class bo{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=xe(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function So(){const e=a.getCurrentInstance();return new bo(e.proxy)}function or(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Be(e,t),l=Be(e,r);if(n!==l)return!1;const o=Fe(e,t),s=Fe(e,r);return o===s}function wo(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){let u=!1;if(r==="text")u=Be(e,s)===o;else if(r==="item")u=or(e,s,o);else{let i=Fe(e,s);i==null&&(i=Be(e,s)),u=i===o}if(u){l.push(s);break}}}),l}function $o(e){return{text:e,value:e}}const ir={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"},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"},itemClass:{type:[String],required:!1}};function vo(e,t,r){return{inheritAttrs:!1,props:{...ne,...se,...ir},emits:["change","update:modelValue"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=a.ref([]),u=a.ref([]),i=(R,N,y,p=!0)=>{const m=wo(n,R,N,y);if(m===null){if(u.value===null||u.value.length===0)return;s.value=[],u.value=[],p&&(o("update:modelValue",[]),o("change",[]));return}let S=!0;if(m.length!==u.value.length)S=!1;else for(let O=0;O<m.length;O++){const w=m[O],M=u.value[O];if(!or(n,w,M)){S=!1;break}}if(!S){u.value=m;let O=[],w=[];m.forEach(B=>{O.push(Fe(n,B)),n.valueType==="text"?w.push(Be(n,B)):n.valueType==="item"?w.push(B):w.push(Fe(n,B))}),s.value=O;const M=a.toRaw(w);p&&(o("update:modelValue",M),o("change",M))}},h=a.ref([]),c=So();a.watch([()=>n.source,()=>n.params],async([R,N])=>{if(R){const y=await c.load("checkbox",R,N);if(y.length>0)if(typeof y[0]=="string"){let S=y.map(O=>$o(O));h.value=S}else h.value=y}},{immediate:!0}),a.watch([()=>h.value,()=>n.modelValue],([R,N])=>{i(N,n.valueType,R,!1)});const g=fe(a.computed(()=>n.disabled)),E=ce(a.computed(()=>n.readonly)),I=e,C=a.computed(()=>({[I]:!0})),$=R=>{i(R,"value",h.value,!0)};let j=U(n,"hintText"),v=U(n,"hintVisible");const D=R=>{const N=[];return R.forEach((y,p)=>{const m=Fe(n,y),S=Be(n,y),O=_.toBoolean(y.disabled),M={key:`${m}_${p}`,class:n.itemClass,label:m,disabled:O,size:n.size,border:_.toBoolean(n.border)};n.itemType==="button"?N.push(a.h(d.ElCheckboxButton,M,{default:()=>[S]})):N.push(a.h(d.ElCheckbox,M,{default:()=>[S]}))}),N};return()=>{const N={...l.attrs,class:C.value,disabled:g.value||E.value,modelValue:s.value,["text-color"]:n.textColor,fill:n.fill,max:_.toNumber(n.max),min:_.toNumber(n.min),onChange:$},y=[],p={};l.slots.options?p.default=l.slots.options:p.default=()=>D(h.value);const m=a.h(d.ElCheckboxGroup,N,p);y.push(m);const S={default:()=>y};if(l.slots.default){const B=l.slots.default();S.label=()=>B}const w={...ie(n,ir),hintText:j.value,hintVisible:v.value,prop:`${n.prop??n.name}_item`};return a.h(r,w,S)}}}}const{componentName:Eo,create:Co,scope:Oo}=Y("checkbox-item"),sr=Co(vo(Eo,Oo,oe)),ur={modelValue:{type:[Number,String],required:!1}};function No(e,t,r){return{props:{...ne,...se,...ur},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=fe(a.computed(()=>n.disabled)),u=ce(a.computed(()=>n.readonly)),i=U(n,"modelValue",$=>_.toNumber($)),h=e,c=a.computed(()=>({[h]:!0})),g=$=>{o("update:modelValue",$),o("change",$)};let E=U(n,"hintText"),I=a.ref(!1);const C=a.ref();return ue({}),()=>{const j={...l.attrs,ref:C,class:c.value,readonly:u.value||s.value,modelValue:i.value,onChange:g},v={},D=[],R=a.h(d.ElRate,j,v);D.push(R);const N={default:()=>D};if(l.slots.default){const S=l.slots.default();N.label=()=>S}const p={...ie(n,ur),hintText:E.value,hintVisible:I.value,prop:`${n.prop}_item`};return a.h(r,p,N)}}}}const{componentName:xo,create:To,scope:Vo}=Y("rate-item"),cr=To(No(xo,Vo,oe)),fr={modelValue:{type:[Boolean,String,Number],required:!1}};function Io(e,t,r){return{props:{...ne,...se,...fr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=fe(a.computed(()=>n.disabled)),u=ce(a.computed(()=>n.readonly)),i=U(n,"modelValue"),h=e,c=a.computed(()=>({[h]:!0})),g=$=>{o("update:modelValue",$),o("change",$)};let E=U(n,"hintText"),I=U(n,"hintVisible");const C=a.ref();return ue({}),()=>{const j={...l.attrs,ref:C,class:c.value,readonly:u.value,disabled:s.value,modelValue:i.value,onChange:g},v={},D=[],R=a.h(d.ElSwitch,j,v);D.push(R);const N={default:()=>D};if(l.slots.default){const S=l.slots.default();N.label=()=>S}const p={...ie(n,fr),hintText:E.value,hintVisible:I.value,prop:`${n.prop}_item`};return a.h(r,p,N)}}}}const{componentName:Ao,create:Ro,scope:jo}=Y("switch-item"),dr=Ro(Io(Ao,jo,oe)),ko=Symbol.for("InnerPageScopeKey"),Mo=Symbol.for("DialogItemStateKey");function Do(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(r,n){a.provide(ko,!0);const l={};a.provide(Mo,l);const o=i=>{typeof l.beforeClose=="function"&&l.beforeClose(i)},s=a.ref(!0),u=i=>{s.value=i};return()=>{const h={...n.attrs,title:r.title,draggable:r.draggable,modelValue:s.value,"onUpdate:modelValue":u,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},c={};if(typeof n.slots.default=="function"){const g=n.slots.default();c.default=()=>g}return a.h(d.ElDialog,h,c)}}}}const{componentName:di,create:qo,scope:hi}=Y("dialog-item"),hr=qo(Do()),{componentName:gr,create:Bo}=Y("ext-icon"),mr=Bo({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:t,slots:r}){const n=o=>{t("click",o)},l=a.computed(()=>e.name?e.name.indexOf("/")!==-1:!1);return()=>{const o=l.value;return a.h(o?"img":e.tag,{class:o?`${gr}__img`:`${e.fontClassName} ${gr} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:z(e.size),width:z(e.size),height:z(e.size)},onClick:n,src:o?e.name:""},r.default?.())}}});function Fo(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""}},setup(r,{slots:n}){const l=e,o=a.computed(()=>({[l]:!0})),s=a.computed(()=>({[`${l}__mark`]:!0,[`${l}__mark-${r.type}`]:!0})),u=a.computed(()=>r.color?{background:r.color}:null),i=a.computed(()=>({[`${l}__text`]:!0,[`${l}__text-${r.type}`]:!0})),h=a.computed(()=>r.color?{color:r.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const $={class:s.value,style:u.value};c=a.h("div",$)}const g={class:i.value,style:h.value},E=n.default?n.default():[],I=a.h("div",g,E),C={class:o.value};return a.h("div",C,[c,I])}}}}const{componentName:Po,create:Lo,scope:gi}=Y("indicator"),yr=Lo(Fo(Po));var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){var r=1e3,n=6e4,l=36e5,o="millisecond",s="second",u="minute",i="hour",h="day",c="week",g="month",E="quarter",I="year",C="date",$="Invalid Date",j=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},R=function(A,k,b){var x=String(A);return!x||x.length>=k?A:""+Array(k+1-x.length).join(b)+A},N={s:R,z:function(A){var k=-A.utcOffset(),b=Math.abs(k),x=Math.floor(b/60),T=b%60;return(k<=0?"+":"-")+R(x,2,"0")+":"+R(T,2,"0")},m:function A(k,b){if(k.date()<b.date())return-A(b,k);var x=12*(b.year()-k.year())+(b.month()-k.month()),T=k.clone().add(x,g),q=b-T<0,V=k.clone().add(x+(q?-1:1),g);return+(-(x+(b-T)/(q?T-V:V-T))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:g,y:I,w:c,d:h,D:C,h:i,m:u,s,ms:o,Q:E}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},y="en",p={};p[y]=D;var m=function(A){return A instanceof M},S=function A(k,b,x){var T;if(!k)return y;if(typeof k=="string"){var q=k.toLowerCase();p[q]&&(T=q),b&&(p[q]=b,T=q);var V=k.split("-");if(!T&&V.length>1)return A(V[0])}else{var F=k.name;p[F]=k,T=F}return!x&&T&&(y=T),T||!x&&y},O=function(A,k){if(m(A))return A.clone();var b=typeof k=="object"?k:{};return b.date=A,b.args=arguments,new M(b)},w=N;w.l=S,w.i=m,w.w=function(A,k){return O(A,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var M=function(){function A(b){this.$L=S(b.locale,null,!0),this.parse(b)}var k=A.prototype;return k.parse=function(b){this.$d=function(x){var T=x.date,q=x.utc;if(T===null)return new Date(NaN);if(w.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var V=T.match(j);if(V){var F=V[2]-1||0,L=(V[7]||"0").substring(0,3);return q?new Date(Date.UTC(V[1],F,V[3]||1,V[4]||0,V[5]||0,V[6]||0,L)):new Date(V[1],F,V[3]||1,V[4]||0,V[5]||0,V[6]||0,L)}}return new Date(T)}(b),this.$x=b.x||{},this.init()},k.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},k.$utils=function(){return w},k.isValid=function(){return this.$d.toString()!==$},k.isSame=function(b,x){var T=O(b);return this.startOf(x)<=T&&T<=this.endOf(x)},k.isAfter=function(b,x){return O(b)<this.startOf(x)},k.isBefore=function(b,x){return this.endOf(x)<O(b)},k.$g=function(b,x,T){return w.u(b)?this[x]:this.set(T,b)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(b,x){var T=this,q=!!w.u(x)||x,V=w.p(b),F=function(ee,J){var ge=w.w(T.$u?Date.UTC(T.$y,J,ee):new Date(T.$y,J,ee),T);return q?ge:ge.endOf(h)},L=function(ee,J){return w.w(T.toDate()[ee].apply(T.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(J)),T)},P=this.$W,H=this.$M,G=this.$D,W="set"+(this.$u?"UTC":"");switch(V){case I:return q?F(1,0):F(31,11);case g:return q?F(1,H):F(0,H+1);case c:var he=this.$locale().weekStart||0,re=(P<he?P+7:P)-he;return F(q?G-re:G+(6-re),H);case h:case C:return L(W+"Hours",0);case i:return L(W+"Minutes",1);case u:return L(W+"Seconds",2);case s:return L(W+"Milliseconds",3);default:return this.clone()}},k.endOf=function(b){return this.startOf(b,!1)},k.$set=function(b,x){var T,q=w.p(b),V="set"+(this.$u?"UTC":""),F=(T={},T[h]=V+"Date",T[C]=V+"Date",T[g]=V+"Month",T[I]=V+"FullYear",T[i]=V+"Hours",T[u]=V+"Minutes",T[s]=V+"Seconds",T[o]=V+"Milliseconds",T)[q],L=q===h?this.$D+(x-this.$W):x;if(q===g||q===I){var P=this.clone().set(C,1);P.$d[F](L),P.init(),this.$d=P.set(C,Math.min(this.$D,P.daysInMonth())).$d}else F&&this.$d[F](L);return this.init(),this},k.set=function(b,x){return this.clone().$set(b,x)},k.get=function(b){return this[w.p(b)]()},k.add=function(b,x){var T,q=this;b=Number(b);var V=w.p(x),F=function(H){var G=O(q);return w.w(G.date(G.date()+Math.round(H*b)),q)};if(V===g)return this.set(g,this.$M+b);if(V===I)return this.set(I,this.$y+b);if(V===h)return F(1);if(V===c)return F(7);var L=(T={},T[u]=n,T[i]=l,T[s]=r,T)[V]||1,P=this.$d.getTime()+b*L;return w.w(P,this)},k.subtract=function(b,x){return this.add(-1*b,x)},k.format=function(b){var x=this,T=this.$locale();if(!this.isValid())return T.invalidDate||$;var q=b||"YYYY-MM-DDTHH:mm:ssZ",V=w.z(this),F=this.$H,L=this.$m,P=this.$M,H=T.weekdays,G=T.months,W=function(J,ge,Ce,Oe){return J&&(J[ge]||J(x,q))||Ce[ge].slice(0,Oe)},he=function(J){return w.s(F%12||12,J,"0")},re=T.meridiem||function(J,ge,Ce){var Oe=J<12?"AM":"PM";return Ce?Oe.toLowerCase():Oe},ee={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:w.s(P+1,2,"0"),MMM:W(T.monthsShort,P,G,3),MMMM:W(G,P),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:W(T.weekdaysMin,this.$W,H,2),ddd:W(T.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(F),HH:w.s(F,2,"0"),h:he(1),hh:he(2),a:re(F,L,!0),A:re(F,L,!1),m:String(L),mm:w.s(L,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:V};return q.replace(v,function(J,ge){return ge||ee[J]||V.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(b,x,T){var q,V=w.p(x),F=O(b),L=(F.utcOffset()-this.utcOffset())*n,P=this-F,H=w.m(this,F);return H=(q={},q[I]=H/12,q[g]=H,q[E]=H/3,q[c]=(P-L)/6048e5,q[h]=(P-L)/864e5,q[i]=P/l,q[u]=P/n,q[s]=P/r,q)[V]||P,T?H:w.a(H)},k.daysInMonth=function(){return this.endOf(g).$D},k.$locale=function(){return p[this.$L]},k.locale=function(b,x){if(!b)return this.$L;var T=this.clone(),q=S(b,x,!0);return q&&(T.$L=q),T},k.clone=function(){return w.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},A}(),B=M.prototype;return O.prototype=B,[["$ms",o],["$s",s],["$m",u],["$H",i],["$W",h],["$M",g],["$y",I],["$D",C]].forEach(function(A){B[A[1]]=function(k){return this.$g(k,A[0],A[1])}}),O.extend=function(A,k){return A.$i||(A(k,M,O),A.$i=!0),O},O.locale=S,O.isDayjs=m,O.unix=function(A){return O(1e3*A)},O.en=p[y],O.Ls=p,O.p={},O})})(pr);const Ee=pr.exports;var br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,u={},i=function($){return($=+$)+($>68?1900:2e3)},h=function($){return function(j){this[$]=+j}},c=[/[+-]\d\d:?(\d\d)?|Z/,function($){(this.zone||(this.zone={})).offset=function(j){if(!j||j==="Z")return 0;var v=j.match(/([+-]|\d\d)/g),D=60*v[1]+(+v[2]||0);return D===0?0:v[0]==="+"?-D:D}($)}],g=function($){var j=u[$];return j&&(j.indexOf?j:j.s.concat(j.f))},E=function($,j){var v,D=u.meridiem;if(D){for(var R=1;R<=24;R+=1)if($.indexOf(D(R,0,j))>-1){v=R>12;break}}else v=$===(j?"pm":"PM");return v},I={A:[s,function($){this.afternoon=E($,!1)}],a:[s,function($){this.afternoon=E($,!0)}],S:[/\d/,function($){this.milliseconds=100*+$}],SS:[l,function($){this.milliseconds=10*+$}],SSS:[/\d{3}/,function($){this.milliseconds=+$}],s:[o,h("seconds")],ss:[o,h("seconds")],m:[o,h("minutes")],mm:[o,h("minutes")],H:[o,h("hours")],h:[o,h("hours")],HH:[o,h("hours")],hh:[o,h("hours")],D:[o,h("day")],DD:[l,h("day")],Do:[s,function($){var j=u.ordinal,v=$.match(/\d+/);if(this.day=v[0],j)for(var D=1;D<=31;D+=1)j(D).replace(/\[|\]/g,"")===$&&(this.day=D)}],M:[o,h("month")],MM:[l,h("month")],MMM:[s,function($){var j=g("months"),v=(g("monthsShort")||j.map(function(D){return D.slice(0,3)})).indexOf($)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[s,function($){var j=g("months").indexOf($)+1;if(j<1)throw new Error;this.month=j%12||j}],Y:[/[+-]?\d+/,h("year")],YY:[l,function($){this.year=i($)}],YYYY:[/\d{4}/,h("year")],Z:c,ZZ:c};function C($){var j,v;j=$,v=u&&u.formats;for(var D=($=j.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,w,M){var B=M&&M.toUpperCase();return w||v[M]||r[M]||v[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,k,b){return k||b.slice(1)})})).match(n),R=D.length,N=0;N<R;N+=1){var y=D[N],p=I[y],m=p&&p[0],S=p&&p[1];D[N]=S?{regex:m,parser:S}:y.replace(/^\[|\]$/g,"")}return function(O){for(var w={},M=0,B=0;M<R;M+=1){var A=D[M];if(typeof A=="string")B+=A.length;else{var k=A.regex,b=A.parser,x=O.slice(B),T=k.exec(x)[0];b.call(w,T),O=O.replace(T,"")}}return function(q){var V=q.afternoon;if(V!==void 0){var F=q.hours;V?F<12&&(q.hours+=12):F===12&&(q.hours=0),delete q.afternoon}}(w),w}}return function($,j,v){v.p.customParseFormat=!0,$&&$.parseTwoDigitYear&&(i=$.parseTwoDigitYear);var D=j.prototype,R=D.parse;D.parse=function(N){var y=N.date,p=N.utc,m=N.args;this.$u=p;var S=m[1];if(typeof S=="string"){var O=m[2]===!0,w=m[3]===!0,M=O||w,B=m[2];w&&(B=m[2]),u=this.$locale(),!O&&B&&(u=v.Ls[B]),this.$d=function(x,T,q){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*x);var V=C(T)(x),F=V.year,L=V.month,P=V.day,H=V.hours,G=V.minutes,W=V.seconds,he=V.milliseconds,re=V.zone,ee=new Date,J=P||(F||L?1:ee.getDate()),ge=F||ee.getFullYear(),Ce=0;F&&!L||(Ce=L>0?L-1:ee.getMonth());var Oe=H||0,Dt=G||0,qt=W||0,Bt=he||0;return re?new Date(Date.UTC(ge,Ce,J,Oe,Dt,qt,Bt+60*re.offset*1e3)):q?new Date(Date.UTC(ge,Ce,J,Oe,Dt,qt,Bt)):new Date(ge,Ce,J,Oe,Dt,qt,Bt)}catch{return new Date("")}}(y,S,p),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),M&&y!=this.format(S)&&(this.$d=new Date("")),u={}}else if(S instanceof Array)for(var A=S.length,k=1;k<=A;k+=1){m[1]=S[k-1];var b=v.apply(this,m);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}k===A&&(this.$d=new Date(""))}else R.call(this,N)}}})})(br);const _o=br.exports;var Sr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){return function(r,n,l){var o=n.prototype,s=o.format;l.en.ordinal=function(u){var i=["th","st","nd","rd"],h=u%100;return"["+u+(i[(h-20)%10]||i[h]||i[0])+"]"},o.format=function(u){var i=this,h=this.$locale();if(!this.isValid())return s.bind(this)(u);var c=this.$utils(),g=(u||"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(E){switch(E){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return h.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return h.ordinal(i.week(),"W");case"w":case"ww":return c.s(i.week(),E==="w"?1:2,"0");case"W":case"WW":return c.s(i.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return c.s(String(i.$H===0?24:i.$H),E==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return E}});return s.bind(this)(g)}}})})(Sr);const Ho=Sr.exports;var wr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){return function(r,n,l){var o=n.prototype,s=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,E,I,C,$){var j=g.name?g:g.$locale(),v=s(j[E]),D=s(j[I]),R=v||D.map(function(y){return y.slice(0,C)});if(!$)return R;var N=j.weekStart;return R.map(function(y,p){return R[(p+(N||0))%7]})},i=function(){return l.Ls[l.locale()]},h=function(g,E){return g.formats[E]||function(I){return I.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,$,j){return $||j.slice(1)})}(g.formats[E.toUpperCase()])},c=function(){var g=this;return{months:function(E){return E?E.format("MMMM"):u(g,"months")},monthsShort:function(E){return E?E.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(E){return E?E.format("dddd"):u(g,"weekdays")},weekdaysMin:function(E){return E?E.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(E){return E?E.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(E){return h(g.$locale(),E)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},l.localeData=function(){var g=i();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(E){return h(g,E)},meridiem:g.meridiem,ordinal:g.ordinal}},l.months=function(){return u(i(),"months")},l.monthsShort=function(){return u(i(),"monthsShort","months",3)},l.weekdays=function(g){return u(i(),"weekdays",null,null,g)},l.weekdaysShort=function(g){return u(i(),"weekdaysShort","weekdays",3,g)},l.weekdaysMin=function(g){return u(i(),"weekdaysMin","weekdays",2,g)}}})})(wr);const Ko=wr.exports;var $r={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){var r="week",n="year";return function(l,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 h=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(n).add(1,n).date(h),g=s(this).endOf(r);if(c.isBefore(g))return 1}var E=s(this).startOf(n).date(h).startOf(r).subtract(1,"millisecond"),I=this.diff(E,r,!0);return I<0?s(this).startOf("week").week():Math.ceil(I)},u.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}})})($r);const zo=$r.exports;var vr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){return function(r,n){n.prototype.weekYear=function(){var l=this.month(),o=this.week(),s=this.year();return o===1&&l===11?s+1:l===0&&o>=52?s-1:s}}})})(vr);const Go=vr.exports;var Er={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){return function(r,n,l){n.prototype.dayOfYear=function(o){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})(Er);const Wo=Er.exports;var Cr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){return function(r,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(Cr);const Yo=Cr.exports;var Or={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){return function(r,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(Or);const Uo=Or.exports;Ee.extend(Ko),Ee.extend(Ho),Ee.extend(_o),Ee.extend(zo),Ee.extend(Go),Ee.extend(Wo),Ee.extend(Yo),Ee.extend(Uo);const Nr=10;function Xo(e,t){return e>t&&e>Nr?"horizontal":t>e&&t>Nr?"vertical":""}function Zo(){const e=a.ref(0),t=a.ref(0),r=a.ref(0),n=a.ref(0),l=a.ref(0),o=a.ref(0),s=a.ref(0),u=a.ref(0),i=a.ref(0),h=a.ref(0),c=a.ref(""),g=()=>c.value==="vertical",E=()=>c.value==="horizontal",I=()=>{s.value=0,u.value=0,i.value=0,h.value=0,c.value="",r.value=0};return{move:j=>{const v=j.touches[0];s.value=v.clientX-e.value,u.value=v.clientY-t.value,l.value=v.clientX,o.value=v.clientY,i.value=Math.abs(s.value),h.value=Math.abs(u.value),n.value=Date.now()-r.value,c.value||(c.value=Xo(i.value,h.value))},start:j=>{I(),e.value=j.touches[0].clientX,t.value=j.touches[0].clientY,r.value=Date.now()},reset:I,startX:e,startY:t,startTime:r,duration:n,moveX:l,moveY:o,deltaX:s,deltaY:u,offsetX:i,offsetY:h,direction:c,isVertical:g,isHorizontal:E}}const Jo=[hn,gn,mn,yn,Sn,oe,Cn,On,ct,xn,Rn,kn,Dn,Bn,Kn,Gn,Un,Zn,Qn,nr,lr,sr,cr,dr,hr,Mt,ut,mr,yr],Qo=new Qr(Jo,[na],"4.0.0");Object.defineProperty(f,"clone",{enumerable:!0,get:()=>_.clone}),Object.defineProperty(f,"extend",{enumerable:!0,get:()=>_.extend}),Object.defineProperty(f,"isArray",{enumerable:!0,get:()=>_.isArray}),Object.defineProperty(f,"isDate",{enumerable:!0,get:()=>_.isDate}),Object.defineProperty(f,"isESModule",{enumerable:!0,get:()=>_.isESModule}),Object.defineProperty(f,"isEqual",{enumerable:!0,get:()=>_.isEqual}),Object.defineProperty(f,"isFunction",{enumerable:!0,get:()=>_.isFunction}),Object.defineProperty(f,"isMap",{enumerable:!0,get:()=>_.isMap}),Object.defineProperty(f,"isObject",{enumerable:!0,get:()=>_.isObject}),Object.defineProperty(f,"isPlainObject",{enumerable:!0,get:()=>_.isPlainObject}),Object.defineProperty(f,"isPromise",{enumerable:!0,get:()=>_.isPromise}),Object.defineProperty(f,"isSet",{enumerable:!0,get:()=>_.isSet}),Object.defineProperty(f,"isString",{enumerable:!0,get:()=>_.isString}),Object.defineProperty(f,"isSymbol",{enumerable:!0,get:()=>_.isSymbol}),Object.defineProperty(f,"toBoolean",{enumerable:!0,get:()=>_.toBoolean}),Object.defineProperty(f,"toNumber",{enumerable:!0,get:()=>_.toNumber}),Object.defineProperty(f,"toTypeString",{enumerable:!0,get:()=>_.toTypeString}),Object.defineProperty(f,"FoxAffix",{enumerable:!0,get:()=>d.ElAffix}),Object.defineProperty(f,"FoxAlert",{enumerable:!0,get:()=>d.ElAlert}),Object.defineProperty(f,"FoxAside",{enumerable:!0,get:()=>d.ElAside}),Object.defineProperty(f,"FoxAutoResizer",{enumerable:!0,get:()=>d.ElAutoResizer}),Object.defineProperty(f,"FoxAutocomplete",{enumerable:!0,get:()=>d.ElAutocomplete}),Object.defineProperty(f,"FoxAvatar",{enumerable:!0,get:()=>d.ElAvatar}),Object.defineProperty(f,"FoxBacktop",{enumerable:!0,get:()=>d.ElBacktop}),Object.defineProperty(f,"FoxBadge",{enumerable:!0,get:()=>d.ElBadge}),Object.defineProperty(f,"FoxBreadcrumb",{enumerable:!0,get:()=>d.ElBreadcrumb}),Object.defineProperty(f,"FoxBreadcrumbItem",{enumerable:!0,get:()=>d.ElBreadcrumbItem}),Object.defineProperty(f,"FoxButton",{enumerable:!0,get:()=>d.ElButton}),Object.defineProperty(f,"FoxButtonGroup",{enumerable:!0,get:()=>d.ElButtonGroup}),Object.defineProperty(f,"FoxCalendar",{enumerable:!0,get:()=>d.ElCalendar}),Object.defineProperty(f,"FoxCard",{enumerable:!0,get:()=>d.ElCard}),Object.defineProperty(f,"FoxCarousel",{enumerable:!0,get:()=>d.ElCarousel}),Object.defineProperty(f,"FoxCarouselItem",{enumerable:!0,get:()=>d.ElCarouselItem}),Object.defineProperty(f,"FoxCascader",{enumerable:!0,get:()=>d.ElCascader}),Object.defineProperty(f,"FoxCascaderPanel",{enumerable:!0,get:()=>d.ElCascaderPanel}),Object.defineProperty(f,"FoxCheckTag",{enumerable:!0,get:()=>d.ElCheckTag}),Object.defineProperty(f,"FoxCheckbox",{enumerable:!0,get:()=>d.ElCheckbox}),Object.defineProperty(f,"FoxCheckboxButton",{enumerable:!0,get:()=>d.ElCheckboxButton}),Object.defineProperty(f,"FoxCheckboxGroup",{enumerable:!0,get:()=>d.ElCheckboxGroup}),Object.defineProperty(f,"FoxCol",{enumerable:!0,get:()=>d.ElCol}),Object.defineProperty(f,"FoxCollapse",{enumerable:!0,get:()=>d.ElCollapse}),Object.defineProperty(f,"FoxCollapseItem",{enumerable:!0,get:()=>d.ElCollapseItem}),Object.defineProperty(f,"FoxCollapseTransition",{enumerable:!0,get:()=>d.ElCollapseTransition}),Object.defineProperty(f,"FoxColorPicker",{enumerable:!0,get:()=>d.ElColorPicker}),Object.defineProperty(f,"FoxConfigProvider",{enumerable:!0,get:()=>d.ElConfigProvider}),Object.defineProperty(f,"FoxContainer",{enumerable:!0,get:()=>d.ElContainer}),Object.defineProperty(f,"FoxDatePicker",{enumerable:!0,get:()=>d.ElDatePicker}),Object.defineProperty(f,"FoxDescriptions",{enumerable:!0,get:()=>d.ElDescriptions}),Object.defineProperty(f,"FoxDescriptionsItem",{enumerable:!0,get:()=>d.ElDescriptionsItem}),Object.defineProperty(f,"FoxDialog",{enumerable:!0,get:()=>d.ElDialog}),Object.defineProperty(f,"FoxDivider",{enumerable:!0,get:()=>d.ElDivider}),Object.defineProperty(f,"FoxDrawer",{enumerable:!0,get:()=>d.ElDrawer}),Object.defineProperty(f,"FoxDropdown",{enumerable:!0,get:()=>d.ElDropdown}),Object.defineProperty(f,"FoxDropdownItem",{enumerable:!0,get:()=>d.ElDropdownItem}),Object.defineProperty(f,"FoxDropdownMenu",{enumerable:!0,get:()=>d.ElDropdownMenu}),Object.defineProperty(f,"FoxEmpty",{enumerable:!0,get:()=>d.ElEmpty}),Object.defineProperty(f,"FoxFooter",{enumerable:!0,get:()=>d.ElFooter}),Object.defineProperty(f,"FoxForm",{enumerable:!0,get:()=>d.ElForm}),Object.defineProperty(f,"FoxFormItem",{enumerable:!0,get:()=>d.ElFormItem}),Object.defineProperty(f,"FoxHeader",{enumerable:!0,get:()=>d.ElHeader}),Object.defineProperty(f,"FoxIcon",{enumerable:!0,get:()=>d.ElIcon}),Object.defineProperty(f,"FoxImage",{enumerable:!0,get:()=>d.ElImage}),Object.defineProperty(f,"FoxImageViewer",{enumerable:!0,get:()=>d.ElImageViewer}),Object.defineProperty(f,"FoxInput",{enumerable:!0,get:()=>d.ElInput}),Object.defineProperty(f,"FoxInputNumber",{enumerable:!0,get:()=>d.ElInputNumber}),Object.defineProperty(f,"FoxLink",{enumerable:!0,get:()=>d.ElLink}),Object.defineProperty(f,"FoxMain",{enumerable:!0,get:()=>d.ElMain}),Object.defineProperty(f,"FoxMenu",{enumerable:!0,get:()=>d.ElMenu}),Object.defineProperty(f,"FoxMenuItem",{enumerable:!0,get:()=>d.ElMenuItem}),Object.defineProperty(f,"FoxMenuItemGroup",{enumerable:!0,get:()=>d.ElMenuItemGroup}),Object.defineProperty(f,"FoxOption",{enumerable:!0,get:()=>d.ElOption}),Object.defineProperty(f,"FoxOptionGroup",{enumerable:!0,get:()=>d.ElOptionGroup}),Object.defineProperty(f,"FoxPageHeader",{enumerable:!0,get:()=>d.ElPageHeader}),Object.defineProperty(f,"FoxPagination",{enumerable:!0,get:()=>d.ElPagination}),Object.defineProperty(f,"FoxPopconfirm",{enumerable:!0,get:()=>d.ElPopconfirm}),Object.defineProperty(f,"FoxPopover",{enumerable:!0,get:()=>d.ElPopover}),Object.defineProperty(f,"FoxPopper",{enumerable:!0,get:()=>d.ElPopper}),Object.defineProperty(f,"FoxProgress",{enumerable:!0,get:()=>d.ElProgress}),Object.defineProperty(f,"FoxRadio",{enumerable:!0,get:()=>d.ElRadio}),Object.defineProperty(f,"FoxRadioButton",{enumerable:!0,get:()=>d.ElRadioButton}),Object.defineProperty(f,"FoxRadioGroup",{enumerable:!0,get:()=>d.ElRadioGroup}),Object.defineProperty(f,"FoxRate",{enumerable:!0,get:()=>d.ElRate}),Object.defineProperty(f,"FoxResult",{enumerable:!0,get:()=>d.ElResult}),Object.defineProperty(f,"FoxRow",{enumerable:!0,get:()=>d.ElRow}),Object.defineProperty(f,"FoxScrollbar",{enumerable:!0,get:()=>d.ElScrollbar}),Object.defineProperty(f,"FoxSelect",{enumerable:!0,get:()=>d.ElSelect}),Object.defineProperty(f,"FoxSelectV2",{enumerable:!0,get:()=>d.ElSelectV2}),Object.defineProperty(f,"FoxSkeleton",{enumerable:!0,get:()=>d.ElSkeleton}),Object.defineProperty(f,"FoxSkeletonItem",{enumerable:!0,get:()=>d.ElSkeletonItem}),Object.defineProperty(f,"FoxSlider",{enumerable:!0,get:()=>d.ElSlider}),Object.defineProperty(f,"FoxSpace",{enumerable:!0,get:()=>d.ElSpace}),Object.defineProperty(f,"FoxStep",{enumerable:!0,get:()=>d.ElStep}),Object.defineProperty(f,"FoxSteps",{enumerable:!0,get:()=>d.ElSteps}),Object.defineProperty(f,"FoxSubMenu",{enumerable:!0,get:()=>d.ElSubMenu}),Object.defineProperty(f,"FoxSwitch",{enumerable:!0,get:()=>d.ElSwitch}),Object.defineProperty(f,"FoxTabPane",{enumerable:!0,get:()=>d.ElTabPane}),Object.defineProperty(f,"FoxTable",{enumerable:!0,get:()=>d.ElTable}),Object.defineProperty(f,"FoxTableColumn",{enumerable:!0,get:()=>d.ElTableColumn}),Object.defineProperty(f,"FoxTableV2",{enumerable:!0,get:()=>d.ElTableV2}),Object.defineProperty(f,"FoxTabs",{enumerable:!0,get:()=>d.ElTabs}),Object.defineProperty(f,"FoxTag",{enumerable:!0,get:()=>d.ElTag}),Object.defineProperty(f,"FoxTimePicker",{enumerable:!0,get:()=>d.ElTimePicker}),Object.defineProperty(f,"FoxTimeSelect",{enumerable:!0,get:()=>d.ElTimeSelect}),Object.defineProperty(f,"FoxTimeline",{enumerable:!0,get:()=>d.ElTimeline}),Object.defineProperty(f,"FoxTimelineItem",{enumerable:!0,get:()=>d.ElTimelineItem}),Object.defineProperty(f,"FoxTooltip",{enumerable:!0,get:()=>d.ElTooltip}),Object.defineProperty(f,"FoxTransfer",{enumerable:!0,get:()=>d.ElTransfer}),Object.defineProperty(f,"FoxTree",{enumerable:!0,get:()=>d.ElTree}),Object.defineProperty(f,"FoxTreeSelect",{enumerable:!0,get:()=>d.ElTreeSelect}),Object.defineProperty(f,"FoxTreeV2",{enumerable:!0,get:()=>d.ElTreeV2}),Object.defineProperty(f,"FoxUpload",{enumerable:!0,get:()=>d.ElUpload}),f.AutocompleteItem=Zn,f.Broadcast=vt,f.BroadcastKey=te,f.CascaderItem=Un,f.CheckboxItem=sr,f.Content=yn,f.DataItemsKey=Ae,f.DateItem=kn,f.DialogItem=hr,f.Domain=Ct,f.DomainKey=Se,f.ExtIcon=mr,f.FooterBar=mn,f.Group=Sn,f.HeaderBar=gn,f.HintText=ct,f.Indicator=yr,f.InputItem=xn,f.InputNumberItem=Gn,f.Item=oe,f.Mapping=Mt,f.MoneyItem=Kn,f.Page=hn,f.Price=ut,f.PriorityPolicy=at,f.RadioItem=lr,f.RateItem=cr,f.RowItem=On,f.SelectItem=Rn,f.SlotItem=Cn,f.SwitchItem=dr,f.TableItem=nr,f.TableMappingColumn=Qn,f.TimeItem=Dn,f.TimeSelectItem=Bn,f.UniqueID=$n,f.ValidateSchema=rn,f.ValidateSchemaKey=pe,f.clearNonNumber=Ir,f.compareTo=wt,f.createBroadcast=Xe,f.createValidateSchema=Je,f.debounce=Kr,f.decimalLength=Xt,f.default=Qo,f.defineBroadcast=Mr,f.defineDataItem=ln,f.defineDomain=Nt,f.defineItem=le,f.definePageState=on,f.deleteGlobalValidator=Fr,f.disabledProperty=fe,f.divide=St,f.excludeProps=ie,f.floatData=kr,f.getGlobalValidateCheckEvents=en,f.getGlobalValidateResetEvents=nn,f.getPageContentAreaHeight=nt,f.getPageContentAreaWidth=rt,f.getPageFooterAreaHeight=tt,f.getPageHeaderAreaHeight=et,f.getRootDomain=Ge,f.includeProps=jr,f.indexOf=Ar,f.integerLength=Ut,f.isBrowser=_e,f.isEmptyString=Q,f.isInnerPage=Gr,f.isNumberString=Yt,f.isRegExp=Wt,f.isSubPage=Wr,f.lastIndexOf=Rr,f.multiply=Kt,f.negate=zt,f.numberFormat=$t,f.property=Re,f.raf=Vr,f.readonlyProperty=ce,f.setGlobalValidateCheckEvents=Pr,f.setGlobalValidateHandler=qr,f.setGlobalValidateMessages=_r,f.setGlobalValidateResetEvents=Lr,f.setGlobalValidator=Br,f.throttle=Et,f.toPadding=ye,f.toPx=X,f.toPxDesc=z,f.toValue=U,f.unNumberFormat=Gt,f.updatePageState=xt,f.useBroadcast=Ke,f.useDomain=we,f.useExpose=ue,f.usePageState=Qe,f.usePosition=vn,f.useRect=st,f.useTouch=Zo,f.valueLength=He,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(m,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],l):(m=typeof globalThis<"u"?globalThis:m||self,l(m.FoxUI={},m.Vue,m.FoxValidator,m.ElementPlus,m.ElementPlusIconsVue,m.FoxI18n))})(this,function(m,l,at,b,Ne,Be){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Mon Dec 09 2024 09:24:03 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const _t=window,ea=typeof window<"u";function ta(){return typeof _t<"u"?_t.requestAnimationFrame||_t.webkitRequestAnimationFrame||function(e){_t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function na(e){ea?cancelAnimationFrame(e):clearTimeout(e)}const Yl=ta();/*!
|
|
4
|
+
* @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
|
|
5
|
+
*/function qt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=Ee(e),t=Ee(t),[e,t]=bn(Ee(e),Ee(t)),o==1&&(n==1?e=yn(e):t=yn(t));let r=Gl(e,t);return o?o==2?"-"+Ee(r):e.length<r.length?Ee(r.substring(1)):"-"+Ee(yn(r)):Ee(r)}function yn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Gl(t,a)}function Ee(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function bn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Gl(e,t){[e,t]=bn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var ye=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ye||{});function xt(e,t=0,o=ye.HALF_EVEN){if(o===ye.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=xt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Ul(r[1],a,n,o)?(n?"-":"")+vn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Ul(s,i,n,o)&&(i=vn(i),i.length>t)?(n?"-":"")+vn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Ul(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ye.DOWN||!o&&n===ye.FLOOR||o&&n===ye.CEILING)return!1;if(n===ye.UP||o&&n===ye.FLOOR||!o&&n===ye.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 ye.HALF_DOWN:return!1;case ye.HALF_UP:return!0;case ye.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function vn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function wn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=Tt(e),t=Tt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=Tt(e.replace(".","")),t=Tt(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let v=0;for(let V=t.length-1;V>=f&&V>=0;V--)u[V]>-1&&u[V]<e.length&&(v+=parseInt(e[u[V]--])*parseInt(t[V]));v+=s,s=Math.floor(v/10),c=v%10+c,f--}return c=Tt(la(c,a)),o==1&&(c="-"+c),c}function la(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Tt(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 Sn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ee(t.replace(".","")),r>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>f)e=e.replace(".",""),e=Ee(e+new Array(r-f+1).join("0"));else if(r<f){e=e.replace(".","");let c=e.length-f+r;e=Ee(e.substring(0,c)+"."+e.substring(c))}else r==f&&(e=Ee(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=f,s="0."+new Array(f).join("0")}for(o=o+2;a<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=qt(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+Ee(xt(s,o-2))}function xn(e,t){return e=e.toString(),t=t.toString(),t=Tn(t),qt(e,t)}function Tn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Xl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Zl(e),Zl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=xn(e,wn(t,xt(Sn(e,t),0,ye.FLOOR)));return o+n}function Zl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Jl(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=bn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class ce{value;static RoundingModes=ye;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=Ee(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ee(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ce.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ye.HALF_EVEN){if(t=ce.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return xt(t,o,n)}round(t=0,o=ye.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(xt(this.value,t,o))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,ye.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,ye.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,ye.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,ye.CEILING)}static add(t,o){return t=ce.validate(t),o=ce.validate(o),qt(t,o)}add(t){return new ce(qt(this.value,t.getValue()))}static subtract(t,o){return t=ce.validate(t),o=ce.validate(o),xn(t,o)}subtract(t){return new ce(xn(this.value,t.getValue()))}static multiply(t,o){return t=ce.validate(t),o=ce.validate(o),wn(t,o)}multiply(t){return new ce(wn(this.value,t.getValue()))}static divide(t,o,n){return t=ce.validate(t),o=ce.validate(o),Sn(t,o,n)}divide(t,o){return new ce(Sn(this.value,t.getValue(),o))}static modulus(t,o){return t=ce.validate(t),o=ce.validate(o),Xl(t,o)}modulus(t){return new ce(Xl(this.value,t.getValue()))}static compareTo(t,o){return t=ce.validate(t),o=ce.validate(o),Jl(t,o)}compareTo(t){return Jl(this.value,t.getValue())}static negate(t){return t=ce.validate(t),Tn(t)}negate(){return new ce(Tn(this.value))}}function Ql(e,t){return ce.multiply(`${e}`,`${t}`)}function $n(e,t,o=8){return ce.divide(`${e}`,`${t}`,o)}function Cn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function eo(e){return ce.negate(e)}function Pt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",f=a.indexOf(".");f!=-1&&(s=a.substring(0,f),u=a.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",v=s.split("").reverse();for(let V=0;V<v.length;V++)d+=v[V]+((V+1)%n==0&&V+1!=v.length?r:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function to(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Nn=Yl,oa=Array.isArray,ra=e=>jt(e)==="[object Map]",aa=e=>jt(e)==="[object Set]",ia=e=>e instanceof Date,En=e=>typeof e=="function",no=e=>typeof e=="string",sa=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",lo=e=>Xe(e)&&En(e.then)&&En(e.catch),oo=Object.prototype.toString,jt=e=>oo.call(e),kn=e=>jt(e)==="[object Object]",ro=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ua(e){return e.__esModule||ro&&e[Symbol.toStringTag]==="Module"}const ca=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function it(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=it(r,f,u)}else u!==void 0&&(t[i]=u)}}return t}function In(e,t,o=!1){if(!o)it(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!kn(i))continue;a=In(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!kn(i))continue;a=In(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const On=ca?Promise.resolve():null;function fa(e,...t){On!==null?t&&t.length>0?On.then(()=>{e(t)}):On.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Se(e){return typeof e=="number"?e:Number(e)}const da={"[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 zt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):da[o]||"object"}function ao(e){return e&&typeof e=="object"&&"setInterval"in e}function Ht(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function io(e){let t=!!e&&"length"in e&&e.length,o=zt(e);return o==="function"||ao(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function so(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function ha(e,t=[]){let o=t;return e!=null&&(io(Object(e))?so(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ze(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=zt(e),n=zt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],f=t[s];if(!Ze(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!Ze(a,i))return!1}return!0}return!1}const st=typeof window<"u";function Vn(e){return e==null}function uo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function co(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function fo(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function ho(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function go(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function ga(e,t=!0,o=!0){t?e=go(e,".",/\./g):e=e.replace(/\./g,""),o?e=go(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ma(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ze(e,o))return!0}):t.indexOf(e)}function pa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Ze(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function $t(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function mo(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function ke(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const ya=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},be=Symbol.for("BroadcastKey");class Fn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):uo(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function Kt(e,t,o,n){const r=new Fn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function ba(e,t,o){const n=o;if(n[be])return n[be];const r=l.inject(be,null),a=new Fn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[be]=a,l.provide(be,a),l.onUnmounted(()=>{a.destroy(),n[be]=void 0}),a}function Ct(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[be]??l.inject(be,null):l.inject(be,null)}const ut=e=>e.default??e;class va{error(t,o){const n=o,r=o||l.hasInjectionContext()?Ct(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?Ct(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?Ct(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?Ct(n):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Nt=new va;function wa(e){Nt=e}function Sa(e){Nt?Object.assign(Nt,e):Nt=e}function xa(e,t){ut(at).setValidator(e,t)}function Ta(e){ut(at).deleteValidator(e)}let po=["blur","clear"];function $a(e){po=e}function yo(){return po}let bo=["focus","change","setValue"];function Ca(e){bo=e}function vo(){return bo}function Na(e){ut(at).messages(e)}function Et(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Wt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const ze=Symbol("ValidateSchemaKey");class wo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Wt(Et(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Wt(n);const r=Et(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=Nt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ut(at).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ut(at).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ut(at).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=Et(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Wt(t):this.rules=Wt([t]);const n=Et(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=Et(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=ut(at),u=new s(r),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let v="error";Array.isArray(d.errors)&&d.errors.length>0&&(v=d.errors[0].message??v,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(v)}return d}).catch(d=>{const v=d.message??`${d}`;return this.error(v),d})}}return Promise.resolve({pass:!0})}}function Yt(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new wo(t,o,e)}const Gt=Symbol.for("EventEmitterKey");class So{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function kt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function xo(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Ea(e,t){const o=kt((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function ka(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Ut(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Me=Symbol("DomainKey"),gt=Symbol("DataItemsKey");class Xt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const Ia=new Xt;function mt(){return Ia}function Je(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Me]??l.inject(Me,null):l.inject(Me,null)}const Dn=Symbol("OriginalDateKey");function Rn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Me,null);i===null&&(i=mt());const s=e||t.prop||t.name;let u=new Xt(s);u.parent=i;const f=V=>{a[Dn]||v(V),u?.set("modelValue",V)},c=()=>u?.getForSelf("modelValue")??null,d=()=>a[Dn]??null,v=V=>{const p={};it(!0,p,l.toRaw(V)),a[Dn]=p};if(l.isReactive(t)||typeof t=="function"?l.watch(t,V=>{u?.merge(V,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&v(t.modelValue),a[Me]=u,l.provide(Me,u),r!==null){const V=l.inject(be,null),p=Kt(a,V,s,n);u.broadcast=p,a[be]=p,l.provide(be,p),a.broadcast=(T,w,...N)=>Reflect.apply(p.emit,p,[T,w,...N]);const h=l.inject(ze,null),g=Yt(a,h,{componentName:""});u.validateSchema=g,a[ze]=g,l.provide(ze,g),a[gt]=new Map,a.validate=(T=!0)=>{const w=[];let N=null;const z={deep:!1};if(T===!0)N={name:"*"};else if(Array.isArray(T)&&T.length>0){const B=T;N={name:_=>_?B.indexOf(_)!==-1:!1}}else if(T!=null&&typeof T=="object"){const B=T;if(Object.assign(z,B),Array.isArray(B.include)&&B.include.length>0){const _=B.include;N={name:F=>F?_.indexOf(F)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const _=B.exclude;N={name:F=>F?_.indexOf(F)===-1:!1}}else N={name:"*"}}if(N){const B=p?.emitToChildren(N,"validate",z);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let _=[];return B.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(_=[..._,...F.errors])}),_.length>0?{pass:!1,errors:_}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,w=!0,N=!1)=>{if(N===!0){Reflect.ownKeys(T).forEach(B=>{let _=String(B);const F={componentName:"",fieldName:_,pureDataValidate:!0};if(u){const L=Co(u,_,F,p,g);a[gt].set(_,L);const E=T[_];E&&L.validateSchema.setRule(E)}});return}if(w){const z=Reflect.ownKeys(T),B={name:_=>z.includes(_)};p?.emitToChildren(B,"setNameValidateRules",T,!1)}},a.clearValidate=(T=!0)=>{let w=null;if(T===!0)w={name:"*"};else if(Array.isArray(T)&&T.length>0){const N=T;w={name:z=>z?N.indexOf(z)!==-1:!1}}else if(T!=null&&typeof T=="object"){const N=T;if(Array.isArray(N.include)&&N.include.length>0){const z=N.include;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const z=N.exclude;w={name:B=>B?z.indexOf(B)===-1:!1}}else w={name:"*"}}w&&p?.emitToChildren(w,"clearValidate",!1)},a.resetFields=T=>{const w=c();if(!w)return;const N={};if(it(!0,N,d()??{}),Array.isArray(T))T.forEach(z=>{w[z]=N[z]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(B=>{w[B]=N[B]});else if(T&&Array.isArray(T.exclude)){let z=T.exclude??[];Reflect.ownKeys(N).forEach(B=>{z.includes(B)||(w[B]=N[B])})}else Object.assign(w,N);a.clearValidate(T)},a.setModelValue=(T,w)=>{!w||w===s?f(T):p?.emitToChildren({name:w},"setModelValue",T)},a.getModelValue=()=>c()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[ze]=void 0,l.provide(ze,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[be]=void 0,l.provide(be,null)),u?.destroy(),a[Me]=void 0,l.provide(Me,null),a[gt]&&(a[gt].clear(),a[gt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function To(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Me,null);a===null&&(a=mt());const i=e||t.prop||t.name;let s=new Xt(i);return s.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(t,o),r[Me]=s,l.provide(Me,s),l.onUnmounted(()=>{s?.destroy(),r[Me]=void 0,l.provide(Me,null),s=null,r=null}),s}function $o(e,t,o){const r=Je(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function $e(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(be,null);let s=Kt(r,i,a,o);r[be]=s,l.provide(be,s),r.broadcast=(p,h,...g)=>s?Reflect.apply(s.emit,s,[p,h,...g]):null;const u=l.inject(ze,null);e.fieldName=e.fieldName??a;let f=Yt(r,u,e);r[ze]=f,l.provide(ze,f),$o(r,f,a),r.validate=(p=null)=>{if(!f)return Promise.resolve({pass:!0});const h=[];let g=!1,T=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)T=!0,g=!0;else if(p&&typeof p=="object"){const w=p,N=w.ignoreDisabled??!0,z=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;N===!0&&e.disabled===!0||z===!0&&e.readonly===!0||B===!0&&Ht(r.$el)?T=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),T=!0),g=w.deep??!1}else typeof p=="boolean"&&(g=p),T=!0;if(T){const w=f?.validate();h.push(w)}if(g){let w=null;const N={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const z=p;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(p!=null&&typeof p=="object"){const z=p;if(Object.assign(N,z),Array.isArray(z.include)&&z.include.length>0){const B=z.include;w={name:_=>_?B.indexOf(_)!==-1:!1}}else if(Array.isArray(z.exclude)&&z.exclude.length>0){const B=z.exclude;w={name:_=>_?B.indexOf(_)===-1:!1}}else w={name:"*"}}if(w&&s){const z=s.emitToChildren(w,"validate",N);Reflect.apply([].push,h,z)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let N=[];return w.forEach(z=>{z.pass===!1&&Array.isArray(z.errors)&&(N=[...N,...z.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>f?.setRule(p),r.setNameValidateRules=(p,h=!1)=>{const g=p[a];if(g&&f?.setRule(g),h&&s){const T={name:w=>Reflect.ownKeys(p).includes(w)};s.emitToChildren(T,"setNameValidateRules",p,!1)}},r.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(p===!0)h={name:"*"};else if(Array.isArray(p)&&p.length>0){const g=p;h={name:T=>T?g.indexOf(T)!==-1:!1}}else if(p!=null&&typeof p=="object"){const g=p;if(Array.isArray(g.include)&&g.include.length>0){const T=g.include;h={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;h={name:w=>w?T.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let c=new So(r);r[Gt]=c;const d=kt((p="validate")=>{f&&(p==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:yo()).forEach(p=>{c&&c.on(p,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:vo()).forEach(p=>{c&&c.on(p,h=>{d("reset")})}),l.onUnmounted(()=>{s?.destroy(),r[be]=void 0,l.provide(be,null),s=null,f?.destroy(),r[ze]=void 0,l.provide(ze,null),f=null,c?.destroy(),r[Gt]=void 0,c=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:f,emitEvent:(p,...h)=>{c&&Reflect.apply(c.emit,c,[p,...h])},onEvent:(p,h)=>{c&&Reflect.apply(c.on,c,[h])},offEvent:(p,h)=>{c&&Reflect.apply(c.off,c,[h])}}}function Co(e,t,o,n,r){const a={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};let u=Yt({},r,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let v=!1,V=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)V=!0,v=!0;else if(c&&typeof c=="object"){const p=c;Array.isArray(p.include)&&p.include.indexOf(i)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(i),V=!0,v=p.deep??!1}else typeof c=="boolean"&&(v=c),V=!0;if(V&&u){const p=u.validate();d.push(p)}if(v){let p=null;const h={deep:!1};if(c===!0)p={name:"*"};else if(Array.isArray(c)&&c.length>0){const g=c;p={name:T=>T?g.indexOf(T)!==-1:!1}}else if(c!=null&&typeof c=="object"){const g=c;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const T=g.include;p={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;p={name:w=>w?T.indexOf(w)===-1:!1}}else p={name:"*"}}if(p&&f){const g=f.emitToChildren(p,"validate",h);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(p=>{let h=[];return p.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};let f=Kt(null,n,i,a);return l.onUnmounted(()=>{u=null,f=null}),{broadcast:f,validateSchema:u}}function No(){let t=l.getCurrentInstance()?.proxy,o=new So(t);return t[Gt]=o,l.onUnmounted(()=>{o?.destroy(),t[Gt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ie=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,t)}px`:"";function he(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(st){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const nt="PageStateKey";function We(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=he(e.top)),e.left!==null&&e.left!==void 0&&(t.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=he(e.right))),t}function An(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=he(o.headerHeight??t.headerHeight??-1),e.headerPadding=We(o.headerPadding??t.headerPadding),e.footerHeight=he(o.footerHeight??t.footerHeight??-1),e.footerPadding=We(o.footerPadding??t.footerPadding),e.contentPadding=We(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=he(u,a):e.height=he(a)-he(i,a)-he(s,a),e.width=he(o.width??t.width??0,r)}}function Eo(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=he(r.top),n.safeAreaBottom=he(r.bottom),n.safeAreaLeft=he(r.left),n.safeAreaRight=he(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;An(n,a,t,!0,i,s,u,f);const c=l.reactive(n),d=e.getForParent(nt);d&&(n.height=Jt(e,d),n.width=Qt(e,d),l.watch([()=>Jt(e,d),()=>Qt(e,d)],([V,p])=>{c.height=V,c.width=p}));const v=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([V,p,h=-1,g=-1,T=0,w=0])=>{An(c,p,t,v,h,g,T,w)}),e.set(nt,c),c}function Zt(e){return e.get(nt)}function It(e,t){if(t=t??e.get(nt),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Ot(e,t){if(t=t??e.get(nt),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Jt(e,t){if(t=t??e.get(nt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=It(e,t),n=Ot(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Qt(e,t){return t=t??e.get(nt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Oa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Va(e){return!!e.getForParent(nt)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function Ln(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ve(e,t,o=1,n){const r=Je();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Ln(u,n))return u}const i=e.value;return Ln(i,n)?i:null}):l.computed(()=>{const a=e.value;return Ln(a,n)?a:r?.get(t)})}function Fe(e){return Ve(e,"readonly",0,function(o){return se(o)})}function De(e){return Ve(e,"disabled",0,function(o){return se(o)})}function ge(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,n&&n("setValue",u))}else s!==i.value&&(i.value=s,n&&n("setValue",s))}),i}const ko=new Map,en=new Map;let Mn=null;function Fa(e){Mn=e}function Io(e,t,o){if(o){let n=en.get(o);n||(n=new Map,en.set(o,n)),n.set(e,t)}else ko.set(e,t)}function He(e,t,o){!o&&Mn&&(o=Mn(e)??void 0);let n=null;if(o){let r=en.get(o);r&&(n=r.get(t))}return n||(n=ko.get(t)),n}function Da(e,t){for(let o in e){const n=e[o];Io(o,n,t)}}function Ra(e){en.delete(e)}function Aa(){return{top:0,left:0,bottom:0,right:0}}function La(e=0,t=0){if(st){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-he(e,n)-he(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Ma(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Ba{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=Ma(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=mt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=xo(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=it({},Aa(),t.safeAreaInset),i=La(n,r),s=it({},i.pageLayout,t.pageLayout);o=o??mt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Fa(t)}setAPI(t,o,n){Io(t,o,n)}getAPI(t,o,n){return He(t,o,n)}batchSetAPI(t,o){Da(t,o)}clearScopeAPI(t){Ra(t)}getRootDomain(){return mt()}}const _a=[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],qa=[b.ElInfiniteScroll,b.ElLoading,b.ElMessage,b.ElMessageBox,b.ElNotification,b.ElPopoverDirective],Pa=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);_a.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),qa.forEach(r=>{e.use(r)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Ce(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const xe={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Oe={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}},Oo={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}},Vo={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Fo=[];for(const e in Vo)Fo.push(e);const ja=Symbol.for("InnerPageScopeKey"),za={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}},Ha=(e,t)=>({inheritAttrs:!0,props:{...xe,...Oo,...za},setup(o,{slots:n}){const r=Rn(o.name,o),a=l.inject(ja,!1);if(r){const c=Eo(r,o);Ce({getPageContentHeight:()=>Jt(r,c),getPageContentWidth:()=>Qt(r,c),getPageHeaderHeight:()=>It(r,c),getPageFooterHeight:()=>Ot(r,c)}),c&&a&&(c.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),f=(c,d=!1)=>{const v=u?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(c,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([c,d],[v,V])=>{if(c&&v){const p=l.toRaw(v),h=l.toRaw(c),g=h?Reflect.ownKeys(h):[];(p?Reflect.ownKeys(p):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),f(h)}if(d&&V){const p=l.toRaw(V),h=l.toRaw(d),g=h?Reflect.ownKeys(h):[];(p?Reflect.ownKeys(p):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),f(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const c=l.toRaw(o.rules);f(c)}if(o.pureDataRules){const c=l.toRaw(o.pureDataRules);f(c,!0)}}),()=>{const c={class:i.value,style:s.value};return l.h("div",c,[n?.default?.()])}}}),{componentName:Ka,create:Wa,scope:kh}=ie("page"),Bn=Wa(Ha(Ka));function tn(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function _n(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Ya=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=Je(),s=i?Zt(i):null;s&&(s.headerMounted=!0);const u=e,f=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),c=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?he(r.height):null,v=l.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const x=We(r.padding??s.headerPadding);return Object.assign(k,x),d&&(s.headerHeight=d),s.headerHeight>0&&(k.height=s.headerHeight),k.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(x.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(d&&(k.height=d),r.padding){const x=We(r.padding);Object.assign(k,x)}return k}),V=l.ref(null),p=()=>{if(s&&V.value&&!Ht(V.value)){if(!n){const k=tn(V.value);s.headerAllHeight=k.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(Ut(p,50,5,50,!0),window.ResizeObserver&&V.value&&(h=new window.ResizeObserver(()=>{p()}),h.observe(V.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=l.computed(()=>{const k={};return v.value.height!==null&&v.value.height!==void 0&&(k.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(k.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(k.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(k.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(k.paddingBottom=`${v.value.bottom}px`),k}),T=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function w(){a.emit("back")}function N(){a.emit("click-title")}function z(){a.emit("click-right")}function B(){a.emit("click-right-text")}const _=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const x=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(x)}else if(r.leftIcon){const x=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);k.push(x)}if(r.leftText){const x=l.h("view",{class:"left-text",onClick:w},[r.leftText]);k.push(x)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__left"},k)},F=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const x=l.h("view",{class:"right-text",onClick:B},[r.rightText]);k.push(x)}if(a.slots.rightIcon){const x=l.h("view",{class:"right-icon",onClick:z},[a.slots.rightIcon()]);k.push(x)}else if(r.rightIcon){const x=l.h("view",{class:"right-icon",onClick:z},[l.h(r.rightIcon)]);k.push(x)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__right"},k)},L=()=>{if(!r.titleShow)return null;const k=[],x=a.slots.default?a.slots.default():null;if(x)k.push(x);else{if(r.title){const j=l.h("view",{class:"title-text"},[r.title]);k.push(j)}if(a.slots.titleIcon){const j=l.h("view",{class:"title-icon",onClick:N},[a.slots.titleIcon()]);k.push(j)}else if(r.titleIcon){const j=l.h("view",{class:"title-icon",onClick:N},[l.h(r.titleIcon)]);k.push(j)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__title"},k)},E=()=>{const k=[],x=a.slots.bottom?a.slots.bottom():null;return x&&k.push(x),k.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!T.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const j=[],C=_();C&&j.push(C);const I=L();I&&j.push(I);const R=F();if(R&&j.push(R),j.length>0){const Y=l.h("view",{class:c.value},j);k.push(Y)}const G=E();G&&k.push(G)}if(k.length===0)return null;const x={class:f.value,style:g.value,ref:V};return l.h("view",x,k)}}}),{componentName:Ga,create:Ua,scope:Xa}=ie("header-bar"),qn=Ua(Ya(Ga,Xa,Ne.ArrowLeft));function Za(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=Je(),i=a?Zt(a):null,s=l.computed(()=>{const p=e;return{[p]:!0,[`${p}--${n.align}`]:!0,[`${p}--border`]:n.border,[`${p}--fixed`]:n.fixed,[`${p}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?he(n.height):null,f=l.computed(()=>{const p={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=We(n.padding??i.footerPadding);return Object.assign(p,h),u&&(i.footerHeight=u),i.footerHeight>0&&(p.height=i.footerHeight),p.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,p.safeAreaBottom>0&&(p.bottom=p.safeAreaBottom+(h.bottom??0),p.height&&p.height>0&&(p.height=p.height+p.safeAreaBottom)),p}if(u&&(p.height=u),n.padding){const h=We(n.padding);Object.assign(p,h)}return p}),c=l.ref(null),d=()=>{if(i&&c.value&&!Ht(c.value)){if(!o){const p=tn(c.value);i.footerAllHeight=p.height}return i.footerMounted=!0,!0}return!1};let v=null;l.onMounted(()=>{i&&(Ut(d,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{d()}),v.observe(c.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const V=l.computed(()=>{const p={};return f.value.height!==null&&f.value.height!==void 0&&(p.height=Ie(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(p.paddingTop=Ie(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(p.paddingLeft=Ie(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(p.paddingRight=Ie(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(p.paddingBottom=Ie(f.value.bottom)),p});return()=>{const p=r.slots.default?r.slots.default():[],h={ref:c,class:s.value,style:V.value};return l.h("view",h,p)}}}}const{componentName:Ja,create:Qa,scope:Ih}=ie("footer-bar"),Pn=Qa(Za(Ja));function ei(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Je(),r=l.computed(()=>({[e]:!0})),a=n?Zt(n):null,i=l.computed(()=>{const f={};if(n&&a){if(o.padding){const V=We(o.padding);Object.assign(a.contentPadding,V)}const c=It(n,a),d=Ot(n,a);let v="";if(a.contentHeight?v=`${a.contentHeight}`:v=`${a.height}px`,a.contentPadding,f.height=v,a.contentPadding.top||c>0){const V=(a&&a.contentPadding&&a.contentPadding.top)??0;f.paddingTop=`${c+V}px`}if(a.contentPadding.bottom||d>0){const V=(a&&a.contentPadding&&a.contentPadding.bottom)??0;f.paddingBottom=`${d+V}px`}return a.contentPadding.left&&(f.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(f.paddingRight=`${a.contentPadding.right}px`),f}if(o.padding){const c=We(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=l.ref(null),u=()=>{if(a&&s.value){const f=_n(s.value);a.contentInnerHeight=f.height,a.contentInnerWidth=f.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>It(n),()=>Ot(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:ti,create:ni,scope:Oh}=ie("content"),li=ni(ei(ti));function oi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const je=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},jn=je(li,[["render",oi]]),pt="GroupStateKey",Do=Symbol.for("GroupScopeKey");function nn(){return l.inject(Do,!1)}function ln(e=!0){l.provide(Do,e)}function ri(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Vn(r)||(e[n]=r)})}function ai(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ri(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(pt,a),a}function zn(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(pt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),a||(a=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=he(a),d=he(i);s||(s=f.type??"grid");const v=()=>{const V=t===""||t===-1,p=he(t);let h=Se(o);const g=he(n);if(!V){let N=(p-(h-1)*g)/h;for(;d!==-1&&N>d;)h++,N=(p-(h-1)*g)/h;for(;c!==-1&&h>1&&N<c;)h--,N=(p-(h-1)*g)/h}let T=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,T=!0),w.value.gutter!==g&&(w.value.gutter=g,T=!0),w.value.type!==s&&(w.value.type=s,T=!0),T&&l.triggerRef(w)};if(r)v();else{const V=++u.passport;setTimeout(()=>{V===u.passport&&v()},50)}}function on(e,t=!1){let o;return t?o=e.getForParent(pt):o=e.get(pt),o.layout}function rn(e,t=!1){let o;return t?o=e.getForParent(pt):o=e.get(pt),o.order}function Ro(e,t=1){if(t==="stretch")return-1;const o=Se(t);return o===-1?100:100*o/e}function an(e,t,o=1,n=0,r){const a={};let i=0;r?i=he(r):i=Ro(t.column,o),i>0&&(a.width=`${i}%`);const s=Ro(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function sn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let r=Se(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=Se(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Ao=Symbol("RollingStateKey");function ii(e){l.provide(Ao,e)}function si(){return l.inject(Ao,null)}function Hn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function ui(e){let t=Hn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=Hn(o),document.body.removeChild(o)}return t}function ci(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const fi={...xe,...Oo,...Vo};function di(e,t,o){return{props:fi,emits:["update:collapse","header-click"],setup(n,r){const a=Rn(n.name,n,Fo),i=ai(a,{type:n.type}),s=nn();ln(!0);const u=n.rollingDisplay?si():null,f=l.ref(null),c=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?on(a,!0).value:null),v=l.getCurrentInstance(),V=(H,J=!1)=>{const ne=v?.proxy;ne&&typeof ne.setNameValidateRules=="function"&&ne.setNameValidateRules(H,!0,J)};l.watch([()=>n.rules,()=>n.pureDataRules],([H,J],[ne,$])=>{if(H&&ne){const W=l.toRaw(ne),ee=l.toRaw(H),le=ee?Reflect.ownKeys(ee):[];(W?Reflect.ownKeys(W):[]).forEach(fe=>{le.includes(fe)||(ee[fe]=[])}),V(ee)}if(J&&$){const W=l.toRaw($),ee=l.toRaw(J),le=ee?Reflect.ownKeys(ee):[];(W?Reflect.ownKeys(W):[]).forEach(fe=>{le.includes(fe)||(ee[fe]=[])}),V(ee,!0)}},{deep:!0});const p=e,h=l.computed(()=>{const H={};H.height=R.value;const J=s?rn(a,!0):null;if(d.value&&J){if(d.value.type==="grid"){const ne=sn(J,d.value,n.span,n.offset);Object.assign(H,ne)}else if(d.value.type==="flow"){const ne=an(J,d.value,n.span,n.offset,n.width);Object.assign(H,ne)}}else if(n.width){const ne=Ie(n.width);H.width=ne}return H}),g=l.computed(()=>{const H=i.layout.value.type;return H==="grid"||H==="flow"?{[`${p}--${H}`]:!0,[`${p}--${H}-justify-${n.justify}`]:!0,[`${p}--${H}-align-${n.align}`]:!0,[`${p}--gutter`]:!0}:{[`${p}--${H}`]:!0,[`${p}--gutter`]:!0}}),T=l.computed(()=>{if(i.layout.value.type==="grid"){let J="";if(n.columnWidth)J=`repeat(auto-fill, ${n.columnWidth})`;else{const ne=ci(L.value,i.layout.value.column,i.layout.value.gutter);J=`repeat(${i.layout.value.column}, ${ne})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":J}}}),w=l.toRef(n,"gutter"),N=l.toRef(n,"column"),z=l.computed(()=>s||c.value?!0:se(n.isWrap)),B=[],_=H=>{B.push(H)},F=()=>{let H=B.length;B.splice(0,H)},L=l.ref(-1),E=H=>{const J=_n(H).width;J>0&&J!==L.value&&(L.value=J)};zn(a,L.value,N.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([L,N,w],([H,J,ne])=>{i.order.index=0,zn(a,H,J,ne,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=l.computed(()=>G.value?n.expandText??"":n.collapseText??""),x=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),j=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!G.value,"is-collapse":G.value})),C=l.ref(),I=l.ref(),R=l.computed(()=>Y.value||Ie(n.height)||""),G=l.ref(!1),Y=l.ref(""),Z=l.ref(!1);let X=-1;const te=(H,J=!0)=>{const ne=C.value;if(ne&&G.value!==H){if(X=X===-1?ui(ne):X,Z.value=!0,J)if(ne.style["will-change"]="height",ne.ontransitionend=function(){ne.ontransitionend=null,this.style["will-change"]="auto",H||(Y.value="",Z.value=!1)},H){let $=0;n.collapseHeight?$=n.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&($=I.value.offsetHeight),Y.value=`${X}px`,l.nextTick(()=>{Y.value=`${$}px`})}else Y.value=`${X}px`;else if(H){let $=0;n.collapseHeight?$=n.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&($=I.value.offsetHeight),Y.value=`${$}px`}else Z.value=!1,Y.value=`${X}px`;G.value=H,r.emit("update:collapse",H)}};l.watch(()=>n.collapse,H=>{te(H)});const oe=H=>{r.emit("header-click",H)},O=()=>{S()},S=H=>{H=H??!G.value,te(H)};Ce({toggleCollapse:S,doLayout:()=>{B[0]&&(E(B[0]),zn(a,L.value,N.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let D=null,y=!0;const K=H=>{if(n.rules){const J=l.toRaw(n.rules);V(J)}if(n.pureDataRules){const J=l.toRaw(n.pureDataRules);V(J,!0)}if(st&&(H&&te(se(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const J=B[0];E(J),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{E(J)}),D.observe(J))}},P=()=>{D?.disconnect(),D=null},q=!c.value||u?.acquire();q&&(f.value=c.value?!0:null),l.onMounted(()=>{if(q&&(K(y),y=!1),c.value&&u){let H=null,J=u.initialHeight;u.observe(C.value,ne=>{if(ne!==f.value)if(ne)f.value=!0,G.value||(Y.value=""),H=setTimeout(()=>{H=null,f.value!==!1&&(K(y),y=!1)},100);else{if(H!==null&&clearTimeout(H),f.value=!1,!G.value)if(y)Y.value=u.initialHeight;else{let $=Hn(C.value);$<=0?Y.value=J:(Y.value=`${$}px`,J=Y.value)}y||P()}})}}),l.onUnmounted(()=>{D?.disconnect(),u&&u.unobserve(C.value)});const M=(H="right")=>{const J=[];if(k.value){const W={class:x.value},ee=l.h("span",W,[k.value]);J.push(ee)}const ne={class:j.value},$=o(n.collapseIcon,ne);return $&&J.push($),J.length>0?l.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:O},J):null},U=(H,J,ne,$)=>{const W={...g.value};return J===0&&(W[`${p}__first`]=!0),ne>=$-1&&(W[`${p}__last`]=!0),l.h("div",{ref:_,key:`${J}`,class:W,style:T.value},H)};return()=>{if(c.value&&f.value!==!0){const W=n.tag||"div";return l.h(W,{ref:C,prop:n.name,class:{[`${p}`]:!0,"is-collapse":Z.value},style:h.value},[])}i.order.index=0;const H=[];let J=0;if(r.slots.header){const W={key:`${J++}`,ref:I,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:oe},ee=l.h("div",W,[r.slots.header()]);H.push(ee)}else{const W=[],ee=n.collapsePosition==="left";if(ee&&n.showCollapse){const le=M("left");le&&W.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${p}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const de=l.h("div",le);W.push(de)}if(r.slots.title){const le=l.h("div",{class:{[`${p}__header-title`]:!0}},[r.slots.title()]);W.push(le)}else if(n.title){const le=l.h("div",{class:{[`${p}__header-title`]:!0}},[n.title]);W.push(le)}}if(r.slots.toolbar&&W.push(r.slots.toolbar()),!ee&&n.showCollapse){const le=M("right");le&&W.push(le)}if(W.length>0){const le={key:`${J++}`,ref:I,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:oe},de=l.h("div",le,W);H.push(de)}}F();const ne=r.slots.default?r.slots.default():[],$=i.layout.value.type;if($==="grid"){const W=U(ne,J++,0,ne.length);H.push(W)}else if($==="flow"){const W=U(ne,J++,0,ne.length);H.push(W)}else for(let W=0;W<ne.length;W++){const ee=ne[W],le=U([ee],J++,W,ne.length);H.push(le)}if(z.value){const W=n.tag||"div";return l.h(W,{ref:C,prop:n.name,class:{[`${p}`]:!0,"is-collapse":Z.value},style:h.value},[H])}else return H}}}}const{componentName:hi,create:gi,scope:mi}=ie("group"),Kn=gi(di(hi,mi,(e,t)=>(e=e??Ne.ArrowUp,l.h(b.ElIcon,t,{default:()=>[l.h(e)]}))));function pi(e){return e===window}const yi=/matrix\((.+)\)/,Lo=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(pi(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:f}=window.getComputedStyle(r);if(f){const c=yi.exec(f);if(c){let v=c[1].split(/\s*,\s*/);v.length==6&&(s+=Number(v[4]),u+=Number(v[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class bi{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class vi{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new bi,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Mo=new vi,Bo={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:wi,create:Si}=ie("price"),xi=Si({props:{...Bo},setup(e){const t=l.computed(()=>({[wi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>$t(e.price)==0?"":Pt(e.price,e.decimalLength,!0,Se(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),Ti=["innerHTML"],$i=["innerHTML"];function Ci(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ti)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,$i)):l.createCommentVNode("",!0)],2)}const un=je(xi,[["render",Ci]]),{componentName:Wn,create:Ni}=ie("hint-text"),Ei=Ni({components:{Price:un},props:{...Bo,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),s=l.ref(!1),u=l.ref(null),f=(x,j,C,I,R,G)=>{const Y=document.documentElement.clientWidth||document.body.clientWidth,Z=document.documentElement.clientHeight||document.body.clientHeight,X=x.split("-");let te=[];X[0]==="top"?te=["top","bottom","right","left"]:X[0]==="bottom"?te=["bottom","top","right","left"]:X[0]==="left"?te=["left","top","bottom","right"]:X[0]==="right"&&(te=["right","top","bottom","left"]);const oe={top:null,right:null,bottom:null,left:null},O=[];for(let S=0;S<te.length;S++){const A=te[S];if(O[0]=A,X[1]&&(O[1]=X[1]),A==="top"){const D=j.y-G-e.arrowSize-e.offset;if(D>=0){oe.top=D;let y=0;X[1]==="start"?y=j.x:X[1]==="end"?y=j.x+C-R:y=j.x+C/2-R/2;const K=Y-y-R;K<0?(y+=K,d.value=-K):d.value=0,oe.left=y<0?0:y;break}}else if(A==="bottom"){const D=j.y+I+e.arrowSize+e.offset;if(D+G<=Z){oe.top=D;let y=0;X[1]==="start"?y=j.x:X[1]==="end"?y=j.x+C-R:y=j.x+C/2-R/2;const K=Y-y-R;K<0?(y+=K,d.value=-K):d.value=0,oe.left=y<0?0:y;break}}else if(A==="left"){const D=j.x-R-e.arrowSize-e.offset;if(D>=0){oe.left=D;let y=0;X[1]==="start"?y=j.y:X[1]==="end"?y=j.y+I-G:y=j.y+I/2-G/2,oe.top=y<0?0:y;break}}else if(A==="right"){const D=j.x+C+e.arrowSize+e.offset;if(D+R<=Y){oe.left=D;let y=0;X[1]==="start"?y=j.y:X[1]==="end"?y=j.y+I-G:y=j.y+I/2-G/2,oe.top=y<0?0:y;break}}}return{bestPlacement:O.join("-"),bestInsetRect:oe}},c=(x,j,C=10)=>{if(!st||j===!1||!x)return;n.value=Lo(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const I=u.value.offsetHeight,R=u.value.offsetWidth,{bestPlacement:G,bestInsetRect:Y}=f(e.placement,n.value,r.value,a.value,R,I);i.value=G,o.value=Y,s.value=!0},d=l.ref(0),v=kt(()=>{c(e.message,e.visible)},10),V=l.ref(e.visible);l.watch(()=>e.visible,x=>{V.value=x});const p=l.computed(()=>V.value&&h.value),h=l.ref(!0),g=kt(x=>{const j=x[0];j&&(h.value=j.isIntersecting)},10),T=new IntersectionObserver(g);l.watch([()=>e.message,()=>e.visible],([x,j])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),Mo.watch(e.reference,v),T.observe(e.reference)}),l.onBeforeMount(()=>{Mo.unwatch(e.reference,v),T.unobserve(e.reference),T.disconnect()});const w=l.computed(()=>{const x={[Wn]:!0};return i.value.startsWith("top")?x["is-top"]=!0:i.value.startsWith("right")?x["is-right"]=!0:i.value.startsWith("bottom")?x["is-bottom"]=!0:i.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),N=l.computed(()=>{const x={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${r.value}px`);const j=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${j}px`,s.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),z=l.computed(()=>{const x=[`${Wn}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),B=l.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),_=l.computed(()=>({[`${Wn}__arrow`]:!0})),F=l.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,i.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),L=l.computed(()=>p.value&&e.closeOnClick),E=l.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:p,tipRef:u,classes:w,styles:N,textClasses:z,textStyles:B,arrowClasses:_,arrowStyles:F,overlayShow:L,overlayStyle:E,onClickOverlay:()=>{V.value=!1,t.emit("update:visible",!1)}}}}),ki=["innerHTML"];function Ii(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,ki))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Vt=je(Ei,[["render",Ii]]);class _o{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const Yn={},Oi=new _o,yt=new Map,cn=e=>{if(e){const t=document.getElementById(e);yt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of yt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}yt.clear()}},Vi=e=>{e.unmount=cn;const t=document.getElementById(e.id);if(t){const o=yt.get(e.id);o?e={...Yn,...o,...e}:e={...Yn,...e},e.transition=!1;const n=l.createVNode(Vt,e);return l.render(n,t),e.id}},Fi=e=>{e.unmount=cn;let t=e.id??`hinttext_${Oi.get()}`;e={...Yn,...e},e.id=t,yt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Vt,e);return l.render(n,o),document.body.appendChild(o),t},Di=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Re={show(e,t,o={},n=!0){Di(t);const r=o.id;return r&&yt.has(r)?Vi({...o,message:t,reference:e}):(n&&cn(),Fi({...o,message:t,reference:e}))},hide(e){cn(e)},install(e){e.config.globalProperties.$hintText=Re}};function Ri(e,t,o,n=!1){return{inheritAttrs:!0,props:{...xe,...Oe},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;$e({componentName:e,validate:!1},i);const s=Je(),u=nn();ln(!1);const f=l.computed(()=>u&&s?on(s,!1).value:null),c=e,d=l.ref(null),v=l.computed(()=>{const $={[c]:!0,[`${c}__gutter`]:f.value&&f.value.type!=="flow",[`${c}__stretch`]:r.span==="stretch",[`${c}__input--border`]:se(r.hasBorder)};if($[r.errorMarkClass]=!!G.value,$[r.warnMarkClass]=!!I.value,$[r.infoMarkClass]=!!j.value,typeof d.value=="function"){const W=d.value(i);$[W]=!0}else if(typeof d.value=="string"){const W=d.value;$[W]=!0}return $}),V=l.ref(null),p=l.computed(()=>{const $={};if(r.width)r.width!=="auto"&&($.width=Ie(r.width));else{const W=u&&s?rn(s,!1):null;if(f.value&&W){if(f.value.type==="grid"){const ee=sn(W,f.value,r.span,r.offset);Object.assign($,ee)}else if(f.value.type==="flow"){const ee=an(W,f.value,r.span,r.offset,r.width);Object.assign($,ee)}}}if(typeof V.value=="function"){const W=V.value(i);W&&Object.assign($,W)}else if(V.value&&typeof V.value=="object"){const W=V.value;Object.assign($,W)}return $}),h=l.ref(null),g=l.computed({get:()=>h.value??se(r.isRequired),set:$=>{h.value=$}}),T=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Ve(l.toRef(r,"labelPosition"),"labelPosition",_e.Near),N=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),z=l.computed(()=>({[`${c}__main`]:!0,[`${c}__main--${N.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${N.value}`]:!0})),_=Ve(l.toRef(r,"labelWidth"),"labelWidth",_e.Near),F=l.computed(()=>_&&_.value?{width:Ie(_.value)}:{}),L=l.computed(()=>({"label--string":!0,"label--required":g.value})),E=l.computed(()=>({content:!0,[r.contentClass]:!0})),k=l.computed(()=>({...r.contentStyle})),x=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ce({setRequired($){g.value=$},setErrorTip($){x.errorTip=$},setErrorIcon($){x.errorIcon=$},setWarnTip($){x.warnTip=$},setWarnIcon($){x.warnIcon=$},setInfoTip($){x.infoTip=$},setInfoIcon($){x.infoIcon=$},setCustomClassName($){d.value=$},setCustomStyle($){V.value=$}});const j=l.computed(()=>r.infoTip||x.infoTip),C=l.computed(()=>r.infoIcon||x.infoIcon),I=l.computed(()=>r.warnTip||x.warnTip),R=l.computed(()=>r.warnIcon||x.warnIcon),G=l.computed(()=>r.errorTip||x.errorTip),Y=l.computed(()=>r.errorIcon||x.errorIcon),Z=l.computed(()=>G.value?"error":I.value?"warn":j.value?"info":""),X=()=>Z.value.length>0,te=l.computed(()=>Z.value==="error"?G.value:Z.value==="warn"?I.value:Z.value==="info"?j.value:""),oe=l.computed(()=>Z.value==="error"?Y.value:Z.value==="warn"?R.value:Z.value==="info"?C.value:null),O=l.computed(()=>{const $={[`${c}__tip`]:!0,[`${c}__tip--${Z.value}`]:!0,[`${c}--animate`]:!0};return Z.value==="error"&&r.errorClass?$[`${r.errorClass}`]=!0:Z.value==="warn"&&r.warnClass?$[`${r.warnClass}`]=!0:Z.value==="info"&&r.infoClass&&($[`${r.infoClass}`]=!0),$}),S=l.computed(()=>{const $={};return w&&w.value==="top"||!T()?$["padding-left"]="0px":_&&_.value&&($["padding-left"]=Ie(_.value)),$}),A=l.ref();let D="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([$,W,ee,le])=>{A.value&&($&&!pe(W)?D?o.show(A.value,W,{...le,id:D,type:ee},!0):D=o.show(A.value,W,{...le,type:ee},!0):o.hide(D))});let y=null;const K=()=>{y||!A.value||(y=new IntersectionObserver($=>{let W=!1;for(let ee of $)if(ee.intersectionRatio>0){W=!0,W&&a.emit("appear",ee);break}W||a.emit("disappear")}),y.observe(A.value))},P=()=>{!y||!A.value||(y.unobserve(A.value),y=null)};l.watch(()=>se(r.appearListen),$=>{$?K():P()}),l.onMounted(()=>{se(r.appearListen)&&K()}),l.onUnmounted(P);const q=()=>{if(!T())return null;const $=[],W=a.slots?.label?.()??r.label,ee={class:L.value},le=l.h("div",ee,[W]);if($.push(le),a.slots.fixedPreTip){const fe=a.slots.fixedPreTip();$.push(fe)}const de={class:B.value,style:F.value};return l.h("div",de,$)},M=()=>{const $=[];if(a.slots.prepend){const ee=a.slots.prepend();$.push(ee)}if(a.slots.default){const ee=a.slots.default();$.push(ee)}if(a.slots.append){const ee=a.slots.append();$.push(ee)}if(a.slots.fixedTip){const ee={class:[`${c}__fixed-tip`]},le=l.h("div",ee,[a.slots.fixedTip()]);$.push(le)}const W={ref:A,class:E.value,style:k.value};return l.h("div",W,$)},U=()=>{const $=oe.value;return $?typeof $=="function"?l.h("div",{class:"fox-item__tip--icon"},[$()]):l.h("div",{class:"fox-item__tip--icon"},[l.h($)]):null},H=()=>{const $=te.value;return $?typeof $=="function"?l.h("div",{class:"fox-item__tip--text"},[$()]):l.h("div",{class:"fox-item__tip--text"},[$]):null},J=()=>{if(!X())return null;const $=[],W=U();W&&$.push(W);const ee=H();ee&&$.push(ee);const le={class:O.value,style:S.value};return l.h("div",le,$)},ne=()=>a.slots?.hide?.()??null;return()=>{const $=[],W=[],ee=q();ee&&W.push(ee);const le=M();le&&W.push(le);const de={class:z.value},fe=l.h("div",de,W);$.push(fe);const ve=J();ve&&$.push(ve);const Ue=ne();Ue&&$.push(Ue);const Pe={class:v.value,style:p.value,prop:r.prop};return l.h("div",Pe,$)}}}}const{componentName:Ai,create:Li,scope:Mi}=ie("item"),Te=Li(Ri(Ai,Mi,Re,!1));function Bi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=Je(),a=nn();ln(!1);const i=l.computed(()=>a&&r?on(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=l.computed(()=>{const c={},d=a&&r?rn(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const v=sn(d,i.value,o.span,o.offset);Object.assign(c,v)}else if(i.value.type==="flow"){const v=an(d,i.value,o.span,o.offset,o.width);Object.assign(c,v)}else return o.width&&(c.width=Ie(o.width)),c;else o.width&&(c.width=Ie(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:_i,create:qi,scope:Fh}=ie("slot-item"),Gn=qi(Bi(_i));function Pi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=Je(),s=nn();ln(!1);const u=l.computed(()=>{const f={};if(s&&i){const c=on(i,!1),d=rn(i,!1);if(c.value&&d)if(c.value.type==="grid"){const v=sn(d,c.value,o.span,o.offset);Object.assign(f,v)}else if(c.value.type==="flow"){const v=an(d,c.value,o.span,o.offset,o.width);Object.assign(f,v)}else o.width&&(f.width=Ie(o.width))}else o.width&&(f.width=Ie(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let v=0;v<d.length;v++){if(v>0){const V=l.h("div",{class:{[`${r}__divide`]:!0}});f.push(V)}f.push(d[v])}else Reflect.apply([].push,f,d)}const c={class:a.value,style:u.value};return l.h("div",c,f)}}}}const{componentName:ji,create:zi,scope:Dh}=ie("row-item"),Un=zi(Pi(ji)),Ye=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},qo={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 Hi(e,t,o){return{props:{...xe,...Oe,...qo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0,[`${v}__disabled`]:a.value,[`${v}__readonly`]:i.value})),p=C=>{d.value=C,s("update:modelValue",C),s("input",C)},h=C=>{s("change",C)};let g=ge(n,"hintText"),T=l.ref(!1);const w=C=>{let R=C.target.value;c.value=!0,pe(g.value)||(T.value=!0),s("focus",R,C)},N=C=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let R=C.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,C)},z=()=>{s("clear","")},B=l.ref(!1);let _=null;const F=()=>{n.showTooltip&&B.value===!1&&(_&&clearTimeout(_),_=setTimeout(()=>{B.value=!0},150))},L=()=>{_&&(clearTimeout(_),B.value=!1,_=null)},E=l.computed(()=>B.value||T.value),k=l.computed(()=>B.value?d.value:g.value),x=l.computed(()=>$t(n.unit)>0),j=l.ref();return Ce({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const I={...Ye(r.attrs),ref:j,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:z,onChange:h,onInput:p,onFocus:w,onBlur:N,onMouseover:F,onMouseleave:L},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:x.value&&(R.suffix=()=>[n.unit]);const G=[],Y=l.h(b.ElInput,I,R);G.push(Y);const Z={default:()=>G};r.slots.default&&(Z.label=r.slots.default),r.slots.default&&(Z.fixedTip=r.slots.fixedTip);const te={...ke(n,qo),hintText:k.value,hintVisible:E.value,prop:`${n.prop}_item`};return l.h(o,te,Z)}}}}const{componentName:Ki,create:Wi,scope:Yi}=ie("input-item"),Xn=Wi(Hi(Ki,Yi,Te));function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Po(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Gi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Ui=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Xi(){const e=l.getCurrentInstance();return new Ui(e.proxy)}function jo(e,t,o){const n=lt(e,t),r=lt(e,o);if(n!==r)return!1;const a=Ft(e,t),i=Ft(e,o);return a===i}function zo(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=Po(e,i);if(Array.isArray(s)&&s.length>0){const u=zo(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=lt(e,i)===a;else if(o==="item")u=jo(e,i,a);else{let f=Ft(e,i);f==null&&(f=lt(e,i)),u=f===a}if(u){r.push(i);break}}}}),r}function Zi(e){return{text:e,value:e}}const Ho={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Ji(e,t,o){return{props:{...xe,...Oe,...Ho},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(U=>lt(n,U)).join(" "):""),V=(M,U,H,J=!0)=>{const ne=zo(n,M,U,H);if(ne===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],J&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let $=!0;if(ne.length!==d.value.length)$=!1;else for(let W=0;W<ne.length;W++){const ee=ne[W],le=d.value[W];if(!jo(n,ee,le)){$=!1;break}}if(!$){d.value=ne;let W=[],ee=[],le=[];ne.forEach(Ue=>{const Pe=Ft(n,Ue),dt=lt(n,Ue);W.push(Pe),le.push(dt),n.valueType==="text"?ee.push(dt):n.valueType==="item"?ee.push(Ue):ee.push(Pe)});let de,fe,ve;se(n.multiple)?(c.value=W,de=l.toRaw(ee),fe=le,ve=l.toRaw(ne)):(c.value=W[0]??"",de=l.toRaw(ee[0]??""),fe=le[0]??"",ve=l.toRaw(ne[0])),J&&(s("update:modelValue",de),s("change",de,ve)),s("update:text",fe)}},p=l.ref(null),h=l.ref(null),g=l.computed(()=>h.value??p.value??[]),T=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,M=>se(M)),w=Xi(),N=async(M,U)=>{if(M){const H=await w.load("select",M,U);if(H.length>0)if(typeof H[0]=="string"){let $=H.map(W=>Zi(W));p.value=$}else p.value=H;else p.value=null}};l.watch([()=>n.source,()=>n.params],([M,U])=>{h.value=null,N(M,U)},{immediate:!T.value});let z=!1;const B=()=>{z||(z=!0,N(n.source,n.params))};l.watch([()=>p.value,()=>n.modelValue],([M,U])=>{if(E()&&se(n.multiple)){Ze(U,c.value)||(c.value=U);return}V(U,n.valueType,g.value,!1),s("setValue",U)});let _=null,F=l.ref(!1);typeof n.remoteMethod=="function"&&(_=async M=>{if(M==null){h.value=null;return}F.value=!0;try{const U=await n.remoteMethod(M);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}F.value=!1});let L=null;typeof n.filterMethod=="function"&&(L=async M=>{if(M==null){h.value=null;return}F.value=!0;try{const U=await n.filterMethod(M,p.value);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}F.value=!1});const E=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=l.ref(!1),x=e,j=l.computed(()=>({[x]:!0})),C=M=>{n.allowCreate||E()&&se(n.multiple)?(s("update:modelValue",M),s("change",M),s("update:text",M),c.value=M):V(M,"value",g.value,!0)};let I=ge(n,"hintText"),R=l.ref(!1);const G=M=>{let H=M.target.value;k.value=!0,pe(I.value)||(R.value=!0),s("focus",H,M)},Y=M=>{setTimeout(()=>{R.value&&(R.value=!1),k.value=!1},0);let H=M.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),D.value||s("blur",H,M)},Z=()=>{s("clear","")},X=l.ref(!1);let te=null;const oe=()=>{n.showTooltip&&X.value===!1&&(te&&clearTimeout(te),te=setTimeout(()=>{X.value=!0},150))},O=()=>{te&&(clearTimeout(te),X.value=!1,te=null)},S=l.computed(()=>X.value||R.value),A=l.computed(()=>X.value?v.value:I.value),D=l.ref(!1),y=M=>{D.value=M,s("visible-change",M),M||s("selected")},K=M=>{s("remove-tag",M)},P=(M,U)=>{const H=[];return M.forEach((J,ne)=>{const $=Po(n,J);if(Array.isArray($)&&$.length>0){const W=P($,U),ee=lt(n,J),de={key:`${ee}_${ne}`,label:ee};H.push(l.h(b.ElOptionGroup,de,{default:()=>W}))}else{const W=Ft(n,J),ee=lt(n,J),le=Gi(n,J),fe={key:`${W}_${ne}`,label:ee,disabled:le,value:W};if(typeof U=="function")H.push(l.h(b.ElOption,fe,{default:()=>U(J)}));else if(n.optionType==="item"){const ve={class:{"fox-select-item__option-left":!0}},Ue=l.h("span",ve,[W]),Pe={class:{"fox-select-item__option-right":!0}},dt=l.h("span",Pe,[ee]),Hl=l.h("div",{class:{"fox-select-item__option":!0}},[Ue,dt]);H.push(l.h(b.ElOption,fe,{default:()=>Hl}))}else n.optionType==="value"?H.push(l.h(b.ElOption,fe,{default:()=>[W]})):H.push(l.h(b.ElOption,fe))}}),H},q=l.ref();return Ce({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const U={...Ye(r.attrs),ref:q,class:j.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:Z,onChange:C,onFocus:G,onBlur:Y,onVisibleChange:y,onRemoveTag:K};typeof _=="function"&&(U["remote-method"]=_,U.loading=F.value),typeof L=="function"&&(U["filter-method"]=L,U.loading=F.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>P(g.value,r.slots.option);const J=[],ne=l.h(b.ElSelect,U,H);J.push(ne);const $={default:()=>J};r.slots.default&&($.label=r.slots.default),r.slots.fixedTip&&($.fixedTip=r.slots.fixedTip);const ee={...ke(n,Ho),hintText:A.value,hintVisible:S.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:oe,onMouseleave:O};return T.value&&(ee["appear-listen"]=!0,ee.onAppear=B),l.h(o,ee,$)}}}}const{componentName:Qi,create:es,scope:ts}=ie("select-item"),Zn=es(Ji(Qi,ts,Te));var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",v="quarter",V="year",p="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},N=function(C,I,R){var G=String(C);return!G||G.length>=I?C:""+Array(I+1-G.length).join(R)+C},z={s:N,z:function(C){var I=-C.utcOffset(),R=Math.abs(I),G=Math.floor(R/60),Y=R%60;return(I<=0?"+":"-")+N(G,2,"0")+":"+N(Y,2,"0")},m:function C(I,R){if(I.date()<R.date())return-C(R,I);var G=12*(R.year()-I.year())+(R.month()-I.month()),Y=I.clone().add(G,d),Z=R-Y<0,X=I.clone().add(G+(Z?-1:1),d);return+(-(G+(R-Y)/(Z?Y-X:X-Y))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:V,w:c,d:f,D:p,h:u,m:s,s:i,ms:a,Q:v}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},B="en",_={};_[B]=w;var F=function(C){return C instanceof x},L=function C(I,R,G){var Y;if(!I)return B;if(typeof I=="string"){var Z=I.toLowerCase();_[Z]&&(Y=Z),R&&(_[Z]=R,Y=Z);var X=I.split("-");if(!Y&&X.length>1)return C(X[0])}else{var te=I.name;_[te]=I,Y=te}return!G&&Y&&(B=Y),Y||!G&&B},E=function(C,I){if(F(C))return C.clone();var R=typeof I=="object"?I:{};return R.date=C,R.args=arguments,new x(R)},k=z;k.l=L,k.i=F,k.w=function(C,I){return E(C,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var x=function(){function C(R){this.$L=L(R.locale,null,!0),this.parse(R)}var I=C.prototype;return I.parse=function(R){this.$d=function(G){var Y=G.date,Z=G.utc;if(Y===null)return new Date(NaN);if(k.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var X=Y.match(g);if(X){var te=X[2]-1||0,oe=(X[7]||"0").substring(0,3);return Z?new Date(Date.UTC(X[1],te,X[3]||1,X[4]||0,X[5]||0,X[6]||0,oe)):new Date(X[1],te,X[3]||1,X[4]||0,X[5]||0,X[6]||0,oe)}}return new Date(Y)}(R),this.$x=R.x||{},this.init()},I.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},I.$utils=function(){return k},I.isValid=function(){return this.$d.toString()!==h},I.isSame=function(R,G){var Y=E(R);return this.startOf(G)<=Y&&Y<=this.endOf(G)},I.isAfter=function(R,G){return E(R)<this.startOf(G)},I.isBefore=function(R,G){return this.endOf(G)<E(R)},I.$g=function(R,G,Y){return k.u(R)?this[G]:this.set(Y,R)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(R,G){var Y=this,Z=!!k.u(G)||G,X=k.p(R),te=function(P,q){var M=k.w(Y.$u?Date.UTC(Y.$y,q,P):new Date(Y.$y,q,P),Y);return Z?M:M.endOf(f)},oe=function(P,q){return k.w(Y.toDate()[P].apply(Y.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(q)),Y)},O=this.$W,S=this.$M,A=this.$D,D="set"+(this.$u?"UTC":"");switch(X){case V:return Z?te(1,0):te(31,11);case d:return Z?te(1,S):te(0,S+1);case c:var y=this.$locale().weekStart||0,K=(O<y?O+7:O)-y;return te(Z?A-K:A+(6-K),S);case f:case p:return oe(D+"Hours",0);case u:return oe(D+"Minutes",1);case s:return oe(D+"Seconds",2);case i:return oe(D+"Milliseconds",3);default:return this.clone()}},I.endOf=function(R){return this.startOf(R,!1)},I.$set=function(R,G){var Y,Z=k.p(R),X="set"+(this.$u?"UTC":""),te=(Y={},Y[f]=X+"Date",Y[p]=X+"Date",Y[d]=X+"Month",Y[V]=X+"FullYear",Y[u]=X+"Hours",Y[s]=X+"Minutes",Y[i]=X+"Seconds",Y[a]=X+"Milliseconds",Y)[Z],oe=Z===f?this.$D+(G-this.$W):G;if(Z===d||Z===V){var O=this.clone().set(p,1);O.$d[te](oe),O.init(),this.$d=O.set(p,Math.min(this.$D,O.daysInMonth())).$d}else te&&this.$d[te](oe);return this.init(),this},I.set=function(R,G){return this.clone().$set(R,G)},I.get=function(R){return this[k.p(R)]()},I.add=function(R,G){var Y,Z=this;R=Number(R);var X=k.p(G),te=function(S){var A=E(Z);return k.w(A.date(A.date()+Math.round(S*R)),Z)};if(X===d)return this.set(d,this.$M+R);if(X===V)return this.set(V,this.$y+R);if(X===f)return te(1);if(X===c)return te(7);var oe=(Y={},Y[s]=n,Y[u]=r,Y[i]=o,Y)[X]||1,O=this.$d.getTime()+R*oe;return k.w(O,this)},I.subtract=function(R,G){return this.add(-1*R,G)},I.format=function(R){var G=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||h;var Z=R||"YYYY-MM-DDTHH:mm:ssZ",X=k.z(this),te=this.$H,oe=this.$m,O=this.$M,S=Y.weekdays,A=Y.months,D=function(q,M,U,H){return q&&(q[M]||q(G,Z))||U[M].slice(0,H)},y=function(q){return k.s(te%12||12,q,"0")},K=Y.meridiem||function(q,M,U){var H=q<12?"AM":"PM";return U?H.toLowerCase():H},P={YY:String(this.$y).slice(-2),YYYY:this.$y,M:O+1,MM:k.s(O+1,2,"0"),MMM:D(Y.monthsShort,O,A,3),MMMM:D(A,O),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:D(Y.weekdaysMin,this.$W,S,2),ddd:D(Y.weekdaysShort,this.$W,S,3),dddd:S[this.$W],H:String(te),HH:k.s(te,2,"0"),h:y(1),hh:y(2),a:K(te,oe,!0),A:K(te,oe,!1),m:String(oe),mm:k.s(oe,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:X};return Z.replace(T,function(q,M){return M||P[q]||X.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(R,G,Y){var Z,X=k.p(G),te=E(R),oe=(te.utcOffset()-this.utcOffset())*n,O=this-te,S=k.m(this,te);return S=(Z={},Z[V]=S/12,Z[d]=S,Z[v]=S/3,Z[c]=(O-oe)/6048e5,Z[f]=(O-oe)/864e5,Z[u]=O/r,Z[s]=O/n,Z[i]=O/o,Z)[X]||O,Y?S:k.a(S)},I.daysInMonth=function(){return this.endOf(d).$D},I.$locale=function(){return _[this.$L]},I.locale=function(R,G){if(!R)return this.$L;var Y=this.clone(),Z=L(R,G,!0);return Z&&(Y.$L=Z),Y},I.clone=function(){return k.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},C}(),j=x.prototype;return E.prototype=j,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",V],["$D",p]].forEach(function(C){j[C[1]]=function(I){return this.$g(I,C[0],C[1])}}),E.extend=function(C,I){return C.$i||(C(I,x,E),C.$i=!0),E},E.locale=L,E.isDayjs=F,E.unix=function(C){return E(1e3*C)},E.en=_[B],E.Ls=_,E.p={},E})})(Ko);var ns=Ko.exports;const Ge=et(ns);var Wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(g){this[h]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var T=g.match(/([+-]|\d\d)/g),w=60*T[1]+(+T[2]||0);return w===0?0:T[0]==="+"?-w:w}(h)}],d=function(h){var g=s[h];return g&&(g.indexOf?g:g.s.concat(g.f))},v=function(h,g){var T,w=s.meridiem;if(w){for(var N=1;N<=24;N+=1)if(h.indexOf(w(N,0,g))>-1){T=N>12;break}}else T=h===(g?"pm":"PM");return T},V={A:[i,function(h){this.afternoon=v(h,!1)}],a:[i,function(h){this.afternoon=v(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[r,f("day")],Do:[i,function(h){var g=s.ordinal,T=h.match(/\d+/);if(this.day=T[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,f("month")],MM:[r,f("month")],MMM:[i,function(h){var g=d("months"),T=(d("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[i,function(h){var g=d("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function p(h){var g,T;g=h,T=s&&s.formats;for(var w=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,k,x){var j=x&&x.toUpperCase();return k||T[x]||o[x]||T[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,I,R){return I||R.slice(1)})})).match(n),N=w.length,z=0;z<N;z+=1){var B=w[z],_=V[B],F=_&&_[0],L=_&&_[1];w[z]=L?{regex:F,parser:L}:B.replace(/^\[|\]$/g,"")}return function(E){for(var k={},x=0,j=0;x<N;x+=1){var C=w[x];if(typeof C=="string")j+=C.length;else{var I=C.regex,R=C.parser,G=E.slice(j),Y=I.exec(G)[0];R.call(k,Y),E=E.replace(Y,"")}}return function(Z){var X=Z.afternoon;if(X!==void 0){var te=Z.hours;X?te<12&&(Z.hours+=12):te===12&&(Z.hours=0),delete Z.afternoon}}(k),k}}return function(h,g,T){T.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=g.prototype,N=w.parse;w.parse=function(z){var B=z.date,_=z.utc,F=z.args;this.$u=_;var L=F[1];if(typeof L=="string"){var E=F[2]===!0,k=F[3]===!0,x=E||k,j=F[2];k&&(j=F[2]),s=this.$locale(),!E&&j&&(s=T.Ls[j]),this.$d=function(G,Y,Z){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*G);var X=p(Y)(G),te=X.year,oe=X.month,O=X.day,S=X.hours,A=X.minutes,D=X.seconds,y=X.milliseconds,K=X.zone,P=new Date,q=O||(te||oe?1:P.getDate()),M=te||P.getFullYear(),U=0;te&&!oe||(U=oe>0?oe-1:P.getMonth());var H=S||0,J=A||0,ne=D||0,$=y||0;return K?new Date(Date.UTC(M,U,q,H,J,ne,$+60*K.offset*1e3)):Z?new Date(Date.UTC(M,U,q,H,J,ne,$)):new Date(M,U,q,H,J,ne,$)}catch{return new Date("")}}(B,L,_),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),x&&B!=this.format(L)&&(this.$d=new Date("")),s={}}else if(L instanceof Array)for(var C=L.length,I=1;I<=C;I+=1){F[1]=L[I-1];var R=T.apply(this,F);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}I===C&&(this.$d=new Date(""))}else N.call(this,z)}}})})(Wo);var ls=Wo.exports;const os=et(ls);var Yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},a.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(v){switch(v){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),v==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),v==="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 v}});return i.bind(this)(d)}}})})(Yo);var rs=Yo.exports;const as=et(rs);var Go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,v,V,p,h){var g=d.name?d:d.$locale(),T=i(g[v]),w=i(g[V]),N=T||w.map(function(B){return B.slice(0,p)});if(!h)return N;var z=g.weekStart;return N.map(function(B,_){return N[(_+(z||0))%7]})},u=function(){return r.Ls[r.locale()]},f=function(d,v){return d.formats[v]||function(V){return V.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,h,g){return h||g.slice(1)})}(d.formats[v.toUpperCase()])},c=function(){var d=this;return{months:function(v){return v?v.format("MMMM"):s(d,"months")},monthsShort:function(v){return v?v.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):s(d,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return f(d.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(v){return f(d,v)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Go);var is=Go.exports;const ss=et(is);var Uo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){var o="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var v=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),V=this.diff(v,o,!0);return V<0?i(this).startOf("week").week():Math.ceil(V)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Uo);var us=Uo.exports;const cs=et(us);var Xo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Xo);var fs=Xo.exports;const ds=et(fs);var Zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Zo);var hs=Zo.exports;const gs=et(hs);var Jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Jo);var ms=Jo.exports;const ps=et(ms);var Qo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Qo);var ys=Qo.exports;const bs=et(ys);Ge.extend(ss),Ge.extend(as),Ge.extend(os),Ge.extend(cs),Ge.extend(ds),Ge.extend(gs),Ge.extend(ps),Ge.extend(bs);const qe={format(e,t){return Ge(e).format(t)},parser(e,t){return Ge(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,f=a+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,f=a+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=qe.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=qe.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},er={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"}},tr={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 vs(e,t,o){return{props:{...xe,...Oe,...er,...tr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=l.computed(()=>R.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),V=l.computed(()=>R.value?"longTermKey":"normalKey"),p=q=>{if(R.value&&n.type==="daterange"){const M=[...d.value];M[0]=q,d.value=M}else d.value=q;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>R.value&&n.type==="daterange"?"date":n.type),g=e,T=l.computed(()=>({[`${g}`]:!0,"is-long":R.value,"is-readonly":i.value,"is-disabled":a.value}));let w=ge(n,"hintText"),N=l.ref(!1);const z=q=>{let U=q.target.value;c.value=!0,pe(w.value)||(N.value=!0),s("focus",U,q)},B=q=>{setTimeout(()=>{N.value&&(N.value=!1),c.value=!1},0);let U=q.target.value;n.maxLength&&U.length>Number(n.maxLength)&&(U=U.slice(0,Number(n.maxLength))),s("blur",U,q)},_=()=>{s("clear","")},F=q=>{s("calendar-change",q)},L=(q,M,U)=>{s("panel-change",q,M,U)},E=q=>{s("visible-change",q)},k=Ve(l.computed(()=>n.longTermText),"longTermText",_e.Near),x=Ve(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",_e.Near),j=Ve(l.computed(()=>n.longTermValue),"longTermValue",_e.Near),C=Ve(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let I=null;const R=l.ref(se(n.longTerm)),G=q=>{if(R.value=q,s("update:longTerm",q),q){if(I=d.value,n.type==="daterange"){const M=[];Array.isArray(j.value)?(M[0]=d.value?d.value[0]??j.value[0]:null,M[1]=j.value[1]??j.value[0]):(M[0]=d.value?d.value[0]??j.value:null,M[1]=R.value),M[0]||(M[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=M}else Array.isArray(j.value)?d.value=j.value[1]??j.value[0]:d.value=j.value,d.value||(d.value=n.valueFormat?qe.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const M=[];M[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(I)?M[1]=I[1]:M[1]=I,M[0]||(M[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=M}else d.value=I;s("update:modelValue",d.value),setTimeout(()=>{K()},100)}},Y=se(n.isLongTerm);if(Y){const q=()=>{if(R.value===!0){if(I=d.value,n.type==="daterange"){const M=[d.value[0]];Array.isArray(j.value)?M[1]=j.value[1]??j.value[0]:M[1]=R.value,M[0]||(M[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=M}else d.value=j.value;s("update:modelValue",d.value)}else Ze(j.value,d.value)&&(R.value=!0)};q(),l.watch([()=>n.longTerm],([M])=>{R.value!==M&&q()}),l.watch([()=>d.value],([M])=>{let U=!1;if(n.type==="daterange"&&Array.isArray(M))try{let H=M[1];if(!H)return;typeof H!="string"&&n.valueFormat&&(H=qe.format(H,n.valueFormat));let J=Array.isArray(j.value)?j.value[1]:j.value;(H===J||Array.isArray(C.value)&&C.value.findIndex($=>H==$)!==-1)&&(U=!0)}catch(H){console.error(H)}R.value!==U&&(R.value=U)},{immediate:!0})}const Z=l.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),X=l.ref(),te=l.ref(),oe=/^\d+$/,O=(q,M)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(q,M):oe.test(q)&&q.length===n.flashFillThreshold,S=(q,M)=>{let U;if(typeof n.flashFillFormat=="function")U=n.flashFillFormat(q,M);else{const J=n.flashFillFormat??"YYYYMMDD";U=qe.parser(q,J)}const H=n.valueFormat??"YYYY-MM-DD";return qe.format(U,H)},A=q=>q?q.endsWith("range"):!1,D=q=>{if(!q.target)return;const M=q.target.value??"";if(O(M,n.type)){const U=S(M,n.type);if(A(n.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[0]=U,p(H)}else p(U)}},y=q=>{if(!q.target)return;const M=q.target.value??"";if(O(M,n.type)){const U=S(M,n.type);if(A(n.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[1]=U,p(H)}else p(U)}},K=()=>{if(n.flashFill&&X.value&&X.value.$el)if(A(n.type)){const q=X.value.$el.querySelectorAll("input.el-range-input");q[0]&&q[0].addEventListener("input",D),q[1]&&q[1].addEventListener("input",y)}else{const q=X.value.$el.querySelector("input.el-input__inner");q&&q.addEventListener("input",D)}},P=()=>{if(n.flashFill&&X.value&&X.value.$el)if(A(n.type)){const q=X.value.$el.querySelectorAll("input.el-range-input");q[0]&&q[0].removeEventListener("input",D),q[1]&&q[1].removeEventListener("input",y)}else{const q=X.value.$el.querySelector("input.el-input__inner");q&&q.removeEventListener("input",D)}};return l.onMounted(K),l.onBeforeUnmount(P),Ce({focus:()=>{te?.value.focus()},blur:()=>{te?.value.blur()},handleOpen:()=>{te?.value.handleOpen()},handleClose:()=>{te?.value.handleClose()}}),()=>{const M={...r.attrs,key:V.value,type:h.value,ref:te,class:T.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:v.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":p,onClear:_,onFocus:z,onBlur:B,onCalendarChange:F,onPanelChange:L,onVisibleChange:E},U={};r.slots["range-separator"]&&(U["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(U.default=r.slots.cell);const H=[],J=l.h(b.ElDatePicker,M,U);H.push(J);const ne={default:()=>H};if(r.slots.default&&(ne.label=r.slots.default),r.slots.fixedTip&&(ne.fixedTip=r.slots.fixedTip),Y){if(R.value){const le=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),de=l.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),fe={class:Z.value},ve=l.h("div",fe,{default:()=>[le,de]});H.push(ve)}if(!i.value&&!a.value){const le={label:x.value||k.value,disabled:i.value||a.value,modelValue:R.value,"onUpdate:modelValue":G},de=l.h(b.ElCheckbox,le),fe=l.h("div",{class:{[`${g}__append`]:!0}},[de]);ne.append=()=>fe}}const W={...ke(n,er,tr),ref:X,class:{[`${g}__wrapper`]:!0,"has-append":Y},hintText:w.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,W,ne)}}}}const{componentName:ws,create:Ss,scope:xs}=ie("date-item"),Jn=Ss(vs(ws,xs,Te)),nr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ts(e,t,o){return{props:{...xe,...Oe,...nr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0})),p=_=>{d.value=_,s("update:modelValue",_),s("change",_)};let h=ge(n,"hintText"),g=l.ref(!1);const T=_=>{let L=_.target.value;c.value=!0,pe(h.value)||(g.value=!0),s("focus",L,_)},w=_=>{setTimeout(()=>{g.value&&(g.value=!1),c.value=!1},0);let L=_.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),s("blur",L,_)},N=()=>{s("clear","")},z=_=>{s("visible-change",_)},B=l.ref();return Ce({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const F={...r.attrs,ref:B,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":p,onClear:N,onFocus:T,onBlur:w,onVisibleChange:z},L={},E=[],k=l.h(b.ElTimePicker,F,L);E.push(k);const x={default:()=>E};r.slots.default&&(x.label=r.slots.default),r.slots.fixedTip&&(x.fixedTip=r.slots.fixedTip);const C={...ke(n,nr),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,C,x)}}}}const{componentName:$s,create:Cs,scope:Ns}=ie("time-item"),Qn=Cs(Ts($s,Ns,Te)),lr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Es(e,t,o){return{props:{...xe,...Oe,...lr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0})),p=B=>{d.value=B,s("update:modelValue",B),s("change",B)};let h=ge(n,"hintText"),g=l.ref(!1);const T=B=>{let F=B.target.value;c.value=!0,pe(h.value)||(g.value=!0),s("focus",F,B)},w=B=>{setTimeout(()=>{g.value&&(g.value=!1),c.value=!1},0);let F=B.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),s("blur",F,B)},N=()=>{s("clear","")},z=l.ref();return Ce({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},handleOpen:()=>{z?.value.handleOpen()},handleClose:()=>{z?.value.handleClose()}}),()=>{const _={...r.attrs,ref:z,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":p,onClear:N,onFocus:T,onBlur:w},F={},L=[],E=l.h(b.ElTimeSelect,_,F);L.push(E);const k={default:()=>L};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...ke(n,lr),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,j,k)}}}}const{componentName:ks,create:Is,scope:Os}=ie("time-select-item"),el=Is(Es(ks,Os,Te));function or(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function rr(e,t,o=20){if(typeof t=="string"&&(t=Se(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ql(`${e}`,`${t}`);return or(n)}else{let n=$n(`${e}`,eo(`${t}`),20);return or(n)}}function Vs(e,t=-1,o=!1,n=3,r=","){return Pt(e,t,o,n,r)}function ar(e,t,o,n,r=!0){if(e==="")return"";if(e=to(e),t=Se(t),t==1)return e;if(n)e=rr(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(Se(o)+2,"0"):e=$n(e,1,Se(o)));else{let a=-1*t;e=rr(e,a)}return e}function ir(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=Cn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=Cn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const 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,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Fs(e,t,o){return{props:{...xe,...Oe,...sr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),f=ge(n,"modelValue",null,s),c=l.ref("");l.watch([()=>f.value,()=>n.rates,()=>n.precision],([C,I,R])=>{if(pe(C)){c.value="";return}const G=ar(C,I,R,!1);c.value!==G&&(c.value=G)},{immediate:!0});const d=l.computed(()=>{let C="";return u.value&&(C=c.value),C}),{t:v}=Be.useFoxI18n(t),V=l.computed(()=>{let C=n.placeholder??"";return!u.value&&!pe(c.value)?C=Vs(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=v(["placeholder",C]),C}),p=e,h=l.computed(()=>({[p]:!0,[`${p}__disabled`]:a.value,[`${p}__placeholder`]:c.value.length>0})),g=Ve(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const T=l.ref(""),w=l.computed(()=>{let C=T.value;return pe(C)&&(C=n.errorTip??""),C}),N=l.ref(""),z=l.ref(!1),B=(C,I)=>{if(C=`${C}`,pe(C)){c.value="",f.value="",I.forEach(R=>{s(R,"")}),se(n.showTip)&&z.value&&(z.value=!1);return}if(C.length>=2){let R=C;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){l.triggerRef(c);return}}if(C!="-"){if(!co(C)){l.triggerRef(c);return}if(n.integerLength!=-1&&fo(C)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&ho(C)>Number(n.decimalLength)){l.triggerRef(c);return}let R=ir(C,n);if(R.maxValid===!1){T.value=R.message,l.triggerRef(c);return}}else if(n.min!=null&&Se(n.min)>=0){l.triggerRef(c);return}N.value=C,se(n.showTip)&&(z.value=C.length>0),c.value=C,f.value=ar(C,n.rates,n.precision,!0),I.forEach(R=>{s(R,f.value)})},_=C=>{B(C,["update:modelValue","input"])},F=C=>{B(C,["update:modelValue","change"])},L=C=>{if(u.value=!0,se(n.showTip)){let I=c.value;pe(I)&&(I=n.hintText),pe(I)||(N.value=I,z.value=!0)}T.value="",s("focus",f.value,C)},E=C=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&z.value===!0&&(z.value=!1)},0),!pe(c.value)){let I=ir(c.value,n);if(I.minValid===!1||I.maxValid===!1){T.value=I.message;return}}s("update:modelValue",f.value,C),s("blur",f.value,C)},k=()=>{s("clear","")},x=l.computed(()=>$t(n.unit)>0),j=l.ref();return Ce({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const I={...Ye(r.attrs),ref:j,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:V.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:_,onChange:F,onFocus:L,onBlur:E},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:x.value&&(R.suffix=()=>[n.unit]);const G=[],Y=l.h(b.ElInput,I,R);G.push(Y);const Z={default:()=>G};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const te={...ke(n,sr),errorTip:w.value,hintText:N.value,hintVisible:z.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,te,Z)}}}}const{componentName:Ds,create:Rs,scope:As}=ie("money-item"),tl=Rs(Fs(Ds,As,Te)),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 Ls(e,t,o){return{props:{...xe,...Oe,...ur},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0,[`${v}__append`]:_.value})),p=l.computed(()=>({[`${v}__unit`]:!0})),h=L=>{d.value=L,s("update:modelValue",L),s("input",L)},g=L=>{s("change",L)};let T=ge(n,"hintText"),w=l.ref(!1);const N=L=>{let k=L.target.value;c.value=!0,pe(T.value)||(w.value=!0),s("focus",k,L)},z=L=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let k=L.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,L)},B=()=>{s("clear","")},_=l.computed(()=>$t(n.unit)>0),F=l.ref();return Ce({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const E={...Ye(r.attrs),ref:F,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:g,onInput:h,onFocus:N,onBlur:z},k={},x=[],j=l.h(b.ElInputNumber,E,k);x.push(j);const C={default:()=>x};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const R={...ke(n,ur),hintText:T.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(_.value){const Y={class:p.value},Z=l.h("div",Y,[n.unit]);C.append=()=>Z}return l.h(o,R,C)}}}}const{componentName:Ms,create:Bs,scope:_s}=ie("input-number-item"),nl=Bs(Ls(Ms,_s,Te));function tt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ct(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function qs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ps=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=He(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function js(){const e=l.getCurrentInstance();return new Ps(e.proxy)}function ll(e,t,o){const n=tt(e,t),r=tt(e,o);if(n!==r)return!1;const a=ct(e,t),i=ct(e,o);return a===i}function cr(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=cr(e,s,o,n);r.push(u)}else{let u=!1;for(let f of a){if(o==="text")u=tt(e,f)===s;else if(o==="item")u=ll(e,f,s);else{let c=ct(e,f);c==null&&(c=tt(e,f)),u=c===s}if(u){r.push(f),a=qs(e,f);break}}if(!u)break}}return r}function zs(e){return{text:e,value:e}}const fr={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 Hs(e,t,o){return{props:{...xe,...Oe,...fr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(q=>Array.isArray(q)?q.map(U=>tt(n,U)).join(" "):tt(n,q)).join(" "):""),V=(P,q,M,U=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===P)return;c.value=P;const $=l.toRaw(P);if(U){const W=K?.value.getCheckedNodes();if(W)if(n.multiple){const ee=[];W.forEach(le=>{const fe=(le.pathNodes??[]).map(ve=>ve.data);ee.push(fe)}),s("update:pathNodes",ee)}else{const le=(W[0]?.pathNodes??[]).map(de=>de.data);s("update:pathNodes",le)}s("update:modelValue",$),s("change",$)}return}const H=cr(n,P,q,M);if(H===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,U&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const J=H[H.length-1];if(k.value.checkStrictly!==!0&&J&&!Array.isArray(J)&&Array.isArray(J.children)&&J.children.length>0){const $=[];H.forEach(W=>{const ee=`${tt(n,W)}`;$.push(ee)}),$.length>0&&(L.value=$.join(n.separator))}else L.value=null;let ne=!0;if(H.length!==d.value.length)ne=!1;else for(let $=0;$<H.length;$++){const W=H[$],ee=d.value[$];if(Array.isArray(W)){if(!Array.isArray(ee)||W.length!==ee.length)ne=!1;else for(let le=0;le<W.length;le++)if(!ll(n,W[le],ee[le])){ne=!1;break}}else ll(n,W,ee)||(ne=!1);if(!ne)break}if(!ne){d.value=H;let $=[],W=[];H.forEach(le=>{if(Array.isArray(le)){let de=[],fe=[];for(let ve of le)de.push(ct(n,ve)),n.valueType==="text"?fe.push(tt(n,ve)):n.valueType==="item"?fe.push(ve):fe.push(ct(n,ve));$.push(de),W.push(fe)}else $.push(ct(n,le)),n.valueType==="text"?W.push(tt(n,le)):n.valueType==="item"?W.push(le):W.push(ct(n,le))}),c.value=$;const ee=l.toRaw(W);U&&(s("update:pathNodes",H),s("update:modelValue",ee),s("change",ee))}},p=l.ref([]),h=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,P=>se(P)),g=js(),T=async(P,q)=>{if(P){const M=await g.load("cascader",P,q);if(M.length>0)if(typeof M[0]=="string"){let J=M.map(ne=>zs(ne));p.value=J}else p.value=M}};l.watch([()=>n.source,()=>n.params],async([P,q])=>{T(P,q)},{immediate:!(h.value||n.lazy)});let w=!1;const N=()=>{w||(w=!0,T(n.source,n.params))};l.watch([()=>p.value,()=>n.modelValue],([P,q])=>{V(q,n.valueType,P,!1),s("setValue",q)}),n.lazy&&V(n.modelValue,"value",[],!1);let z=null,B=l.ref(!1);typeof n.remoteMethod=="function"&&(z=async P=>{if(P!=null){B.value=!0;try{const q=await n.remoteMethod(P);p.value=q}catch(q){console.error(q)}B.value=!1}});const _=l.ref(!1),F=e,L=l.ref(null),E=l.computed(()=>({[F]:!0,"is-incomplete":L.value&&L.value.length>0})),k=l.computed(()=>{let P={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(P.multiple=!0),n.props&&Object.assign(P,n.props),n.lazy&&(P.lazy=!0,typeof n.lazyLoad=="function"?P.lazyLoad=n.lazyLoad:P.lazyLoad=async(q,M)=>{const U=await g.load("cascader",n.source,q,!0);if(q?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===q.level){const H=q.pathLabels??[];let J=[];H.forEach(ne=>{ne&&J.push(ne)}),J.length>0&&(L.value=J.join(n.separator))}else L.value=null;M(U)}),P}),x=P=>{n.allowCreate?(s("update:modelValue",P),s("change",P),c.value=P):V(P,"value",p.value,!0)};let j=ge(n,"hintText"),C=l.ref(!1);const I=P=>{let M=P.target.value;_.value=!0,pe(j.value)||(C.value=!0),s("focus",M,P)},R=P=>{setTimeout(()=>{C.value&&(C.value=!1),_.value=!1},0);let M=P.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),S.value||s("blur",M,P)},G=()=>{s("clear","")},Y=l.ref(!1);let Z=null;const X=()=>{n.showTooltip&&Y.value===!1&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{Y.value=!0},150))},te=()=>{Z&&(clearTimeout(Z),Y.value=!1,Z=null)},oe=l.computed(()=>Y.value||C.value),O=l.computed(()=>Y.value?v.value:j.value),S=l.ref(!1),A=P=>{S.value=P,s("visible-change",P),P||s("selected")},D=P=>{s("remove-tag",P)},y=P=>{s("expand-change",P)},K=l.ref();return Ce({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const q={...r.attrs,ref:K,class:E.value,props:k.value,clearable:n.clearable,placeholder:L.value||f.placeholder.value,disabled:a.value||i.value,options:p.value,modelValue:c.value,separator:n.separator,onClear:G,onChange:x,onFocus:I,onBlur:R,onVisibleChange:A,onRemoveTag:D,expandChange:y};typeof z=="function"&&(q["remote-method"]=z,q.loading=B.value);const M={};r.slots.option&&(M.default=r.slots.option),r.slots.empty&&(M.empty=r.slots.empty);const U=[],H=l.h(b.ElCascader,q,M);U.push(H);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const $={...ke(n,fr),hintText:O.value,hintVisible:oe.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:X,onMouseleave:te};return h.value&&!n.lazy&&($["appear-listen"]=!0,$.onAppear=N),l.h(o,$,J)}}}}const{componentName:Ks,create:Ws,scope:Ys}=ie("cascader-item"),ol=Ws(Hs(Ks,Ys,Te)),dr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Gs(e,t,o){return{props:{...xe,...Oe,...dr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0})),p=F=>{d.value=F,s("update:modelValue",F),s("input",F)},h=F=>{s("change",F)},g=F=>{s("select",F)};let T=ge(n,"hintText"),w=l.ref(!1);const N=F=>{let E=F.target.value;c.value=!0,pe(T.value)||(w.value=!0),s("focus",E,F)},z=F=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let E=F.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,F)},B=()=>{s("clear","")},_=l.ref();return Ce({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const L={...r.attrs,ref:_,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:B,onChange:h,onInput:p,onFocus:N,onBlur:z,onSelect:g},E={};r.slots.prepend&&(E.prepend=r.slots.prepend),r.slots.append&&(E.append=r.slots.append),r.slots.prefix&&(E.prefix=r.slots.prefix),r.slots.suffix&&(E.suffix=r.slots.suffix),r.slots.option&&(E.default=r.slots.option);const k=[],x=l.h(b.ElAutocomplete,L,E);k.push(x);const j={default:()=>k};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,dr),hintText:T.value,hintVisible:w.value,prop:`${n.prop}_item`};return l.h(o,I,j)}}}}const{componentName:Us,create:Xs,scope:Zs}=ie("autocomplete-item"),rl=Xs(Gs(Us,Zs,Te));function Js(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(v=>v[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let f=t[u],c=a[u];const d=f.find(v=>v[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(v=>v[n]===c);if(!d)break;i.push(d[o]),u=d[r]}}return i}let Qs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function eu(){const e=l.getCurrentInstance();return new Qs(e.proxy)}const hr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function tu(e,t){return{props:{...hr},setup(o,{attrs:n,slots:r}){const a=eu(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await a.load(o.sourceType,f,c)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=Js(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):l.h(u,f,{default:()=>s.value}):l.h(u,f,s.value)}}}}const{componentName:Rh,create:nu,scope:Ah}=ie("mapping"),Dt=nu(tu());function lu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function ou(e,t){return{props:{...hr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=lu(i.row,i.column.property);return r.default?l.h(Dt,{...o,modelValue:s},{default:r.default}):l.h(Dt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(b.ElTableColumn,{...n},a)}}}}const{componentName:Lh,create:ru,scope:Mh}=ie("table-mapping-column"),al=ru(ou()),au=Symbol.for("TableStateKey");function gr(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function iu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(au,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=gr(s.row,s.column.property),f=a?gr(a,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},v=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),V={class:{"el-radio":!0,"is-checked":c}};return l.h("label",V,[v])}};return l.h(b.ElTableColumn,{...n},i)}}}}const{componentName:Bh,create:su,scope:_h}=ie("table-radio-column"),il=su(iu()),uu={},cu={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"},fu=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function du(e,t){return l.openBlock(),l.createElementBlock("svg",cu,fu)}const hu=je(uu,[["render",du]]),{componentName:Ph,create:gu,scope:jh}=ie("table-setting"),mu={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:"不固定"}},pu=gu({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:hu,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...mu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed===""||y.fixed===!0||y.fixed==="left")),i=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed==="right")),s=l.computed(()=>r.value.filter(y=>!(y.label===""||y.type||y.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),f=l.computed(()=>a.value.length>0),c=l.computed(()=>i.value.length>0),d=y=>y.length>1,v=(y,K)=>{Array.isArray(y)&&Array.isArray(K)&&y.forEach(M=>{K.some(U=>U.prop===M.prop?(M.label=U.label,!0):!1)});const P=[];r.value=y.map((M,U)=>(!(M.label===""||M.type)&&M.visible!==!1&&P.push(M.prop),{...M,sortIndex:U})),s.value.length+a.value.length+i.value.length===P.length?w.value=!0:P.length>0&&(N.value=!0),_.value=P},V=y=>y?y.type?y.type:y.label?y.prop:"":"",p=(y,K)=>{if(y.length!==K.length)return!1;const P=y.map(q=>V(q));for(let q of K){const M=V(q);if(P.indexOf(M)===-1)return!1}return!0},h=y=>{if(!y){const K=e.tableRef.getColumnSetting(),P=K.srcColumnPropertyList;n=P.map((q,M)=>({...q,sortIndex:M})),y=K.columnPropertyList,y&&y.length>0&&p(P,y)||(y=P)}v(y,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},T=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),N=l.ref(!1),z=y=>{const K=[];r.value.forEach(q=>{y&&!(q.label===""||q.type)&&K.push(q.prop),q.visible=y}),w.value=!1,N.value=!1,s.value.length+a.value.length+i.value.length===K.length?w.value=!0:K.length>0&&(N.value=!0),_.value=K,g()},B=()=>{h(n),g()},_=l.ref([]),F=y=>{r.value.forEach(P=>{if(P.label===""||P.type)return;const q=y.indexOf(P.prop)!==-1;P.visible=q}),w.value=!1,N.value=!1;const K=s.value.length+a.value.length+i.value.length;y.length===K?w.value=!0:y.length>0&&(N.value=!0),g()},L=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const E={currentRow:null,index:null,roleType:null},k=y=>y?y.dataset&&y.dataset.role==="row"?y:y.tagName.toLowerCase()!=="body"?(y=y.parentElement,k(y)):null:null,x=y=>{const K=y.currentTarget;K&&K.dataset&&(E.roleType=K.dataset.roleType,E.index=K.dataset.index)},j=y=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},C=y=>{const K=y.currentTarget;y.relatedTarget;const P=k(K);if(!P)return;const q=P.dataset&&P.dataset.roleType;E.roleType===q&&(y.preventDefault(),E.currentRow&&E.currentRow!==P&&E.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),E.currentRow=P)},I=y=>{y.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},R=y=>{const K=y.currentTarget,P=k(K);if(!P)return;const q=P.dataset&&P.dataset.roleType;if(E.roleType!==q)return;y.preventDefault();const M=Number(E.index),U=Number(P.dataset.index);if(M!==U){if(M<U){const H=r.value[M];r.value.splice(M,1),r.value.splice(U,0,H)}else{const H=r.value[M];r.value.splice(M,1),r.value.splice(U+1,0,H)}v(r.value,n),g()}},G=y=>{const K=r.value[y];K.fixed="left",g()},Y=y=>{const K=r.value[y];K.fixed="right",g()},Z=y=>{const K=r.value[y];K.fixed=void 0,g()},X=new Map;let te=null;function oe(y){const K=document.createRange();return K.setStart(y,0),K.setEnd(y,y.childNodes.length),K.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:w,isIndeterminate:N,handleCheckAllChange:z,handleReset:B,checkedValue:_,handleCheckChange:F,onShow:L,onDragStart:x,onDragEnd:j,onDragOver:C,onDragLeave:I,onDrop:R,toLeftFixed:G,toRightFixed:Y,toUnFixed:Z,checkboxLabelStyle:T,onMouseOverForOverflowText:(y,K,P)=>{const q=y.currentTarget;if(q){const M=Math.floor(q.offsetWidth);if(Math.floor(oe(q))>M){let H=X.get(K);if(H){if(H===te)return;Re.hide(H)}H=Re.show(q,P,{type:"text",placement:"top",closeOnClick:!1}),X.set(K,H),te=H}}},onMouseLeaveForOverflowText:(y,K)=>{const P=X.get(K);P&&(Re.hide(P),P===te&&(te=null))},onMouseOverForTip:(y,K)=>{const P=y.currentTarget;P&&(te&&Re.hide(te),te=Re.show(P,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:y=>{te&&(Re.hide(te),te=null)}}}}),yu={class:"fox-table-setting"},bu={class:"fox-table-setting__header"},vu={class:"fox-table-setting__body"},wu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Su={key:0,class:"fox-table-setting__body-title"},xu=["data-index","draggable"],Tu=["onMouseover","onMouseleave"],$u={class:"tools-item"},Cu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Nu={key:0,class:"fox-table-setting__body-title"},Eu=["data-index","draggable"],ku=["onMouseover","onMouseleave"],Iu={class:"tools-item"},Ou={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Vu={key:0,class:"fox-table-setting__body-title"},Fu=["data-index","draggable"],Du=["onMouseover","onMouseleave"],Ru={class:"tools-item"};function Au(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("RefreshLeft"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),V=l.resolveComponent("FoxCheckboxGroup"),p=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(p,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",yu,[l.createElementVNode("div",bu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",vu,[l.createVNode(V,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",wu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Su,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Tu)]),_:2},1032,["label"]),l.createElementVNode("div",$u,[l.createVNode(c,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,xu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Cu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Nu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[15]||(t[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[16]||(t[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[17]||(t[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[18]||(t[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,ku)]),_:2},1032,["label"]),l.createElementVNode("div",Iu,[l.createVNode(c,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[13]||(t[13]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Eu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ou,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Vu,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[24]||(t[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[25]||(t[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[26]||(t[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[27]||(t[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Du)]),_:2},1032,["label"]),l.createElementVNode("div",Ru,[l.createVNode(c,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[20]||(t[20]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Fu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const fn=je(pu,[["render",Au]]);let Lu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let f=(n-1)*r,c=f+r;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,i,s]);const u=He(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Xe(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function Mu(){const e=l.getCurrentInstance();return new Lu(e.proxy)}class Bu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=He(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=He(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=He(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function mr(){const e=l.getCurrentInstance();return new Bu(e.proxy)}const _u=Symbol.for("TableStateKey"),pr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},appearLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},yr={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!1},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},sl={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:"不固定"}},qu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Pu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function ul(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Pu(n,r);if(a!==i)return!1}return!0})}function ju(e,t,o){return{inheritAttrs:!1,props:{...xe,...Oe,...pr,...yr,...sl,...qu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Be.useFoxI18n(t),{emitEvent:i,broadcast:s}=$e({componentName:e,validateHandler:{getValue(...Q){return F.value}}},n.prop??r.attrs.name),u=e,f=l.computed(()=>({[u]:!0})),c=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),v=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),V=l.shallowRef({}),p=l.computed(()=>({...V.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),g=l.ref(n.pageSize),T=se(n.infiniteLoad);T||(l.watch(()=>n.pageIndex,Q=>{h.value=Q}),l.watch(()=>n.pageSize,Q=>{g.value=Q}),l.watch([h,g],([Q,re],[ae,ue])=>{re!==ue&&(h.value=1,Q=1),x(n.data,Q,re,p.value)}));const w=()=>Array.isArray(n.data)?!0:se(n.autoLoad);w()&&l.watch([()=>n.data,p],async([Q,re],[ae,ue])=>{w()&&(Q!==ae&&(E=!0),!(!Array.isArray(Q)&&Ze(Q,ae)&&Ze(re,ue))&&(T?(h.value=0,B.value=!0,F.value=[],C()):h.value===1?x(Q,h.value,g.value,re):h.value=1))},{deep:!0});const N=Q=>{h.value=Q,i("page-index-change",Q)},z=Q=>{g.value=Q,i("page-size-change",Q)},B=l.ref(!0),_=l.ref(0),F=l.ref(),L=Mu();let E=!0;const k=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,Q=>se(Q)),x=async(Q,re,ae,ue,Le)=>{E=!1;try{if(Le===!0){if(!B.value)return!1;const me=await L.load("table",Q,re,ae,ue,E,a.value);return _.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,F.value,me.page),setTimeout(()=>{i("loaded-data")},250),(F.value?.length??0)>=_.value)||me.page.length<ae?(B.value=!1,!1):!0}else{const me=await L.load("table",Q,re,ae,ue,E,a.value);return _.value=me.totalSize,F.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),_.value=0,F.value=[]}return!1};let j=!1;const C=async()=>{if(!j){if(j=!0,!B.value){j=!1;return}h.value+=1,await x(n.data,h.value,g.value,p.value,!0),j=!1}},I=(Q={},re=!1)=>new Promise(async ae=>{V.value={...l.toRaw(Q??{})},re||(h.value=n.pageIndex??1),T===!0?(h.value=0,F.value=[],B.value=!0,await C()):await x(n.data,h.value,g.value,p.value),ae()}),R=()=>{_.value=0,F.value=[],T===!0&&(h.value=0,B.value=!0)};let G=!1;const Y=()=>{G||(G=!0,I())},Z=l.ref(null);if(T===!0){let Q=null;const re=()=>{Z.value&&(Q=new IntersectionObserver(ue=>{let Le=!1;for(let me of ue)if(me.intersectionRatio>0){Le=!0;break}Le&&C()}),Q.observe(Z.value))},ae=()=>{!Q||!Z.value||(Q.unobserve(Z.value),Q=null)};l.onMounted(re),l.onBeforeUnmount(ae)}w()&&!k.value&&I();const X=l.ref(null);l.provide(_u,{currentRow:X});const te=(Q,re)=>{X.value=Q,i("current-change",Q,re)},oe=(Q,re,ae)=>{i("row-click",Q,re,ae),se(n.rowClickSelectable)===!0&&we?.value.toggleRowSelection(Q)},O=[],S=(Q,re)=>{if(i("expand-change",Q,re),se(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=O.length;O.splice(0,ae)}else{O.forEach(ue=>{ue!==Q&&we?.value.toggleRowExpansion(ue,!1)});const ae=O.length;O.splice(0,ae,Q)}setTimeout(fe,0)},A=r.attrs.id??n.prop??r.attrs.name,D=mr(),y=l.ref([]);let K=[];const P=()=>({srcColumnPropertyList:K.map(re=>({...re})),columnPropertyList:y.value}),q=Q=>{y.value=[...Q],U()},M=async()=>{const Q=await D.load(A);Q&&(y.value=Q)},U=()=>{D.save(A,y.value)},H=()=>{D.remove(A)};M();const J=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",ne=()=>typeof r.slots.default=="function"?r.slots.default():[],$=(Q,re)=>{for(let ae in re){const ue=re[ae];typeof ue!="function"&&(Q[ae]=ue)}},W=l.computed(()=>{const Q=ne(),re=new Map;if(K=[],Q.forEach(ae=>{const ue=ae;if(!ue.props)return;const Le=J(ue.props);re.set(Le,ae);const me={label:"",prop:""};$(me,ue.props),K.push(me)}),y.value.length===K.length){const ae=[];for(let ue of y.value){const Le=J(ue),me=re.get(Le);if(!me)return Q;if(ue.visible===!1)continue;const rt=me;rt.props.fixed=ue.fixed,ae.push(rt)}return ae}return Q}),ee=l.shallowRef(new Map),le=({row:Q,column:re,rowIndex:ae,columnIndex:ue})=>{const Le=`${ae}_${re.property}`,me=`${ae}_${ue}`;let rt=ee.value.get(Le);return rt||(rt=ee.value.get(me)),rt??""},de=Q=>typeof Q=="function"?re=>{const ae=[];let ue=le(re);return ue&&ae.push(ue),ue=Q(re),ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:le,fe=()=>{ee.value.entries().forEach(([Q,re])=>{const ae=`${Q}_item`;s.emitToChildren({name:ae},"setCustomClassName",re)})},ve=(Q,re,ae)=>{const ue=`${Q}_${re}`;ae?ee.value.set(ue,ae):ee.value.delete(ue),l.triggerRef(ee)},Ue=()=>{ee.value.clear(),l.triggerRef(ee)},Pe=l.shallowRef(new Map),dt=({rowIndex:Q})=>{const re=`${Q}`;return Pe.value.get(re)??""},Hl=Q=>typeof Q=="function"?re=>{const ae=[];let ue=dt(re);return ue&&ae.push(ue),ue=Q(re),ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:dt,Ch=(Q,re)=>{const ae=`${Q}`;re?Pe.value.set(ae,re):Pe.value.delete(ae),l.triggerRef(Pe)},Nh=()=>{Pe.value.clear(),l.triggerRef(Pe)},we=l.ref();return Ce({clearSelection:()=>we?.value.clearSelection(),getSelectionRows:()=>we?.value.getSelectionRows(),toggleRowSelection:(Q,re)=>{we?.value.toggleRowSelection(Q,re)},toggleRowSelectionByProp:(Q,re)=>{if(!F.value)return;const ae=ul(F.value,Q);ae.length!==0&&ae.forEach(ue=>{we?.value.toggleRowSelection(ue,re)})},toggleAllSelection:()=>{we?.value.toggleAllSelection()},toggleRowExpansion:(Q,re)=>{we?.value.toggleRowExpansion(Q,re)},toggleRowExpansionByProp:(Q,re)=>{if(!F.value)return;const ae=ul(F.value,Q);ae.length!==0&&ae.forEach(ue=>{we?.value.toggleRowExpansion(ue,re)})},setCurrentRow:Q=>{we?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!F.value)return;const re=ul(F.value,Q);re.length!==0&&we?.value.setCurrentRow(re[0])},getCurrentRow:()=>X.value,clearSort:()=>{we?.value.clearSort()},clearFilter:Q=>{we?.value.clearFilter(Q)},doLayout:()=>{we?.value.doLayout()},sort:(Q,re)=>{we?.value.sort(Q,re)},scrollTo:(Q,re)=>{we?.value.scrollTo(Q,re)},setScrollTop:Q=>{we?.value.setScrollTop(Q)},setScrollLeft:Q=>{we?.value.setScrollLeft(Q)},loadData:I,clearData:R,getData(){return F.value},getTotalSize(){return _.value},getPageIndex(){return h.value},getPageSize(){return g.value},getColumnSetting:P,setColumnSetting:q,removeColumnSetting:H,setCellClassName:ve,clearCellClassName:Ue,setRowClassName:Ch,clearRowClassName:Nh}),()=>{const re={...Ye(r.attrs),onCurrentChange:te,onRowClick:oe,onExpandChange:S,data:F.value,ref:we,class:f.value,"cell-class-name":de(n.cellClassName),"row-class-name":Hl(n.rowClassName)},ae={};if(r.slots.default&&(ae.default=()=>W.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),T===!0){const Ke=[];if(B.value){const Bt=l.h(Ne.Loading,{class:`${u}__infinite-icon`});Ke.push(Bt);const Wl=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);Ke.push(Wl)}else{const Bt=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);Ke.push(Bt)}const ht={ref:Z,class:`${u}__infinite`},Kl=l.h("div",ht,Ke);ae.append=()=>Kl}const ue=l.h(b.ElTable,re,ae),Le=[];if(Le.push(ue),!T){let Ke=null;if(typeof r.slots.pagination=="function")Ke=r.slots.pagination();else if(n.showPagination){const ht={class:v.value,total:_.value,pageSize:g.value,"onUpdate:pageSize":z,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":N,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};Ke=l.h(b.ElPagination,ht)}if(n.showSetting){const ht=[];Ke&&ht.push(Ke);const Kl=l.h(b.ElIcon,{class:c.value},{default:()=>l.h(Ne.Setting)}),Bt=mo(n,sl),Wl=l.h(fn,{...Bt,tableRef:{getColumnSetting:P,setColumnSetting:q,removeColumnSetting:H}},{default:()=>Kl});ht.push(Wl);const Eh=l.h("div",{class:d.value},ht);Le.push(Eh)}else Ke&&Le.push(Ke)}const me={default:()=>Le},Mt={...ke(n,pr,yr,sl),prop:`${n.prop}_item`};return Mt.contentClass=`${u}__wrap`,Mt.errorMarkClass="is-table-error",k.value&&w()&&(Mt["appear-listen"]=!0,Mt.onAppear=Y),l.h(o,Mt,me)}}}}const{componentName:zu,create:Hu,scope:Ku}=ie("table-item"),cl=Hu(ju(zu,Ku,Te));function bt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Rt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Wu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Yu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Gu(){const e=l.getCurrentInstance();return new Yu(e.proxy)}function br(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=bt(e,t),r=bt(e,o);if(n!==r)return!1;const a=Rt(e,t),i=Rt(e,o);return a===i}function Uu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=bt(e,a)===t;else if(o==="item")i=br(e,a,t);else{let s=Rt(e,a);s==null&&(s=bt(e,a)),i=s===t}if(i){r=a;break}}return r}function Xu(e){return{text:e,value:e}}function Zu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const vr={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 Ju(e,t,o){return{inheritAttrs:!0,props:{...xe,...Oe,...vr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),f=l.ref(null),c=(F,L,E,k=!0)=>{const x=Uu(n,F,L,E);if(x===null){if(f.value===null)return;f.value=null,u.value=null,k&&(s("update:modelValue",null),s("change",null));return}if(!br(n,x,f.value)){u.value=F;const C=l.toRaw(x);f.value=C;let I=null;n.valueType==="text"?I=bt(n,C):n.valueType==="item"?I=C:I=Rt(n,C),k&&(s("update:modelValue",I),s("change",I))}},d=l.ref([]),v=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,F=>se(F)),V=Gu(),p=async(F,L)=>{if(F){const E=await V.load("radio",F,L);if(E.length>0)if(typeof E[0]=="string"){let j=E.map(C=>Xu(C));d.value=j}else d.value=E}};l.watch([()=>n.source,()=>n.params],async([F,L])=>{p(F,L)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,p(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([F,L])=>{c(L,n.valueType,F,!1),s("setValue",L)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),N=F=>{c(F,"value",d.value,!0)};let z=ge(n,"hintText"),B=ge(n,"hintVisible");const _=(F,L)=>{const E=[];return F.forEach((k,x)=>{const j=Rt(n,k),C=bt(n,k);let I=Wu(n,k);a.value===!0&&(I=a.value),i.value===!0&&(I=i.value);const R=Zu(n,k,x)??{},G=`${j}_${x}`,Y={...R,key:G,label:j,size:n.size,border:se(n.border)};I&&(Y.disabled=I),n.itemType==="button"?E.push(l.h(b.ElRadioButton,Y,{default:()=>[C]})):typeof L=="function"?E.push(l.h(b.ElRadio,Y,{default:()=>L(k)})):E.push(l.h(b.ElRadio,Y,{default:()=>[C]}))}),E};return()=>{const L={...Ye(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:N},E=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>_(d.value,r.slots.text);const x=l.h(b.ElRadioGroup,L,k);E.push(x);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,vr),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(I["appear-listen"]=!0,I.onAppear=g),l.h(o,I,j)}}}}const{componentName:Qu,create:ec,scope:tc}=ie("radio-item"),fl=ec(Ju(Qu,tc,Te));function vt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function wt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function nc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let lc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function oc(){const e=l.getCurrentInstance();return new lc(e.proxy)}function wr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=vt(e,t),r=vt(e,o);if(n!==r)return!1;const a=wt(e,t),i=wt(e,o);return a===i}function rc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=vt(e,i)===a;else if(o==="item")s=wr(e,i,a);else{let u=wt(e,i);u==null&&(u=vt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function ac(e){return{text:e,value:e}}function ic(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Sr={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 sc(e,t,o){return{inheritAttrs:!0,props:{...xe,...Oe,...Sr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),f=l.ref([]),c=(F,L,E,k=!0)=>{const x=rc(n,F,L,E);if(x===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],k&&(s("update:modelValue",[]),s("change",[]));return}let j=!0;if(x.length!==f.value.length)j=!1;else for(let C=0;C<x.length;C++){const I=x[C],R=f.value[C];if(!wr(n,I,R)){j=!1;break}}if(!j){f.value=x;let C=[],I=[];x.forEach(G=>{C.push(wt(n,G)),n.valueType==="text"?I.push(vt(n,G)):n.valueType==="item"?I.push(G):I.push(wt(n,G))}),u.value=C;const R=l.toRaw(I);k&&(s("update:modelValue",R),s("change",R))}},d=l.ref([]),v=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,F=>se(F)),V=oc(),p=async(F,L)=>{if(F){const E=await V.load("checkbox",F,L);if(E.length>0)if(typeof E[0]=="string"){let j=E.map(C=>ac(C));d.value=j}else d.value=E}};l.watch([()=>n.source,()=>n.params],async([F,L])=>{p(F,L)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,p(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([F,L])=>{c(L,n.valueType,F,!1),s("setValue",L)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),N=F=>{c(F,"value",d.value,!0)};let z=ge(n,"hintText"),B=ge(n,"hintVisible");const _=(F,L)=>{const E=[];return F.forEach((k,x)=>{const j=wt(n,k),C=vt(n,k);let I=nc(n,k);a.value===!0&&(I=a.value),i.value===!0&&(I=i.value);const R=ic(n,k,x)??{},G=`${j}_${x}`,Y={...R,key:G,class:n.itemClass,label:j,size:n.size,border:se(n.border)};I&&(Y.disabled=I),n.itemType==="button"?E.push(l.h(b.ElCheckboxButton,Y,{default:()=>[C]})):typeof L=="function"?E.push(l.h(b.ElCheckbox,Y,{default:()=>L(k)})):E.push(l.h(b.ElCheckbox,Y,{default:()=>[C]}))}),E};return()=>{const L={...Ye(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:Se(n.max),min:Se(n.min),onChange:N},E=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>_(d.value,r.slots.text);const x=l.h(b.ElCheckboxGroup,L,k);E.push(x);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,Sr),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(I["appear-listen"]=!0,I.onAppear=g),l.h(o,I,j)}}}}const{componentName:uc,create:cc,scope:fc}=ie("checkbox-item"),dl=cc(sc(uc,fc,Te)),xr={modelValue:{type:[Number,String],required:!1}};function dc(e,t,o){return{props:{...xe,...Oe,...xr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",h=>Se(h),s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=ge(n,"hintText"),V=l.ref(!1);const p=l.ref();return Ce({}),()=>{const g={...Ye(r.attrs),ref:p,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},T={},w=[],N=l.h(b.ElRate,g,T);w.push(N);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const _={...ke(n,xr),hintText:v.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,_,z)}}}}const{componentName:hc,create:gc,scope:mc}=ie("rate-item"),hl=gc(dc(hc,mc,Te)),Tr={modelValue:{type:[Boolean,String,Number],required:!1}};function pc(e,t,o){return{props:{...xe,...Oe,...Tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",null,s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=ge(n,"hintText"),V=ge(n,"hintVisible");const p=l.ref();return Ce({}),()=>{const g={...Ye(r.attrs),ref:p,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},T={},w=[],N=l.h(b.ElSwitch,g,T);w.push(N);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const _={...ke(n,Tr),hintText:v.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,_,z)}}}}const{componentName:yc,create:bc,scope:vc}=ie("switch-item"),gl=bc(pc(yc,vc,Te)),$r={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function wc(e,t,o){return{props:{...xe,...Oe,...$r},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),f=ge(n,"modelValue",null,u),c=e,d=l.computed(()=>({[c]:!0})),v=B=>{u("update:modelValue",B),u("change",B)};let V=ge(n,"hintText"),p=l.ref(!1);const h=B=>{let F=B.target.value;s.value=!0,pe(V.value)||(p.value=!0),u("focus",F,B)},g=B=>{setTimeout(()=>{p.value&&(p.value=!1),s.value=!1},0);let F=B.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),w.value||u("blur",F,B)},T=()=>{u("clear","")},w=l.ref(!1),N=B=>{w.value=B,u("visible-change",B),B||u("selected")},z=l.ref();return Ce({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const _={...Ye(r.attrs),ref:z,class:d.value,disabled:a.value||i.value,modelValue:f.value,"onUpdate:modelValue":v,onClear:T,onFocus:h,onBlur:g,onVisibleChange:N},F={};r.slots.option&&(F.default=r.slots.option);const L=[],E=l.h(b.ElTreeSelect,_,F);L.push(E);const k={default:()=>L};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...ke(n,$r),hintText:V.value,hintVisible:p.value,prop:`${n.prop}_item`};return l.h(o,j,k)}}}}const{componentName:Sc,create:xc,scope:Tc}=ie("tree-select-item"),ml=xc(wc(Sc,Tc,Te)),$c={},Cc={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"},Nc=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Ec(e,t){return l.openBlock(),l.createElementBlock("svg",Cc,Nc)}const kc=je($c,[["render",Ec]]),{componentName:Hh,create:Ic,scope:Kh}=ie("group-setting"),Oc={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:"到底部"}},Vc=Ic({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:kc,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Oc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=mr(),s=O=>O.length>1,u=()=>{const O=[],S=[...a.value];a.value=S.map((D,y)=>(D.visible!==!1&&O.push(D.prop),{...D,sortIndex:y})),a.value.length===O.length?h.value=!0:O.length>0&&(g.value=!0),N.value=O},f=O=>{let S=null;if(typeof O=="string")S=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const D=O.$el??O;typeof D.querySelectorAll=="function"&&(S=D.querySelectorAll(".fox-item[prop]"))}if(!S)return[];const A=[];return S.forEach(D=>{const y=D.querySelector(".label--string");let K="";y&&(K=y.textContent??"");const P=D.getAttribute("prop")??"",M=window.getComputedStyle(D,null).getPropertyValue("display");A.push({label:K,prop:P,sortIndex:0,visible:M!=="none"})}),A},c=()=>{if(!r){const O=f(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},d=async(O=!1)=>{const S=await i.load(e.groupProp),A=D=>{if(!D||!r)return;const y=r.map(K=>({...K}));Array.isArray(S)&&S.forEach(K=>{y.some(P=>{if(P.prop===K.prop){const q=P.label;return Object.assign(P,K),P.label=q,!0}return!1})}),a.value=y.sort((K,P)=>K.sortIndex-P.sortIndex),u(),O&&V(!1)};r?A(!0):Ut(c,e.initDelay,5,50,!1,A)},v=()=>{const O=r??[];a.value=O.map(S=>({...S})),u(),V()},V=(O=!0)=>{O&&i.save(e.groupProp,a.value);const S=a.value.map(A=>({...A}));t("change",S)},p=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),g=l.ref(!1),T=O=>{const S=[];a.value.forEach(D=>{O&&S.push(D.prop),D.visible=O}),h.value=!1,g.value=!1,a.value.length===S.length?h.value=!0:S.length>0&&(g.value=!0),N.value=S,V()},w=()=>{v()},N=l.ref([]),z=O=>{a.value.forEach(A=>{const D=O.indexOf(A.prop)!==-1;A.visible=D}),h.value=!1,g.value=!1;const S=a.value.length;O.length===S?h.value=!0:O.length>0&&(g.value=!0),V()},B=()=>{d()};l.onMounted(()=>{d(!0)});const _={currentRow:null,index:null},F=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,F(O)):null:null,L=O=>{const S=O.currentTarget;S&&S.dataset&&(_.index=S.dataset.index)},E=O=>{_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null),_.index=null},k=O=>{const S=O.currentTarget;O.relatedTarget;const A=F(S);A&&(O.preventDefault(),_.currentRow&&_.currentRow!==A&&_.currentRow.classList.remove("is-dragover"),A.classList.add("is-dragover"),_.currentRow=A)},x=O=>{O.preventDefault(),_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null)},j=O=>{const S=O.currentTarget,A=F(S);if(!A)return;O.preventDefault();const D=Number(_.index),y=Number(A.dataset.index);if(D!==y){if(D<y){const K=a.value[D];a.value.splice(D,1),a.value.splice(y,0,K)}else{const K=a.value[D];a.value.splice(D,1),a.value.splice(y+1,0,K)}u(),V()}},C=O=>{const S=a.value[O];a.value.splice(O,1),a.value.splice(0,0,S),u(),V()},I=O=>{const S=a.value[O];a.value.splice(O,1),a.value.push(S),u(),V()};n({refresh:()=>{r=null,d(!1)}});const R=new Map;let G=null;function Y(O){const S=document.createRange();return S.setStart(O,0),S.setEnd(O,O.childNodes.length),S.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:T,handleReset:w,checkedValue:N,handleCheckChange:z,onShow:B,onDragStart:L,onDragEnd:E,onDragOver:k,onDragLeave:x,onDrop:j,checkboxLabelStyle:p,toTop:C,toBottom:I,onMouseOverForOverflowText:(O,S,A)=>{const D=O.currentTarget;if(D){const y=Math.floor(D.offsetWidth);if(Math.floor(Y(D))>y){let P=R.get(S);if(P){if(P===G)return;Re.hide(P)}P=Re.show(D,A,{type:"text",placement:"top",closeOnClick:!1}),R.set(S,P),G=P}}},onMouseLeaveForOverflowText:(O,S)=>{const A=R.get(S);A&&(Re.hide(A),A===G&&(G=null))},onMouseOverForTip:(O,S)=>{const A=O.currentTarget;A&&(G&&Re.hide(G),G=Re.show(A,S,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{G&&(Re.hide(G),G=null)}}}}),Fc={class:"fox-group-setting"},Dc={class:"fox-group-setting__header"},Rc={class:"fox-group-setting__body"},Ac={class:"fox-group-setting__body-list","data-role":"container"},Lc=["data-index","draggable"],Mc=["onMouseover","onMouseleave"],Bc={class:"tools-item"};function _c(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("Download"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Fc,[l.createElementVNode("div",Dc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=V=>e.isCheckAll=V),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Rc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=V=>e.checkedValue=V),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Ac,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,V=>(l.openBlock(),l.createElementBlock("div",{key:V.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":V.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[6]||(t[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[7]||(t[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[8]||(t[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[9]||(t[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:V.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,V.prop,V.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,V.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(V.label),45,Mc)]),_:2},1032,["label"]),l.createElementVNode("div",Bc,[l.createVNode(c,{onClick:p=>e.toTop(V.sortIndex),onMouseover:t[1]||(t[1]=p=>e.onMouseOverForTip(p,e.toTopText)),onMouseleave:t[2]||(t[2]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:p=>e.toBottom(V.sortIndex),onMouseover:t[3]||(t[3]=p=>e.onMouseOverForTip(p,e.toBottomText)),onMouseleave:t[4]||(t[4]=p=>e.onMouseLeaveForTip(p))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"])])],40,Lc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const pl=je(Vc,[["render",_c]]),qc=["aria-labelledby"],Pc=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),jc=[Pc],zc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),Hc=["aria-labelledby"],Kc=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Wc=[Kc],yl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Yc=["aria-labelledby"],Gc=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Uc=[Gc],Xc=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Uc,14,Yc))}}),Zc=["aria-labelledby"],Jc=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Qc=[Jc],ef=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Qc,14,Zc))}}),tf=["aria-labelledby"],nf=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),lf=[nf],of=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},lf,14,tf))}}),rf={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Cr=(e,t)=>t[e.textKey],At=(e,t)=>t[e.valueKey],af=(e,t)=>t[e.visibleKey],Nr=(e,t)=>t[e.disabledKey],sf=(e,t)=>{const o=t[e.doitKey];return se(o)},uf=(e,t)=>{const o=t[e.numKey];return o==null?null:Se(t[o])},Er=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function cf(e,t,o,n=!1){return{props:{...rf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const O={};return O[`${e}`]=!0,O}),u=l.computed(()=>{const O={};return O[`${e}__titles`]=!0,O[`${r.direction}`]=!0,r.align==="left"&&(O.left=!0),r.scroll===!0&&(O.scrollable=!0),r.shape&&(O[`${r.shape}`]=!0),O}),f=l.computed(()=>({})),c=l.computed(()=>{if(!r.gutter)return 0;const O=he(r.gutter);return O<=0?0:O}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,O=>{d.value!==O&&(d.value=O,Y(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),V=l.computed(()=>{const O={};return h.value||(O.display="none"),O}),p=l.ref(),h=l.ref(!1),g=()=>{const O=!h.value;T(O)},T=O=>{const S=O;S?(h.value=S,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,p.value?p.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),N=l.ref([]),z=(O,S)=>{N.value[S]=O},B=O=>S=>{z(S,O)},_=(O,S)=>{const A=w.value,D=N.value;if(!A||!D||!D[O])return;const y=D[O];let K=0;r.direction==="vertical"?K=y.offsetTop-(A.offsetHeight-y.offsetHeight)/2:K=y.offsetLeft-(A.offsetWidth-y.offsetWidth)/2,F(A,K,S?0:.3,r.direction)},F=(O,S,A,D)=>{let y=0;const K=D==="horizontal"?O.scrollLeft:O.scrollTop,P=A===0?1:Math.round(A*1e3/16);function q(){D==="horizontal"?O.scrollLeft+=(S-K)/P:O.scrollTop+=(S-K)/P,++y<P&&Nn(q)}q()},L=(O,S)=>{const A=At(r,O),D={};return D[`${e}__titles-item`]=!0,D.disabled=Nr(r,O),D.active=A===d.value,r.shape&&(D[`${r.shape}`]=!0),r.ellipsis&&(D.ellipsis=!0),S&&(S.class&&(D[`${S.class}`]=!0),S.disabled===!0&&(D.disabled=S.disabled)),D},E=(O,S)=>{const A={};if(c.value>0){const D=Math.abs(c.value/2);r.direction==="vertical"?(A["margin-top"]=`${D}px`,A["margin-bottom"]=`${D}px`):(A["margin-left"]=`${D}px`,A["margin-right"]=`${D}px`)}return S&&S.style&&Object.assign(A,S.style),A},k=(O,S)=>`${At(r,O)??S}`,x=(O,S)=>{const A=At(r,O),D={};D[`${e}__popup-item`]=!0,D.disabled=Nr(r,O),D.active=A===d.value,r.shape&&(D[`${r.shape}`]=!0);const y=Er(r,O,S);return y&&y.disabled===!0&&(D.disabled=y.disabled),D},j=l.computed(()=>(r.data??[]).filter(S=>af(r,S)!==!1)),C=(O,S)=>{const A=At(r,O);if(d.value==A)return;const D=()=>{d.value=A,r.scroll&&_(S,!1),i("update:modelValue",A),i("change",O,S)};if(typeof r.beforeChange=="function"){const y=r.beforeChange(O,S);lo(y)?y.then(K=>{K!==!1&&D()}).catch(()=>{D()}):y!==!1&&D()}else D()},I=(O,S)=>function(){C(O,S)},R=(O,S)=>{C(O,S),T(!1)},G=(O,S)=>function(){R(O,S)},Y=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const S=r.data.findIndex(A=>At(r,A)===d.value);S!==-1&&_(S,O)};l.watch(()=>r.data,()=>{setTimeout(Y,0)}),l.onMounted(()=>{Y(!0)});const Z=(O,S)=>{if(a.item)return a.item({item:O,index:S});const A=Er(r,O,S),D=[];if(a.text){const q=a.text({item:O,index:S});D.push(q)}else{const q=[];if(A?.doit===!0||sf(r,O)){const J={class:[`${e}__titles-item-tip`,"doit"]},ne=l.h("view",J);q.push(ne)}const M=A?.num??uf(r,O);if(M){let J="";const ne=Se(M);ne>=100?J="99+":J=`${ne}`;const $={class:[`${e}__titles-item-tip`,"num"]},W=l.h("view",$,[J]);q.push(W)}const U={class:`${e}__titles-item-text`};q.push(Cr(r,O));const H=l.h("view",U,q);D.push(H)}const y={class:`${e}__titles-item-line`},K=l.h("view",y);D.push(K);const P={ref:B(S),class:L(O,A),style:E(O,A),key:k(O,S),onClick:I(O,S)};return l.h("view",P,D)},X=()=>{const O=a.default?a.default():[];if(O.length===0)for(let A=0;A<j.value.length;A++){const D=j.value[A],y=Z(D,A);O.push(y)}const S={ref:w,class:u.value,style:f.value};return l.h("view",S,O)},te=()=>{let O=null;a.navigation?O=a.navigation():O=l.h(o);const S={class:`${e}__navigation`,onClick:g};return l.h("view",S,[O])},oe=()=>{const O=[];for(let A=0;A<j.value.length;A++){const D=j.value[A];let y=null;a.popupItem?y=a.popupItem({item:D,index:A}):y=Cr(r,D);const K={class:x(D,A),key:k(D,A),onClick:G(D,A)},P=l.h("view",K,[y]);O.push(P)}const S={class:v.value,style:V.value};return l.h("view",S,O)};return()=>{const O=[],S=X();if(O.push(S),r.showQuickNavigation){const D=te();O.push(D);const y=oe();O.push(y)}const A={class:s.value};return l.h("view",A,O)}}}}const{create:ff,componentName:df,scope:hf}=ie("tabs-bar"),bl=ff(cf(df,hf,zc,!1)),kr=Symbol("TabsStatesKey"),gf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function mf(e,t,o=!1){return{props:{...gf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const g={name:h};s.current.value===h&&(g.loaded=!0),i.value.push(g),l.triggerRef(i)},remove:h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&i.value.splice(g,1)},isLoaded:h=>{if(!n.lazy)return!0;const g=i.value.findIndex(T=>T.name===h);return g!==-1?s.current.value?i.value[g].loaded??!1:g===0:!1}};l.provide(kr,s);const u=h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&(i.value[g].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,g])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==g&&(s.direction.value=g)});const f=l.ref(null),c=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let v=!0;const V=l.computed(()=>{const h={},g=i.value.length;if(g<=0)return h;const T=i.value.findIndex(w=>w.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${g*s.tabHeight.value}px`,T!==-1&&(h.transform=`translate(0, -${T*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${g*s.tabWidth.value}px`,T!==-1&&(h.transform=`translate(-${T*s.tabWidth.value}px, 0)`)),v&&(v=!1,h.transition="transform 0s ease"),h});let p=null;return l.onMounted(()=>{if(!f.value)return;const h=()=>{const g=tn(f.value);s.tabWidth.value=g.width,s.tabHeight.value=g.height};window.ResizeObserver&&(p=new window.ResizeObserver(h),p.observe(f.value)),h()}),l.onBeforeUnmount(()=>{p&&(p.disconnect(),p=null)}),()=>{const h={class:`${e}__panes`,style:V.value,ref:c},g=l.h("view",h,[a?.default?.()]),T={class:d.value,ref:f};return l.h("view",T,[g])}}}}const{create:pf,componentName:yf,scope:bf}=ie("tabs-container"),vl=pf(mf(yf,bf,!1)),vf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function wf(e,t,o){return{props:{...vf},setup(n,{emit:r,slots:a}){const i=l.inject(kr);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const f={};return i.direction.value==="vertical"&&i.tabHeight.value>0?f.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(f.width=`${i.tabWidth.value}px`),f}),u=l.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let f=[];if(u.value)f=a?.default?.()??[];else if(a.empty)f=a.empty();else{const d={class:`${e}__empty-icon`},v=n.emptyIcon??o,V=l.h(v,d),p={class:`${e}__empty-text`},h=n.emptyText??"Loading",g=l.h("view",p,[h]),T={class:`${e}__empty`},w=l.h("view",T,[V,g]);f.push(w)}const c={class:`${e}`,style:s.value};return l.h("view",c,f)}}}}const{create:Sf,componentName:xf,scope:Tf}=ie("tabs-pane"),wl=Sf(wf(xf,Tf,yl)),$f={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Cf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ir(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Or(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Nf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Sl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Vr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Fr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function xl(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Ef{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function kf(){const e=l.getCurrentInstance();return new Ef(e.proxy)}function If(e,t,o,n){return{props:{...$f},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=kf(),f=l.ref([]),c=l.computed(()=>f.value.filter(S=>Nf(r,S)!==!1)),d=l.ref(-1),v=()=>{const S=r.modelValue,A=c.value.findIndex(D=>Ir(r,D)===S);d.value!==A&&(d.value=A,r.scroll&&oe(A,!1))};l.watch([()=>r.modelValue,c],()=>{v()});const V=S=>d.value===S,p=S=>{if(S<0&&S>=c.value.length)return!1;const A=c.value[S],y=(xl(r,A,S)??{}).status??Sl(r,A);return V(S)||y},h=l.computed(()=>{const S={[s]:!0};return r.mode?S[`is-${r.mode}`]=!0:r.direction&&(S[`is-${r.direction}`]=!0),r.scroll&&(S["is-scroll"]=!0),S}),g=l.computed(()=>({})),T=(S,A,D,y,K)=>{const P={[`${s}__step`]:!0};return K&&(P[`${K}`]=!0),P[`${w.value}`]=!0,y&&(P["is-doit"]=!0),S===d.value?P["is-active"]=!0:A==="done"?P["is-done"]=!0:A==="error"?P["is-error"]=!0:A==="half"?P["is-half"]=!0:D?P["is-disabled"]=!0:P["is-normal"]=!0,P},w=l.computed(()=>{if(r.mode==="simple")return"start";let S=r.align;return S||(r.direction==="vertical"?S="start":S="center"),S}),N=(S,A={})=>{const D={...A};return w.value==="start"&&S===c.value.length-1?D.flex="0 0 auto":r.step?r.direction==="vertical"?D.height=r.step:D.width=r.step:D.flex="1 1 100%",D},z=(S,A)=>{let D={};if(A<c.value.length-1){const y=A+1;p(A)&&p(y)?r.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},B=S=>c.value.length-1===S,_=(S,A)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&A>d.value||d.value===A)return;const D=d.value,y=A;d.value=A,r.scroll&&oe(A,!1);const K=Ir(r,S);i("update:modelValue",K);const P={fromIndex:D,currentIndex:y,item:S,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,P)},F=l.ref(!0),L=async(S,A)=>{try{const D=await u.load("stesbar",S,A);Array.isArray(D)&&(f.value=D),F.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),f.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([S,A])=>{S&&L(S,A)},{immediate:!0});const E=(S,A,D,y,K)=>{let P=null;if(a.icon)P=a.icon({item:S,index:A,status:y});else if(y==="done"){const M={};r.iconSize&&(M.width=r.iconSize,M.height=r.iconSize);const U=r.icon??o;P=l.h(U,M)}else{const M=D??`${A+1}`;P=l.h("span",{},[M])}const q={class:"fox-steps-bar__icon",onClick:()=>{K||_(S,A)}};return l.h("view",q,[P])},k=(S,A,D)=>{const y=l.h("i",{class:"fox-steps-bar__line-inner",style:z(S,A)});return l.h("view",{class:"fox-steps-bar__line"},[y])},x=()=>{let S=null;if(a.markIcon)S=a.markIcon();else{const D={};r.iconSize&&(D.width=r.markIconSize,D.height=r.markIconSize);const y=r.markIcon??n;S=l.h(y,D)}return l.h("view",{class:"fox-steps-bar__mark"},[S])},j=(S,A,D,y,K)=>{const P=[];if(!B(A)){const U=k(S,A);P.push(U)}const q=E(S,A,D,y,K);P.push(q);const M={class:"fox-steps-bar__head"};return l.h("view",M,P)},C=(S,A,D,y)=>{let K=null;a.main?K=a.main({item:S,index:A,status:D}):K=Cf(r,S);const P={class:"fox-steps-bar__main",onClick:()=>{y||_(S,A)}};return l.h("view",P,[K])},I=(S,A,D)=>{let y=null;if(a.sub){y=a.sub({item:S,index:A,status:D});const K={class:"fox-steps-bar__sub"};return l.h("view",K,[y])}return null},R=(S,A)=>{const D=xl(r,S,A)??{},y=D.status??Sl(r,S);let K=Or(r,S);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=D.label??Fr(r,S),q=[],M=E(S,A,P,y,K);M&&q.push(M);const U=C(S,A,y,K);if(U&&q.push(U),!B(A)){const ee=k(S,A);ee&&q.push(ee)}const H=l.h("view",{class:"fox-steps-bar__head"},q),J=D.class,ne=D.style??{};let $=Vr(r,S);D.doit===!0&&($=!0);const W={ref:te(A),class:T(A,y,K,$,J),style:N(A,ne)};return l.h("view",W,[H])},G=(S,A)=>{const D=xl(r,S,A)??{},y=D.status??Sl(r,S);let K=Or(r,S);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=D.label??Fr(r,S),q=[],M=r.layout;for(let $ of M)if($==="head"){const W=j(S,A,P,y,K);q.push(W)}else if($==="main"){const W=C(S,A,y,K);q.push(W)}else if($==="sub"){const W=I(S,A,y);q.push(W)}else if($==="mark"){const W=x();q.push(W)}const U=D.class,H=D.style??{};let J=Vr(r,S);D.doit===!0&&(J=!0);const ne={ref:te(A),class:T(A,y,K,J,U),style:N(A,H)};return l.h("view",ne,q)},Y=l.ref(),Z=l.ref([]),X=(S,A)=>{Z.value[A]=S},te=S=>A=>{X(A,S)},oe=(S,A)=>{const D=Y.value,y=Z.value;if(!D||!y||!y[S])return;const K=y[S];let P=0;r.direction==="vertical"?P=K.offsetTop-(D.offsetHeight-K.offsetHeight)/2:P=K.offsetLeft-(D.offsetWidth-K.offsetWidth)/2,O(D,P,A?0:.3,r.direction)},O=(S,A,D,y)=>{let K=0;const P=y==="horizontal"?S.scrollLeft:S.scrollTop,q=D===0?1:Math.round(D*1e3/16);function M(){y==="horizontal"?S.scrollLeft+=(A-P)/q:S.scrollTop+=(A-P)/q,++K<q&&Nn(M)}M()};return()=>{const S=[];if(r.mode==="simple")for(let D=0;D<c.value.length;D++){const y=c.value[D],K=R(y,D);S.push(K)}else for(let D=0;D<c.value.length;D++){const y=c.value[D],K=G(y,D);S.push(K)}const A={ref:Y,class:h.value,style:g.value};return l.h("view",A,S)}}}}const{componentName:Of,create:Vf,scope:Ff}=ie("steps-bar"),Tl=Vf(If(Of,Ff,ef,of)),Df=Symbol.for("InnerPageScopeKey"),Rf=Symbol.for("PageWrapperKey");function Af(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){l.provide(Df,!0);const r={};l.provide(Rf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return l.h(b.ElDialog,f,c)}}}}const{componentName:Wh,create:Lf,scope:Yh}=ie("dialog-item"),$l=Lf(Af());let Lt=0;const Dr="fox-overflow-hidden",Rr=()=>st?document.body:{classList:[]},Mf=e=>[()=>{if(e())try{!Lt&&Rr().classList.add(Dr),Lt++}catch{}},()=>{if(e()&&Lt)try{Lt--,!Lt&&Rr().classList.remove(Dr)}catch{}}],Bf={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:_f,create:qf}=ie("overlay"),Pf=qf({props:{...Bf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Mf(()=>e.lockScroll),r=l.computed(()=>({[_f]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function jf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const dn=je(Pf,[["render",jf]]),zf={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:{}}},Ar=2e3;let Lr=Ar;const Hf=(e,t)=>({components:t,props:{...zf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Ar&&(Lr=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Lr,o.destroyOnClose&&(r.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},c=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},v=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},V=h=>{n("opend",h)},p=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():f()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:c,onClickCloseIcon:d,onClickOverlay:v,onOpened:V,onClosed:p}}}),{componentName:Kf,create:Wf}=ie("popup"),Yf=Wf(Hf(Kf,{FoxOverLay:dn,Close:Xc}));function Gf(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),s=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Cl=je(Yf,[["render",Gf]]),{create:Uf}=ie("toast"),Xf=Uf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,V=>{V&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const V=he(e.iconSize);return l.h(e.icon,{width:V,height:V,color:e.iconColor})},c=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:f,hasIcon:u,toastBodyClass:c,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Zf={key:1,class:"fox-toast-title"},Jf=["innerHTML"];function Qf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Zf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Jf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Nl=je(Xf,[["render",Qf]]),ed={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},td=(e,t,o)=>({props:{...ed},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=No(),{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),f=l.computed(()=>({background:n.background})),c=l.computed(()=>({background:n.inputBackground})),d=E=>{let x=E.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),a("update:modelValue",x,E),a("change",x,E)},v=l.ref({}),V=E=>{let x=E.target.value;u.active=!0,v.value=n.focusStyle,a("focus",x,E)},p=E=>{setTimeout(()=>{u.active=!1},0);let x=E.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),v.value={},a("blur",x,E)},h=E=>{a("update:modelValue","",E),a("change","",E),a("clear","")},g=l.computed(()=>String(n.modelValue).length>0),T=l.computed(()=>{const E={};return g.value||(E.display="none"),E}),w=()=>{a("search",n.modelValue)},N=E=>{a("keyup-input",E),E.key.toLocaleUpperCase()==="ENTER"&&w()},z=E=>{a("click-input",E)},B=E=>{a("click-left-icon",n.modelValue,E)},_=l.computed(()=>({textAlign:n.inputAlign})),F=l.ref(null);l.onMounted(()=>{n.autofocus&&F.value.focus()});const L=()=>{const E=[];if(r.leftin){const I={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},R=l.h("view",I,[r.leftin()]);E.push(R)}const k={ref:F,class:[`${e}__input-inner`],style:_.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:z,onInput:d,onFocus:V,onBlur:p,onkeyup:N},x=l.h("input",k);E.push(x);const j=[];if(n.clearable){const I={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:T.value,onClick:h},R=r?.clear?.()??n.clearIcon??o,G=l.h("view",I,[l.h(R)]);j.push(G)}if(r.rightin){const I={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},R=l.h("view",I,[r.rightin()]);j.push(R)}if(j.length>0){const I={class:`${e}__input-inner-right`},R=l.h("view",I,j);E.push(R)}const C={class:[`${e}__search-input`,`${n.shape}`],style:{...c.value,...v.value}};return l.h("view",C,E)};return()=>{const E=[];if(n.label){const j={class:`${e}__search-label`},C=l.h("span",j,[n.label]);E.push(C)}if(r.leftout){const j={class:[`${e}__search-icon`,`${e}__left-search-icon`]},C=l.h("view",j,[r.leftout()]);E.push(C)}const k=L();if(E.push(k),r.rightout){const j={class:[`${e}__search-icon`,`${e}__right-search-icon`]},C=l.h("view",j,[r.rightout()]);E.push(C)}const x={class:`${e}`,style:f.value};return l.h("view",x,E)}}}),{componentName:nd,create:ld,scope:od}=ie("searchbar"),El=ld(td(nd,od,Ne.CircleClose)),rd=/scroll|auto|overlay/i,Mr=window;function ad(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function id(e,t=Mr){let o=e;for(;o&&o!==t&&ad(o);){const{overflowY:n}=window.getComputedStyle(o);if(rd.test(n))return o;o=o.parentNode}return t}function Br(e,t=Mr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=id(e.value,t))}),o}const _r=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,sd={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function ud(e,t,o){return{props:{...sd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),f=Br(u),c=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),v=w=>w?w.offsetTop+v(w.offsetParent):0,V=()=>{let w=0,N=0,z="down";if(f.value==window){const B=_r();u.value&&(w=v(u.value)+u.value.offsetHeight-B-window.innerHeight),N=B}else{const{scrollHeight:B,clientHeight:_,scrollTop:F}=f.value;w=B-_-F,N=F}return c.beforeScrollTop>N?z="up":z="down",c.beforeScrollTop=N,r("scroll-change",N),w<=n.threshold&&z=="down"},p=()=>{Yl(()=>{if(!V()||!n.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{f.value&&f.value.addEventListener("scroll",p,n.useCapture)},g=()=>{f.value&&f.value.removeEventListener("scroll",p,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&p()}),l.onUnmounted(()=>{g()});const T=l.ref(!1);return l.onActivated(()=>{T.value&&(T.value=!1,h())}),l.onDeactivated(()=>{T.value=!0,g()}),l.watch(()=>n.modelValue,w=>{w||(c.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},N=l.h("view",w,[a?.default?.()]),z=[];if(c.isInfiniting){let L=a?.loading?.()??null;if(!L){let x=a?.loadingIcon?.()??null;if(!x){const I={class:["fox-infinite__bottom-box__img"]};x=l.h(o,I)}const j={class:"fox-infinite__bottom-box__text"},C=l.h("view",j,[s.loadText.value]);L=[x,C]}const E={class:"fox-infinite__bottom-box"},k=l.h("view",E,L);z.push(k)}else if(!n.hasMore){let L=a?.finished?.()??null;if(!L){const E={class:"fox-infinite__bottom-tips"};L=l.h("view",E,[s.loadMoreText.value]),z.push(L)}}const B={class:"fox-infinite__bottom"},_=l.h("view",B,z),F={class:d.value,ref:u};return l.h("view",F,[N,_])}}}}const{componentName:cd,create:fd,scope:dd}=ie("infinite-loading"),kl=fd(ud(cd,dd,yl)),qr=10;function Pr(e,t){return e>t&&e>qr?"horizontal":t>e&&t>qr?"vertical":""}function Il(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Ol(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const f=i.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const u=i;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=Pr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const f=i.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function hd(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),s=l.ref(0),u=l.ref(0),f=l.ref(0),c=l.ref(""),d=()=>c.value==="vertical",v=()=>c.value==="horizontal",V=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:g=>{if(g.touches){const N=g.touches[0];i.value=N.clientX-e.value,s.value=N.clientY-t.value,r.value=N.clientX,a.value=N.clientY}else{const w=g;i.value=w.clientX-e.value,s.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=Pr(u.value,f.value))},start:g=>{if(V(),g.touches){const N=g.touches[0];e.value=N.clientX,t.value=N.clientY}else{const w=g;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:V,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:v}}const gd={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}},md=(e,t,o)=>({props:{...gd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Ol(),f=l.ref(),c=Br(f),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),V=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),p=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const F={};return n.headHeight!=50&&(F.height=Ie(n.headHeight)),F}),g=F=>{const L=+(n.pullDistance||n.headHeight);let E=F;return F>L&&(F<L*2?E=(F+L)/2:E=L+F/4),Math.round(E)},T=(F,L)=>{const E=+(n.pullDistance||n.headHeight);d.distance=F,L?d.status="loading":F===0?d.status="normal":F<E?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:F})},w=()=>d.status!=="loading"&&d.status!=="complete",N=()=>c.value==window?_r()==0:c.value&&c.value.scrollTop==0,z=F=>{w()&&(N()?(u.start(F),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},B=F=>{w()&&d.moving&&(u.move(F),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(F.cancelable&&F.preventDefault(),T(g(u.state.deltaY))))},_=()=>{d.moving=!1,d.isPullRefresh&&w()&&u.state.deltaY&&(d.status==="loosing"?(T(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):T(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,F=>{F?T(+n.headHeight,!0):T(0)}),()=>{const F=[];let L=null;if(d.status==="loading"){if(L=a?.loading?.()??null,!L){const G={class:["fox-pull-refresh-container-topbox-icon"]};L=l.h(o,G)}}else d.status==="pulling"?L=a?.pulling?.()??null:d.status==="loosing"&&(L=a?.loosing?.()??null);L&&F.push(L);const E={class:["fox-pull-refresh-container-topbox-text"]},k=l.h("dive",E,[V.value]);F.push(k);const x={class:["fox-pull-refresh-container-topbox"],style:h.value},j=l.h("div",x,F),C={class:"fox-pull-refresh-container",style:p.value},I=l.h("div",C,[j,a?.default?.()]),R={ref:f,class:v.value};return Il()?Object.assign(R,{onTouchstart:z,onTouchmove:B,onTouchend:_}):Object.assign(R,{onMousedown:z,onMousemove:B,onMouseup:_}),l.h("div",R,[I])}}}),{componentName:pd,create:yd,scope:bd}=ie("pull-refresh"),Vl=yd(md(pd,bd,yl));function vd(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const c={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=l.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const h={class:i.value,style:s.value};c=l.h(o.icon??"div",h)}const d={class:u.value,style:f.value},v=n.default?n.default():[],V=l.h("div",d,v),p={class:a.value};return o.textPosition==="right"?l.h("div",p,[c,V]):l.h("div",p,[V,c])}}}}const{componentName:wd,create:Sd,scope:Gh}=ie("indicator"),Fl=Sd(vd(wd));function xd(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const Td={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function $d(e,t,o,n=!1){return{props:{...Td},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const N={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(N[`${e}--${r.type??"default"}`]=!0),r.size&&(N[`${e}--${r.size}`]=!0),N}),u=l.computed(()=>{const N={},z=r.textColor??r.color;return z&&(N.color=z),N}),f=(N,z)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const _=r.highlightFilter;if(N.indexOf(_)!==-1){const L=N.replace(new RegExp(_,"g"),`<span>${_}</span>`);z.innerHTML=L,z.class["is-highlight"]=!0,B=l.h(r.tag,z)}}else if(typeof r.highlightFilter=="function"){const _=r.highlightFilter(N);_&&(z.innerHTML=_,z.class["is-highlight"]=!0,B=l.h(r.tag,z))}return B},c=N=>{a.emit("click",N)};let d="";const v=()=>{const N=i.value;if(!N)return;const z=N.clientWidth;xd(N,B=>{const _=N.innerHTML??"";pe(_)||B<z||(d?o?.show(N,_,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show(N,_,{type:"text",showArrow:r.showArrow},!0)??"")})},V=()=>{d&&o?.hide(d)};let p=null;const h=N=>{p||(p=setTimeout(()=>{v(),p=null},r.showAfter??0))},g=N=>{p&&(clearTimeout(p),p=null),setTimeout(()=>{V()},r.hideAfter??0)},T=()=>{const N=i.value;N&&(N.addEventListener("mouseover",h),N.addEventListener("mouseleave",g))},w=()=>{const N=i.value;N&&(N.removeEventListener("mouseover",h),N.removeEventListener("mouseleave",g))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||T()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||w()}),()=>{const N={onClick:c,class:s.value,style:u.value,ref:i};let z=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const E=L[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const k=Se(r.digits),x=Se(r.decimalLength),j=se(r.autoPadding);let C=`${L[0].children}`,I=C.split("").reverse().join("");I=Pt(I,x,j,k,r.separator),C=I.split("").reverse().join(""),r.highlightFilter!==void 0&&(z=f(C,N)),z||(N.innerHTML=C,z=l.h(r.tag,N))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const E=L[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const k=`${L[0].children}`;z=f(k,N),z||(N.innerHTML=k,z=l.h(r.tag,N))}}}z||(z=l.h(r.tag,N,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return z;let _=null;if(r.icon){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const E={},k=r.color;k&&(E.color=k);const x={class:L,style:E};_=l.h("view",x,l.h(r.icon))}else if(a.slots.mark){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const E={},k=r.color;k&&(E.color=k);const x={class:L,style:E};_=l.h("view",x,{default:a.slots.mark})}else{const L={[`${e}__mark`]:!0};r.type&&(L[`${e}__mark--${r.type??"default"}`]=!0);const E={},k=r.color;k&&(E["background-color"]=k);const x={class:L,style:E};_=l.h("view",x)}const F={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",F,[_,z])}}}}const{componentName:Cd,create:Nd,scope:Ed}=ie("text"),Dl=Nd($d(Cd,Ed,Re,!1)),kd={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ne.ArrowUp}};function Id(e,t,o){return{props:{...kd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=ge(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),f=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},g=l.h("span",h,[s.value]);d.push(g)}const v={class:f.value},V=o(n.icon,v);return V&&d.push(V),l.h("div",{class:a.value,onClick:c},d)}}}}const{componentName:Od,create:Vd,scope:Fd}=ie("more-button"),Rl=Vd(Id(Od,Fd,(e,t)=>(e=e??Ne.ArrowUp,l.h(b.ElIcon,t,{default:()=>[l.h(e)]}))));function Dd(e){return e===window}const jr=e=>{const t=l.unref(e);if(Dd(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Rd,create:Ad,scope:Xh}=ie("tour"),Ld=Ad({components:{Close:Ne.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:t}){const o=Rd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:p,maskWidth:h,maskHeight:g}=e,{width:T,height:w,left:N,top:z}=r.value,B=e.steps[n.active].offset??p,_=[N+T/2,z+w/2],F=Number(h||T),L=Number(g||w);return{width:`${F+ +B.left+B.right}px`,height:`${L+B.top+B.bottom}px`,top:`${_[1]-L/2-+B.top}px`,left:`${_[0]-F/2-+B.left}px`}}),s=p=>{p=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=p=>p.popoverWidth??e.width,f=p=>p.location??e.location,c=()=>{const p=document.querySelector(`${e.steps[n.active].target}`),h=jr(p);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&d()},V=(p,h=0)=>{p&&c(),e.steps,n.active=h,n.showTour=p,n.showPopup=p};return l.onMounted(()=>{V(e.modelValue,e.current)}),l.watch(()=>e.modelValue,p=>{V(p)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:v}}}),Md={key:0,class:"fox-tour__content"},Bd={key:0,class:"fox-tour__content-top"},_d={class:"fox-tour__content-inner"},qd={class:"fox-tour__content-bottom"},Pd={class:"fox-tour__content-bottom-init"},jd={class:"fox-tour__content-bottom-operate"},zd={key:1,class:"fox-tour__content fox-tour__content-tile"},Hd={class:"fox-tour__content-inner"};function Kd(e,t,o,n,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(f,c)=>(l.openBlock(),l.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Md,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Bd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",_d,l.toDisplayString(f.content),1),l.createElementVNode("div",qd,[l.createElementVNode("div",Pd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",jd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",zd,[l.createElementVNode("div",Hd,l.toDisplayString(f.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Al=je(Ld,[["render",Kd]]),Ae=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ft=e=>e==null;class Wd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Il()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Ol(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function zr(e,t){return new Wd(e,t)}var Hr;const Ll=typeof window<"u";Ll&&((Hr=window?.navigator)!=null&&Hr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let St=[];const Kr=e=>{const t=e;t.key==="Escape"&&St.forEach(o=>o(t))},Yd=e=>{l.onMounted(()=>{St.length===0&&document.addEventListener("keydown",Kr),Ll&&St.push(e)}),l.onBeforeUnmount(()=>{St=St.filter(t=>t!==e),St.length===0&&Ll&&document.removeEventListener("keydown",Kr)})},Ml="fox-focus-trap.focus-after-trapped",Bl="fox-focus-trap.focus-after-released",Gd="fox-focus-trap.focusout-prevented",Wr={cancelable:!0,bubbles:!1},Ud={cancelable:!0,bubbles:!1},Yr="foxFocusAfterTrapped",Gr="foxFocusAfterReleased",Xd=Symbol("foxFocusTrap"),_l=l.ref(),hn=l.ref(0),ql=l.ref(0);let gn=0;const Ur=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Zd=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Xr=(e,t)=>{for(const o of e)if(!Zd(o,t))return o},Jd=e=>{const t=Ur(e),o=Xr(t,e),n=Xr(t.reverse(),e);return[o,n]},Qd=e=>e instanceof HTMLInputElement&&"select"in e,ot=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),ql.value=window.performance.now(),e!==o&&Qd(e)&&t&&e.select()}};function Zr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const eh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Zr(e,n),e.unshift(n)},remove:n=>{e=Zr(e,n),e[0]?.resume?.()}}},th=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(ot(n,t),document.activeElement!==o)return},Jr=eh(),nh=()=>hn.value>ql.value,mn=()=>{_l.value="pointer",hn.value=window.performance.now()},Qr=()=>{_l.value="keyboard",hn.value=window.performance.now()},lh=()=>(l.onMounted(()=>{gn===0&&(document.addEventListener("mousedown",mn),document.addEventListener("touchstart",mn),document.addEventListener("keydown",Qr)),gn++}),l.onBeforeUnmount(()=>{gn--,gn<=0&&(document.removeEventListener("mousedown",mn),document.removeEventListener("touchstart",mn),document.removeEventListener("keydown",Qr))}),{focusReason:_l,lastUserFocusTimestamp:hn,lastAutomatedFocusTimestamp:ql}),pn=e=>new CustomEvent(Gd,{...Ud,detail:e}),{componentName:Zh,create:oh,scope:Jh}=ie("focus-trap"),rh=oh({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Yr,Gr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=lh();Yd(h=>{se(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||s.paused)return;const{key:g,altKey:T,ctrlKey:w,metaKey:N,currentTarget:z,shiftKey:B}=h,{loop:_}=e,F=g==="Tab"&&!T&&!w&&!N,L=document.activeElement;if(F&&L){const E=z,[k,x]=Jd(E);if(k&&x){if(!B&&L===x){const C=pn({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),_&&ot(k,!0))}else if(B&&[k,E].includes(L)){const C=pn({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),_&&ot(x,!0))}}else if(L===E){const C=pn({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||h.preventDefault()}}};l.provide(Xd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",v)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",d),g.removeEventListener("focusout",v))});const f=h=>{o(Yr,h)},c=h=>o(Gr,h),d=h=>{const g=l.unref(n);if(!g)return;const T=h.target,w=h.relatedTarget,N=T&&g.contains(T);se(e.trapped)||w&&g.contains(w)||(r=w),N&&o("focusin",h),!s.paused&&se(e.trapped)&&(N?a=T:ot(a,!0))},v=h=>{const g=l.unref(n);if(!(s.paused||!g))if(!e.escape&&se(e.trapped)){const T=h.relatedTarget;!Vn(T)&&!g.contains(T)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const w=pn({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||ot(a,!0)}},0)}else{const T=h.target;T&&g.contains(T)||o("focusout",h)}};async function V(){await l.nextTick();const h=l.unref(n);if(h){Jr.push(s);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const w=new Event(Ml,Wr);h.addEventListener(Ml,f),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let N=e.focusStartEl;no(N)||(ot(N),document.activeElement!==N&&(N="first")),N==="first"&&th(Ur(h),!0),(document.activeElement===g||N==="container")&&ot(h)})}}}function p(){const h=l.unref(n);if(h){h.removeEventListener(Ml,f);const g=new CustomEvent(Bl,{...Wr,detail:{focusReason:i.value}});h.addEventListener(Bl,c),h.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!nh())&&ot(r??document.body,!0),h.removeEventListener(Bl,f),Jr.remove(s)}}return l.onMounted(()=>{se(e.trapped)&&V(),l.watch(()=>e.trapped,h=>{se(h)?V():p()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&p()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:ah,create:ih,scope:eg}=ie("floating-window"),sh=Symbol.for("InnerPageScopeKey"),uh=Symbol.for("PageWrapperKey"),ch={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},fh=ih({inheritAttrs:!1,components:{FoxIcon:b.ElIcon,FocusTrap:rh},props:{...ch},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=ah,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,$=>{n.value=$});const a=l.computed(()=>n.value===!1?!1:!L.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),f=l.ref(e.bottom),c=l.computed(()=>{const $=["fox-floating-window"];return e.customClass&&$.push(e.customClass),$}),d=l.computed(()=>{const $={};return ft(i.value)?$.left="auto":$.left=Ae(i.value),ft(s.value)?$.top="auto":$.top=Ae(s.value),ft(u.value)?$.right="auto":$.right=Ae(u.value),ft(f.value)?$.bottom="auto":$.bottom=Ae(f.value),ft(e.zIndex)||($["z-index"]=Ae(e.zIndex)),ft(_.value)||($.height=_.value),ft(F.value)||($.width=F.value),$}),v=l.computed(()=>e.closeIcon??Ne.Close),V=l.computed(()=>e.collapseIcon??Ne.ArrowUp),p=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),g=l.computed(()=>e.expandText??e.title??"展开"),T=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),N=l.ref(),z=l.ref(null),B=l.ref(null),_=l.computed(()=>Ae(e.height)||""),F=l.computed(()=>Ae(e.width)||""),L=l.ref(se(e.collapse)),E=($,W=!0)=>{L.value!==$&&(L.value=$,$?S():A(),t("update:collapse",$),$&&typeof j.onHide=="function"?j.onHide():!$&&typeof j.onShow=="function"&&j.onShow())};l.watch(()=>e.collapse,$=>{E($)});const k=()=>{x()},x=$=>{$=$??!L.value,E($)};l.provide(sh,!0);const j={setCollapse:E,setFixedNavVisible:$=>{te.value=$}};l.provide(uh,j);const C=()=>{typeof j.beforeClose=="function"?j.beforeClose(()=>{n.value=!1}):n.value=!1},I=l.ref(null),R=l.computed(()=>!e.fixedNavTeleport),G=l.computed(()=>{const $=["fox-floating-window__fixednav"];return e.expandClass&&$.push(e.expandClass),e.collapsePosition==="left"?$.push("is-left"):e.collapsePosition==="right"&&$.push("is-right"),$}),Y=l.ref(""),Z=l.computed(()=>{const $={};return Y.value?$.top=Y.value:e.collapseTop&&($.top=e.collapseTop),$}),X=l.ref(L.value),te=l.computed({set:$=>{X.value=$},get:()=>n.value===!1?!1:X.value});let oe=null;const O=()=>{typeof oe=="function"&&(oe(),oe=null)},S=()=>{I.value&&I.value.classList.add("slide-in"),te.value=!0,oe=()=>{I.value&&I.value.classList.remove("slide-in")}},A=()=>{I.value&&I.value.classList.add("slide-out"),oe=()=>{I.value&&I.value.classList.remove("slide-out"),te.value=!1}},D=()=>{i.value=null,s.value=null,u.value=null,f.value=null},y={x:0,y:0},q=zr($=>{if(!N.value)return;const W=N.value;if(D(),e.origin==="left-top")i.value=W.offsetLeft,s.value=W.offsetTop,y.x=i.value,y.y=s.value;else if(e.origin==="left-bottom"){const ee=document.documentElement.clientHeight||document.body.clientHeight;i.value=W.offsetLeft,f.value=ee-(W.offsetTop+W.offsetHeight),y.x=i.value,y.y=f.value}else if(e.origin==="right-bottom"){const ee=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=ee-(W.offsetLeft+W.offsetWidth),f.value=le-(W.offsetTop+W.offsetHeight),y.x=u.value,y.y=f.value}else{const ee=document.documentElement.clientWidth||document.body.clientWidth;u.value=ee-(W.offsetLeft+W.offsetWidth),s.value=W.offsetTop,y.x=u.value,y.y=s.value}},$=>{if(!N.value)return;const W=N.value;D(),e.origin==="left-top"?(i.value=y.x+$.x,s.value=y.y+$.y,W.style.left=Ae(i.value),W.style.top=Ae(s.value)):e.origin==="left-bottom"?(i.value=y.x+$.x,f.value=y.y-$.y,W.style.left=Ae(i.value),W.style.bottom=Ae(f.value)):e.origin==="right-bottom"?(u.value=y.x-$.x,f.value=y.y-$.y,W.style.right=Ae(u.value),W.style.bottom=Ae(f.value)):(u.value=y.x-$.x,s.value=y.y+$.y,W.style.right=Ae(u.value),W.style.top=Ae(s.value))}),M={x:0,y:0},J=zr($=>{I.value&&(M.x=I.value.offsetLeft,M.y=I.value.offsetTop)},$=>{if(!I.value)return;const W=M.y+$.y;Y.value=`${W}px`}),ne=()=>{if(N.value){const $=N.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=$}};return l.onMounted(()=>{if(e.draggable&&N.value){const $=[];z.value&&$.push(z.value),e.footerDraggable&&(ne(),B.value&&$.push(B.value)),q.open($)}e.collapse===!0&&E(e.collapse,!1),I.value&&J.open(I.value)}),l.onBeforeUnmount(()=>{e.draggable&&z.value&&q.close(),I.value&&J.close()}),{classes:c,styles:d,isShow:a,closeIcon:v,onClose:C,dialogRef:N,headerRef:z,onClickToggle:k,collapseIcon:V,collapseText:p,collapseTextClasses:T,collapseIconClasses:w,expandIcon:h,expandText:g,isShowFixedNav:te,fixedNavRef:I,fixedNavClasses:G,fixedNavStyles:Z,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:R}}}),dh={ref:"headerRef",class:"fox-floating-window__header"},hh={class:"fox-floating-window__title"},gh={class:"fox-floating-window__tools"},mh={class:"fox-floating-window__body"},ph={class:"fox-floating-window__fixednav__text"};function yh(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),s=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",dh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",hh,l.toDisplayString(e.title),1),l.createElementVNode("div",gh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",mh,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",ph,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Pl=je(fh,[["render",yh]]);function bh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return To(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:tg,create:vh,scope:ng}=ie("domain-provider"),jl=vh(bh()),wh={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 Sh(e,t){return{inheritAttrs:!1,props:wh,setup(o,{slots:n}){if(st&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,V)=>{if(c===null){a.set(v,{visible:null,callback:V});return}r.has(v)&&c.unobserve(v),r.set(v,{visible:null,callback:V}),c.observe(v)},s=v=>{if(c===null){a.delete(v);return}r.has(v)&&(r.delete(v),c.unobserve(v))};let u=o.initialVisibleObserverSize;ii({acquire:()=>{const v=u>0;return u--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(v,V,p)=>{c=new IntersectionObserver(h=>{for(let g of h){let T=!1;g.intersectionRatio>0&&(T=!0);const w=r.get(g.target);if(w)try{if(o.loadPolicy==="lazy"&&!T&&w.visible!==null)return;w.visible=T,w.callback(T)}catch(N){console.error(N)}}},{root:v,rootMargin:V,threshold:p}),a.forEach((h,g)=>{r.set(g,h),c?.observe(g)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,V])=>{if(V||!v||c)return;let p=null;typeof v=="string"?p=document.querySelector(v):p=v,p&&d(p,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:lg,create:xh,scope:og}=ie("rolling-provider"),zl=xh(Sh()),Th=[Bn,qn,Pn,jn,Kn,Te,Gn,Un,Vt,Xn,Zn,Jn,Qn,el,tl,nl,ol,rl,al,il,fn,cl,fl,dl,hl,gl,ml,pl,bl,vl,wl,Tl,$l,dn,Cl,Nl,El,kl,Vl,Dt,un,Fl,Dl,Rl,Al,Pl,jl,zl],$h=new Ba(Th,[Pa],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>b.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>b.ElAlert}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>b.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>b.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>b.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>b.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>b.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>b.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>b.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>b.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>b.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>b.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>b.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>b.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>b.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>b.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>b.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>b.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>b.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>b.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>b.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>b.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>b.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>b.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>b.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>b.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>b.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>b.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>b.ElContainer}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>b.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>b.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>b.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>b.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>b.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>b.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>b.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>b.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>b.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>b.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>b.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>b.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>b.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>b.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>b.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>b.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>b.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>b.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>b.ElInputNumber}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>b.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>b.ElMain}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>b.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>b.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>b.ElMenuItemGroup}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>b.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>b.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>b.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>b.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>b.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>b.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>b.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>b.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>b.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>b.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>b.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>b.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>b.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>b.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>b.ElScrollbar}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>b.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>b.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>b.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>b.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>b.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>b.ElSpace}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>b.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>b.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>b.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>b.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>b.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>b.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>b.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>b.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>b.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>b.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>b.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>b.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>b.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>b.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>b.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>b.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>b.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>b.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>b.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>b.ElUpload}),m.AutocompleteItem=rl,m.Broadcast=Fn,m.BroadcastKey=be,m.CascaderItem=ol,m.CheckboxItem=dl,m.Content=jn,m.DataItemsKey=gt,m.DateItem=Jn,m.DateUtils=qe,m.DialogItem=$l,m.Domain=Xt,m.DomainKey=Me,m.DomainProvider=jl,m.FloatingWindow=Pl,m.FooterBar=Pn,m.FoxAutocompleteItem=rl,m.FoxCascaderItem=ol,m.FoxCheckboxItem=dl,m.FoxContent=jn,m.FoxDateItem=Jn,m.FoxDialogItem=$l,m.FoxDomainProvider=jl,m.FoxFloatingWindow=Pl,m.FoxFooterBar=Pn,m.FoxGroup=Kn,m.FoxGroupSetting=pl,m.FoxHeaderBar=qn,m.FoxHintText=Vt,m.FoxIndicator=Fl,m.FoxInfiniteLoading=kl,m.FoxInputItem=Xn,m.FoxInputNumberItem=nl,m.FoxItem=Te,m.FoxMapping=Dt,m.FoxMoneyItem=tl,m.FoxMoreButton=Rl,m.FoxOverLay=dn,m.FoxPage=Bn,m.FoxPopup=Cl,m.FoxPrice=un,m.FoxPullRefresh=Vl,m.FoxRadioItem=fl,m.FoxRateItem=hl,m.FoxRollingProvider=zl,m.FoxRowItem=Un,m.FoxSearchBar=El,m.FoxSelectItem=Zn,m.FoxSlotItem=Gn,m.FoxStepsBar=Tl,m.FoxSwitchItem=gl,m.FoxTableItem=cl,m.FoxTableMappingColumn=al,m.FoxTableRadioColumn=il,m.FoxTableSetting=fn,m.FoxTabsBar=bl,m.FoxTabsContainer=vl,m.FoxTabsPane=wl,m.FoxText=Dl,m.FoxTimeItem=Qn,m.FoxTimeSelectItem=el,m.FoxToast=Nl,m.FoxTour=Al,m.FoxTreeSelectItem=ml,m.Group=Kn,m.GroupSetting=pl,m.HeaderBar=qn,m.HintText=Vt,m.Indicator=Fl,m.InfiniteLoading=kl,m.InputItem=Xn,m.InputNumberItem=nl,m.Item=Te,m.Mapping=Dt,m.MoneyItem=tl,m.MoreButton=Rl,m.OverLay=dn,m.Page=Bn,m.Popup=Cl,m.Price=un,m.PriorityPolicy=_e,m.PullRefresh=Vl,m.RadioItem=fl,m.RateItem=hl,m.RollingProvider=zl,m.RowItem=Un,m.SearchBar=El,m.SelectItem=Zn,m.SlotItem=Gn,m.StepsBar=Tl,m.SwitchItem=gl,m.TableItem=cl,m.TableMappingColumn=al,m.TableRadioColumn=il,m.TableSetting=fn,m.TabsBar=bl,m.TabsContainer=vl,m.TabsPane=wl,m.Text=Dl,m.TimeItem=Qn,m.TimeSelectItem=el,m.Toast=Nl,m.Tour=Al,m.TreeSelectItem=ml,m.UniqueID=_o,m.ValidateSchema=wo,m.ValidateSchemaKey=ze,m.cancelRaf=na,m.clearNonNumber=ga,m.clone=In,m.compareTo=Cn,m.createBroadcast=Kt,m.createValidateSchema=Yt,m.debounce=kt,m.debounceRef=Ea,m.decimalLength=ho,m.default=$h,m.defineBroadcast=ba,m.defineConfigDomain=To,m.defineDataItem=Co,m.defineDomain=Rn,m.defineItem=$e,m.definePageState=Eo,m.defineSimpleItem=No,m.deleteGlobalValidator=Ta,m.disabledProperty=De,m.divide=$n,m.excludeProps=ke,m.extend=it,m.floatData=ya,m.getGlobalValidateCheckEvents=yo,m.getGlobalValidateResetEvents=vo,m.getPageContentAreaHeight=Jt,m.getPageContentAreaWidth=Qt,m.getPageFooterAreaHeight=Ot,m.getPageHeaderAreaHeight=It,m.getRootDomain=mt,m.hasSymbol=ro,m.includeProps=mo,m.indexOf=ma,m.installRules=$o,m.integerLength=fo,m.isArray=oa,m.isArrayLike=io,m.isBrowser=st,m.isDate=ia,m.isESModule=ua,m.isEmptyString=pe,m.isEqual=Ze,m.isFunction=En,m.isHidden=Ht,m.isInnerPage=Oa,m.isMap=ra,m.isNil=Vn,m.isNumberString=co,m.isObject=Xe,m.isPlainObject=kn,m.isPromise=lo,m.isRegExp=uo,m.isSet=aa,m.isString=no,m.isSubPage=Va,m.isSymbol=sa,m.isTouch=Il,m.isWindow=ao,m.lastIndexOf=pa,m.makeArray=ha,m.merge=so,m.multiply=Ql,m.negate=eo,m.nextTick=fa,m.numberFormat=Pt,m.objectToString=oo,m.once=ka,m.overrideGlobalValidateHandler=Sa,m.property=Ve,m.raf=Nn,m.readonlyProperty=Fe,m.setGlobalValidateCheckEvents=$a,m.setGlobalValidateHandler=wa,m.setGlobalValidateMessages=Na,m.setGlobalValidateResetEvents=Ca,m.setGlobalValidator=xa,m.throttle=xo,m.toBoolean=se,m.toNumber=Se,m.toPadding=We,m.toPx=he,m.toPxDesc=Ie,m.toTypeString=jt,m.toValue=ge,m.tryTimes=Ut,m.typeOf=zt,m.unNumberFormat=to,m.updatePageState=An,m.useBroadcast=Ct,m.useDomain=Je,m.useExpose=Ce,m.useInnerSize=_n,m.usePageState=Zt,m.usePosition=Lo,m.useRawTouch=Ol,m.useRect=jr,m.useSize=tn,m.useTouch=hd,m.valueLength=$t,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|