el-form-renderer-vue3 1.1.2 → 2.0.2
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/LICENSE +21 -0
- package/README.en.md +36 -0
- package/README.md +11 -15
- package/dist/el-form-renderer-vue3.cjs.js +6 -0
- package/dist/el-form-renderer-vue3.es.js +4375 -0
- package/dist/el-form-renderer-vue3.iife.js +6 -0
- package/dist/el-form-renderer-vue3.umd.js +6 -0
- package/dist/qq.jpg +0 -0
- package/package.json +136 -8
- package/el-form-renderer-vue3.es.js +0 -4041
- package/el-form-renderer-vue3.umd.js +0 -5
- package/femessage/components/render-form-group.vue +0 -46
- package/femessage/components/render-form-item.vue +0 -335
- package/femessage/el-form-renderer.vue +0 -313
- package/femessage/util/CustomComponent.js +0 -28
- package/femessage/util/VNode.js +0 -9
- package/femessage/util/enable-when.js +0 -26
- package/femessage/util/keys.js +0 -3
- package/femessage/util/ployfill.js +0 -14
- package/femessage/util/transform-content.js +0 -47
- package/femessage/util/utils.js +0 -126
- /package/{vite.svg → dist/vite.svg} +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 贾公子
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.en.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# form-render
|
|
2
|
+
|
|
3
|
+
#### Description
|
|
4
|
+
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
|
5
|
+
|
|
6
|
+
#### Software Architecture
|
|
7
|
+
Software architecture description
|
|
8
|
+
|
|
9
|
+
#### Installation
|
|
10
|
+
|
|
11
|
+
1. xxxx
|
|
12
|
+
2. xxxx
|
|
13
|
+
3. xxxx
|
|
14
|
+
|
|
15
|
+
#### Instructions
|
|
16
|
+
|
|
17
|
+
1. xxxx
|
|
18
|
+
2. xxxx
|
|
19
|
+
3. xxxx
|
|
20
|
+
|
|
21
|
+
#### Contribution
|
|
22
|
+
|
|
23
|
+
1. Fork the repository
|
|
24
|
+
2. Create Feat_xxx branch
|
|
25
|
+
3. Commit your code
|
|
26
|
+
4. Create Pull Request
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#### Gitee Feature
|
|
30
|
+
|
|
31
|
+
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
32
|
+
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
33
|
+
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
34
|
+
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
35
|
+
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
36
|
+
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/README.md
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
## 技术交流群 711368818
|
|
2
2
|
|
|
3
|
-
<img src="./
|
|
4
|
-
|
|
5
|
-
## 遗留问题 :待解决
|
|
6
|
-
|
|
7
|
-
select 为 multiple 多选时 必须初始化空数组(在 elementplus v-model 初始化 updateValue 时 为空数组会触发校验)
|
|
3
|
+
<img src="./public/qq.jpg" width="200" />
|
|
8
4
|
|
|
9
5
|
## Introduction
|
|
10
6
|
|
|
@@ -27,12 +23,12 @@ form-renderer 基于元素 element-plus,但不限于元素 element-plus 组件
|
|
|
27
23
|
|
|
28
24
|
## Links
|
|
29
25
|
|
|
30
|
-
- [$attrs 和 $listeners (vue2&&vue3)](https://
|
|
31
|
-
- [vue2 与 vue3 函数式组件](https://
|
|
32
|
-
- [vue 2 与 vue3 获取模版引用 (ref)的区别](https://
|
|
33
|
-
- [vue2 与 vue3 v-model 的区别](https://
|
|
34
|
-
- [vue2 版本](https://
|
|
35
|
-
- [中文文档](https://
|
|
26
|
+
- [$attrs 和 $listeners (vue2&&vue3)](https://v3-migration.vuejs.org/zh/breaking-changes/listeners-removed.html)
|
|
27
|
+
- [vue2 与 vue3 函数式组件](https://v3-migration.vuejs.org/zh/breaking-changes/functional-components.html)
|
|
28
|
+
- [vue 2 与 vue3 获取模版引用 (ref)的区别](https://cn.vuejs.org/guide/essentials/template-refs.html#template-refs)
|
|
29
|
+
- [vue2 与 vue3 v-model 的区别](https://v3-migration.vuejs.org/zh/breaking-changes/v-model.html)
|
|
30
|
+
- [vue2 版本](https://github.com/FEMessage/el-form-renderer)
|
|
31
|
+
- [中文文档](https://jiayc4215.github.io/form-render)
|
|
36
32
|
- [element-plus table 的封装](https://gitee.com/childe-jia/table-vue3)
|
|
37
33
|
|
|
38
34
|
## Quick Start
|
|
@@ -42,8 +38,8 @@ pnpm i el-form-renderer-vue3
|
|
|
42
38
|
```
|
|
43
39
|
|
|
44
40
|
```ts
|
|
45
|
-
import elFormRenderer from "el-form-renderer-vue3"
|
|
46
|
-
app.use(elFormRenderer)
|
|
41
|
+
import elFormRenderer from "el-form-renderer-vue3"
|
|
42
|
+
app.use(elFormRenderer)
|
|
47
43
|
```
|
|
48
44
|
|
|
49
45
|
```ts
|
|
@@ -182,7 +178,7 @@ const content = reactive([
|
|
|
182
178
|
},
|
|
183
179
|
]);
|
|
184
180
|
const resetForm = () => {
|
|
185
|
-
form.value.
|
|
181
|
+
form.value.resetFields();
|
|
186
182
|
};
|
|
187
183
|
const setValue = () => {
|
|
188
184
|
FormData.name = "小明";
|
|
@@ -375,7 +371,7 @@ interface Content {
|
|
|
375
371
|
* 监听表单项发出的事件
|
|
376
372
|
* listen to any events emitted by component of form item
|
|
377
373
|
* @param {any[]} args - what that event emits
|
|
378
|
-
* @param {function} updateForm - same as
|
|
374
|
+
* @param {function} updateForm - same as updateForm
|
|
379
375
|
*/
|
|
380
376
|
on?: {
|
|
381
377
|
[eventName: string]: (args: any[], updateForm: function) => void
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("vue");var fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yr,Sn;function Oo(){if(Sn)return Yr;Sn=1;var e="Expected a function",r="__lodash_hash_undefined__",n="[object Function]",o="[object GeneratorFunction]",s="[object Symbol]",i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,d=/^\./,E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/[\\^$.*+?()[\]{}|]/g,S=/\\(\\)?/g,v=/^\[object .+?Constructor\]$/,j=typeof fe=="object"&&fe&&fe.Object===Object&&fe,k=typeof self=="object"&&self&&self.Object===Object&&self,w=j||k||Function("return this")();function A(h,O){return h?.[O]}function C(h){var O=!1;if(h!=null&&typeof h.toString!="function")try{O=!!(h+"")}catch{}return O}var q=Array.prototype,J=Function.prototype,W=Object.prototype,R=w["__core-js_shared__"],U=(function(){var h=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""})(),P=J.toString,F=W.hasOwnProperty,Y=W.toString,X=RegExp("^"+P.call(F).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=w.Symbol,te=q.splice,Q=Ie(w,"Map"),Z=Ie(Object,"create"),oe=ee?ee.prototype:void 0,L=oe?oe.toString:void 0;function H(h){var O=-1,N=h?h.length:0;for(this.clear();++O<N;){var z=h[O];this.set(z[0],z[1])}}function le(){this.__data__=Z?Z(null):{}}function ae(h){return this.has(h)&&delete this.__data__[h]}function Ce(h){var O=this.__data__;if(Z){var N=O[h];return N===r?void 0:N}return F.call(O,h)?O[h]:void 0}function $(h){var O=this.__data__;return Z?O[h]!==void 0:F.call(O,h)}function ge(h,O){var N=this.__data__;return N[h]=Z&&O===void 0?r:O,this}H.prototype.clear=le,H.prototype.delete=ae,H.prototype.get=Ce,H.prototype.has=$,H.prototype.set=ge;function de(h){var O=-1,N=h?h.length:0;for(this.clear();++O<N;){var z=h[O];this.set(z[0],z[1])}}function he(){this.__data__=[]}function me(h){var O=this.__data__,N=be(O,h);if(N<0)return!1;var z=O.length-1;return N==z?O.pop():te.call(O,N,1),!0}function K(h){var O=this.__data__,N=be(O,h);return N<0?void 0:O[N][1]}function Ae(h){return be(this.__data__,h)>-1}function ot(h,O){var N=this.__data__,z=be(N,h);return z<0?N.push([h,O]):N[z][1]=O,this}de.prototype.clear=he,de.prototype.delete=me,de.prototype.get=K,de.prototype.has=Ae,de.prototype.set=ot;function pe(h){var O=-1,N=h?h.length:0;for(this.clear();++O<N;){var z=h[O];this.set(z[0],z[1])}}function Ye(){this.__data__={hash:new H,map:new(Q||de),string:new H}}function Ee(h){return Be(this,h).delete(h)}function Je(h){return Be(this,h).get(h)}function we(h){return Be(this,h).has(h)}function Fe(h,O){return Be(this,h).set(h,O),this}pe.prototype.clear=Ye,pe.prototype.delete=Ee,pe.prototype.get=Je,pe.prototype.has=we,pe.prototype.set=Fe;function be(h,O){for(var N=h.length;N--;)if(He(h[N][0],O))return N;return-1}function Qe(h,O){O=ke(O,h)?[O]:_e(O);for(var N=0,z=O.length;h!=null&&N<z;)h=h[Le(O[N++])];return N&&N==z?h:void 0}function We(h){if(!D(h)||Re(h))return!1;var O=T(h)||C(h)?X:v;return O.test(at(h))}function De(h){if(typeof h=="string")return h;if(ye(h))return L?L.call(h):"";var O=h+"";return O=="0"&&1/h==-1/0?"-0":O}function _e(h){return p(h)?h:Se(h)}function Be(h,O){var N=h.__data__;return Ue(O)?N[typeof O=="string"?"string":"hash"]:N.map}function Ie(h,O){var N=A(h,O);return We(N)?N:void 0}function ke(h,O){if(p(h))return!1;var N=typeof h;return N=="number"||N=="symbol"||N=="boolean"||h==null||ye(h)?!0:c.test(h)||!i.test(h)||O!=null&&h in Object(O)}function Ue(h){var O=typeof h;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?h!=="__proto__":h===null}function Re(h){return!!U&&U in h}var Se=je(function(h){h=Ne(h);var O=[];return d.test(h)&&O.push(""),h.replace(E,function(N,z,f,b){O.push(f?b.replace(S,"$1"):z||N)}),O});function Le(h){if(typeof h=="string"||ye(h))return h;var O=h+"";return O=="0"&&1/h==-1/0?"-0":O}function at(h){if(h!=null){try{return P.call(h)}catch{}try{return h+""}catch{}}return""}function je(h,O){if(typeof h!="function"||O&&typeof O!="function")throw new TypeError(e);var N=function(){var z=arguments,f=O?O.apply(this,z):z[0],b=N.cache;if(b.has(f))return b.get(f);var I=h.apply(this,z);return N.cache=b.set(f,I),I};return N.cache=new(je.Cache||pe),N}je.Cache=pe;function He(h,O){return h===O||h!==h&&O!==O}var p=Array.isArray;function T(h){var O=D(h)?Y.call(h):"";return O==n||O==o}function D(h){var O=typeof h;return!!h&&(O=="object"||O=="function")}function ce(h){return!!h&&typeof h=="object"}function ye(h){return typeof h=="symbol"||ce(h)&&Y.call(h)==s}function Ne(h){return h==null?"":De(h)}function Xe(h,O,N){var z=h==null?void 0:Qe(h,O);return z===void 0?N:z}return Yr=Xe,Yr}var Eo=Oo();const jt=mt(Eo);var Qr,xn;function vo(){if(xn)return Qr;xn=1;var e="Expected a function",r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",s="[object Function]",i="[object GeneratorFunction]",c="[object Symbol]",d=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,_=/^\./,S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/[\\^$.*+?()[\]{}|]/g,j=/\\(\\)?/g,k=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,A=typeof fe=="object"&&fe&&fe.Object===Object&&fe,C=typeof self=="object"&&self&&self.Object===Object&&self,q=A||C||Function("return this")();function J(l,x){return l?.[x]}function W(l){var x=!1;if(l!=null&&typeof l.toString!="function")try{x=!!(l+"")}catch{}return x}var R=Array.prototype,U=Function.prototype,P=Object.prototype,F=q["__core-js_shared__"],Y=(function(){var l=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),X=U.toString,ee=P.hasOwnProperty,te=P.toString,Q=RegExp("^"+X.call(ee).replace(v,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=q.Symbol,oe=P.propertyIsEnumerable,L=R.splice,H=Se(q,"Map"),le=Se(Object,"create"),ae=Z?Z.prototype:void 0,Ce=ae?ae.toString:void 0;function $(l){var x=-1,B=l?l.length:0;for(this.clear();++x<B;){var re=l[x];this.set(re[0],re[1])}}function ge(){this.__data__=le?le(null):{}}function de(l){return this.has(l)&&delete this.__data__[l]}function he(l){var x=this.__data__;if(le){var B=x[l];return B===r?void 0:B}return ee.call(x,l)?x[l]:void 0}function me(l){var x=this.__data__;return le?x[l]!==void 0:ee.call(x,l)}function K(l,x){var B=this.__data__;return B[l]=le&&x===void 0?r:x,this}$.prototype.clear=ge,$.prototype.delete=de,$.prototype.get=he,$.prototype.has=me,$.prototype.set=K;function Ae(l){var x=-1,B=l?l.length:0;for(this.clear();++x<B;){var re=l[x];this.set(re[0],re[1])}}function ot(){this.__data__=[]}function pe(l){var x=this.__data__,B=_e(x,l);if(B<0)return!1;var re=x.length-1;return B==re?x.pop():L.call(x,B,1),!0}function Ye(l){var x=this.__data__,B=_e(x,l);return B<0?void 0:x[B][1]}function Ee(l){return _e(this.__data__,l)>-1}function Je(l,x){var B=this.__data__,re=_e(B,l);return re<0?B.push([l,x]):B[re][1]=x,this}Ae.prototype.clear=ot,Ae.prototype.delete=pe,Ae.prototype.get=Ye,Ae.prototype.has=Ee,Ae.prototype.set=Je;function we(l){var x=-1,B=l?l.length:0;for(this.clear();++x<B;){var re=l[x];this.set(re[0],re[1])}}function Fe(){this.__data__={hash:new $,map:new(H||Ae),string:new $}}function be(l){return Re(this,l).delete(l)}function Qe(l){return Re(this,l).get(l)}function We(l){return Re(this,l).has(l)}function De(l,x){return Re(this,l).set(l,x),this}we.prototype.clear=Fe,we.prototype.delete=be,we.prototype.get=Qe,we.prototype.has=We,we.prototype.set=De;function _e(l,x){for(var B=l.length;B--;)if(Ne(l[B][0],x))return B;return-1}function Be(l,x){return l!=null&&ee.call(l,x)}function Ie(l){if(!b(l)||p(l))return!1;var x=z(l)||W(l)?Q:k;return x.test(ce(l))}function ke(l){if(typeof l=="string")return l;if(se(l))return Ce?Ce.call(l):"";var x=l+"";return x=="0"&&1/l==-1/0?"-0":x}function Ue(l){return h(l)?l:T(l)}function Re(l,x){var B=l.__data__;return He(x)?B[typeof x=="string"?"string":"hash"]:B.map}function Se(l,x){var B=J(l,x);return Ie(B)?B:void 0}function Le(l,x,B){x=je(x,l)?[x]:Ue(x);for(var re,xe=-1,it=x.length;++xe<it;){var st=D(x[xe]);if(!(re=l!=null&&B(l,st)))break;l=l[st]}if(re)return re;var it=l?l.length:0;return!!it&&f(it)&&at(st,it)&&(h(l)||Xe(l))}function at(l,x){return x=x??n,!!x&&(typeof l=="number"||w.test(l))&&l>-1&&l%1==0&&l<x}function je(l,x){if(h(l))return!1;var B=typeof l;return B=="number"||B=="symbol"||B=="boolean"||l==null||se(l)?!0:E.test(l)||!d.test(l)||x!=null&&l in Object(x)}function He(l){var x=typeof l;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?l!=="__proto__":l===null}function p(l){return!!Y&&Y in l}var T=ye(function(l){l=ve(l);var x=[];return _.test(l)&&x.push(""),l.replace(S,function(B,re,xe,st){x.push(xe?st.replace(j,"$1"):re||B)}),x});function D(l){if(typeof l=="string"||se(l))return l;var x=l+"";return x=="0"&&1/l==-1/0?"-0":x}function ce(l){if(l!=null){try{return X.call(l)}catch{}try{return l+""}catch{}}return""}function ye(l,x){if(typeof l!="function"||x&&typeof x!="function")throw new TypeError(e);var B=function(){var re=arguments,xe=x?x.apply(this,re):re[0],st=B.cache;if(st.has(xe))return st.get(xe);var it=l.apply(this,re);return B.cache=st.set(xe,it),it};return B.cache=new(ye.Cache||we),B}ye.Cache=we;function Ne(l,x){return l===x||l!==l&&x!==x}function Xe(l){return N(l)&&ee.call(l,"callee")&&(!oe.call(l,"callee")||te.call(l)==o)}var h=Array.isArray;function O(l){return l!=null&&f(l.length)&&!z(l)}function N(l){return I(l)&&O(l)}function z(l){var x=b(l)?te.call(l):"";return x==s||x==i}function f(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=n}function b(l){var x=typeof l;return!!l&&(x=="object"||x=="function")}function I(l){return!!l&&typeof l=="object"}function se(l){return typeof l=="symbol"||I(l)&&te.call(l)==c}function ve(l){return l==null?"":ke(l)}function qe(l,x){return l!=null&&Le(l,x,Be)}return Qr=qe,Qr}var To=vo();const Co=mt(To);function Ao(e,r){if(!e)return!0;const n=o=>typeof o=="string"?Co(r,o):Object.keys(o).every(s=>{const i=jt(r,s);return i!==void 0&&i===o[s]});return Array.isArray(e)?e.some(n):n(e)}var en,On;function Ro(){if(On)return en;On=1;var e=9007199254740991,r="[object Arguments]",n="[object Function]",o="[object GeneratorFunction]",s="[object Map]",i="[object Object]",c="[object Promise]",d="[object Set]",E="[object WeakMap]",_="[object DataView]",S=/[\\^$.*+?()[\]{}|]/g,v=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,k=typeof fe=="object"&&fe&&fe.Object===Object&&fe,w=typeof self=="object"&&self&&self.Object===Object&&self,A=k||w||Function("return this")();function C(p,T){for(var D=-1,ce=p?p.length:0,ye=Array(ce);++D<ce;)ye[D]=T(p[D],D,p);return ye}function q(p,T){for(var D=-1,ce=Array(p);++D<p;)ce[D]=T(D);return ce}function J(p,T){return C(T,function(D){return[D,p[D]]})}function W(p,T){return p?.[T]}function R(p){var T=!1;if(p!=null&&typeof p.toString!="function")try{T=!!(p+"")}catch{}return T}function U(p){var T=-1,D=Array(p.size);return p.forEach(function(ce,ye){D[++T]=[ye,ce]}),D}function P(p,T){return function(D){return p(T(D))}}function F(p){var T=-1,D=Array(p.size);return p.forEach(function(ce){D[++T]=[ce,ce]}),D}var Y=Function.prototype,X=Object.prototype,ee=A["__core-js_shared__"],te=(function(){var p=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""})(),Q=Y.toString,Z=X.hasOwnProperty,oe=X.toString,L=RegExp("^"+Q.call(Z).replace(S,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=X.propertyIsEnumerable,le=P(Object.keys,Object),ae=Fe(A,"DataView"),Ce=Fe(A,"Map"),$=Fe(A,"Promise"),ge=Fe(A,"Set"),de=Fe(A,"WeakMap"),he=_e(ae),me=_e(Ce),K=_e($),Ae=_e(ge),ot=_e(de);function pe(p,T){var D=Ie(p)||Be(p)?q(p.length,String):[],ce=D.length,ye=!!ce;for(var Ne in p)Z.call(p,Ne)&&!(ye&&(Ne=="length"||Qe(Ne,ce)))&&D.push(Ne);return D}function Ye(p){return oe.call(p)}function Ee(p){if(!Le(p)||We(p))return!1;var T=Re(p)||R(p)?L:v;return T.test(_e(p))}function Je(p){if(!De(p))return le(p);var T=[];for(var D in Object(p))Z.call(p,D)&&D!="constructor"&&T.push(D);return T}function we(p){return function(T){var D=be(T);return D==s?U(T):D==d?F(T):J(T,p(T))}}function Fe(p,T){var D=W(p,T);return Ee(D)?D:void 0}var be=Ye;(ae&&be(new ae(new ArrayBuffer(1)))!=_||Ce&&be(new Ce)!=s||$&&be($.resolve())!=c||ge&&be(new ge)!=d||de&&be(new de)!=E)&&(be=function(p){var T=oe.call(p),D=T==i?p.constructor:void 0,ce=D?_e(D):void 0;if(ce)switch(ce){case he:return _;case me:return s;case K:return c;case Ae:return d;case ot:return E}return T});function Qe(p,T){return T=T??e,!!T&&(typeof p=="number"||j.test(p))&&p>-1&&p%1==0&&p<T}function We(p){return!!te&&te in p}function De(p){var T=p&&p.constructor,D=typeof T=="function"&&T.prototype||X;return p===D}function _e(p){if(p!=null){try{return Q.call(p)}catch{}try{return p+""}catch{}}return""}function Be(p){return Ue(p)&&Z.call(p,"callee")&&(!H.call(p,"callee")||oe.call(p)==r)}var Ie=Array.isArray;function ke(p){return p!=null&&Se(p.length)&&!Re(p)}function Ue(p){return at(p)&&ke(p)}function Re(p){var T=Le(p)?oe.call(p):"";return T==n||T==o}function Se(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=e}function Le(p){var T=typeof p;return!!p&&(T=="object"||T=="function")}function at(p){return!!p&&typeof p=="object"}function je(p){return ke(p)?pe(p):Je(p)}var He=we(je);return en=He,en}var jo=Ro();const Po=mt(jo);var tn,En;function Fo(){if(En)return tn;En=1;function e(r){for(var n=-1,o=r?r.length:0,s={};++n<o;){var i=r[n];s[i[0]]=i[1]}return s}return tn=e,tn}var Io=Fo();const Kn=mt(Io),Lo=e=>e.content;function Jn(e,r){return function(){return e.apply(r,arguments)}}const{toString:No}=Object.prototype,{getPrototypeOf:gn}=Object,{iterator:dr,toStringTag:Wn}=Symbol,pr=(e=>r=>{const n=No.call(r);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ct=e=>(e=e.toLowerCase(),r=>pr(r)===e),hr=e=>r=>typeof r===e,{isArray:Ft}=Array,Pt=hr("undefined");function zt(e){return e!==null&&!Pt(e)&&e.constructor!==null&&!Pt(e.constructor)&&rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xn=ct("ArrayBuffer");function Do(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&Xn(e.buffer),r}const Bo=hr("string"),rt=hr("function"),Zn=hr("number"),Gt=e=>e!==null&&typeof e=="object",Uo=e=>e===!0||e===!1,ur=e=>{if(pr(e)!=="object")return!1;const r=gn(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Wn in e)&&!(dr in e)},Mo=e=>{if(!Gt(e)||zt(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$o=ct("Date"),ko=ct("File"),Ho=ct("Blob"),qo=ct("FileList"),Vo=e=>Gt(e)&&rt(e.pipe),zo=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||rt(e.append)&&((r=pr(e))==="formdata"||r==="object"&&rt(e.toString)&&e.toString()==="[object FormData]"))},Go=ct("URLSearchParams"),[Ko,Jo,Wo,Xo]=["ReadableStream","Request","Response","Headers"].map(ct),Zo=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kt(e,r,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),Ft(e))for(o=0,s=e.length;o<s;o++)r.call(null,e[o],o,e);else{if(zt(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),c=i.length;let d;for(o=0;o<c;o++)d=i[o],r.call(null,e[d],d,e)}}function Yn(e,r){if(zt(e))return null;r=r.toLowerCase();const n=Object.keys(e);let o=n.length,s;for(;o-- >0;)if(s=n[o],r===s.toLowerCase())return s;return null}const xt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qn=e=>!Pt(e)&&e!==xt;function cn(){const{caseless:e,skipUndefined:r}=Qn(this)&&this||{},n={},o=(s,i)=>{const c=e&&Yn(n,i)||i;ur(n[c])&&ur(s)?n[c]=cn(n[c],s):ur(s)?n[c]=cn({},s):Ft(s)?n[c]=s.slice():(!r||!Pt(s))&&(n[c]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Kt(arguments[s],o);return n}const Yo=(e,r,n,{allOwnKeys:o}={})=>(Kt(r,(s,i)=>{n&&rt(s)?e[i]=Jn(s,n):e[i]=s},{allOwnKeys:o}),e),Qo=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ea=(e,r,n,o)=>{e.prototype=Object.create(r.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),n&&Object.assign(e.prototype,n)},ta=(e,r,n,o)=>{let s,i,c;const d={};if(r=r||{},e==null)return r;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)c=s[i],(!o||o(c,e,r))&&!d[c]&&(r[c]=e[c],d[c]=!0);e=n!==!1&&gn(e)}while(e&&(!n||n(e,r))&&e!==Object.prototype);return r},ra=(e,r,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=r.length;const o=e.indexOf(r,n);return o!==-1&&o===n},na=e=>{if(!e)return null;if(Ft(e))return e;let r=e.length;if(!Zn(r))return null;const n=new Array(r);for(;r-- >0;)n[r]=e[r];return n},oa=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&gn(Uint8Array)),aa=(e,r)=>{const o=(e&&e[dr]).call(e);let s;for(;(s=o.next())&&!s.done;){const i=s.value;r.call(e,i[0],i[1])}},sa=(e,r)=>{let n;const o=[];for(;(n=e.exec(r))!==null;)o.push(n);return o},ia=ct("HTMLFormElement"),ua=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),vn=(({hasOwnProperty:e})=>(r,n)=>e.call(r,n))(Object.prototype),ca=ct("RegExp"),eo=(e,r)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Kt(n,(s,i)=>{let c;(c=r(s,i,e))!==!1&&(o[i]=c||s)}),Object.defineProperties(e,o)},la=e=>{eo(e,(r,n)=>{if(rt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(rt(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},fa=(e,r)=>{const n={},o=s=>{s.forEach(i=>{n[i]=!0})};return Ft(e)?o(e):o(String(e).split(r)),n},da=()=>{},pa=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r;function ha(e){return!!(e&&rt(e.append)&&e[Wn]==="FormData"&&e[dr])}const ya=e=>{const r=new Array(10),n=(o,s)=>{if(Gt(o)){if(r.indexOf(o)>=0)return;if(zt(o))return o;if(!("toJSON"in o)){r[s]=o;const i=Ft(o)?[]:{};return Kt(o,(c,d)=>{const E=n(c,s+1);!Pt(E)&&(i[d]=E)}),r[s]=void 0,i}}return o};return n(e,0)},ga=ct("AsyncFunction"),ma=e=>e&&(Gt(e)||rt(e))&&rt(e.then)&&rt(e.catch),to=((e,r)=>e?setImmediate:r?((n,o)=>(xt.addEventListener("message",({source:s,data:i})=>{s===xt&&i===n&&o.length&&o.shift()()},!1),s=>{o.push(s),xt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",rt(xt.postMessage)),ba=typeof queueMicrotask<"u"?queueMicrotask.bind(xt):typeof process<"u"&&process.nextTick||to,_a=e=>e!=null&&rt(e[dr]),g={isArray:Ft,isArrayBuffer:Xn,isBuffer:zt,isFormData:zo,isArrayBufferView:Do,isString:Bo,isNumber:Zn,isBoolean:Uo,isObject:Gt,isPlainObject:ur,isEmptyObject:Mo,isReadableStream:Ko,isRequest:Jo,isResponse:Wo,isHeaders:Xo,isUndefined:Pt,isDate:$o,isFile:ko,isBlob:Ho,isRegExp:ca,isFunction:rt,isStream:Vo,isURLSearchParams:Go,isTypedArray:oa,isFileList:qo,forEach:Kt,merge:cn,extend:Yo,trim:Zo,stripBOM:Qo,inherits:ea,toFlatObject:ta,kindOf:pr,kindOfTest:ct,endsWith:ra,toArray:na,forEachEntry:aa,matchAll:sa,isHTMLForm:ia,hasOwnProperty:vn,hasOwnProp:vn,reduceDescriptors:eo,freezeMethods:la,toObjectSet:fa,toCamelCase:ua,noop:da,toFiniteNumber:pa,findKey:Yn,global:xt,isContextDefined:Qn,isSpecCompliantForm:ha,toJSONObject:ya,isAsyncFn:ga,isThenable:ma,setImmediate:to,asap:ba,isIterable:_a};function G(e,r,n,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s,this.status=s.status?s.status:null)}g.inherits(G,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.status}}});const ro=G.prototype,no={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{no[e]={value:e}});Object.defineProperties(G,no);Object.defineProperty(ro,"isAxiosError",{value:!0});G.from=(e,r,n,o,s,i)=>{const c=Object.create(ro);g.toFlatObject(e,c,function(S){return S!==Error.prototype},_=>_!=="isAxiosError");const d=e&&e.message?e.message:"Error",E=r==null&&e?e.code:r;return G.call(c,d,E,n,o,s),e&&c.cause==null&&Object.defineProperty(c,"cause",{value:e,configurable:!0}),c.name=e&&e.name||"Error",i&&Object.assign(c,i),c};const wa=null;function ln(e){return g.isPlainObject(e)||g.isArray(e)}function oo(e){return g.endsWith(e,"[]")?e.slice(0,-2):e}function Tn(e,r,n){return e?e.concat(r).map(function(s,i){return s=oo(s),!n&&i?"["+s+"]":s}).join(n?".":""):r}function Sa(e){return g.isArray(e)&&!e.some(ln)}const xa=g.toFlatObject(g,{},null,function(r){return/^is[A-Z]/.test(r)});function yr(e,r,n){if(!g.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,n=g.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,C){return!g.isUndefined(C[A])});const o=n.metaTokens,s=n.visitor||S,i=n.dots,c=n.indexes,E=(n.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(r);if(!g.isFunction(s))throw new TypeError("visitor must be a function");function _(w){if(w===null)return"";if(g.isDate(w))return w.toISOString();if(g.isBoolean(w))return w.toString();if(!E&&g.isBlob(w))throw new G("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(w)||g.isTypedArray(w)?E&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function S(w,A,C){let q=w;if(w&&!C&&typeof w=="object"){if(g.endsWith(A,"{}"))A=o?A:A.slice(0,-2),w=JSON.stringify(w);else if(g.isArray(w)&&Sa(w)||(g.isFileList(w)||g.endsWith(A,"[]"))&&(q=g.toArray(w)))return A=oo(A),q.forEach(function(W,R){!(g.isUndefined(W)||W===null)&&r.append(c===!0?Tn([A],R,i):c===null?A:A+"[]",_(W))}),!1}return ln(w)?!0:(r.append(Tn(C,A,i),_(w)),!1)}const v=[],j=Object.assign(xa,{defaultVisitor:S,convertValue:_,isVisitable:ln});function k(w,A){if(!g.isUndefined(w)){if(v.indexOf(w)!==-1)throw Error("Circular reference detected in "+A.join("."));v.push(w),g.forEach(w,function(q,J){(!(g.isUndefined(q)||q===null)&&s.call(r,q,g.isString(J)?J.trim():J,A,j))===!0&&k(q,A?A.concat(J):[J])}),v.pop()}}if(!g.isObject(e))throw new TypeError("data must be an object");return k(e),r}function Cn(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function mn(e,r){this._pairs=[],e&&yr(e,this,r)}const ao=mn.prototype;ao.append=function(r,n){this._pairs.push([r,n])};ao.toString=function(r){const n=r?function(o){return r.call(this,o,Cn)}:Cn;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Oa(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function so(e,r,n){if(!r)return e;const o=n&&n.encode||Oa;g.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(r,n):i=g.isURLSearchParams(r)?r.toString():new mn(r,n).toString(o),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class An{constructor(){this.handlers=[]}use(r,n,o){return this.handlers.push({fulfilled:r,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){g.forEach(this.handlers,function(o){o!==null&&r(o)})}}const io={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ea=typeof URLSearchParams<"u"?URLSearchParams:mn,va=typeof FormData<"u"?FormData:null,Ta=typeof Blob<"u"?Blob:null,Ca={isBrowser:!0,classes:{URLSearchParams:Ea,FormData:va,Blob:Ta},protocols:["http","https","file","blob","url","data"]},bn=typeof window<"u"&&typeof document<"u",fn=typeof navigator=="object"&&navigator||void 0,Aa=bn&&(!fn||["ReactNative","NativeScript","NS"].indexOf(fn.product)<0),Ra=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ja=bn&&window.location.href||"http://localhost",Pa=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bn,hasStandardBrowserEnv:Aa,hasStandardBrowserWebWorkerEnv:Ra,navigator:fn,origin:ja},Symbol.toStringTag,{value:"Module"})),Ke={...Pa,...Ca};function Fa(e,r){return yr(e,new Ke.classes.URLSearchParams,{visitor:function(n,o,s,i){return Ke.isNode&&g.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...r})}function Ia(e){return g.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function La(e){const r={},n=Object.keys(e);let o;const s=n.length;let i;for(o=0;o<s;o++)i=n[o],r[i]=e[i];return r}function uo(e){function r(n,o,s,i){let c=n[i++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),E=i>=n.length;return c=!c&&g.isArray(s)?s.length:c,E?(g.hasOwnProp(s,c)?s[c]=[s[c],o]:s[c]=o,!d):((!s[c]||!g.isObject(s[c]))&&(s[c]=[]),r(n,o,s[c],i)&&g.isArray(s[c])&&(s[c]=La(s[c])),!d)}if(g.isFormData(e)&&g.isFunction(e.entries)){const n={};return g.forEachEntry(e,(o,s)=>{r(Ia(o),s,n,0)}),n}return null}function Na(e,r,n){if(g.isString(e))try{return(r||JSON.parse)(e),g.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Jt={transitional:io,adapter:["xhr","http","fetch"],transformRequest:[function(r,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,i=g.isObject(r);if(i&&g.isHTMLForm(r)&&(r=new FormData(r)),g.isFormData(r))return s?JSON.stringify(uo(r)):r;if(g.isArrayBuffer(r)||g.isBuffer(r)||g.isStream(r)||g.isFile(r)||g.isBlob(r)||g.isReadableStream(r))return r;if(g.isArrayBufferView(r))return r.buffer;if(g.isURLSearchParams(r))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let d;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Fa(r,this.formSerializer).toString();if((d=g.isFileList(r))||o.indexOf("multipart/form-data")>-1){const E=this.env&&this.env.FormData;return yr(d?{"files[]":r}:r,E&&new E,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Na(r)):r}],transformResponse:[function(r){const n=this.transitional||Jt.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(g.isResponse(r)||g.isReadableStream(r))return r;if(r&&g.isString(r)&&(o&&!this.responseType||s)){const c=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(r,this.parseReviver)}catch(d){if(c)throw d.name==="SyntaxError"?G.from(d,G.ERR_BAD_RESPONSE,this,null,this.response):d}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],e=>{Jt.headers[e]={}});const Da=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ba=e=>{const r={};let n,o,s;return e&&e.split(`
|
|
2
|
+
`).forEach(function(c){s=c.indexOf(":"),n=c.substring(0,s).trim().toLowerCase(),o=c.substring(s+1).trim(),!(!n||r[n]&&Da[n])&&(n==="set-cookie"?r[n]?r[n].push(o):r[n]=[o]:r[n]=r[n]?r[n]+", "+o:o)}),r},Rn=Symbol("internals");function kt(e){return e&&String(e).trim().toLowerCase()}function cr(e){return e===!1||e==null?e:g.isArray(e)?e.map(cr):String(e)}function Ua(e){const r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)r[o[1]]=o[2];return r}const Ma=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rn(e,r,n,o,s){if(g.isFunction(o))return o.call(this,r,n);if(s&&(r=n),!!g.isString(r)){if(g.isString(o))return r.indexOf(o)!==-1;if(g.isRegExp(o))return o.test(r)}}function $a(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,n,o)=>n.toUpperCase()+o)}function ka(e,r){const n=g.toCamelCase(" "+r);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,i,c){return this[o].call(this,r,s,i,c)},configurable:!0})})}let nt=class{constructor(r){r&&this.set(r)}set(r,n,o){const s=this;function i(d,E,_){const S=kt(E);if(!S)throw new Error("header name must be a non-empty string");const v=g.findKey(s,S);(!v||s[v]===void 0||_===!0||_===void 0&&s[v]!==!1)&&(s[v||E]=cr(d))}const c=(d,E)=>g.forEach(d,(_,S)=>i(_,S,E));if(g.isPlainObject(r)||r instanceof this.constructor)c(r,n);else if(g.isString(r)&&(r=r.trim())&&!Ma(r))c(Ba(r),n);else if(g.isObject(r)&&g.isIterable(r)){let d={},E,_;for(const S of r){if(!g.isArray(S))throw TypeError("Object iterator must return a key-value pair");d[_=S[0]]=(E=d[_])?g.isArray(E)?[...E,S[1]]:[E,S[1]]:S[1]}c(d,n)}else r!=null&&i(n,r,o);return this}get(r,n){if(r=kt(r),r){const o=g.findKey(this,r);if(o){const s=this[o];if(!n)return s;if(n===!0)return Ua(s);if(g.isFunction(n))return n.call(this,s,o);if(g.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,n){if(r=kt(r),r){const o=g.findKey(this,r);return!!(o&&this[o]!==void 0&&(!n||rn(this,this[o],o,n)))}return!1}delete(r,n){const o=this;let s=!1;function i(c){if(c=kt(c),c){const d=g.findKey(o,c);d&&(!n||rn(o,o[d],d,n))&&(delete o[d],s=!0)}}return g.isArray(r)?r.forEach(i):i(r),s}clear(r){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const i=n[o];(!r||rn(this,this[i],i,r,!0))&&(delete this[i],s=!0)}return s}normalize(r){const n=this,o={};return g.forEach(this,(s,i)=>{const c=g.findKey(o,i);if(c){n[c]=cr(s),delete n[i];return}const d=r?$a(i):String(i).trim();d!==i&&delete n[i],n[d]=cr(s),o[d]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const n=Object.create(null);return g.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=r&&g.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,n])=>r+": "+n).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...n){const o=new this(r);return n.forEach(s=>o.set(s)),o}static accessor(r){const o=(this[Rn]=this[Rn]={accessors:{}}).accessors,s=this.prototype;function i(c){const d=kt(c);o[d]||(ka(s,c),o[d]=!0)}return g.isArray(r)?r.forEach(i):i(r),this}};nt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);g.reduceDescriptors(nt.prototype,({value:e},r)=>{let n=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(o){this[n]=o}}});g.freezeMethods(nt);function nn(e,r){const n=this||Jt,o=r||n,s=nt.from(o.headers);let i=o.data;return g.forEach(e,function(d){i=d.call(n,i,s.normalize(),r?r.status:void 0)}),s.normalize(),i}function co(e){return!!(e&&e.__CANCEL__)}function It(e,r,n){G.call(this,e??"canceled",G.ERR_CANCELED,r,n),this.name="CanceledError"}g.inherits(It,G,{__CANCEL__:!0});function lo(e,r,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):r(new G("Request failed with status code "+n.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ha(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function qa(e,r){e=e||10;const n=new Array(e),o=new Array(e);let s=0,i=0,c;return r=r!==void 0?r:1e3,function(E){const _=Date.now(),S=o[i];c||(c=_),n[s]=E,o[s]=_;let v=i,j=0;for(;v!==s;)j+=n[v++],v=v%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),_-c<r)return;const k=S&&_-S;return k?Math.round(j*1e3/k):void 0}}function Va(e,r){let n=0,o=1e3/r,s,i;const c=(_,S=Date.now())=>{n=S,s=null,i&&(clearTimeout(i),i=null),e(..._)};return[(..._)=>{const S=Date.now(),v=S-n;v>=o?c(_,S):(s=_,i||(i=setTimeout(()=>{i=null,c(s)},o-v)))},()=>s&&c(s)]}const fr=(e,r,n=3)=>{let o=0;const s=qa(50,250);return Va(i=>{const c=i.loaded,d=i.lengthComputable?i.total:void 0,E=c-o,_=s(E),S=c<=d;o=c;const v={loaded:c,total:d,progress:d?c/d:void 0,bytes:E,rate:_||void 0,estimated:_&&d&&S?(d-c)/_:void 0,event:i,lengthComputable:d!=null,[r?"download":"upload"]:!0};e(v)},n)},jn=(e,r)=>{const n=e!=null;return[o=>r[0]({lengthComputable:n,total:e,loaded:o}),r[1]]},Pn=e=>(...r)=>g.asap(()=>e(...r)),za=Ke.hasStandardBrowserEnv?((e,r)=>n=>(n=new URL(n,Ke.origin),e.protocol===n.protocol&&e.host===n.host&&(r||e.port===n.port)))(new URL(Ke.origin),Ke.navigator&&/(msie|trident)/i.test(Ke.navigator.userAgent)):()=>!0,Ga=Ke.hasStandardBrowserEnv?{write(e,r,n,o,s,i,c){if(typeof document>"u")return;const d=[`${e}=${encodeURIComponent(r)}`];g.isNumber(n)&&d.push(`expires=${new Date(n).toUTCString()}`),g.isString(o)&&d.push(`path=${o}`),g.isString(s)&&d.push(`domain=${s}`),i===!0&&d.push("secure"),g.isString(c)&&d.push(`SameSite=${c}`),document.cookie=d.join("; ")},read(e){if(typeof document>"u")return null;const r=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return r?decodeURIComponent(r[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ka(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ja(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function fo(e,r,n){let o=!Ka(r);return e&&(o||n==!1)?Ja(e,r):r}const Fn=e=>e instanceof nt?{...e}:e;function Et(e,r){r=r||{};const n={};function o(_,S,v,j){return g.isPlainObject(_)&&g.isPlainObject(S)?g.merge.call({caseless:j},_,S):g.isPlainObject(S)?g.merge({},S):g.isArray(S)?S.slice():S}function s(_,S,v,j){if(g.isUndefined(S)){if(!g.isUndefined(_))return o(void 0,_,v,j)}else return o(_,S,v,j)}function i(_,S){if(!g.isUndefined(S))return o(void 0,S)}function c(_,S){if(g.isUndefined(S)){if(!g.isUndefined(_))return o(void 0,_)}else return o(void 0,S)}function d(_,S,v){if(v in r)return o(_,S);if(v in e)return o(void 0,_)}const E={url:i,method:i,data:i,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(_,S,v)=>s(Fn(_),Fn(S),v,!0)};return g.forEach(Object.keys({...e,...r}),function(S){const v=E[S]||s,j=v(e[S],r[S],S);g.isUndefined(j)&&v!==d||(n[S]=j)}),n}const po=e=>{const r=Et({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:c,auth:d}=r;if(r.headers=c=nt.from(c),r.url=so(fo(r.baseURL,r.url,r.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),g.isFormData(n)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(g.isFunction(n.getHeaders)){const E=n.getHeaders(),_=["content-type","content-length"];Object.entries(E).forEach(([S,v])=>{_.includes(S.toLowerCase())&&c.set(S,v)})}}if(Ke.hasStandardBrowserEnv&&(o&&g.isFunction(o)&&(o=o(r)),o||o!==!1&&za(r.url))){const E=s&&i&&Ga.read(i);E&&c.set(s,E)}return r},Wa=typeof XMLHttpRequest<"u",Xa=Wa&&function(e){return new Promise(function(n,o){const s=po(e);let i=s.data;const c=nt.from(s.headers).normalize();let{responseType:d,onUploadProgress:E,onDownloadProgress:_}=s,S,v,j,k,w;function A(){k&&k(),w&&w(),s.cancelToken&&s.cancelToken.unsubscribe(S),s.signal&&s.signal.removeEventListener("abort",S)}let C=new XMLHttpRequest;C.open(s.method.toUpperCase(),s.url,!0),C.timeout=s.timeout;function q(){if(!C)return;const W=nt.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),U={data:!d||d==="text"||d==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:W,config:e,request:C};lo(function(F){n(F),A()},function(F){o(F),A()},U),C=null}"onloadend"in C?C.onloadend=q:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(q)},C.onabort=function(){C&&(o(new G("Request aborted",G.ECONNABORTED,e,C)),C=null)},C.onerror=function(R){const U=R&&R.message?R.message:"Network Error",P=new G(U,G.ERR_NETWORK,e,C);P.event=R||null,o(P),C=null},C.ontimeout=function(){let R=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const U=s.transitional||io;s.timeoutErrorMessage&&(R=s.timeoutErrorMessage),o(new G(R,U.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,C)),C=null},i===void 0&&c.setContentType(null),"setRequestHeader"in C&&g.forEach(c.toJSON(),function(R,U){C.setRequestHeader(U,R)}),g.isUndefined(s.withCredentials)||(C.withCredentials=!!s.withCredentials),d&&d!=="json"&&(C.responseType=s.responseType),_&&([j,w]=fr(_,!0),C.addEventListener("progress",j)),E&&C.upload&&([v,k]=fr(E),C.upload.addEventListener("progress",v),C.upload.addEventListener("loadend",k)),(s.cancelToken||s.signal)&&(S=W=>{C&&(o(!W||W.type?new It(null,e,C):W),C.abort(),C=null)},s.cancelToken&&s.cancelToken.subscribe(S),s.signal&&(s.signal.aborted?S():s.signal.addEventListener("abort",S)));const J=Ha(s.url);if(J&&Ke.protocols.indexOf(J)===-1){o(new G("Unsupported protocol "+J+":",G.ERR_BAD_REQUEST,e));return}C.send(i||null)})},Za=(e,r)=>{const{length:n}=e=e?e.filter(Boolean):[];if(r||n){let o=new AbortController,s;const i=function(_){if(!s){s=!0,d();const S=_ instanceof Error?_:this.reason;o.abort(S instanceof G?S:new It(S instanceof Error?S.message:S))}};let c=r&&setTimeout(()=>{c=null,i(new G(`timeout ${r} of ms exceeded`,G.ETIMEDOUT))},r);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(_=>{_.unsubscribe?_.unsubscribe(i):_.removeEventListener("abort",i)}),e=null)};e.forEach(_=>_.addEventListener("abort",i));const{signal:E}=o;return E.unsubscribe=()=>g.asap(d),E}},Ya=function*(e,r){let n=e.byteLength;if(n<r){yield e;return}let o=0,s;for(;o<n;)s=o+r,yield e.slice(o,s),o=s},Qa=async function*(e,r){for await(const n of es(e))yield*Ya(n,r)},es=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const r=e.getReader();try{for(;;){const{done:n,value:o}=await r.read();if(n)break;yield o}}finally{await r.cancel()}},In=(e,r,n,o)=>{const s=Qa(e,r);let i=0,c,d=E=>{c||(c=!0,o&&o(E))};return new ReadableStream({async pull(E){try{const{done:_,value:S}=await s.next();if(_){d(),E.close();return}let v=S.byteLength;if(n){let j=i+=v;n(j)}E.enqueue(new Uint8Array(S))}catch(_){throw d(_),_}},cancel(E){return d(E),s.return()}},{highWaterMark:2})},Ln=64*1024,{isFunction:ir}=g,ts=(({Request:e,Response:r})=>({Request:e,Response:r}))(g.global),{ReadableStream:Nn,TextEncoder:Dn}=g.global,Bn=(e,...r)=>{try{return!!e(...r)}catch{return!1}},rs=e=>{e=g.merge.call({skipUndefined:!0},ts,e);const{fetch:r,Request:n,Response:o}=e,s=r?ir(r):typeof fetch=="function",i=ir(n),c=ir(o);if(!s)return!1;const d=s&&ir(Nn),E=s&&(typeof Dn=="function"?(w=>A=>w.encode(A))(new Dn):async w=>new Uint8Array(await new n(w).arrayBuffer())),_=i&&d&&Bn(()=>{let w=!1;const A=new n(Ke.origin,{body:new Nn,method:"POST",get duplex(){return w=!0,"half"}}).headers.has("Content-Type");return w&&!A}),S=c&&d&&Bn(()=>g.isReadableStream(new o("").body)),v={stream:S&&(w=>w.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!v[w]&&(v[w]=(A,C)=>{let q=A&&A[w];if(q)return q.call(A);throw new G(`Response type '${w}' is not supported`,G.ERR_NOT_SUPPORT,C)})});const j=async w=>{if(w==null)return 0;if(g.isBlob(w))return w.size;if(g.isSpecCompliantForm(w))return(await new n(Ke.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(g.isArrayBufferView(w)||g.isArrayBuffer(w))return w.byteLength;if(g.isURLSearchParams(w)&&(w=w+""),g.isString(w))return(await E(w)).byteLength},k=async(w,A)=>{const C=g.toFiniteNumber(w.getContentLength());return C??j(A)};return async w=>{let{url:A,method:C,data:q,signal:J,cancelToken:W,timeout:R,onDownloadProgress:U,onUploadProgress:P,responseType:F,headers:Y,withCredentials:X="same-origin",fetchOptions:ee}=po(w),te=r||fetch;F=F?(F+"").toLowerCase():"text";let Q=Za([J,W&&W.toAbortSignal()],R),Z=null;const oe=Q&&Q.unsubscribe&&(()=>{Q.unsubscribe()});let L;try{if(P&&_&&C!=="get"&&C!=="head"&&(L=await k(Y,q))!==0){let ge=new n(A,{method:"POST",body:q,duplex:"half"}),de;if(g.isFormData(q)&&(de=ge.headers.get("content-type"))&&Y.setContentType(de),ge.body){const[he,me]=jn(L,fr(Pn(P)));q=In(ge.body,Ln,he,me)}}g.isString(X)||(X=X?"include":"omit");const H=i&&"credentials"in n.prototype,le={...ee,signal:Q,method:C.toUpperCase(),headers:Y.normalize().toJSON(),body:q,duplex:"half",credentials:H?X:void 0};Z=i&&new n(A,le);let ae=await(i?te(Z,ee):te(A,le));const Ce=S&&(F==="stream"||F==="response");if(S&&(U||Ce&&oe)){const ge={};["status","statusText","headers"].forEach(K=>{ge[K]=ae[K]});const de=g.toFiniteNumber(ae.headers.get("content-length")),[he,me]=U&&jn(de,fr(Pn(U),!0))||[];ae=new o(In(ae.body,Ln,he,()=>{me&&me(),oe&&oe()}),ge)}F=F||"text";let $=await v[g.findKey(v,F)||"text"](ae,w);return!Ce&&oe&&oe(),await new Promise((ge,de)=>{lo(ge,de,{data:$,headers:nt.from(ae.headers),status:ae.status,statusText:ae.statusText,config:w,request:Z})})}catch(H){throw oe&&oe(),H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)?Object.assign(new G("Network Error",G.ERR_NETWORK,w,Z),{cause:H.cause||H}):G.from(H,H&&H.code,w,Z)}}},ns=new Map,ho=e=>{let r=e&&e.env||{};const{fetch:n,Request:o,Response:s}=r,i=[o,s,n];let c=i.length,d=c,E,_,S=ns;for(;d--;)E=i[d],_=S.get(E),_===void 0&&S.set(E,_=d?new Map:rs(r)),S=_;return _};ho();const _n={http:wa,xhr:Xa,fetch:{get:ho}};g.forEach(_n,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const Un=e=>`- ${e}`,os=e=>g.isFunction(e)||e===null||e===!1;function as(e,r){e=g.isArray(e)?e:[e];const{length:n}=e;let o,s;const i={};for(let c=0;c<n;c++){o=e[c];let d;if(s=o,!os(o)&&(s=_n[(d=String(o)).toLowerCase()],s===void 0))throw new G(`Unknown adapter '${d}'`);if(s&&(g.isFunction(s)||(s=s.get(r))))break;i[d||"#"+c]=s}if(!s){const c=Object.entries(i).map(([E,_])=>`adapter ${E} `+(_===!1?"is not supported by the environment":"is not available in the build"));let d=n?c.length>1?`since :
|
|
4
|
+
`+c.map(Un).join(`
|
|
5
|
+
`):" "+Un(c[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return s}const yo={getAdapter:as,adapters:_n};function on(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new It(null,e)}function Mn(e){return on(e),e.headers=nt.from(e.headers),e.data=nn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yo.getAdapter(e.adapter||Jt.adapter,e)(e).then(function(o){return on(e),o.data=nn.call(e,e.transformResponse,o),o.headers=nt.from(o.headers),o},function(o){return co(o)||(on(e),o&&o.response&&(o.response.data=nn.call(e,e.transformResponse,o.response),o.response.headers=nt.from(o.response.headers))),Promise.reject(o)})}const go="1.13.2",gr={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{gr[e]=function(o){return typeof o===e||"a"+(r<1?"n ":" ")+e}});const $n={};gr.transitional=function(r,n,o){function s(i,c){return"[Axios v"+go+"] Transitional option '"+i+"'"+c+(o?". "+o:"")}return(i,c,d)=>{if(r===!1)throw new G(s(c," has been removed"+(n?" in "+n:"")),G.ERR_DEPRECATED);return n&&!$n[c]&&($n[c]=!0,console.warn(s(c," has been deprecated since v"+n+" and will be removed in the near future"))),r?r(i,c,d):!0}};gr.spelling=function(r){return(n,o)=>(console.warn(`${o} is likely a misspelling of ${r}`),!0)};function ss(e,r,n){if(typeof e!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const i=o[s],c=r[i];if(c){const d=e[i],E=d===void 0||c(d,i,e);if(E!==!0)throw new G("option "+i+" must be "+E,G.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new G("Unknown option "+i,G.ERR_BAD_OPTION)}}const lr={assertOptions:ss,validators:gr},pt=lr.validators;let Ot=class{constructor(r){this.defaults=r||{},this.interceptors={request:new An,response:new An}}async request(r,n){try{return await this._request(r,n)}catch(o){if(o instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
6
|
+
`+i):o.stack=i}catch{}}throw o}}_request(r,n){typeof r=="string"?(n=n||{},n.url=r):n=r||{},n=Et(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:i}=n;o!==void 0&&lr.assertOptions(o,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),s!=null&&(g.isFunction(s)?n.paramsSerializer={serialize:s}:lr.assertOptions(s,{encode:pt.function,serialize:pt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),lr.assertOptions(n,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=i&&g.merge(i.common,i[n.method]);i&&g.forEach(["delete","get","head","post","put","patch","common"],w=>{delete i[w]}),n.headers=nt.concat(c,i);const d=[];let E=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(E=E&&A.synchronous,d.unshift(A.fulfilled,A.rejected))});const _=[];this.interceptors.response.forEach(function(A){_.push(A.fulfilled,A.rejected)});let S,v=0,j;if(!E){const w=[Mn.bind(this),void 0];for(w.unshift(...d),w.push(..._),j=w.length,S=Promise.resolve(n);v<j;)S=S.then(w[v++],w[v++]);return S}j=d.length;let k=n;for(;v<j;){const w=d[v++],A=d[v++];try{k=w(k)}catch(C){A.call(this,C);break}}try{S=Mn.call(this,k)}catch(w){return Promise.reject(w)}for(v=0,j=_.length;v<j;)S=S.then(_[v++],_[v++]);return S}getUri(r){r=Et(this.defaults,r);const n=fo(r.baseURL,r.url,r.allowAbsoluteUrls);return so(n,r.params,r.paramsSerializer)}};g.forEach(["delete","get","head","options"],function(r){Ot.prototype[r]=function(n,o){return this.request(Et(o||{},{method:r,url:n,data:(o||{}).data}))}});g.forEach(["post","put","patch"],function(r){function n(o){return function(i,c,d){return this.request(Et(d||{},{method:r,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:c}))}}Ot.prototype[r]=n(),Ot.prototype[r+"Form"]=n(!0)});let is=class mo{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(s=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const c=new Promise(d=>{o.subscribe(d),i=d}).then(s);return c.cancel=function(){o.unsubscribe(i)},c},r(function(i,c,d){o.reason||(o.reason=new It(i,c,d),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const n=this._listeners.indexOf(r);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const r=new AbortController,n=o=>{r.abort(o)};return this.subscribe(n),r.signal.unsubscribe=()=>this.unsubscribe(n),r.signal}static source(){let r;return{token:new mo(function(s){r=s}),cancel:r}}};function us(e){return function(n){return e.apply(null,n)}}function cs(e){return g.isObject(e)&&e.isAxiosError===!0}const dn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(dn).forEach(([e,r])=>{dn[r]=e});function bo(e){const r=new Ot(e),n=Jn(Ot.prototype.request,r);return g.extend(n,Ot.prototype,r,{allOwnKeys:!0}),g.extend(n,r,null,{allOwnKeys:!0}),n.create=function(s){return bo(Et(e,s))},n}const Oe=bo(Jt);Oe.Axios=Ot;Oe.CanceledError=It;Oe.CancelToken=is;Oe.isCancel=co;Oe.VERSION=go;Oe.toFormData=yr;Oe.AxiosError=G;Oe.Cancel=Oe.CanceledError;Oe.all=function(r){return Promise.all(r)};Oe.spread=us;Oe.isAxiosError=cs;Oe.mergeConfig=Et;Oe.AxiosHeaders=nt;Oe.formToJSON=e=>uo(g.isHTMLForm(e)?new FormData(e):e);Oe.getAdapter=yo.getAdapter;Oe.HttpStatusCode=dn;Oe.default=Oe;const{Axios:Ls,AxiosError:Ns,CanceledError:Ds,isCancel:Bs,CancelToken:Us,VERSION:Ms,all:$s,Cancel:ks,isAxiosError:Hs,spread:qs,toFormData:Vs,AxiosHeaders:zs,HttpStatusCode:Gs,formToJSON:Ks,getAdapter:Js,mergeConfig:Ws}=Oe,ls={key:1},_o={__name:"render-form-item",props:{data:Object,prop:{type:String,default(e){return e.data.id}},itemValue:{},value:Object,disabled:Boolean,readonly:Boolean,options:Array},emits:["updateValue"],setup(e,{expose:r,emit:n}){let o=y.ref(),s=e;const i=n;let c=y.reactive({});const d=y.ref(!1);let E=y.ref(s.data),_=y.inject("_elFormRenderer_");const S=s.data.rules&&s.data.rules.some(P=>P.required&&P.trigger==="blur"),v=y.computed(()=>({...s.data.el,...c})),j=y.computed(()=>["input","select"].includes(s.data.type)),k=y.computed(()=>(s.data.hidden||(()=>!1))(s.value,s.data)),w=y.computed(()=>Ao(s.data.enableWhen,s.data.value)),A=y.computed(()=>!k.value&&w.value),C=y.computed(()=>{const P=s.data,F=P.id,Y=P.on||{},X=P.trim!==void 0?P.trim:!0;let ee=_?.exposed?.updateForm;const te=Kn(Po(Y).map(([Q,Z])=>[Q,(...oe)=>Z(oe,ee)]));return{...te,"update:modelValue":(Q,...Z)=>{typeof Q=="string"&&X&&(Q=Q.trim()),i("updateValue",{id:F,value:Q}),te["update:modelValue"]&&te["update:modelValue"]([Q,...Z],ee),W(F)}}}),q=y.computed(()=>(jt(s.data,"el.multiple")&&Array.isArray(s.itemValue)?s.itemValue:[s.itemValue]).map(F=>(s.options.find(Y=>Y.value===F)||{}).label).join()),J=(P,F)=>{const Y=["select","checkbox-group","radio-group"].indexOf(s.data.type)>-1,{request:X,prop:ee="options",dataPath:te="",onResponse:Q=H=>(te&&(H=jt(H,te)),Y?H?.map(le=>({label:le[oe],value:le[L]})):H),onError:Z=H=>{console.error(H.message),d.value=!1},label:oe="label",value:L="value"}=P;d.value=!0,Promise.resolve(X(F)).then(Q,Z).then(H=>{if(Y){let le=_?.exposed?.setOptions;le&&le(s.prop,H)}else c=Object.assign(c,{[ee]:H});d.value=!1})};y.watch(E,P=>{if(P)if(P.id){if(!P.type&&!P.component)throw new Error("`type` and `component` cannot both be null.")}else throw new Error("`id` is unvalidated.");else throw new Error("data must be an Object.")}),y.watch(()=>s.data.remote?.request,(P,F)=>{!P||typeof P!="function"||P===F||J(s.data.remote)},{immediate:!0}),y.watch(()=>s.data.remote?.url,(P,F)=>{if(!P||P===F||!F&&s.data.remote.request)return;const Y=s.data.remote.request||(()=>Oe.get(P).then(X=>X.data));J(Object.assign({},s.data.remote,{request:Y}))},{immediate:!0});const W=async P=>{try{if(!s.data.rules||!s.data.rules.length||S)return;await y.nextTick(),_.exposed.validateField(P)}catch(F){console.log(F)}},R=P=>{jt(s.data,"type")==="select"&&jt(s.data,"el.filterable")&&jt(s.data,"el.remote")&&J(s.data.remote,P)},U=P=>P.value instanceof Object?!s.data.el||!s.data.el.valueKey?void 0:P.value[s.data.el.valueKey]:P.value;return r({customComponent:o}),(P,F)=>{const Y=y.resolveComponent("el-input"),X=y.resolveComponent("el-option"),ee=y.resolveComponent("el-checkbox-button"),te=y.resolveComponent("el-checkbox"),Q=y.resolveComponent("el-radio-button"),Z=y.resolveComponent("el-radio"),oe=y.resolveComponent("el-form-item");return A.value?(y.openBlock(),y.createBlock(oe,y.mergeProps({key:0,prop:e.prop,label:typeof e.data.label=="string"?e.data.label:"",rules:!e.readonly&&Array.isArray(e.data.rules)?e.data.rules:void 0},e.data.attrs,{class:"render-form-item"}),y.createSlots({default:y.withCtx(()=>[e.readonly&&j.value?(y.openBlock(),y.createElementBlock(y.Fragment,{key:0},[e.data.type==="input"?(y.openBlock(),y.createBlock(Y,y.mergeProps({key:0},v.value,{modelValue:e.itemValue,readonly:""},y.toHandlers(C.value)),null,16,["modelValue"])):e.data.type==="select"?(y.openBlock(),y.createElementBlock("div",ls,y.toDisplayString(q.value),1)):y.createCommentVNode("",!0)],64)):e.data.type==="date-picker"||e.data.type==="cascader"?(y.openBlock(),y.createBlock(y.resolveDynamicComponent(e.data.component||`el-${e.data.type||"input"}`),y.mergeProps({key:1,ref_key:"customComponent",ref:o},v.value,{modelValue:e.itemValue,disabled:e.disabled||v.value.disabled||e.readonly},y.toHandlers(C.value),{loading:d.value,"remote-method":e.data.remoteMethod||v.value.remoteMethod||R}),null,16,["modelValue","disabled","loading","remote-method"])):(y.openBlock(),y.createBlock(y.resolveDynamicComponent(e.data.component||`el-${e.data.type||"input"}`),y.mergeProps({key:2,ref_key:"customComponent",ref:o},v.value,{modelValue:e.itemValue,disabled:e.disabled||v.value.disabled||e.readonly},y.toHandlers(C.value),{loading:d.value,"remote-method":e.data.remoteMethod||v.value.remoteMethod||R}),{default:y.withCtx(()=>[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(e.options,(L,H)=>(y.openBlock(),y.createElementBlock(y.Fragment,null,[e.data.type==="select"?(y.openBlock(),y.createBlock(X,y.mergeProps({key:U(L)||H},{ref_for:!0},L),null,16)):y.createCommentVNode("",!0),e.data.type==="checkbox-group"&&e.data.style==="button"?(y.openBlock(),y.createBlock(ee,y.mergeProps({key:L.value},{ref_for:!0},L,{label:"value"in L?L.value:L.label,value:"value"in L?L.value:L.label}),{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(L.label),1)]),_:2},1040,["label","value"])):e.data.type==="checkbox-group"&&e.data.style!=="button"?(y.openBlock(),y.createBlock(te,y.mergeProps({key:L.value},{ref_for:!0},L,{label:"value"in L?L.value:L.label,value:"value"in L?L.value:L.label}),{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(L.label),1)]),_:2},1040,["label","value"])):e.data.type==="radio-group"&&e.data.style==="button"?(y.openBlock(),y.createBlock(Q,y.mergeProps({key:L.label},{ref_for:!0},L,{label:"value"in L?L.value:L.label,value:"value"in L?L.value:L.label}),{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(L.label),1)]),_:2},1040,["label","value"])):e.data.type==="radio-group"&&e.data.style!=="button"?(y.openBlock(),y.createBlock(Z,y.mergeProps({key:L.label},{ref_for:!0},L,{label:"value"in L?L.value:L.label,value:"value"in L?L.value:L.label}),{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(L.label),1)]),_:2},1040,["label","value"])):y.createCommentVNode("",!0)],64))),256))]),_:1},16,["modelValue","disabled","loading","remote-method"]))]),_:2},[typeof e.data.label!="string"?{name:"label",fn:y.withCtx(()=>[y.createVNode(y.unref(Lo),{content:e.data.label},null,8,["content"])]),key:"0"}:void 0]),1040,["prop","label","rules"])):y.createCommentVNode("",!0)}}},fs={__name:"render-form-group",props:{data:Object,itemValue:{},value:Object,disabled:Boolean,readonly:Boolean,options:Object},emits:["updateValue"],setup(e,{expose:r,emit:n}){const o=n;let s=e,i=y.ref([]);const c=({id:d,value:E})=>{o("updateValue",{id:s.data.id,value:{...s.itemValue,[d]:E}})};return r({customComponent:i}),(d,E)=>(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(e.data.items,(_,S)=>(y.openBlock(),y.createElementBlock(y.Fragment,{key:S},[y.renderSlot(d.$slots,`id:${_.id}`),y.renderSlot(d.$slots,`$id:${_.id}`),y.createVNode(_o,{ref_for:!0,ref:v=>{y.unref(i)[`formItem-${_.id}`]=v},prop:`${e.data.id}.${_.id}`,data:_,value:e.value,"item-value":e.itemValue[_.id],disabled:e.disabled,readonly:e.readonly,options:e.options[_.id],onUpdateValue:c},null,8,["prop","data","value","item-value","disabled","readonly","options"])],64))),128))}};var an,kn;function ds(){if(kn)return an;kn=1;var e="[object Symbol]",r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",i="\\u20d0-\\u20f0",c="\\u2700-\\u27bf",d="a-z\\xdf-\\xf6\\xf8-\\xff",E="\\xac\\xb1\\xd7\\xf7",_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",S="\\u2000-\\u206f",v=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",j="A-Z\\xc0-\\xd6\\xd8-\\xde",k="\\ufe0e\\ufe0f",w=E+_+S+v,A="['’]",C="["+w+"]",q="["+s+i+"]",J="\\d+",W="["+c+"]",R="["+d+"]",U="[^"+o+w+J+c+d+j+"]",P="\\ud83c[\\udffb-\\udfff]",F="(?:"+q+"|"+P+")",Y="[^"+o+"]",X="(?:\\ud83c[\\udde6-\\uddff]){2}",ee="[\\ud800-\\udbff][\\udc00-\\udfff]",te="["+j+"]",Q="\\u200d",Z="(?:"+R+"|"+U+")",oe="(?:"+te+"|"+U+")",L="(?:"+A+"(?:d|ll|m|re|s|t|ve))?",H="(?:"+A+"(?:D|LL|M|RE|S|T|VE))?",le=F+"?",ae="["+k+"]?",Ce="(?:"+Q+"(?:"+[Y,X,ee].join("|")+")"+ae+le+")*",$=ae+le+Ce,ge="(?:"+[W,X,ee].join("|")+")"+$,de=RegExp(A,"g"),he=RegExp(q,"g"),me=RegExp([te+"?"+R+"+"+L+"(?="+[C,te,"$"].join("|")+")",oe+"+"+H+"(?="+[C,te+Z,"$"].join("|")+")",te+"?"+Z+"+"+L,te+"+"+H,J,ge].join("|"),"g"),K=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ae={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},ot=typeof fe=="object"&&fe&&fe.Object===Object&&fe,pe=typeof self=="object"&&self&&self.Object===Object&&self,Ye=ot||pe||Function("return this")();function Ee(p,T,D,ce){for(var ye=-1,Ne=p?p.length:0;++ye<Ne;)D=T(D,p[ye],ye,p);return D}function Je(p){return p.match(r)||[]}function we(p){return function(T){return p?.[T]}}var Fe=we(Ae);function be(p){return K.test(p)}function Qe(p){return p.match(me)||[]}var We=Object.prototype,De=We.toString,_e=Ye.Symbol,Be=_e?_e.prototype:void 0,Ie=Be?Be.toString:void 0;function ke(p){if(typeof p=="string")return p;if(Se(p))return Ie?Ie.call(p):"";var T=p+"";return T=="0"&&1/p==-1/0?"-0":T}function Ue(p){return function(T){return Ee(He(at(T).replace(de,"")),p,"")}}function Re(p){return!!p&&typeof p=="object"}function Se(p){return typeof p=="symbol"||Re(p)&&De.call(p)==e}function Le(p){return p==null?"":ke(p)}function at(p){return p=Le(p),p&&p.replace(n,Fe).replace(he,"")}var je=Ue(function(p,T,D){return p+(D?"-":"")+T.toLowerCase()});function He(p,T,D){return p=Le(p),T=T,T===void 0?be(p)?Qe(p):Je(p):p.match(T)||[]}return an=je,an}var ps=ds();const hs=mt(ps);function wo(e){return e.map(({...r})=>(r.type==="group"?r.items=wo(r.items):(ys(r),gs(r),ms(r),r.type=hs(r.type)),r))}function ys(e){Object.keys(e).filter(r=>r.startsWith("$")&&!(r.slice(1)in e)).forEach(r=>(e[r.slice(1)]=e[r],delete e[r]))}function gs(e){e.id||(e.id=e.name||e.prop)}function ms(e){if(e.overrideRules)return;const{component:r}=e;if(!r||typeof r=="string")return;const{rules:n=[]}=r;e.rules=[...e.rules||[],...typeof n=="function"?n(e):n]}var sn,Hn;function bs(){if(Hn)return sn;Hn=1;var e="Expected a function",r="__lodash_hash_undefined__",n=9007199254740991,o="[object Function]",s="[object GeneratorFunction]",i="[object Symbol]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,E=/^\./,_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S=/[\\^$.*+?()[\]{}|]/g,v=/\\(\\)?/g,j=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,w=typeof fe=="object"&&fe&&fe.Object===Object&&fe,A=typeof self=="object"&&self&&self.Object===Object&&self,C=w||A||Function("return this")();function q(f,b){return f?.[b]}function J(f){var b=!1;if(f!=null&&typeof f.toString!="function")try{b=!!(f+"")}catch{}return b}var W=Array.prototype,R=Function.prototype,U=Object.prototype,P=C["__core-js_shared__"],F=(function(){var f=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})(),Y=R.toString,X=U.hasOwnProperty,ee=U.toString,te=RegExp("^"+Y.call(X).replace(S,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=C.Symbol,Z=W.splice,oe=Re(C,"Map"),L=Re(Object,"create"),H=Q?Q.prototype:void 0,le=H?H.toString:void 0;function ae(f){var b=-1,I=f?f.length:0;for(this.clear();++b<I;){var se=f[b];this.set(se[0],se[1])}}function Ce(){this.__data__=L?L(null):{}}function $(f){return this.has(f)&&delete this.__data__[f]}function ge(f){var b=this.__data__;if(L){var I=b[f];return I===r?void 0:I}return X.call(b,f)?b[f]:void 0}function de(f){var b=this.__data__;return L?b[f]!==void 0:X.call(b,f)}function he(f,b){var I=this.__data__;return I[f]=L&&b===void 0?r:b,this}ae.prototype.clear=Ce,ae.prototype.delete=$,ae.prototype.get=ge,ae.prototype.has=de,ae.prototype.set=he;function me(f){var b=-1,I=f?f.length:0;for(this.clear();++b<I;){var se=f[b];this.set(se[0],se[1])}}function K(){this.__data__=[]}function Ae(f){var b=this.__data__,I=De(b,f);if(I<0)return!1;var se=b.length-1;return I==se?b.pop():Z.call(b,I,1),!0}function ot(f){var b=this.__data__,I=De(b,f);return I<0?void 0:b[I][1]}function pe(f){return De(this.__data__,f)>-1}function Ye(f,b){var I=this.__data__,se=De(I,f);return se<0?I.push([f,b]):I[se][1]=b,this}me.prototype.clear=K,me.prototype.delete=Ae,me.prototype.get=ot,me.prototype.has=pe,me.prototype.set=Ye;function Ee(f){var b=-1,I=f?f.length:0;for(this.clear();++b<I;){var se=f[b];this.set(se[0],se[1])}}function Je(){this.__data__={hash:new ae,map:new(oe||me),string:new ae}}function we(f){return Ue(this,f).delete(f)}function Fe(f){return Ue(this,f).get(f)}function be(f){return Ue(this,f).has(f)}function Qe(f,b){return Ue(this,f).set(f,b),this}Ee.prototype.clear=Je,Ee.prototype.delete=we,Ee.prototype.get=Fe,Ee.prototype.has=be,Ee.prototype.set=Qe;function We(f,b,I){var se=f[b];(!(X.call(f,b)&&ce(se,I))||I===void 0&&!(b in f))&&(f[b]=I)}function De(f,b){for(var I=f.length;I--;)if(ce(f[I][0],b))return I;return-1}function _e(f){if(!Xe(f)||je(f))return!1;var b=Ne(f)||J(f)?te:j;return b.test(T(f))}function Be(f,b,I,se){if(!Xe(f))return f;b=Le(b,f)?[b]:ke(b);for(var ve=-1,qe=b.length,l=qe-1,x=f;x!=null&&++ve<qe;){var B=p(b[ve]),re=I;if(ve!=l){var xe=x[B];re=void 0,re===void 0&&(re=Xe(xe)?xe:Se(b[ve+1])?[]:{})}We(x,B,re),x=x[B]}return f}function Ie(f){if(typeof f=="string")return f;if(O(f))return le?le.call(f):"";var b=f+"";return b=="0"&&1/f==-1/0?"-0":b}function ke(f){return ye(f)?f:He(f)}function Ue(f,b){var I=f.__data__;return at(b)?I[typeof b=="string"?"string":"hash"]:I.map}function Re(f,b){var I=q(f,b);return _e(I)?I:void 0}function Se(f,b){return b=b??n,!!b&&(typeof f=="number"||k.test(f))&&f>-1&&f%1==0&&f<b}function Le(f,b){if(ye(f))return!1;var I=typeof f;return I=="number"||I=="symbol"||I=="boolean"||f==null||O(f)?!0:d.test(f)||!c.test(f)||b!=null&&f in Object(b)}function at(f){var b=typeof f;return b=="string"||b=="number"||b=="symbol"||b=="boolean"?f!=="__proto__":f===null}function je(f){return!!F&&F in f}var He=D(function(f){f=N(f);var b=[];return E.test(f)&&b.push(""),f.replace(_,function(I,se,ve,qe){b.push(ve?qe.replace(v,"$1"):se||I)}),b});function p(f){if(typeof f=="string"||O(f))return f;var b=f+"";return b=="0"&&1/f==-1/0?"-0":b}function T(f){if(f!=null){try{return Y.call(f)}catch{}try{return f+""}catch{}}return""}function D(f,b){if(typeof f!="function"||b&&typeof b!="function")throw new TypeError(e);var I=function(){var se=arguments,ve=b?b.apply(this,se):se[0],qe=I.cache;if(qe.has(ve))return qe.get(ve);var l=f.apply(this,se);return I.cache=qe.set(ve,l),l};return I.cache=new(D.Cache||Ee),I}D.Cache=Ee;function ce(f,b){return f===b||f!==f&&b!==b}var ye=Array.isArray;function Ne(f){var b=Xe(f)?ee.call(f):"";return b==o||b==s}function Xe(f){var b=typeof f;return!!f&&(b=="object"||b=="function")}function h(f){return!!f&&typeof f=="object"}function O(f){return typeof f=="symbol"||h(f)&&ee.call(f)==i}function N(f){return f==null?"":Ie(f)}function z(f,b,I){return f==null?f:Be(f,b,I)}return sn=z,sn}var _s=bs();const ws=mt(_s);var Ht={exports:{}};Ht.exports;var qn;function Ss(){return qn||(qn=1,(function(e,r){var n=200,o="__lodash_hash_undefined__",s=1,i=2,c=9007199254740991,d="[object Arguments]",E="[object Array]",_="[object AsyncFunction]",S="[object Boolean]",v="[object Date]",j="[object Error]",k="[object Function]",w="[object GeneratorFunction]",A="[object Map]",C="[object Number]",q="[object Null]",J="[object Object]",W="[object Promise]",R="[object Proxy]",U="[object RegExp]",P="[object Set]",F="[object String]",Y="[object Symbol]",X="[object Undefined]",ee="[object WeakMap]",te="[object ArrayBuffer]",Q="[object DataView]",Z="[object Float32Array]",oe="[object Float64Array]",L="[object Int8Array]",H="[object Int16Array]",le="[object Int32Array]",ae="[object Uint8Array]",Ce="[object Uint8ClampedArray]",$="[object Uint16Array]",ge="[object Uint32Array]",de=/[\\^$.*+?()[\]{}|]/g,he=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,K={};K[Z]=K[oe]=K[L]=K[H]=K[le]=K[ae]=K[Ce]=K[$]=K[ge]=!0,K[d]=K[E]=K[te]=K[S]=K[Q]=K[v]=K[j]=K[k]=K[A]=K[C]=K[J]=K[U]=K[P]=K[F]=K[ee]=!1;var Ae=typeof fe=="object"&&fe&&fe.Object===Object&&fe,ot=typeof self=="object"&&self&&self.Object===Object&&self,pe=Ae||ot||Function("return this")(),Ye=r&&!r.nodeType&&r,Ee=Ye&&!0&&e&&!e.nodeType&&e,Je=Ee&&Ee.exports===Ye,we=Je&&Ae.process,Fe=(function(){try{return we&&we.binding&&we.binding("util")}catch{}})(),be=Fe&&Fe.isTypedArray;function Qe(t,a){for(var u=-1,m=t==null?0:t.length,V=0,M=[];++u<m;){var ie=t[u];a(ie,u,t)&&(M[V++]=ie)}return M}function We(t,a){for(var u=-1,m=a.length,V=t.length;++u<m;)t[V+u]=a[u];return t}function De(t,a){for(var u=-1,m=t==null?0:t.length;++u<m;)if(a(t[u],u,t))return!0;return!1}function _e(t,a){for(var u=-1,m=Array(t);++u<t;)m[u]=a(u);return m}function Be(t){return function(a){return t(a)}}function Ie(t,a){return t.has(a)}function ke(t,a){return t?.[a]}function Ue(t){var a=-1,u=Array(t.size);return t.forEach(function(m,V){u[++a]=[V,m]}),u}function Re(t,a){return function(u){return t(a(u))}}function Se(t){var a=-1,u=Array(t.size);return t.forEach(function(m){u[++a]=m}),u}var Le=Array.prototype,at=Function.prototype,je=Object.prototype,He=pe["__core-js_shared__"],p=at.toString,T=je.hasOwnProperty,D=(function(){var t=/[^.]+$/.exec(He&&He.keys&&He.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),ce=je.toString,ye=RegExp("^"+p.call(T).replace(de,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=Je?pe.Buffer:void 0,Xe=pe.Symbol,h=pe.Uint8Array,O=je.propertyIsEnumerable,N=Le.splice,z=Xe?Xe.toStringTag:void 0,f=Object.getOwnPropertySymbols,b=Ne?Ne.isBuffer:void 0,I=Re(Object.keys,Object),se=ht(pe,"DataView"),ve=ht(pe,"Map"),qe=ht(pe,"Promise"),l=ht(pe,"Set"),x=ht(pe,"WeakMap"),B=ht(Object,"create"),re=Ze(se),xe=Ze(ve),st=Ze(qe),it=Ze(l),mr=Ze(x),Wt=Xe?Xe.prototype:void 0,Lt=Wt?Wt.valueOf:void 0;function Me(t){var a=-1,u=t==null?0:t.length;for(this.clear();++a<u;){var m=t[a];this.set(m[0],m[1])}}function br(){this.__data__=B?B(null):{},this.size=0}function _r(t){var a=this.has(t)&&delete this.__data__[t];return this.size-=a?1:0,a}function wr(t){var a=this.__data__;if(B){var u=a[t];return u===o?void 0:u}return T.call(a,t)?a[t]:void 0}function Sr(t){var a=this.__data__;return B?a[t]!==void 0:T.call(a,t)}function xr(t,a){var u=this.__data__;return this.size+=this.has(t)?0:1,u[t]=B&&a===void 0?o:a,this}Me.prototype.clear=br,Me.prototype.delete=_r,Me.prototype.get=wr,Me.prototype.has=Sr,Me.prototype.set=xr;function Ve(t){var a=-1,u=t==null?0:t.length;for(this.clear();++a<u;){var m=t[a];this.set(m[0],m[1])}}function Or(){this.__data__=[],this.size=0}function Er(t){var a=this.__data__,u=Ct(a,t);if(u<0)return!1;var m=a.length-1;return u==m?a.pop():N.call(a,u,1),--this.size,!0}function vr(t){var a=this.__data__,u=Ct(a,t);return u<0?void 0:a[u][1]}function Tr(t){return Ct(this.__data__,t)>-1}function Cr(t,a){var u=this.__data__,m=Ct(u,t);return m<0?(++this.size,u.push([t,a])):u[m][1]=a,this}Ve.prototype.clear=Or,Ve.prototype.delete=Er,Ve.prototype.get=vr,Ve.prototype.has=Tr,Ve.prototype.set=Cr;function et(t){var a=-1,u=t==null?0:t.length;for(this.clear();++a<u;){var m=t[a];this.set(m[0],m[1])}}function Ar(){this.size=0,this.__data__={hash:new Me,map:new(ve||Ve),string:new Me}}function Rr(t){var a=ut(this,t).delete(t);return this.size-=a?1:0,a}function jr(t){return ut(this,t).get(t)}function Pr(t){return ut(this,t).has(t)}function Fr(t,a){var u=ut(this,t),m=u.size;return u.set(t,a),this.size+=u.size==m?0:1,this}et.prototype.clear=Ar,et.prototype.delete=Rr,et.prototype.get=jr,et.prototype.has=Pr,et.prototype.set=Fr;function vt(t){var a=-1,u=t==null?0:t.length;for(this.__data__=new et;++a<u;)this.add(t[a])}function Xt(t){return this.__data__.set(t,o),this}function Tt(t){return this.__data__.has(t)}vt.prototype.add=vt.prototype.push=Xt,vt.prototype.has=Tt;function lt(t){var a=this.__data__=new Ve(t);this.size=a.size}function Nt(){this.__data__=new Ve,this.size=0}function Ir(t){var a=this.__data__,u=a.delete(t);return this.size=a.size,u}function Lr(t){return this.__data__.get(t)}function Nr(t){return this.__data__.has(t)}function Dr(t,a){var u=this.__data__;if(u instanceof Ve){var m=u.__data__;if(!ve||m.length<n-1)return m.push([t,a]),this.size=++u.size,this;u=this.__data__=new et(m)}return u.set(t,a),this.size=u.size,this}lt.prototype.clear=Nt,lt.prototype.delete=Ir,lt.prototype.get=Lr,lt.prototype.has=Nr,lt.prototype.set=Dr;function Br(t,a){var u=At(t),m=!u&&tr(t),V=!u&&!m&&Rt(t),M=!u&&!m&&!V&&or(t),ie=u||m||V||M,ne=ie?_e(t.length,String):[],Te=ne.length;for(var ue in t)T.call(t,ue)&&!(ie&&(ue=="length"||V&&(ue=="offset"||ue=="parent")||M&&(ue=="buffer"||ue=="byteLength"||ue=="byteOffset")||zr(ue,Te)))&&ne.push(ue);return ne}function Ct(t,a){for(var u=t.length;u--;)if(er(t[u][0],a))return u;return-1}function Dt(t,a,u){var m=a(t);return At(t)?m:We(m,u(t))}function _t(t){return t==null?t===void 0?X:q:z&&z in Object(t)?yt(t):Qt(t)}function Zt(t){return dt(t)&&_t(t)==d}function Yt(t,a,u,m,V){return t===a?!0:t==null||a==null||!dt(t)&&!dt(a)?t!==t&&a!==a:Ur(t,a,u,m,Yt,V)}function Ur(t,a,u,m,V,M){var ie=At(t),ne=At(a),Te=ie?E:ft(t),ue=ne?E:ft(a);Te=Te==d?J:Te,ue=ue==d?J:ue;var ze=Te==J,tt=ue==J,Pe=Te==ue;if(Pe&&Rt(t)){if(!Rt(a))return!1;ie=!0,ze=!1}if(Pe&&!ze)return M||(M=new lt),ie||or(t)?Bt(t,a,u,m,V,M):Hr(t,a,Te,u,m,V,M);if(!(u&s)){var Ge=ze&&T.call(t,"__wrapped__"),$e=tt&&T.call(a,"__wrapped__");if(Ge||$e){var bt=Ge?t.value():t,gt=$e?a.value():a;return M||(M=new lt),V(bt,gt,u,m,M)}}return Pe?(M||(M=new lt),qr(t,a,u,m,V,M)):!1}function Mr(t){if(!nr(t)||Kr(t))return!1;var a=rr(t)?ye:he;return a.test(Ze(t))}function $r(t){return dt(t)&&Mt(t.length)&&!!K[_t(t)]}function kr(t){if(!Jr(t))return I(t);var a=[];for(var u in Object(t))T.call(t,u)&&u!="constructor"&&a.push(u);return a}function Bt(t,a,u,m,V,M){var ie=u&s,ne=t.length,Te=a.length;if(ne!=Te&&!(ie&&Te>ne))return!1;var ue=M.get(t);if(ue&&M.get(a))return ue==a;var ze=-1,tt=!0,Pe=u&i?new vt:void 0;for(M.set(t,a),M.set(a,t);++ze<ne;){var Ge=t[ze],$e=a[ze];if(m)var bt=ie?m($e,Ge,ze,a,t,M):m(Ge,$e,ze,t,a,M);if(bt!==void 0){if(bt)continue;tt=!1;break}if(Pe){if(!De(a,function(gt,St){if(!Ie(Pe,St)&&(Ge===gt||V(Ge,gt,u,m,M)))return Pe.push(St)})){tt=!1;break}}else if(!(Ge===$e||V(Ge,$e,u,m,M))){tt=!1;break}}return M.delete(t),M.delete(a),tt}function Hr(t,a,u,m,V,M,ie){switch(u){case Q:if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case te:return!(t.byteLength!=a.byteLength||!M(new h(t),new h(a)));case S:case v:case C:return er(+t,+a);case j:return t.name==a.name&&t.message==a.message;case U:case F:return t==a+"";case A:var ne=Ue;case P:var Te=m&s;if(ne||(ne=Se),t.size!=a.size&&!Te)return!1;var ue=ie.get(t);if(ue)return ue==a;m|=i,ie.set(t,a);var ze=Bt(ne(t),ne(a),m,V,M,ie);return ie.delete(t),ze;case Y:if(Lt)return Lt.call(t)==Lt.call(a)}return!1}function qr(t,a,u,m,V,M){var ie=u&s,ne=wt(t),Te=ne.length,ue=wt(a),ze=ue.length;if(Te!=ze&&!ie)return!1;for(var tt=Te;tt--;){var Pe=ne[tt];if(!(ie?Pe in a:T.call(a,Pe)))return!1}var Ge=M.get(t);if(Ge&&M.get(a))return Ge==a;var $e=!0;M.set(t,a),M.set(a,t);for(var bt=ie;++tt<Te;){Pe=ne[tt];var gt=t[Pe],St=a[Pe];if(m)var wn=ie?m(St,gt,Pe,a,t,M):m(gt,St,Pe,t,a,M);if(!(wn===void 0?gt===St||V(gt,St,u,m,M):wn)){$e=!1;break}bt||(bt=Pe=="constructor")}if($e&&!bt){var ar=t.constructor,sr=a.constructor;ar!=sr&&"constructor"in t&&"constructor"in a&&!(typeof ar=="function"&&ar instanceof ar&&typeof sr=="function"&&sr instanceof sr)&&($e=!1)}return M.delete(t),M.delete(a),$e}function wt(t){return Dt(t,$t,Vr)}function ut(t,a){var u=t.__data__;return Gr(a)?u[typeof a=="string"?"string":"hash"]:u.map}function ht(t,a){var u=ke(t,a);return Mr(u)?u:void 0}function yt(t){var a=T.call(t,z),u=t[z];try{t[z]=void 0;var m=!0}catch{}var V=ce.call(t);return m&&(a?t[z]=u:delete t[z]),V}var Vr=f?function(t){return t==null?[]:(t=Object(t),Qe(f(t),function(a){return O.call(t,a)}))}:Xr,ft=_t;(se&&ft(new se(new ArrayBuffer(1)))!=Q||ve&&ft(new ve)!=A||qe&&ft(qe.resolve())!=W||l&&ft(new l)!=P||x&&ft(new x)!=ee)&&(ft=function(t){var a=_t(t),u=a==J?t.constructor:void 0,m=u?Ze(u):"";if(m)switch(m){case re:return Q;case xe:return A;case st:return W;case it:return P;case mr:return ee}return a});function zr(t,a){return a=a??c,!!a&&(typeof t=="number"||me.test(t))&&t>-1&&t%1==0&&t<a}function Gr(t){var a=typeof t;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?t!=="__proto__":t===null}function Kr(t){return!!D&&D in t}function Jr(t){var a=t&&t.constructor,u=typeof a=="function"&&a.prototype||je;return t===u}function Qt(t){return ce.call(t)}function Ze(t){if(t!=null){try{return p.call(t)}catch{}try{return t+""}catch{}}return""}function er(t,a){return t===a||t!==t&&a!==a}var tr=Zt((function(){return arguments})())?Zt:function(t){return dt(t)&&T.call(t,"callee")&&!O.call(t,"callee")},At=Array.isArray;function Ut(t){return t!=null&&Mt(t.length)&&!rr(t)}var Rt=b||Zr;function Wr(t,a){return Yt(t,a)}function rr(t){if(!nr(t))return!1;var a=_t(t);return a==k||a==w||a==_||a==R}function Mt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=c}function nr(t){var a=typeof t;return t!=null&&(a=="object"||a=="function")}function dt(t){return t!=null&&typeof t=="object"}var or=be?Be(be):$r;function $t(t){return Ut(t)?Br(t):kr(t)}function Xr(){return[]}function Zr(){return!1}e.exports=Wr})(Ht,Ht.exports)),Ht.exports}var xs=Ss();const Os=mt(xs);var qt={exports:{}};qt.exports;var Vn;function Es(){return Vn||(Vn=1,(function(e,r){var n=200,o="__lodash_hash_undefined__",s=9007199254740991,i="[object Arguments]",c="[object Array]",d="[object Boolean]",E="[object Date]",_="[object Error]",S="[object Function]",v="[object GeneratorFunction]",j="[object Map]",k="[object Number]",w="[object Object]",A="[object Promise]",C="[object RegExp]",q="[object Set]",J="[object String]",W="[object Symbol]",R="[object WeakMap]",U="[object ArrayBuffer]",P="[object DataView]",F="[object Float32Array]",Y="[object Float64Array]",X="[object Int8Array]",ee="[object Int16Array]",te="[object Int32Array]",Q="[object Uint8Array]",Z="[object Uint8ClampedArray]",oe="[object Uint16Array]",L="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,le=/\w*$/,ae=/^\[object .+?Constructor\]$/,Ce=/^(?:0|[1-9]\d*)$/,$={};$[i]=$[c]=$[U]=$[P]=$[d]=$[E]=$[F]=$[Y]=$[X]=$[ee]=$[te]=$[j]=$[k]=$[w]=$[C]=$[q]=$[J]=$[W]=$[Q]=$[Z]=$[oe]=$[L]=!0,$[_]=$[S]=$[R]=!1;var ge=typeof fe=="object"&&fe&&fe.Object===Object&&fe,de=typeof self=="object"&&self&&self.Object===Object&&self,he=ge||de||Function("return this")(),me=r&&!r.nodeType&&r,K=me&&!0&&e&&!e.nodeType&&e,Ae=K&&K.exports===me;function ot(t,a){return t.set(a[0],a[1]),t}function pe(t,a){return t.add(a),t}function Ye(t,a){for(var u=-1,m=t?t.length:0;++u<m&&a(t[u],u,t)!==!1;);return t}function Ee(t,a){for(var u=-1,m=a.length,V=t.length;++u<m;)t[V+u]=a[u];return t}function Je(t,a,u,m){for(var V=-1,M=t?t.length:0;++V<M;)u=a(u,t[V],V,t);return u}function we(t,a){for(var u=-1,m=Array(t);++u<t;)m[u]=a(u);return m}function Fe(t,a){return t?.[a]}function be(t){var a=!1;if(t!=null&&typeof t.toString!="function")try{a=!!(t+"")}catch{}return a}function Qe(t){var a=-1,u=Array(t.size);return t.forEach(function(m,V){u[++a]=[V,m]}),u}function We(t,a){return function(u){return t(a(u))}}function De(t){var a=-1,u=Array(t.size);return t.forEach(function(m){u[++a]=m}),u}var _e=Array.prototype,Be=Function.prototype,Ie=Object.prototype,ke=he["__core-js_shared__"],Ue=(function(){var t=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),Re=Be.toString,Se=Ie.hasOwnProperty,Le=Ie.toString,at=RegExp("^"+Re.call(Se).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=Ae?he.Buffer:void 0,He=he.Symbol,p=he.Uint8Array,T=We(Object.getPrototypeOf,Object),D=Object.create,ce=Ie.propertyIsEnumerable,ye=_e.splice,Ne=Object.getOwnPropertySymbols,Xe=je?je.isBuffer:void 0,h=We(Object.keys,Object),O=ut(he,"DataView"),N=ut(he,"Map"),z=ut(he,"Promise"),f=ut(he,"Set"),b=ut(he,"WeakMap"),I=ut(Object,"create"),se=Ze(O),ve=Ze(N),qe=Ze(z),l=Ze(f),x=Ze(b),B=He?He.prototype:void 0,re=B?B.valueOf:void 0;function xe(t){var a=-1,u=t?t.length:0;for(this.clear();++a<u;){var m=t[a];this.set(m[0],m[1])}}function st(){this.__data__=I?I(null):{}}function it(t){return this.has(t)&&delete this.__data__[t]}function mr(t){var a=this.__data__;if(I){var u=a[t];return u===o?void 0:u}return Se.call(a,t)?a[t]:void 0}function Wt(t){var a=this.__data__;return I?a[t]!==void 0:Se.call(a,t)}function Lt(t,a){var u=this.__data__;return u[t]=I&&a===void 0?o:a,this}xe.prototype.clear=st,xe.prototype.delete=it,xe.prototype.get=mr,xe.prototype.has=Wt,xe.prototype.set=Lt;function Me(t){var a=-1,u=t?t.length:0;for(this.clear();++a<u;){var m=t[a];this.set(m[0],m[1])}}function br(){this.__data__=[]}function _r(t){var a=this.__data__,u=Tt(a,t);if(u<0)return!1;var m=a.length-1;return u==m?a.pop():ye.call(a,u,1),!0}function wr(t){var a=this.__data__,u=Tt(a,t);return u<0?void 0:a[u][1]}function Sr(t){return Tt(this.__data__,t)>-1}function xr(t,a){var u=this.__data__,m=Tt(u,t);return m<0?u.push([t,a]):u[m][1]=a,this}Me.prototype.clear=br,Me.prototype.delete=_r,Me.prototype.get=wr,Me.prototype.has=Sr,Me.prototype.set=xr;function Ve(t){var a=-1,u=t?t.length:0;for(this.clear();++a<u;){var m=t[a];this.set(m[0],m[1])}}function Or(){this.__data__={hash:new xe,map:new(N||Me),string:new xe}}function Er(t){return wt(this,t).delete(t)}function vr(t){return wt(this,t).get(t)}function Tr(t){return wt(this,t).has(t)}function Cr(t,a){return wt(this,t).set(t,a),this}Ve.prototype.clear=Or,Ve.prototype.delete=Er,Ve.prototype.get=vr,Ve.prototype.has=Tr,Ve.prototype.set=Cr;function et(t){this.__data__=new Me(t)}function Ar(){this.__data__=new Me}function Rr(t){return this.__data__.delete(t)}function jr(t){return this.__data__.get(t)}function Pr(t){return this.__data__.has(t)}function Fr(t,a){var u=this.__data__;if(u instanceof Me){var m=u.__data__;if(!N||m.length<n-1)return m.push([t,a]),this;u=this.__data__=new Ve(m)}return u.set(t,a),this}et.prototype.clear=Ar,et.prototype.delete=Rr,et.prototype.get=jr,et.prototype.has=Pr,et.prototype.set=Fr;function vt(t,a){var u=Ut(t)||At(t)?we(t.length,String):[],m=u.length,V=!!m;for(var M in t)Se.call(t,M)&&!(V&&(M=="length"||Gr(M,m)))&&u.push(M);return u}function Xt(t,a,u){var m=t[a];(!(Se.call(t,a)&&tr(m,u))||u===void 0&&!(a in t))&&(t[a]=u)}function Tt(t,a){for(var u=t.length;u--;)if(tr(t[u][0],a))return u;return-1}function lt(t,a){return t&&Bt(a,$t(a),t)}function Nt(t,a,u,m,V,M,ie){var ne;if(m&&(ne=M?m(t,V,M,ie):m(t)),ne!==void 0)return ne;if(!dt(t))return t;var Te=Ut(t);if(Te){if(ne=Vr(t),!a)return kr(t,ne)}else{var ue=yt(t),ze=ue==S||ue==v;if(rr(t))return Ct(t,a);if(ue==w||ue==i||ze&&!M){if(be(t))return M?t:{};if(ne=ft(ze?{}:t),!a)return Hr(t,lt(ne,t))}else{if(!$[ue])return M?t:{};ne=zr(t,ue,Nt,a)}}ie||(ie=new et);var tt=ie.get(t);if(tt)return tt;if(ie.set(t,ne),!Te)var Pe=u?qr(t):$t(t);return Ye(Pe||t,function(Ge,$e){Pe&&($e=Ge,Ge=t[$e]),Xt(ne,$e,Nt(Ge,a,u,m,$e,t,ie))}),ne}function Ir(t){return dt(t)?D(t):{}}function Lr(t,a,u){var m=a(t);return Ut(t)?m:Ee(m,u(t))}function Nr(t){return Le.call(t)}function Dr(t){if(!dt(t)||Jr(t))return!1;var a=Mt(t)||be(t)?at:ae;return a.test(Ze(t))}function Br(t){if(!Qt(t))return h(t);var a=[];for(var u in Object(t))Se.call(t,u)&&u!="constructor"&&a.push(u);return a}function Ct(t,a){if(a)return t.slice();var u=new t.constructor(t.length);return t.copy(u),u}function Dt(t){var a=new t.constructor(t.byteLength);return new p(a).set(new p(t)),a}function _t(t,a){var u=a?Dt(t.buffer):t.buffer;return new t.constructor(u,t.byteOffset,t.byteLength)}function Zt(t,a,u){var m=a?u(Qe(t),!0):Qe(t);return Je(m,ot,new t.constructor)}function Yt(t){var a=new t.constructor(t.source,le.exec(t));return a.lastIndex=t.lastIndex,a}function Ur(t,a,u){var m=a?u(De(t),!0):De(t);return Je(m,pe,new t.constructor)}function Mr(t){return re?Object(re.call(t)):{}}function $r(t,a){var u=a?Dt(t.buffer):t.buffer;return new t.constructor(u,t.byteOffset,t.length)}function kr(t,a){var u=-1,m=t.length;for(a||(a=Array(m));++u<m;)a[u]=t[u];return a}function Bt(t,a,u,m){u||(u={});for(var V=-1,M=a.length;++V<M;){var ie=a[V],ne=void 0;Xt(u,ie,ne===void 0?t[ie]:ne)}return u}function Hr(t,a){return Bt(t,ht(t),a)}function qr(t){return Lr(t,$t,ht)}function wt(t,a){var u=t.__data__;return Kr(a)?u[typeof a=="string"?"string":"hash"]:u.map}function ut(t,a){var u=Fe(t,a);return Dr(u)?u:void 0}var ht=Ne?We(Ne,Object):Xr,yt=Nr;(O&&yt(new O(new ArrayBuffer(1)))!=P||N&&yt(new N)!=j||z&&yt(z.resolve())!=A||f&&yt(new f)!=q||b&&yt(new b)!=R)&&(yt=function(t){var a=Le.call(t),u=a==w?t.constructor:void 0,m=u?Ze(u):void 0;if(m)switch(m){case se:return P;case ve:return j;case qe:return A;case l:return q;case x:return R}return a});function Vr(t){var a=t.length,u=t.constructor(a);return a&&typeof t[0]=="string"&&Se.call(t,"index")&&(u.index=t.index,u.input=t.input),u}function ft(t){return typeof t.constructor=="function"&&!Qt(t)?Ir(T(t)):{}}function zr(t,a,u,m){var V=t.constructor;switch(a){case U:return Dt(t);case d:case E:return new V(+t);case P:return _t(t,m);case F:case Y:case X:case ee:case te:case Q:case Z:case oe:case L:return $r(t,m);case j:return Zt(t,m,u);case k:case J:return new V(t);case C:return Yt(t);case q:return Ur(t,m,u);case W:return Mr(t)}}function Gr(t,a){return a=a??s,!!a&&(typeof t=="number"||Ce.test(t))&&t>-1&&t%1==0&&t<a}function Kr(t){var a=typeof t;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?t!=="__proto__":t===null}function Jr(t){return!!Ue&&Ue in t}function Qt(t){var a=t&&t.constructor,u=typeof a=="function"&&a.prototype||Ie;return t===u}function Ze(t){if(t!=null){try{return Re.call(t)}catch{}try{return t+""}catch{}}return""}function er(t){return Nt(t,!0,!0)}function tr(t,a){return t===a||t!==t&&a!==a}function At(t){return Wr(t)&&Se.call(t,"callee")&&(!ce.call(t,"callee")||Le.call(t)==i)}var Ut=Array.isArray;function Rt(t){return t!=null&&nr(t.length)&&!Mt(t)}function Wr(t){return or(t)&&Rt(t)}var rr=Xe||Zr;function Mt(t){var a=dt(t)?Le.call(t):"";return a==S||a==v}function nr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=s}function dt(t){var a=typeof t;return!!t&&(a=="object"||a=="function")}function or(t){return!!t&&typeof t=="object"}function $t(t){return Rt(t)?vt(t):Br(t)}function Xr(){return[]}function Zr(){return!1}e.exports=er})(qt,qt.exports)),qt.exports}var vs=Es();const zn=mt(vs);var un,Gn;function Ts(){if(Gn)return un;Gn=1;var e="[object Object]";function r(j){var k=!1;if(j!=null&&typeof j.toString!="function")try{k=!!(j+"")}catch{}return k}function n(j,k){return function(w){return j(k(w))}}var o=Function.prototype,s=Object.prototype,i=o.toString,c=s.hasOwnProperty,d=i.call(Object),E=s.toString,_=n(Object.getPrototypeOf,Object);function S(j){return!!j&&typeof j=="object"}function v(j){if(!S(j)||E.call(j)!=e||r(j))return!1;var k=_(j);if(k===null)return!0;var w=c.call(k,"constructor")&&k.constructor;return typeof w=="function"&&w instanceof w&&i.call(w)==d}return un=v,un}var Cs=Ts();const As=mt(Cs);function pn(e,r){return Kn(e.map(n=>({id:n.id,type:n.type,value:n.type==="group"?pn(n.items,r):n[r]})).filter(({type:n,value:o})=>o!==void 0||n==="group"&&Object.keys(o).length).map(({id:n,value:o})=>[n,o]))}function hn(e,r,{strict:n=!1}={}){const o=n?{}:{...e},s=r.value||r;return Object.keys(e).forEach(i=>{const c=s.find(d=>d.id===i);if(c)if(c.type!=="group")if(c.outputFormat){const d=c.outputFormat(e[i]);As(d)?Object.assign(o,d):o[i]=d}else o[i]=e[i];else o[i]=hn(e[i],c.items,{strict:n})}),o}function yn(e,r){const n={...e},o=i=>{const{id:c}=i;if(i.inputFormat){const d=i.inputFormat(e);d!==void 0&&(n[c]=d)}else c in e&&(i.type!=="group"?n[c]=e[c]:n[c]=yn(e[c],i.items))};return(r.value||r).forEach(o),n}function So(e,r){r.forEach(({type:n,id:o,items:s})=>{switch(n){case"group":o in e||(e[o]={}),So(e[o],s);break;case"checkbox-group":o in e||(e[o]=[]);break}})}function xo(e,r,n){const o=n.value||n;Object.keys(r).forEach(s=>{const i=o.find(c=>c.id===s)||{};i.type!=="group"?e[s]=r[s]:xo(e[s],r[s],i.items)})}const Rs={name:"ElFormRenderer"},Vt=Object.assign(Rs,{props:{content:{type:Array,required:!0},disabled:{type:[Boolean,Function],default:!1},readonly:{type:Boolean,default:!1},FormData:{type:Object,default:void 0}},emits:["update:FormData"],setup(e,{expose:r,emit:n}){let o="group",s=y.getCurrentInstance(),i=y.reactive({}),c=y.reactive({}),d=y.reactive({}),E=y.ref();const _=y.ref([]);let S=n;y.onMounted(async()=>{d=zn(i),await y.nextTick(),E.value.clearValidate()});let v=e,j=y.computed(()=>wo(v.content)),k=()=>{if(!j.value.length)return;let R=v.FormData?yn(v.FormData,j.value):pn(j.value,"default");So(R,j.value),Os(y.toRaw(i),R)||(Object.keys(i).forEach(U=>delete i[U]),Object.assign(i,R))};y.watch(()=>v.FormData,R=>{R&&k()},{immediate:!0,deep:!0}),y.watch(j,R=>{try{if(!R)return;Object.assign(c,pn(R,"options")),k()}catch(U){console.log(U)}},{immediate:!0}),y.watch(i,R=>{try{if(!R)return;let U=Object.assign(R,hn(R,j));S("update:FormData",U)}catch(U){console.log(U)}});let w=({id:R,value:U})=>{i[R]=U},A=async()=>{Object.keys(i).forEach(U=>delete i[U]),Object.assign(i,zn(d)),await y.nextTick();let R=E.value;setTimeout(()=>{R.clearValidate()},0)},C=({strict:R=!1}={})=>hn(i,j,{strict:R}),q=R=>{R=yn(R,j),xo(i,R,j)},J=(R,U)=>{ws(c,R,U)};const W=R=>{let U=[];v.content.forEach(F=>{if(F.type===o){const Y=F.items.map(X=>(X.groupId=F.id,X));U.push(...Y)}else U.push(F)});const P=U.find(F=>F.id===R);if(P)return P.groupId?_.value[P.groupId].customComponent[`formItem-${R}`].customComponent:_.value[R].customComponent};return y.provide("_elFormRenderer_",s),r(new Proxy({updateValue:w,resetFields:A,getFormValue:C,updateForm:q,setOptions:J,getComponentById:W},{get(R,U){return R[U]||E.value?.[U]},has(R,U){return U in R||U in E.value}})),(R,U)=>{const P=y.resolveComponent("el-form");return y.openBlock(),y.createBlock(P,y.mergeProps({ref_key:"myelForm",ref:E},R.$attrs,{model:y.unref(i),class:"el-form-renderer"}),{default:y.withCtx(()=>[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(y.unref(j),F=>(y.openBlock(),y.createElementBlock(y.Fragment,{key:F.id},[y.renderSlot(R.$slots,`id:${F.id}`),y.renderSlot(R.$slots,`$id:${F.id}`),(y.openBlock(),y.createBlock(y.resolveDynamicComponent(F.type===y.unref(o)?fs:_o),{ref_for:!0,ref:Y=>{_.value[F.id]=Y},data:F,value:y.unref(i),"item-value":y.unref(i)[F.id],disabled:e.disabled||(typeof F.disabled=="function"?F.disabled(y.unref(i)):F.disabled),readonly:e.readonly||F.readonly,options:y.unref(c)[F.id],onUpdateValue:y.unref(w)},null,40,["data","value","item-value","disabled","readonly","options","onUpdateValue"]))],64))),128)),y.renderSlot(R.$slots,"default")]),_:3},16,["model"])}}}),js=e=>{e.component(Vt.name,Vt)};Vt.install=js;const Ps=Vt;exports.ElFormRenderer=Ps;exports.default=Vt;
|