ss-component-new 1.1.821 → 1.1.822
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OrbitControls-D6pgin7s.js → OrbitControls-Cm4Xs_Bq.js} +1 -1
- package/dist/{OrbitControls-Ff5ikkUQ.cjs → OrbitControls-D-XDZGf-.cjs} +1 -1
- package/dist/{STLLoader-BNh7D2zV.cjs → STLLoader-BxpEhvEg.cjs} +161 -161
- package/dist/{STLLoader-LGKv5i3H.js → STLLoader-DofhZbOw.js} +522 -593
- package/dist/{array-D1hKYLwI.cjs → array-Bfmx0w6P.cjs} +2 -2
- package/dist/{array-C60T9pDZ.js → array-DbAuNWGt.js} +1 -1
- package/dist/{iconfont-v9CcCMwF.js → iconfont-DQodgJo8.js} +73 -75
- package/dist/iconfont-Di4uXnX1.cjs +1 -0
- package/dist/icons/svg/editTable.svg +1 -1
- package/dist/icons/svg/export.svg +1 -0
- package/dist/icons/svg/model.svg +1 -0
- package/dist/icons/svg/three.svg +1 -0
- package/dist/index-1i-XlS2m.js +101 -0
- package/dist/{index-BdsJiFeW.cjs → index-6jSC3unU.cjs} +1 -1
- package/dist/{index-2kzGjuzu.js → index-6zbHinQ6.js} +10 -9
- package/dist/index-B-oe2x1V.cjs +109 -0
- package/dist/index-B-qent3l.cjs +1 -0
- package/dist/{index-CukZ8eDZ.js → index-BBo52W9F.js} +4 -4
- package/dist/index-BOev8isw.cjs +21 -0
- package/dist/index-BQgnYD51.js +6492 -0
- package/dist/{index-owcnOlVq.js → index-BYW-ix_Q.js} +5 -5
- package/dist/{index-4_M1SpeV.js → index-Bi1gr72d.js} +14 -14
- package/dist/{index-DnVaHi8q.js → index-BmHmnXS9.js} +7 -7
- package/dist/index-BoS30LXH.cjs +1 -0
- package/dist/index-BuBMi9JA.cjs +1 -0
- package/dist/{index-Zi9xLtwj.js → index-BvE05H-i.js} +2 -2
- package/dist/index-BwpOMKef.cjs +1 -0
- package/dist/index-C18ZPRC7.cjs +1 -0
- package/dist/{index-HVJSfh2g.js → index-CJx2DcDb.js} +21 -19
- package/dist/{index-B3cUSGXB.js → index-CL59qQ_W.js} +9 -8
- package/dist/{index-DDsJpzfR.js → index-CLdN0W98.js} +47 -47
- package/dist/index-CPP7L10q.cjs +1 -0
- package/dist/index-CSWIBSmo.cjs +1 -0
- package/dist/{index-DEobyz7r.js → index-CTgZZ96L.js} +6 -5
- package/dist/{index-WXpPDsev.js → index-CZ1ui4mT.js} +1 -1
- package/dist/index-CfQvGqaX.cjs +1 -0
- package/dist/index-CgJYAzeA.cjs +1 -0
- package/dist/index-ChtmIuBu.js +29771 -0
- package/dist/index-CjFcaJcL.cjs +1 -0
- package/dist/index-CjTmkzBO.js +24 -0
- package/dist/{index-Dtw4WkUo.cjs → index-CngO0AUc.cjs} +1 -1
- package/dist/index-CqCPdyGu.js +1248 -0
- package/dist/index-Cr6pWv0l.cjs +1 -0
- package/dist/{index-Cw95lvvp.js → index-D8Msszln.js} +223 -223
- package/dist/index-DDvUG6fk.js +22 -0
- package/dist/{index-CdMrhxHS.js → index-DMlIMlyC.js} +10 -10
- package/dist/{index-3Cdyqd1B.cjs → index-DOBeGYzT.cjs} +1 -1
- package/dist/index-DP0k43fj.cjs +1 -0
- package/dist/index-DTxccgVM.cjs +1 -0
- package/dist/{index-JAJeIBYE.cjs → index-DVAGljX0.cjs} +1 -1
- package/dist/{index-B5Vi6RBj.cjs → index-DVCrYVKw.cjs} +1 -1
- package/dist/{index-Dxoxm0Cc.js → index-DZWNGFC0.js} +22 -22
- package/dist/{index-CY2iphpd.cjs → index-DbniLh9G.cjs} +1 -1
- package/dist/index-Dj_ofPeK.cjs +1 -0
- package/dist/{index-DtogzZej.js → index-DocnYz5P.js} +1 -1
- package/dist/index-DrL7vroa.js +319 -0
- package/dist/index-Dt2McMki.js +13668 -0
- package/dist/{index-Cphx1eY1.js → index-Gba1Qfcc.js} +7 -8
- package/dist/{index-DMb9Vu-7.js → index-IUkCD4R_.js} +1 -1
- package/dist/{index-DAyzDsjs.js → index-K6BRW_Bw.js} +1 -1
- package/dist/{index-DzM8zZqe.js → index-OH9t-y2p.js} +4 -4
- package/dist/index-PNDdZKYG.cjs +1 -0
- package/dist/{index-Dn04IPFM.js → index-QETLKFyV.js} +10 -10
- package/dist/{index-BWHtpT9o.cjs → index-RgTvyK54.cjs} +1 -1
- package/dist/{index-Cuj-fGNO.cjs → index-VAIU8vMN.cjs} +1 -1
- package/dist/{index-CF_0RdqV.cjs → index-dukFqRog.cjs} +1 -1
- package/dist/{index-C9Boo2Cw.cjs → index-dyoOdMKX.cjs} +1 -1
- package/dist/index-f9bwREQl.cjs +1 -0
- package/dist/index-rPc9VS0S.cjs +1 -0
- package/dist/index-tPamnhR2.js +236 -0
- package/dist/{index-H3kf9EQv.js → index-tX2Hs05F.js} +11 -10
- package/dist/{index-DEU-pXeW.js → index-uvns6W6E.js} +1838 -1812
- package/dist/index-weauvEnW.cjs +4 -0
- package/dist/{index-B8xEed7C.cjs → index-wlnPb2aB.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-iyZtrhDf.js → index.vue_vue_type_script_setup_true_lang-C4G6mB7R.js} +28 -28
- package/dist/{index.vue_vue_type_script_setup_true_lang-CaYQQb8M.cjs → index.vue_vue_type_script_setup_true_lang-CWi4UVPF.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-qefZ9E5G.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtN9Ij0Y.js} +53 -23
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTcahF4Z.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-mQIxU0SD.cjs} +90 -90
- package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-Cxjh1E1z.js → index.vue_vue_type_style_index_0_scoped_1966237d_lang-D3xcEtDT.js} +6488 -6474
- package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-0eNHRdYw.cjs → index.vue_vue_type_style_index_0_scoped_1966237d_lang-DwIFJsxs.cjs} +14 -14
- package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-kymzIBO8.js → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-D5CTJUDi.js} +17 -17
- package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-GlR2V0TC.cjs → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-VPQBXOPW.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs +32 -0
- package/dist/index.vue_vue_type_style_index_1_lang-hffXwR3x.js +7028 -0
- package/dist/isUndefined-4Qg9wncf.js +84 -0
- package/dist/isUndefined-BEt4O79g.cjs +1 -0
- package/dist/{main-C6I42yaU.js → main-CBCk94h5.js} +30 -29
- package/dist/main-DO_PN7jt.cjs +1 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/threeModel-GKSAzHfe.cjs +1 -0
- package/dist/{threeModel-BEt5OVCP.js → threeModel-RJwJMtfW.js} +91 -92
- package/dist/{threePreview-BUZRvBRx.js → threePreview-BSqdALPK.js} +3 -3
- package/dist/{threePreview-Dyzqu5s7.cjs → threePreview-CKvbwCiX.cjs} +1 -1
- package/dist/threeSceneView-BVbVe_Et.js +1277 -0
- package/dist/threeSceneView-KvCERteS.cjs +5 -0
- package/dist/{threeViewerHost-IhSFkCeD.js → threeViewerHost-AuhfL2Cn.js} +55 -57
- package/dist/threeViewerHost-D0pu5wk5.cjs +1 -0
- package/package.json +1 -1
- package/public/icons/svg/editTable.svg +1 -1
- package/public/icons/svg/export.svg +1 -0
- package/public/icons/svg/model.svg +1 -0
- package/public/icons/svg/three.svg +1 -0
- package/dist/animationData-B2T3Oamw.js +0 -108
- package/dist/animationData-Db_9HBoM.cjs +0 -1
- package/dist/iconfont-CZj6ltAs.cjs +0 -1
- package/dist/index-2KKrCkl8.cjs +0 -1
- package/dist/index-2OWkrGDh.js +0 -24
- package/dist/index-B1iXzkUF.cjs +0 -1
- package/dist/index-BBB4VObc.cjs +0 -11
- package/dist/index-BIVWMqJQ.cjs +0 -1
- package/dist/index-BWpZSzL1.cjs +0 -1
- package/dist/index-BllULnvx.cjs +0 -1
- package/dist/index-BvO1uTn0.js +0 -21
- package/dist/index-C2bI4adc.js +0 -8628
- package/dist/index-C9pN8_un.js +0 -548
- package/dist/index-CPdKWCSo.cjs +0 -1
- package/dist/index-CQfFbeTJ.cjs +0 -1
- package/dist/index-CZJOPfp5.js +0 -1152
- package/dist/index-Cb0q1Y5b.cjs +0 -1
- package/dist/index-Cfomm0G1.cjs +0 -109
- package/dist/index-CvvFU_QA.cjs +0 -1
- package/dist/index-DYMLmifU.cjs +0 -1
- package/dist/index-DfPyuGyq.js +0 -101
- package/dist/index-Dm2qfeUm.cjs +0 -1
- package/dist/index-DtX1F0sz.cjs +0 -4
- package/dist/index-Du3VUDcF.cjs +0 -1
- package/dist/index-VWNqRYy9.js +0 -36270
- package/dist/index-kmj8K3JX.cjs +0 -1
- package/dist/index-ndZw4AQJ.cjs +0 -1
- package/dist/index-y5FEcncv.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs +0 -42
- package/dist/index.vue_vue_type_style_index_1_lang-Rs1M3B8e.js +0 -11984
- package/dist/main-2gDZp_zL.cjs +0 -1
- package/dist/threeModel-DgOcIXVI.cjs +0 -1
- package/dist/threeSceneView-BZx98QgN.js +0 -1450
- package/dist/threeSceneView-DSkGJN5d.cjs +0 -5
- package/dist/threeViewerHost-T_51aUg5.cjs +0 -1
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";const p=require("./index-BBB4VObc.cjs"),u=require("vue");function pa(e){return e}var Ir=p.getNative(p.root,"WeakMap"),ti=Object.create,Ll=function(){function e(){}return function(t){if(!p.isObject(t))return{};if(ti)return ti(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function $l(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ga(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Ul=800,Kl=16,Hl=Date.now;function jl(e){var t=0,n=0;return function(){var r=Hl(),o=Kl-(r-n);if(n=r,o>0){if(++t>=Ul)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zl(e){return function(){return e}}var ql=p.defineProperty?function(e,t){return p.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:zl(t),writable:!0})}:pa,ya=jl(ql);function Gl(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function ln(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=void 0;l===void 0&&(l=e[a]),o?p.baseAssignValue(n,a,l):p.assignValue(n,a,l)}return n}var ni=Math.max;function va(e,t,n){return t=ni(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=ni(r.length-t,0),s=Array(i);++o<i;)s[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];return a[t]=n(s),$l(e,this,a)}}var Wl=9007199254740991;function to(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wl}function no(e){return e!=null&&to(e.length)&&!p.isFunction$1(e)}var Yl=Object.prototype;function ro(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Yl;return e===n}function Zl(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Xl="[object Arguments]";function ri(e){return p.isObjectLike(e)&&p.baseGetTag(e)==Xl}var ma=Object.prototype,Jl=ma.hasOwnProperty,Ql=ma.propertyIsEnumerable,Zn=ri(function(){return arguments}())?ri:function(e){return p.isObjectLike(e)&&Jl.call(e,"callee")&&!Ql.call(e,"callee")};function ec(){return!1}var Ea=typeof exports=="object"&&exports&&!exports.nodeType&&exports,oi=Ea&&typeof module=="object"&&module&&!module.nodeType&&module,tc=oi&&oi.exports===Ea,ii=tc?p.root.Buffer:void 0,nc=ii?ii.isBuffer:void 0,Qt=nc||ec,rc="[object Arguments]",oc="[object Array]",ic="[object Boolean]",sc="[object Date]",ac="[object Error]",uc="[object Function]",lc="[object Map]",cc="[object Number]",fc="[object Object]",dc="[object RegExp]",hc="[object Set]",pc="[object String]",gc="[object WeakMap]",yc="[object ArrayBuffer]",vc="[object DataView]",mc="[object Float32Array]",Ec="[object Float64Array]",bc="[object Int8Array]",_c="[object Int16Array]",Sc="[object Int32Array]",Tc="[object Uint8Array]",Ac="[object Uint8ClampedArray]",wc="[object Uint16Array]",Dc="[object Uint32Array]",ue={};ue[mc]=ue[Ec]=ue[bc]=ue[_c]=ue[Sc]=ue[Tc]=ue[Ac]=ue[wc]=ue[Dc]=!0;ue[rc]=ue[oc]=ue[yc]=ue[ic]=ue[vc]=ue[sc]=ue[ac]=ue[uc]=ue[lc]=ue[cc]=ue[fc]=ue[dc]=ue[hc]=ue[pc]=ue[gc]=!1;function Cc(e){return p.isObjectLike(e)&&to(e.length)&&!!ue[p.baseGetTag(e)]}function oo(e){return function(t){return e(t)}}var ba=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gt=ba&&typeof module=="object"&&module&&!module.nodeType&&module,Ic=Gt&&Gt.exports===ba,dr=Ic&&p.freeGlobal.process,kt=function(){try{var e=Gt&&Gt.require&&Gt.require("util").types;return e||dr&&dr.binding&&dr.binding("util")}catch{}}(),si=kt&&kt.isTypedArray,io=si?oo(si):Cc,Oc=Object.prototype,kc=Oc.hasOwnProperty;function _a(e,t){var n=p.isArray(e),r=!n&&Zn(e),o=!n&&!r&&Qt(e),i=!n&&!r&&!o&&io(e),s=n||r||o||i,a=s?Zl(e.length,String):[],l=a.length;for(var c in e)(t||kc.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||p.isIndex(c,l)))&&a.push(c);return a}function Sa(e,t){return function(n){return e(t(n))}}var xc=Sa(Object.keys,Object),Nc=Object.prototype,Rc=Nc.hasOwnProperty;function Pc(e){if(!ro(e))return xc(e);var t=[];for(var n in Object(e))Rc.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xn(e){return no(e)?_a(e):Pc(e)}function Bc(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Vc=Object.prototype,Mc=Vc.hasOwnProperty;function Fc(e){if(!p.isObject(e))return Bc(e);var t=ro(e),n=[];for(var r in e)r=="constructor"&&(t||!Mc.call(e,r))||n.push(r);return n}function Jn(e){return no(e)?_a(e,!0):Fc(e)}function so(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var ai=p.Symbol?p.Symbol.isConcatSpreadable:void 0;function Lc(e){return p.isArray(e)||Zn(e)||!!(ai&&e&&e[ai])}function ao(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=Lc),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?ao(a,t-1,n,r,o):so(o,a):r||(o[o.length]=a)}return o}function Ta(e){var t=e==null?0:e.length;return t?ao(e,1):[]}function Aa(e){return ya(va(e,void 0,Ta),e+"")}var uo=Sa(Object.getPrototypeOf,Object);function $c(){this.__data__=new p.ListCache,this.size=0}function Uc(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Kc(e){return this.__data__.get(e)}function Hc(e){return this.__data__.has(e)}var jc=200;function zc(e,t){var n=this.__data__;if(n instanceof p.ListCache){var r=n.__data__;if(!p.Map||r.length<jc-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new p.MapCache(r)}return n.set(e,t),this.size=n.size,this}function Ue(e){var t=this.__data__=new p.ListCache(e);this.size=t.size}Ue.prototype.clear=$c;Ue.prototype.delete=Uc;Ue.prototype.get=Kc;Ue.prototype.has=Hc;Ue.prototype.set=zc;function qc(e,t){return e&&ln(t,Xn(t),e)}function Gc(e,t){return e&&ln(t,Jn(t),e)}var wa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ui=wa&&typeof module=="object"&&module&&!module.nodeType&&module,Wc=ui&&ui.exports===wa,li=Wc?p.root.Buffer:void 0,ci=li?li.allocUnsafe:void 0;function Da(e,t){if(t)return e.slice();var n=e.length,r=ci?ci(n):new e.constructor(n);return e.copy(r),r}function Yc(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function Ca(){return[]}var Zc=Object.prototype,Xc=Zc.propertyIsEnumerable,fi=Object.getOwnPropertySymbols,lo=fi?function(e){return e==null?[]:(e=Object(e),Yc(fi(e),function(t){return Xc.call(e,t)}))}:Ca;function Jc(e,t){return ln(e,lo(e),t)}var Qc=Object.getOwnPropertySymbols,Ia=Qc?function(e){for(var t=[];e;)so(t,lo(e)),e=uo(e);return t}:Ca;function ef(e,t){return ln(e,Ia(e),t)}function Oa(e,t,n){var r=t(e);return p.isArray(e)?r:so(r,n(e))}function Or(e){return Oa(e,Xn,lo)}function ka(e){return Oa(e,Jn,Ia)}var kr=p.getNative(p.root,"DataView"),xr=p.getNative(p.root,"Promise"),Mn=p.getNative(p.root,"Set"),di="[object Map]",tf="[object Object]",hi="[object Promise]",pi="[object Set]",gi="[object WeakMap]",yi="[object DataView]",nf=p.toSource(kr),rf=p.toSource(p.Map),of=p.toSource(xr),sf=p.toSource(Mn),af=p.toSource(Ir),Me=p.baseGetTag;(kr&&Me(new kr(new ArrayBuffer(1)))!=yi||p.Map&&Me(new p.Map)!=di||xr&&Me(xr.resolve())!=hi||Mn&&Me(new Mn)!=pi||Ir&&Me(new Ir)!=gi)&&(Me=function(e){var t=p.baseGetTag(e),n=t==tf?e.constructor:void 0,r=n?p.toSource(n):"";if(r)switch(r){case nf:return yi;case rf:return di;case of:return hi;case sf:return pi;case af:return gi}return t});var uf=Object.prototype,lf=uf.hasOwnProperty;function cf(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&lf.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Fn=p.root.Uint8Array;function co(e){var t=new e.constructor(e.byteLength);return new Fn(t).set(new Fn(e)),t}function ff(e,t){var n=t?co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var df=/\w*$/;function hf(e){var t=new e.constructor(e.source,df.exec(e));return t.lastIndex=e.lastIndex,t}var vi=p.Symbol?p.Symbol.prototype:void 0,mi=vi?vi.valueOf:void 0;function pf(e){return mi?Object(mi.call(e)):{}}function xa(e,t){var n=t?co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var gf="[object Boolean]",yf="[object Date]",vf="[object Map]",mf="[object Number]",Ef="[object RegExp]",bf="[object Set]",_f="[object String]",Sf="[object Symbol]",Tf="[object ArrayBuffer]",Af="[object DataView]",wf="[object Float32Array]",Df="[object Float64Array]",Cf="[object Int8Array]",If="[object Int16Array]",Of="[object Int32Array]",kf="[object Uint8Array]",xf="[object Uint8ClampedArray]",Nf="[object Uint16Array]",Rf="[object Uint32Array]";function Pf(e,t,n){var r=e.constructor;switch(t){case Tf:return co(e);case gf:case yf:return new r(+e);case Af:return ff(e,n);case wf:case Df:case Cf:case If:case Of:case kf:case xf:case Nf:case Rf:return xa(e,n);case vf:return new r;case mf:case _f:return new r(e);case Ef:return hf(e);case bf:return new r;case Sf:return pf(e)}}function Na(e){return typeof e.constructor=="function"&&!ro(e)?Ll(uo(e)):{}}var Bf="[object Map]";function Vf(e){return p.isObjectLike(e)&&Me(e)==Bf}var Ei=kt&&kt.isMap,Mf=Ei?oo(Ei):Vf,Ff="[object Set]";function Lf(e){return p.isObjectLike(e)&&Me(e)==Ff}var bi=kt&&kt.isSet,$f=bi?oo(bi):Lf,Uf=1,Kf=2,Hf=4,Ra="[object Arguments]",jf="[object Array]",zf="[object Boolean]",qf="[object Date]",Gf="[object Error]",Pa="[object Function]",Wf="[object GeneratorFunction]",Yf="[object Map]",Zf="[object Number]",Ba="[object Object]",Xf="[object RegExp]",Jf="[object Set]",Qf="[object String]",ed="[object Symbol]",td="[object WeakMap]",nd="[object ArrayBuffer]",rd="[object DataView]",od="[object Float32Array]",id="[object Float64Array]",sd="[object Int8Array]",ad="[object Int16Array]",ud="[object Int32Array]",ld="[object Uint8Array]",cd="[object Uint8ClampedArray]",fd="[object Uint16Array]",dd="[object Uint32Array]",se={};se[Ra]=se[jf]=se[nd]=se[rd]=se[zf]=se[qf]=se[od]=se[id]=se[sd]=se[ad]=se[ud]=se[Yf]=se[Zf]=se[Ba]=se[Xf]=se[Jf]=se[Qf]=se[ed]=se[ld]=se[cd]=se[fd]=se[dd]=!0;se[Gf]=se[Pa]=se[td]=!1;function Wt(e,t,n,r,o,i){var s,a=t&Uf,l=t&Kf,c=t&Hf;if(n&&(s=o?n(e,r,o,i):n(e)),s!==void 0)return s;if(!p.isObject(e))return e;var d=p.isArray(e);if(d){if(s=cf(e),!a)return ga(e,s)}else{var f=Me(e),v=f==Pa||f==Wf;if(Qt(e))return Da(e,a);if(f==Ba||f==Ra||v&&!o){if(s=l||v?{}:Na(e),!a)return l?ef(e,Gc(s,e)):Jc(e,qc(s,e))}else{if(!se[f])return o?e:{};s=Pf(e,f,a)}}i||(i=new Ue);var y=i.get(e);if(y)return y;i.set(e,s),$f(e)?e.forEach(function(g){s.add(Wt(g,t,n,g,e,i))}):Mf(e)&&e.forEach(function(g,E){s.set(E,Wt(g,t,n,E,e,i))});var h=c?l?ka:Or:l?Jn:Xn,m=d?void 0:h(e);return Gl(m||e,function(g,E){m&&(E=g,g=e[E]),p.assignValue(s,E,Wt(g,t,n,E,e,i))}),s}var hd=1,pd=4;function K(e){return Wt(e,hd|pd)}var gd="__lodash_hash_undefined__";function yd(e){return this.__data__.set(e,gd),this}function vd(e){return this.__data__.has(e)}function en(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new p.MapCache;++t<n;)this.add(e[t])}en.prototype.add=en.prototype.push=yd;en.prototype.has=vd;function md(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Va(e,t){return e.has(t)}var Ed=1,bd=2;function Ma(e,t,n,r,o,i){var s=n&Ed,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,v=!0,y=n&bd?new en:void 0;for(i.set(e,t),i.set(t,e);++f<a;){var h=e[f],m=t[f];if(r)var g=s?r(m,h,f,t,e,i):r(h,m,f,e,t,i);if(g!==void 0){if(g)continue;v=!1;break}if(y){if(!md(t,function(E,w){if(!Va(y,w)&&(h===E||o(h,E,n,r,i)))return y.push(w)})){v=!1;break}}else if(!(h===m||o(h,m,n,r,i))){v=!1;break}}return i.delete(e),i.delete(t),v}function _d(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function Fa(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Sd=1,Td=2,Ad="[object Boolean]",wd="[object Date]",Dd="[object Error]",Cd="[object Map]",Id="[object Number]",Od="[object RegExp]",kd="[object Set]",xd="[object String]",Nd="[object Symbol]",Rd="[object ArrayBuffer]",Pd="[object DataView]",_i=p.Symbol?p.Symbol.prototype:void 0,hr=_i?_i.valueOf:void 0;function Bd(e,t,n,r,o,i,s){switch(n){case Pd:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Rd:return!(e.byteLength!=t.byteLength||!i(new Fn(e),new Fn(t)));case Ad:case wd:case Id:return p.eq(+e,+t);case Dd:return e.name==t.name&&e.message==t.message;case Od:case xd:return e==t+"";case Cd:var a=_d;case kd:var l=r&Sd;if(a||(a=Fa),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=Td,s.set(e,t);var d=Ma(a(e),a(t),r,o,i,s);return s.delete(e),d;case Nd:if(hr)return hr.call(e)==hr.call(t)}return!1}var Vd=1,Md=Object.prototype,Fd=Md.hasOwnProperty;function Ld(e,t,n,r,o,i){var s=n&Vd,a=Or(e),l=a.length,c=Or(t),d=c.length;if(l!=d&&!s)return!1;for(var f=l;f--;){var v=a[f];if(!(s?v in t:Fd.call(t,v)))return!1}var y=i.get(e),h=i.get(t);if(y&&h)return y==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=s;++f<l;){v=a[f];var E=e[v],w=t[v];if(r)var T=s?r(w,E,v,t,e,i):r(E,w,v,e,t,i);if(!(T===void 0?E===w||o(E,w,n,r,i):T)){m=!1;break}g||(g=v=="constructor")}if(m&&!g){var D=e.constructor,B=t.constructor;D!=B&&"constructor"in e&&"constructor"in t&&!(typeof D=="function"&&D instanceof D&&typeof B=="function"&&B instanceof B)&&(m=!1)}return i.delete(e),i.delete(t),m}var $d=1,Si="[object Arguments]",Ti="[object Array]",yn="[object Object]",Ud=Object.prototype,Ai=Ud.hasOwnProperty;function Kd(e,t,n,r,o,i){var s=p.isArray(e),a=p.isArray(t),l=s?Ti:Me(e),c=a?Ti:Me(t);l=l==Si?yn:l,c=c==Si?yn:c;var d=l==yn,f=c==yn,v=l==c;if(v&&Qt(e)){if(!Qt(t))return!1;s=!0,d=!1}if(v&&!d)return i||(i=new Ue),s||io(e)?Ma(e,t,n,r,o,i):Bd(e,t,l,n,r,o,i);if(!(n&$d)){var y=d&&Ai.call(e,"__wrapped__"),h=f&&Ai.call(t,"__wrapped__");if(y||h){var m=y?e.value():e,g=h?t.value():t;return i||(i=new Ue),o(m,g,n,r,i)}}return v?(i||(i=new Ue),Ld(e,t,n,r,o,i)):!1}function fo(e,t,n,r,o){return e===t?!0:e==null||t==null||!p.isObjectLike(e)&&!p.isObjectLike(t)?e!==e&&t!==t:Kd(e,t,n,r,fo,o)}function Hd(e,t){return e!=null&&t in Object(e)}function jd(e,t,n){t=p.castPath(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=p.toKey(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&to(o)&&p.isIndex(s,o)&&(p.isArray(e)||Zn(e)))}function La(e,t){return e!=null&&jd(e,t,Hd)}function $a(e,t){return fo(e,t)}function zd(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=p.baseGet(e,s);n(a,s)&&p.baseSet(i,p.castPath(s,e),a)}return i}function qd(e,t){return zd(e,t,function(n,r){return La(e,r)})}var Ua=Aa(function(e,t){return e==null?{}:qd(e,t)});const Ln="update:modelValue",Nr="change",Rr="input";function Gd(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}const Ka=e=>p.isClient?window.requestAnimationFrame(e):setTimeout(e,16),Ha=e=>p.isClient?window.cancelAnimationFrame(e):clearTimeout(e),Wd=(e,t)=>{if(!p.isClient)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=p.getStyle(e,n);return["scroll","auto","overlay"].some(o=>r.includes(o))},Yd=(e,t)=>{if(!p.isClient)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Wd(n,t))return n;n=n.parentNode}return n};let vn;const ja=e=>{var t;if(!p.isClient)return 0;if(vn!==void 0)return vn;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const i=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),vn=r-i,vn};function Zd(e,t){if(!p.isClient)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const o=t.offsetTop+n.reduce((l,c)=>l+c.offsetTop,0),i=o+t.offsetHeight,s=e.scrollTop,a=s+e.clientHeight;o<s?e.scrollTop=o:i>a&&(e.scrollTop=i-e.clientHeight)}function Xd(e,t,n,r,o){const i=Date.now();let s;const a=()=>{const c=Date.now()-i,d=Gd(c>r?r:c,t,n,r);p.isWindow(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,c<r?s=Ka(a):p.isFunction(o)&&o()};return a(),()=>{s&&Ha(s)}}const Jd=(e,t)=>p.isWindow(t)?e.ownerDocument.documentElement:t,Qd=e=>p.isWindow(e)?window.scrollY:e.scrollTop,za=()=>p.isClient&&/firefox/i.test(window.navigator.userAgent);let Ae;const eh={height:"0",visibility:"hidden",overflow:za()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},th=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function nh(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:th.map(s=>[s,t.getPropertyValue(s)]),paddingSize:r,borderSize:o,boxSizing:n}}function wi(e,t=1,n){var r;Ae||(Ae=document.createElement("textarea"),document.body.appendChild(Ae));const{paddingSize:o,borderSize:i,boxSizing:s,contextStyle:a}=nh(e);a.forEach(([f,v])=>Ae==null?void 0:Ae.style.setProperty(f,v)),Object.entries(eh).forEach(([f,v])=>Ae==null?void 0:Ae.style.setProperty(f,v,"important")),Ae.value=e.value||e.placeholder||"";let l=Ae.scrollHeight;const c={};s==="border-box"?l=l+i:s==="content-box"&&(l=l-o),Ae.value="";const d=Ae.scrollHeight-o;if(p.isNumber(t)){let f=d*t;s==="border-box"&&(f=f+o+i),l=Math.max(f,l),c.minHeight=`${f}px`}if(p.isNumber(n)){let f=d*n;s==="border-box"&&(f=f+o+i),l=Math.min(f,l)}return c.height=`${l}px`,(r=Ae.parentNode)==null||r.removeChild(Ae),Ae=void 0,c}const rh=p.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),qa=e=>Ua(rh,e),Ga=p.buildProps({id:{type:String,default:void 0},size:p.useSizeProp,disabled:Boolean,modelValue:{type:p.definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:p.definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:p.iconPropType},prefixIcon:{type:p.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:p.definePropType([Object,Array,String]),default:()=>p.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...qa(["ariaLabel"])}),oh={[Ln]:e=>p.isString(e),input:e=>p.isString(e),change:e=>p.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},ih=["class","style"],sh=/^on[A-Z]/,Wa=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=u.computed(()=>((n==null?void 0:n.value)||[]).concat(ih)),o=u.getCurrentInstance();return o?u.computed(()=>{var i;return p.fromPairs(Object.entries((i=o.proxy)==null?void 0:i.$attrs).filter(([s])=>!r.value.includes(s)&&!(t&&sh.test(s))))}):(p.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),u.computed(()=>({})))},Pr={prefix:Math.floor(Math.random()*1e4),current:0},ah=Symbol("elIdInjection"),Ya=()=>u.getCurrentInstance()?u.inject(ah,Pr):Pr,$n=e=>{const t=Ya();!p.isClient&&t===Pr&&p.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
2
|
-
usage: app.provide(ID_INJECTION_KEY, {
|
|
3
|
-
prefix: number,
|
|
4
|
-
current: number,
|
|
5
|
-
})`);const n=p.useGetDerivedNamespace();return p.computedEager(()=>u.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Qn=Symbol("formContextKey"),ho=Symbol("formItemContextKey"),po=()=>{const e=u.inject(Qn,void 0),t=u.inject(ho,void 0);return{form:e,formItem:t}},Za=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=u.ref(!1)),r||(r=u.ref(!1));const o=u.ref();let i;const s=u.computed(()=>{var a;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return u.onMounted(()=>{i=u.watch([u.toRef(e,"id"),n],([a,l])=>{const c=a??(l?void 0:$n().value);c!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(r!=null&&r.value)&&!l&&c&&t.addInputId(c)),o.value=c)},{immediate:!0})}),u.onUnmounted(()=>{i&&i(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:s,inputId:o}},Xa=e=>{const t=u.getCurrentInstance();return u.computed(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},go=(e,t={})=>{const n=u.ref(void 0),r=t.prop?n:Xa("size"),o=t.global?n:p.useGlobalSize(),i=t.form?{size:void 0}:u.inject(Qn,void 0),s=t.formItem?{size:void 0}:u.inject(ho,void 0);return u.computed(()=>r.value||u.unref(e)||(s==null?void 0:s.size)||(i==null?void 0:i.size)||o.value||"")},cn=e=>{const t=Xa("disabled"),n=u.inject(Qn,void 0);return u.computed(()=>t.value||u.unref(e)||(n==null?void 0:n.disabled)||!1)},uh='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',lh=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Di=e=>Array.from(e.querySelectorAll(uh)).filter(t=>er(t)&&lh(t)),er=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},ch=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const o=document.createEvent(r);return o.initEvent(t,...n),e.dispatchEvent(o),e},Ja=e=>!e.getAttribute("aria-owns"),fh=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const o=r.querySelectorAll(n),i=Array.prototype.indexOf.call(o,e);return o[i+t]||null},dh=e=>{e&&(e.focus(),!Ja(e)&&e.click())};function Qa(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:o}={}){const i=u.getCurrentInstance(),{emit:s}=i,a=u.shallowRef(),l=cn(),c=u.ref(!1),d=y=>{p.isFunction(t)&&t(y)||c.value||(c.value=!0,s("focus",y),n==null||n())},f=y=>{var h;p.isFunction(r)&&r(y)||y.relatedTarget&&((h=a.value)!=null&&h.contains(y.relatedTarget))||(c.value=!1,s("blur",y),o==null||o())},v=y=>{var h,m;(h=a.value)!=null&&h.contains(document.activeElement)&&a.value!==document.activeElement||er(y.target)||l.value||(m=e.value)==null||m.focus()};return u.watch([a,l],([y,h])=>{y&&(h?y.removeAttribute("tabindex"):y.setAttribute("tabindex","-1"))}),p.useEventListener(a,"focus",d,!0),p.useEventListener(a,"blur",f,!0),p.useEventListener(a,"click",v,!0),process.env.NODE_ENV==="test"&&u.onMounted(()=>{const y=p.isElement(e.value)?e.value:document.querySelector("input,textarea");y&&(p.useEventListener(y,"focus",d,!0),p.useEventListener(y,"blur",f,!0))}),{isFocused:c,wrapperRef:a,handleFocus:d,handleBlur:f}}const hh=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function eu({afterComposition:e,emit:t}){const n=u.ref(!1),r=a=>{t==null||t("compositionstart",a),n.value=!0},o=a=>{var l;t==null||t("compositionupdate",a);const c=(l=a.target)==null?void 0:l.value,d=c[c.length-1]||"";n.value=!hh(d)},i=a=>{t==null||t("compositionend",a),n.value&&(n.value=!1,u.nextTick(()=>e(a)))};return{isComposing:n,handleComposition:a=>{a.type==="compositionend"?i(a):o(a)},handleCompositionStart:r,handleCompositionUpdate:o,handleCompositionEnd:i}}function ph(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:i,value:s}=e.value;if(o==null||i==null)return;const a=s.slice(0,Math.max(0,o)),l=s.slice(Math.max(0,i));t={selectionStart:o,selectionEnd:i,value:s,beforeTxt:a,afterTxt:l}}function r(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:i,afterTxt:s,selectionStart:a}=t;if(i==null||s==null||a==null)return;let l=o.length;if(o.endsWith(s))l=o.length-s.length;else if(o.startsWith(i))l=i.length;else{const c=i[a-1],d=o.indexOf(c,a-1);d!==-1&&(l=d+1)}e.value.setSelectionRange(l,l)}return[n,r]}const tu="ElInput",gh=u.defineComponent({name:tu,inheritAttrs:!1}),yh=u.defineComponent({...gh,props:Ga,emits:oh,setup(e,{expose:t,emit:n}){const r=e,o=u.useAttrs(),i=Wa(),s=u.useSlots(),a=u.computed(()=>[r.type==="textarea"?m.b():h.b(),h.m(v.value),h.is("disabled",y.value),h.is("exceed",q.value),{[h.b("group")]:s.prepend||s.append,[h.m("prefix")]:s.prefix||r.prefixIcon,[h.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[h.bm("suffix","password-clear")]:j.value&&z.value,[h.b("hidden")]:r.type==="hidden"},o.class]),l=u.computed(()=>[h.e("wrapper"),h.is("focus",V.value)]),{form:c,formItem:d}=po(),{inputId:f}=Za(r,{formItemContext:d}),v=go(),y=cn(),h=p.useNamespace("input"),m=p.useNamespace("textarea"),g=u.shallowRef(),E=u.shallowRef(),w=u.ref(!1),T=u.ref(!1),D=u.ref(),B=u.shallowRef(r.inputStyle),b=u.computed(()=>g.value||E.value),{wrapperRef:S,isFocused:V,handleFocus:C,handleBlur:A}=Qa(b,{beforeFocus(){return y.value},afterBlur(){var P;r.validateEvent&&((P=d==null?void 0:d.validate)==null||P.call(d,"blur").catch(Q=>p.debugWarn(Q)))}}),_=u.computed(()=>{var P;return(P=c==null?void 0:c.statusIcon)!=null?P:!1}),O=u.computed(()=>(d==null?void 0:d.validateState)||""),$=u.computed(()=>O.value&&p.ValidateComponentsMap[O.value]),x=u.computed(()=>T.value?p.view_default:p.hide_default),M=u.computed(()=>[o.style]),N=u.computed(()=>[r.inputStyle,B.value,{resize:r.resize}]),R=u.computed(()=>p.isNil(r.modelValue)?"":String(r.modelValue)),j=u.computed(()=>r.clearable&&!y.value&&!r.readonly&&!!R.value&&(V.value||w.value)),z=u.computed(()=>r.showPassword&&!y.value&&!!R.value),Z=u.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!y.value&&!r.readonly&&!r.showPassword),L=u.computed(()=>R.value.length),q=u.computed(()=>!!Z.value&&L.value>Number(r.maxlength)),re=u.computed(()=>!!s.suffix||!!r.suffixIcon||j.value||r.showPassword||Z.value||!!O.value&&_.value),[le,H]=ph(g);p.useResizeObserver(E,P=>{if(Fe(),!Z.value||r.resize!=="both")return;const Q=P[0],{width:Oe}=Q.contentRect;D.value={right:`calc(100% - ${Oe+15+6}px)`}});const G=()=>{const{type:P,autosize:Q}=r;if(!(!p.isClient||P!=="textarea"||!E.value))if(Q){const Oe=p.isObject$1(Q)?Q.minRows:void 0,ye=p.isObject$1(Q)?Q.maxRows:void 0,Kt=wi(E.value,Oe,ye);B.value={overflowY:"hidden",...Kt},u.nextTick(()=>{E.value.offsetHeight,B.value=Kt})}else B.value={minHeight:wi(E.value).minHeight}},Fe=(P=>{let Q=!1;return()=>{var Oe;if(Q||!r.autosize)return;((Oe=E.value)==null?void 0:Oe.offsetParent)===null||(P(),Q=!0)}})(G),ge=()=>{const P=b.value,Q=r.formatter?r.formatter(R.value):R.value;!P||P.value===Q||(P.value=Q)},J=async P=>{le();let{value:Q}=P.target;if(r.formatter&&r.parser&&(Q=r.parser(Q)),!$t.value){if(Q===R.value){ge();return}n(Ln,Q),n(Rr,Q),await u.nextTick(),ge(),H()}},Le=P=>{let{value:Q}=P.target;r.formatter&&r.parser&&(Q=r.parser(Q)),n(Nr,Q)},{isComposing:$t,handleCompositionStart:Ut,handleCompositionUpdate:te,handleCompositionEnd:oe}=eu({emit:n,afterComposition:J}),fe=()=>{le(),T.value=!T.value,setTimeout(H)},be=()=>{var P;return(P=b.value)==null?void 0:P.focus()},Ce=()=>{var P;return(P=b.value)==null?void 0:P.blur()},Ie=P=>{w.value=!1,n("mouseleave",P)},He=P=>{w.value=!0,n("mouseenter",P)},W=P=>{n("keydown",P)},ie=()=>{var P;(P=b.value)==null||P.select()},me=()=>{n(Ln,""),n(Nr,""),n("clear"),n(Rr,"")};return u.watch(()=>r.modelValue,()=>{var P;u.nextTick(()=>G()),r.validateEvent&&((P=d==null?void 0:d.validate)==null||P.call(d,"change").catch(Q=>p.debugWarn(Q)))}),u.watch(R,()=>ge()),u.watch(()=>r.type,async()=>{await u.nextTick(),ge(),G()}),u.onMounted(()=>{!r.formatter&&r.parser&&p.debugWarn(tu,"If you set the parser, you also need to set the formatter."),ge(),u.nextTick(G)}),t({input:g,textarea:E,ref:b,textareaStyle:N,autosize:u.toRef(r,"autosize"),isComposing:$t,focus:be,blur:Ce,select:ie,clear:me,resizeTextarea:G}),(P,Q)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass([u.unref(a),{[u.unref(h).bm("group","append")]:P.$slots.append,[u.unref(h).bm("group","prepend")]:P.$slots.prepend}]),style:u.normalizeStyle(u.unref(M)),onMouseenter:He,onMouseleave:Ie},[u.createCommentVNode(" input "),P.type!=="textarea"?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createCommentVNode(" prepend slot "),P.$slots.prepend?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(u.unref(h).be("group","prepend"))},[u.renderSlot(P.$slots,"prepend")],2)):u.createCommentVNode("v-if",!0),u.createElementVNode("div",{ref_key:"wrapperRef",ref:S,class:u.normalizeClass(u.unref(l))},[u.createCommentVNode(" prefix slot "),P.$slots.prefix||P.prefixIcon?(u.openBlock(),u.createElementBlock("span",{key:0,class:u.normalizeClass(u.unref(h).e("prefix"))},[u.createElementVNode("span",{class:u.normalizeClass(u.unref(h).e("prefix-inner"))},[u.renderSlot(P.$slots,"prefix"),P.prefixIcon?(u.openBlock(),u.createBlock(u.unref(p.ElIcon),{key:0,class:u.normalizeClass(u.unref(h).e("icon"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(P.prefixIcon)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0)],2)],2)):u.createCommentVNode("v-if",!0),u.createElementVNode("input",u.mergeProps({id:u.unref(f),ref_key:"input",ref:g,class:u.unref(h).e("inner")},u.unref(i),{minlength:P.minlength,maxlength:P.maxlength,type:P.showPassword?T.value?"text":"password":P.type,disabled:u.unref(y),readonly:P.readonly,autocomplete:P.autocomplete,tabindex:P.tabindex,"aria-label":P.ariaLabel,placeholder:P.placeholder,style:P.inputStyle,form:P.form,autofocus:P.autofocus,role:P.containerRole,onCompositionstart:u.unref(Ut),onCompositionupdate:u.unref(te),onCompositionend:u.unref(oe),onInput:J,onChange:Le,onKeydown:W}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),u.createCommentVNode(" suffix slot "),u.unref(re)?(u.openBlock(),u.createElementBlock("span",{key:1,class:u.normalizeClass(u.unref(h).e("suffix"))},[u.createElementVNode("span",{class:u.normalizeClass(u.unref(h).e("suffix-inner"))},[!u.unref(j)||!u.unref(z)||!u.unref(Z)?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.renderSlot(P.$slots,"suffix"),P.suffixIcon?(u.openBlock(),u.createBlock(u.unref(p.ElIcon),{key:0,class:u.normalizeClass(u.unref(h).e("icon"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(P.suffixIcon)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0)],64)):u.createCommentVNode("v-if",!0),u.unref(j)?(u.openBlock(),u.createBlock(u.unref(p.ElIcon),{key:1,class:u.normalizeClass([u.unref(h).e("icon"),u.unref(h).e("clear")]),onMousedown:u.withModifiers(u.unref(p.NOOP),["prevent"]),onClick:me},{default:u.withCtx(()=>[u.createVNode(u.unref(p.circle_close_default))]),_:1},8,["class","onMousedown"])):u.createCommentVNode("v-if",!0),u.unref(z)?(u.openBlock(),u.createBlock(u.unref(p.ElIcon),{key:2,class:u.normalizeClass([u.unref(h).e("icon"),u.unref(h).e("password")]),onClick:fe},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(u.unref(x))))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0),u.unref(Z)?(u.openBlock(),u.createElementBlock("span",{key:3,class:u.normalizeClass(u.unref(h).e("count"))},[u.createElementVNode("span",{class:u.normalizeClass(u.unref(h).e("count-inner"))},u.toDisplayString(u.unref(L))+" / "+u.toDisplayString(P.maxlength),3)],2)):u.createCommentVNode("v-if",!0),u.unref(O)&&u.unref($)&&u.unref(_)?(u.openBlock(),u.createBlock(u.unref(p.ElIcon),{key:4,class:u.normalizeClass([u.unref(h).e("icon"),u.unref(h).e("validateIcon"),u.unref(h).is("loading",u.unref(O)==="validating")])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(u.unref($))))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0)],2)],2)):u.createCommentVNode("v-if",!0)],2),u.createCommentVNode(" append slot "),P.$slots.append?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(u.unref(h).be("group","append"))},[u.renderSlot(P.$slots,"append")],2)):u.createCommentVNode("v-if",!0)],64)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" textarea "),u.createElementVNode("textarea",u.mergeProps({id:u.unref(f),ref_key:"textarea",ref:E,class:[u.unref(m).e("inner"),u.unref(h).is("focus",u.unref(V))]},u.unref(i),{minlength:P.minlength,maxlength:P.maxlength,tabindex:P.tabindex,disabled:u.unref(y),readonly:P.readonly,autocomplete:P.autocomplete,style:u.unref(N),"aria-label":P.ariaLabel,placeholder:P.placeholder,form:P.form,autofocus:P.autofocus,rows:P.rows,role:P.containerRole,onCompositionstart:u.unref(Ut),onCompositionupdate:u.unref(te),onCompositionend:u.unref(oe),onInput:J,onFocus:u.unref(C),onBlur:u.unref(A),onChange:Le,onKeydown:W}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),u.unref(Z)?(u.openBlock(),u.createElementBlock("span",{key:0,style:u.normalizeStyle(D.value),class:u.normalizeClass(u.unref(h).e("count"))},u.toDisplayString(u.unref(L))+" / "+u.toDisplayString(P.maxlength),7)):u.createCommentVNode("v-if",!0)],64))],38))}});var vh=p._export_sfc(yh,[["__file","input.vue"]]);const nu=p.withInstall(vh),pr="focus-trap.focus-after-trapped",gr="focus-trap.focus-after-released",mh="focus-trap.focusout-prevented",Ci={cancelable:!0,bubbles:!1},Eh={cancelable:!0,bubbles:!1},Ii="focusAfterTrapped",Oi="focusAfterReleased",ru=Symbol("elFocusTrap"),yo=u.ref(),tr=u.ref(0),vo=u.ref(0);let mn=0;const ou=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},ki=(e,t)=>{for(const n of e)if(!bh(n,t))return n},bh=(e,t)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},_h=e=>{const t=ou(e),n=ki(t,e),r=ki(t.reverse(),e);return[n,r]},Sh=e=>e instanceof HTMLInputElement&&"select"in e,qe=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let r=!1;p.isElement(e)&&!er(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),r=!0),e.focus({preventScroll:!0}),vo.value=window.performance.now(),e!==n&&Sh(e)&&t&&e.select(),p.isElement(e)&&r&&e.removeAttribute("tabindex")}};function xi(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const Th=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=xi(e,r),e.unshift(r)},remove:r=>{var o,i;e=xi(e,r),(i=(o=e[0])==null?void 0:o.resume)==null||i.call(o)}}},Ah=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(qe(r,t),document.activeElement!==n)return},Ni=Th(),wh=()=>tr.value>vo.value,En=()=>{yo.value="pointer",tr.value=window.performance.now()},Ri=()=>{yo.value="keyboard",tr.value=window.performance.now()},Dh=()=>(u.onMounted(()=>{mn===0&&(document.addEventListener("mousedown",En),document.addEventListener("touchstart",En),document.addEventListener("keydown",Ri)),mn++}),u.onBeforeUnmount(()=>{mn--,mn<=0&&(document.removeEventListener("mousedown",En),document.removeEventListener("touchstart",En),document.removeEventListener("keydown",Ri))}),{focusReason:yo,lastUserFocusTimestamp:tr,lastAutomatedFocusTimestamp:vo}),bn=e=>new CustomEvent(mh,{...Eh,detail:e});let Et=[];const Pi=e=>{e.code===p.EVENT_CODE.esc&&Et.forEach(t=>t(e))},Ch=e=>{u.onMounted(()=>{Et.length===0&&document.addEventListener("keydown",Pi),p.isClient&&Et.push(e)}),u.onBeforeUnmount(()=>{Et=Et.filter(t=>t!==e),Et.length===0&&p.isClient&&document.removeEventListener("keydown",Pi)})},Ih=u.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Ii,Oi,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=u.ref();let r,o;const{focusReason:i}=Dh();Ch(h=>{e.trapped&&!s.paused&&t("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=h=>{if(!e.loop&&!e.trapped||s.paused)return;const{code:m,altKey:g,ctrlKey:E,metaKey:w,currentTarget:T,shiftKey:D}=h,{loop:B}=e,b=m===p.EVENT_CODE.tab&&!g&&!E&&!w,S=document.activeElement;if(b&&S){const V=T,[C,A]=_h(V);if(C&&A){if(!D&&S===A){const O=bn({focusReason:i.value});t("focusout-prevented",O),O.defaultPrevented||(h.preventDefault(),B&&qe(C,!0))}else if(D&&[C,V].includes(S)){const O=bn({focusReason:i.value});t("focusout-prevented",O),O.defaultPrevented||(h.preventDefault(),B&&qe(A,!0))}}else if(S===V){const O=bn({focusReason:i.value});t("focusout-prevented",O),O.defaultPrevented||h.preventDefault()}}};u.provide(ru,{focusTrapRef:n,onKeydown:a}),u.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),u.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",a),h.addEventListener("focusin",d),h.addEventListener("focusout",f)),m&&(m.removeEventListener("keydown",a),m.removeEventListener("focusin",d),m.removeEventListener("focusout",f))});const l=h=>{t(Ii,h)},c=h=>t(Oi,h),d=h=>{const m=u.unref(n);if(!m)return;const g=h.target,E=h.relatedTarget,w=g&&m.contains(g);e.trapped||E&&m.contains(E)||(r=E),w&&t("focusin",h),!s.paused&&e.trapped&&(w?o=g:qe(o,!0))},f=h=>{const m=u.unref(n);if(!(s.paused||!m))if(e.trapped){const g=h.relatedTarget;!p.isNil(g)&&!m.contains(g)&&setTimeout(()=>{if(!s.paused&&e.trapped){const E=bn({focusReason:i.value});t("focusout-prevented",E),E.defaultPrevented||qe(o,!0)}},0)}else{const g=h.target;g&&m.contains(g)||t("focusout",h)}};async function v(){await u.nextTick();const h=u.unref(n);if(h){Ni.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const E=new Event(pr,Ci);h.addEventListener(pr,l),h.dispatchEvent(E),E.defaultPrevented||u.nextTick(()=>{let w=e.focusStartEl;p.isString(w)||(qe(w),document.activeElement!==w&&(w="first")),w==="first"&&Ah(ou(h),!0),(document.activeElement===m||w==="container")&&qe(h)})}}}function y(){const h=u.unref(n);if(h){h.removeEventListener(pr,l);const m=new CustomEvent(gr,{...Ci,detail:{focusReason:i.value}});h.addEventListener(gr,c),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!wh()||h.contains(document.activeElement))&&qe(r??document.body),h.removeEventListener(gr,c),Ni.remove(s)}}return u.onMounted(()=>{e.trapped&&v(),u.watch(()=>e.trapped,h=>{h?v():y()})}),u.onBeforeUnmount(()=>{e.trapped&&y(),n.value&&(n.value.removeEventListener("keydown",a),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:a}}});function Oh(e,t,n,r,o,i){return u.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var iu=p._export_sfc(Ih,[["render",Oh],["__file","focus-trap.vue"]]);const su=Symbol("buttonGroupContextKey"),au=({from:e,replacement:t,scope:n,version:r,ref:o,type:i="API"},s)=>{u.watch(()=>u.unref(s),a=>{a&&p.debugWarn(n,`[${i}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.
|
|
6
|
-
For more detail, please visit: ${o}
|
|
7
|
-
`)},{immediate:!0})},kh=(e,t)=>{au({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},u.computed(()=>e.type==="text"));const n=u.inject(su,void 0),r=p.useGlobalConfig("button"),{form:o}=po(),i=go(u.computed(()=>n==null?void 0:n.size)),s=cn(),a=u.ref(),l=u.useSlots(),c=u.computed(()=>{var g;return e.type||(n==null?void 0:n.type)||((g=r.value)==null?void 0:g.type)||""}),d=u.computed(()=>{var g,E,w;return(w=(E=e.autoInsertSpace)!=null?E:(g=r.value)==null?void 0:g.autoInsertSpace)!=null?w:!1}),f=u.computed(()=>{var g,E,w;return(w=(E=e.plain)!=null?E:(g=r.value)==null?void 0:g.plain)!=null?w:!1}),v=u.computed(()=>{var g,E,w;return(w=(E=e.round)!=null?E:(g=r.value)==null?void 0:g.round)!=null?w:!1}),y=u.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=u.computed(()=>{var g;const E=(g=l.default)==null?void 0:g.call(l);if(d.value&&(E==null?void 0:E.length)===1){const w=E[0];if((w==null?void 0:w.type)===u.Text){const T=w.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(T.trim())}}return!1});return{_disabled:s,_size:i,_type:c,_ref:a,_props:y,_plain:f,_round:v,shouldAddSpace:h,handleClick:g=>{if(s.value||e.loading){g.stopPropagation();return}e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",g)}}},uu=["default","primary","success","warning","info","danger","text",""],xh=["button","submit","reset"],Br=p.buildProps({size:p.useSizeProp,disabled:Boolean,type:{type:String,values:uu,default:""},icon:{type:p.iconPropType},nativeType:{type:String,values:xh,default:"button"},loading:Boolean,loadingIcon:{type:p.iconPropType,default:()=>p.loading_default},plain:{type:Boolean,default:void 0},text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:p.definePropType([String,Object]),default:"button"}}),Nh={click:e=>e instanceof MouseEvent};function ve(e,t){Rh(e)&&(e="100%");var n=Ph(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function _n(e){return Math.min(1,Math.max(0,e))}function Rh(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ph(e){return typeof e=="string"&&e.indexOf("%")!==-1}function lu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Sn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function at(e){return e.length===1?"0"+e:String(e)}function Bh(e,t,n){return{r:ve(e,255)*255,g:ve(t,255)*255,b:ve(n,255)*255}}function Bi(e,t,n){e=ve(e,255),t=ve(t,255),n=ve(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=0,a=(r+o)/2;if(r===o)s=0,i=0;else{var l=r-o;switch(s=a>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s,l:a}}function yr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Vh(e,t,n){var r,o,i;if(e=ve(e,360),t=ve(t,100),n=ve(n,100),t===0)o=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;r=yr(a,s,e+1/3),o=yr(a,s,e),i=yr(a,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Vi(e,t,n){e=ve(e,255),t=ve(t,255),n=ve(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=r,a=r-o,l=r===0?0:a/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/a+(t<n?6:0);break;case t:i=(n-e)/a+2;break;case n:i=(e-t)/a+4;break}i/=6}return{h:i,s:l,v:s}}function Mh(e,t,n){e=ve(e,360)*6,t=ve(t,100),n=ve(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),s=n*(1-o*t),a=n*(1-(1-o)*t),l=r%6,c=[n,s,i,i,a,n][l],d=[a,n,n,s,i,i][l],f=[i,i,a,n,n,s][l];return{r:c*255,g:d*255,b:f*255}}function Mi(e,t,n,r){var o=[at(Math.round(e).toString(16)),at(Math.round(t).toString(16)),at(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Fh(e,t,n,r,o){var i=[at(Math.round(e).toString(16)),at(Math.round(t).toString(16)),at(Math.round(n).toString(16)),at(Lh(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Lh(e){return Math.round(parseFloat(e)*255).toString(16)}function Fi(e){return we(e)/255}function we(e){return parseInt(e,16)}function $h(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Vr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Uh(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,s=!1,a=!1;return typeof e=="string"&&(e=jh(e)),typeof e=="object"&&(je(e.r)&&je(e.g)&&je(e.b)?(t=Bh(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):je(e.h)&&je(e.s)&&je(e.v)?(r=Sn(e.s),o=Sn(e.v),t=Mh(e.h,r,o),s=!0,a="hsv"):je(e.h)&&je(e.s)&&je(e.l)&&(r=Sn(e.s),i=Sn(e.l),t=Vh(e.h,r,i),s=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=lu(n),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Kh="[-\\+]?\\d+%?",Hh="[-\\+]?\\d*\\.\\d+%?",Je="(?:".concat(Hh,")|(?:").concat(Kh,")"),vr="[\\s|\\(]+(".concat(Je,")[,|\\s]+(").concat(Je,")[,|\\s]+(").concat(Je,")\\s*\\)?"),mr="[\\s|\\(]+(".concat(Je,")[,|\\s]+(").concat(Je,")[,|\\s]+(").concat(Je,")[,|\\s]+(").concat(Je,")\\s*\\)?"),Pe={CSS_UNIT:new RegExp(Je),rgb:new RegExp("rgb"+vr),rgba:new RegExp("rgba"+mr),hsl:new RegExp("hsl"+vr),hsla:new RegExp("hsla"+mr),hsv:new RegExp("hsv"+vr),hsva:new RegExp("hsva"+mr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function jh(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Vr[e])e=Vr[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Pe.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Pe.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Pe.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Pe.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Pe.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Pe.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Pe.hex8.exec(e),n?{r:we(n[1]),g:we(n[2]),b:we(n[3]),a:Fi(n[4]),format:t?"name":"hex8"}:(n=Pe.hex6.exec(e),n?{r:we(n[1]),g:we(n[2]),b:we(n[3]),format:t?"name":"hex"}:(n=Pe.hex4.exec(e),n?{r:we(n[1]+n[1]),g:we(n[2]+n[2]),b:we(n[3]+n[3]),a:Fi(n[4]+n[4]),format:t?"name":"hex8"}:(n=Pe.hex3.exec(e),n?{r:we(n[1]+n[1]),g:we(n[2]+n[2]),b:we(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function je(e){return!!Pe.CSS_UNIT.exec(String(e))}var cu=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=$h(t)),this.originalInput=t;var o=Uh(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,s=t.g/255,a=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=lu(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Vi(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Vi(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Bi(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Bi(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Mi(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Fh(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(ve(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(ve(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Mi(this.r,this.g,this.b,!1),n=0,r=Object.entries(Vr);n<r.length;n++){var o=r[n],i=o[0],s=o[1];if(t===s)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=_n(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=_n(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=_n(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=_n(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,s={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,s=[],a=1/t;t--;)s.push(new e({h:r,s:o,v:i})),i=(i+a)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,s=1;s<t;s++)o.push(new e({h:(r+s*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function We(e,t=20){return e.mix("#141414",t).toString()}function zh(e){const t=cn(),n=p.useNamespace("button");return u.computed(()=>{let r={},o=e.color;if(o){const i=o.match(/var\((.*?)\)/);i&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const s=new cu(o),a=e.dark?s.tint(20).toString():We(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?We(s,90):s.tint(90).toString(),"text-color":o,"border-color":e.dark?We(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?We(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?We(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?We(s,80):s.tint(80).toString());else{const l=e.dark?We(s,30):s.tint(30).toString(),c=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":l,"hover-text-color":c,"hover-border-color":l,"active-bg-color":a,"active-border-color":a}),t.value){const d=e.dark?We(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=d,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=d}}}return r})}const qh=u.defineComponent({name:"ElButton"}),Gh=u.defineComponent({...qh,props:Br,emits:Nh,setup(e,{expose:t,emit:n}){const r=e,o=zh(r),i=p.useNamespace("button"),{_ref:s,_size:a,_type:l,_disabled:c,_props:d,_plain:f,_round:v,shouldAddSpace:y,handleClick:h}=kh(r,n),m=u.computed(()=>[i.b(),i.m(l.value),i.m(a.value),i.is("disabled",c.value),i.is("loading",r.loading),i.is("plain",f.value),i.is("round",v.value),i.is("circle",r.circle),i.is("text",r.text),i.is("link",r.link),i.is("has-bg",r.bg)]);return t({ref:s,size:a,type:l,disabled:c,shouldAddSpace:y}),(g,E)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(g.tag),u.mergeProps({ref_key:"_ref",ref:s},u.unref(d),{class:u.unref(m),style:u.unref(o),onClick:u.unref(h)}),{default:u.withCtx(()=>[g.loading?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[g.$slots.loading?u.renderSlot(g.$slots,"loading",{key:0}):(u.openBlock(),u.createBlock(u.unref(p.ElIcon),{key:1,class:u.normalizeClass(u.unref(i).is("loading"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(u.openBlock(),u.createBlock(u.unref(p.ElIcon),{key:1},{default:u.withCtx(()=>[g.icon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(g.icon),{key:0})):u.renderSlot(g.$slots,"icon",{key:1})]),_:3})):u.createCommentVNode("v-if",!0),g.$slots.default?(u.openBlock(),u.createElementBlock("span",{key:2,class:u.normalizeClass({[u.unref(i).em("text","expand")]:u.unref(y)})},[u.renderSlot(g.$slots,"default")],2)):u.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Wh=p._export_sfc(Gh,[["__file","button.vue"]]);const Yh={size:Br.size,type:Br.type},Zh=u.defineComponent({name:"ElButtonGroup"}),Xh=u.defineComponent({...Zh,props:Yh,setup(e){const t=e;u.provide(su,u.reactive({size:u.toRef(t,"size"),type:u.toRef(t,"type")}));const n=p.useNamespace("button");return(r,o)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(n).b("group"))},[u.renderSlot(r.$slots,"default")],2))}});var fu=p._export_sfc(Xh,[["__file","button-group.vue"]]);const du=p.withInstall(Wh,{ButtonGroup:fu}),Jh=p.withNoopInstall(fu),Qh="utils/vue/vnode";var Yt=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Yt||{});function hu(e){return u.isVNode(e)&&e.type===u.Fragment}function ep(e){return u.isVNode(e)&&e.type===u.Comment}function tp(e){return u.isVNode(e)&&!hu(e)&&!ep(e)}const np=e=>{if(!u.isVNode(e))return p.debugWarn(Qh,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=(u.isVNode(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(o=>{p.hasOwn(n[o],"default")&&(r[o]=n[o].default)}),Object.keys(t).forEach(o=>{r[p.camelize(o)]=t[o]}),r},rp=e=>{if(!p.isArray$1(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Ht=e=>{const t=p.isArray$1(e)?e:[e],n=[];return t.forEach(r=>{var o;p.isArray$1(r)?n.push(...Ht(r)):u.isVNode(r)&&((o=r.component)!=null&&o.subTree)?n.push(r,...Ht(r.component.subTree)):u.isVNode(r)&&p.isArray$1(r.children)?n.push(...Ht(r.children)):u.isVNode(r)&&r.shapeFlag===2?n.push(...Ht(r.type())):n.push(r)}),n},mo=e=>{if(!e)return{onClick:p.NOOP,onMousedown:p.NOOP,onMouseup:p.NOOP};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}},op=p.buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:p.definePropType([String,Array,Object])},zIndex:{type:p.definePropType([String,Number])}}),ip={click:e=>e instanceof MouseEvent},sp="overlay";var ap=u.defineComponent({name:"ElOverlay",props:op,emits:ip,setup(e,{slots:t,emit:n}){const r=p.useNamespace(sp),o=l=>{n("click",l)},{onClick:i,onMousedown:s,onMouseup:a}=mo(e.customMaskEvent?void 0:o);return()=>e.mask?u.createVNode("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:s,onMouseup:a},[u.renderSlot(t,"default")],Yt.STYLE|Yt.CLASS|Yt.PROPS,["onClick","onMouseup","onMousedown"]):u.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[u.renderSlot(t,"default")])}});const pu=ap,gu=(e,t,n,r)=>{const o={offsetX:0,offsetY:0},i=(f,v)=>{if(e.value){const{offsetX:y,offsetY:h}=o,m=e.value.getBoundingClientRect(),g=m.left,E=m.top,w=m.width,T=m.height,D=document.documentElement.clientWidth,B=document.documentElement.clientHeight,b=-g+y,S=-E+h,V=D-g-w+y,C=B-E-(T<B?T:0)+h;r!=null&&r.value||(f=Math.min(Math.max(f,b),V),v=Math.min(Math.max(v,S),C)),o.offsetX=f,o.offsetY=v,e.value.style.transform=`translate(${p.addUnit(f)}, ${p.addUnit(v)})`}},s=f=>{const v=f.clientX,y=f.clientY,{offsetX:h,offsetY:m}=o,g=w=>{const T=h+w.clientX-v,D=m+w.clientY-y;i(T,D)},E=()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",E)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",E)},a=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",d))},l=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",d))},c=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},d=()=>{const{offsetX:f,offsetY:v}=o;i(f,v)};return u.onMounted(()=>{u.watchEffect(()=>{n.value?a():l()})}),u.onBeforeUnmount(()=>{l()}),{resetPosition:c,updatePosition:d}},yu=(e,t={})=>{u.isRef(e)||p.throwError("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||p.useNamespace("popup"),r=u.computed(()=>n.bm("parent","hidden"));if(!p.isClient||p.hasClass(document.body,r.value))return;let o=0,i=!1,s="0";const a=()=>{setTimeout(()=>{typeof document>"u"||i&&document&&(document.body.style.width=s,p.removeClass(document.body,r.value))},200)};u.watch(e,l=>{if(!l){a();return}i=!p.hasClass(document.body,r.value),i&&(s=document.body.style.width,p.addClass(document.body,r.value)),o=ja(n.namespace.value);const c=document.documentElement.clientHeight<document.body.scrollHeight,d=p.getStyle(document.body,"overflowY");o>0&&(c||d==="scroll")&&i&&(document.body.style.width=`calc(100% - ${o}px)`)}),u.onScopeDispose(()=>a())},vu=e=>["",...p.componentSizes].includes(e),Mr="_trap-focus-children",ut=[],Li=e=>{var t;if(ut.length===0)return;const n=ut[ut.length-1][Mr];if(n.length>0&&e.code===p.EVENT_CODE.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const r=e.shiftKey,o=e.target===n[0],i=e.target===n[n.length-1];if(o&&r&&(e.preventDefault(),n[n.length-1].focus()),i&&!r&&(e.preventDefault(),n[0].focus()),process.env.NODE_ENV==="test"){const s=n.indexOf(e.target);s!==-1&&((t=n[r?s-1:s+1])==null||t.focus())}}},up={beforeMount(e){e[Mr]=Di(e),ut.push(e),ut.length<=1&&document.addEventListener("keydown",Li)},updated(e){u.nextTick(()=>{e[Mr]=Di(e)})},unmounted(){ut.shift(),ut.length===0&&document.removeEventListener("keydown",Li)}},lp=u.defineComponent({name:"ElMessageBox",directives:{TrapFocus:up},components:{ElButton:du,ElFocusTrap:iu,ElInput:nu,ElOverlay:pu,ElIcon:p.ElIcon,...p.TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:vu},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:o,size:i}=p.useGlobalComponentSettings("message-box",u.computed(()=>e.buttonSize)),{t:s}=n,{nextZIndex:a}=r,l=u.ref(!1),c=u.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:u.markRaw(p.loading_default),cancelButtonLoadingIcon:u.markRaw(p.loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:a()}),d=u.computed(()=>{const N=c.type;return{[o.bm("icon",N)]:N&&p.TypeComponentsMap[N]}}),f=$n(),v=$n(),y=u.computed(()=>{const N=c.type;return c.icon||N&&p.TypeComponentsMap[N]||""}),h=u.computed(()=>!!c.message),m=u.ref(),g=u.ref(),E=u.ref(),w=u.ref(),T=u.ref(),D=u.computed(()=>c.confirmButtonClass);u.watch(()=>c.inputValue,async N=>{await u.nextTick(),e.boxType==="prompt"&&N&&O()},{immediate:!0}),u.watch(()=>l.value,N=>{var R,j;N&&(e.boxType!=="prompt"&&(c.autofocus?E.value=(j=(R=T.value)==null?void 0:R.$el)!=null?j:m.value:E.value=m.value),c.zIndex=a()),e.boxType==="prompt"&&(N?u.nextTick().then(()=>{var z;w.value&&w.value.$el&&(c.autofocus?E.value=(z=$())!=null?z:m.value:E.value=m.value)}):(c.editorErrorMessage="",c.validateError=!1))});const B=u.computed(()=>e.draggable),b=u.computed(()=>e.overflow);gu(m,g,B,b),u.onMounted(async()=>{await u.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",S)}),u.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",S)});function S(){l.value&&(l.value=!1,u.nextTick(()=>{c.action&&t("action",c.action)}))}const V=()=>{e.closeOnClickModal&&_(c.distinguishCancelAndClose?"close":"cancel")},C=mo(V),A=N=>{if(c.inputType!=="textarea")return N.preventDefault(),_("confirm")},_=N=>{var R;e.boxType==="prompt"&&N==="confirm"&&!O()||(c.action=N,c.beforeClose?(R=c.beforeClose)==null||R.call(c,N,c,S):S())},O=()=>{if(e.boxType==="prompt"){const N=c.inputPattern;if(N&&!N.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;const R=c.inputValidator;if(p.isFunction(R)){const j=R(c.inputValue);if(j===!1)return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;if(p.isString(j))return c.editorErrorMessage=j,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},$=()=>{var N,R;const j=(N=w.value)==null?void 0:N.$refs;return(R=j==null?void 0:j.input)!=null?R:j==null?void 0:j.textarea},x=()=>{_("close")},M=()=>{e.closeOnPressEscape&&x()};return e.lockScroll&&yu(l),{...u.toRefs(c),ns:o,overlayEvent:C,visible:l,hasMessage:h,typeClass:d,contentId:f,inputId:v,btnSize:i,iconComponent:y,confirmButtonClasses:D,rootRef:m,focusStartRef:E,headerRef:g,inputRef:w,confirmRef:T,doClose:S,handleClose:x,onCloseRequested:M,handleWrapperClick:V,handleInputEnter:A,handleAction:_,t:s}}});function cp(e,t,n,r,o,i){const s=u.resolveComponent("el-icon"),a=u.resolveComponent("el-input"),l=u.resolveComponent("el-button"),c=u.resolveComponent("el-focus-trap"),d=u.resolveComponent("el-overlay");return u.openBlock(),u.createBlock(u.Transition,{name:"fade-in-linear",onAfterLeave:f=>e.$emit("vanish"),persisted:""},{default:u.withCtx(()=>[u.withDirectives(u.createVNode(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:u.withCtx(()=>[u.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:u.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[u.createVNode(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:u.withCtx(()=>[u.createElementVNode("div",{ref:"rootRef",class:u.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:u.normalizeStyle(e.customStyle),tabindex:"-1",onClick:u.withModifiers(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(u.openBlock(),u.createElementBlock("div",{key:0,ref:"headerRef",class:u.normalizeClass([e.ns.e("header"),{"show-close":e.showClose}])},[u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(u.openBlock(),u.createBlock(s,{key:0,class:u.normalizeClass([e.ns.e("status"),e.typeClass])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0),u.createElementVNode("span",null,u.toDisplayString(e.title),1)],2),e.showClose?(u.openBlock(),u.createElementBlock("button",{key:0,type:"button",class:u.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:u.withKeys(u.withModifiers(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[u.createVNode(s,{class:u.normalizeClass(e.ns.e("close"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):u.createCommentVNode("v-if",!0)],2)):u.createCommentVNode("v-if",!0),u.createElementVNode("div",{id:e.contentId,class:u.normalizeClass(e.ns.e("content"))},[u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(u.openBlock(),u.createBlock(s,{key:0,class:u.normalizeClass([e.ns.e("status"),e.typeClass])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0),e.hasMessage?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(e.ns.e("message"))},[u.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):u.createCommentVNode("v-if",!0)],2),u.withDirectives(u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("input"))},[u.createVNode(a,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":f=>e.inputValue=f,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:u.normalizeClass({invalid:e.validateError}),onKeydown:u.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("errormsg")),style:u.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},u.toDisplayString(e.editorErrorMessage),7)],2),[[u.vShow,e.showInput]])],10,["id"]),u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(u.openBlock(),u.createBlock(l,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:u.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:f=>e.handleAction("cancel"),onKeydown:u.withKeys(u.withModifiers(f=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):u.createCommentVNode("v-if",!0),u.withDirectives(u.createVNode(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:u.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:f=>e.handleAction("confirm"),onKeydown:u.withKeys(u.withModifiers(f=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[u.vShow,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[u.vShow,e.visible]])]),_:3},8,["onAfterLeave"])}var fp=p._export_sfc(lp,[["render",cp],["__file","index.vue"]]);const tn=new Map,dp=e=>{let t=document.body;return e.appendTo&&(p.isString(e.appendTo)&&(t=document.querySelector(e.appendTo)),p.isElement(e.appendTo)&&(t=e.appendTo),p.isElement(t)||(p.debugWarn("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},hp=(e,t,n=null)=>{const r=u.createVNode(fp,e,p.isFunction(e.message)||u.isVNode(e.message)?{default:p.isFunction(e.message)?e.message:()=>e.message}:null);return r.appContext=n,u.render(r,t),dp(e).appendChild(t.firstElementChild),r.component},pp=()=>document.createElement("div"),gp=(e,t)=>{const n=pp();e.onVanish=()=>{u.render(null,n),tn.delete(o)},e.onAction=i=>{const s=tn.get(o);let a;e.showInput?a={value:o.inputValue,action:i}:a=i,e.callback?e.callback(a,r.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(a)};const r=hp(e,n,t),o=r.proxy;for(const i in e)p.hasOwn(e,i)&&!p.hasOwn(o.$props,i)&&(i==="closeIcon"&&p.isObject$1(e[i])?o[i]=u.markRaw(e[i]):o[i]=e[i]);return o.visible=!0,o};function Vt(e,t=null){if(!p.isClient)return Promise.reject();let n;return p.isString(e)||u.isVNode(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const i=gp(e,t??Vt._context);tn.set(i,{options:e,callback:n,resolve:r,reject:o})})}const yp=["alert","confirm","prompt"],vp={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};yp.forEach(e=>{Vt[e]=mp(e)});function mp(e){return(t,n,r,o)=>{let i="";return p.isObject$1(n)?(r=n,i=""):p.isUndefined(n)?i="":i=n,Vt(Object.assign({title:i,message:t,type:"",...vp[e]},r,{boxType:e}),o)}}Vt.close=()=>{tn.forEach((e,t)=>{t.doClose()}),tn.clear()};Vt._context=null;const Ye=Vt;Ye.install=e=>{Ye._context=e._context,e.config.globalProperties.$msgbox=Ye,e.config.globalProperties.$messageBox=Ye,e.config.globalProperties.$alert=Ye.alert,e.config.globalProperties.$confirm=Ye.confirm,e.config.globalProperties.$prompt=Ye.prompt};const mu=Ye;var Ep=Object.create,Eu=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,Eo=Object.getOwnPropertyNames,_p=Object.getPrototypeOf,Sp=Object.prototype.hasOwnProperty,Tp=(e,t)=>function(){return e&&(t=(0,e[Eo(e)[0]])(e=0)),t},Ap=(e,t)=>function(){return t||(0,e[Eo(e)[0]])((t={exports:{}}).exports,t),t.exports},wp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Eo(t))!Sp.call(e,o)&&o!==n&&Eu(e,o,{get:()=>t[o],enumerable:!(r=bp(t,o))||r.enumerable});return e},Dp=(e,t,n)=>(n=e!=null?Ep(_p(e)):{},wp(Eu(n,"default",{value:e,enumerable:!0}),e)),fn=Tp({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),Cp=Ap({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){fn(),t.exports=r;function n(i){return i instanceof Buffer?Buffer.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}function r(i){if(i=i||{},i.circles)return o(i);const s=new Map;if(s.set(Date,f=>new Date(f)),s.set(Map,(f,v)=>new Map(l(Array.from(f),v))),s.set(Set,(f,v)=>new Set(l(Array.from(f),v))),i.constructorHandlers)for(const f of i.constructorHandlers)s.set(f[0],f[1]);let a=null;return i.proto?d:c;function l(f,v){const y=Object.keys(f),h=new Array(y.length);for(let m=0;m<y.length;m++){const g=y[m],E=f[g];typeof E!="object"||E===null?h[g]=E:E.constructor!==Object&&(a=s.get(E.constructor))?h[g]=a(E,v):ArrayBuffer.isView(E)?h[g]=n(E):h[g]=v(E)}return h}function c(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return l(f,c);if(f.constructor!==Object&&(a=s.get(f.constructor)))return a(f,c);const v={};for(const y in f){if(Object.hasOwnProperty.call(f,y)===!1)continue;const h=f[y];typeof h!="object"||h===null?v[y]=h:h.constructor!==Object&&(a=s.get(h.constructor))?v[y]=a(h,c):ArrayBuffer.isView(h)?v[y]=n(h):v[y]=c(h)}return v}function d(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return l(f,d);if(f.constructor!==Object&&(a=s.get(f.constructor)))return a(f,d);const v={};for(const y in f){const h=f[y];typeof h!="object"||h===null?v[y]=h:h.constructor!==Object&&(a=s.get(h.constructor))?v[y]=a(h,d):ArrayBuffer.isView(h)?v[y]=n(h):v[y]=d(h)}return v}}function o(i){const s=[],a=[],l=new Map;if(l.set(Date,y=>new Date(y)),l.set(Map,(y,h)=>new Map(d(Array.from(y),h))),l.set(Set,(y,h)=>new Set(d(Array.from(y),h))),i.constructorHandlers)for(const y of i.constructorHandlers)l.set(y[0],y[1]);let c=null;return i.proto?v:f;function d(y,h){const m=Object.keys(y),g=new Array(m.length);for(let E=0;E<m.length;E++){const w=m[E],T=y[w];if(typeof T!="object"||T===null)g[w]=T;else if(T.constructor!==Object&&(c=l.get(T.constructor)))g[w]=c(T,h);else if(ArrayBuffer.isView(T))g[w]=n(T);else{const D=s.indexOf(T);D!==-1?g[w]=a[D]:g[w]=h(T)}}return g}function f(y){if(typeof y!="object"||y===null)return y;if(Array.isArray(y))return d(y,f);if(y.constructor!==Object&&(c=l.get(y.constructor)))return c(y,f);const h={};s.push(y),a.push(h);for(const m in y){if(Object.hasOwnProperty.call(y,m)===!1)continue;const g=y[m];if(typeof g!="object"||g===null)h[m]=g;else if(g.constructor!==Object&&(c=l.get(g.constructor)))h[m]=c(g,f);else if(ArrayBuffer.isView(g))h[m]=n(g);else{const E=s.indexOf(g);E!==-1?h[m]=a[E]:h[m]=f(g)}}return s.pop(),a.pop(),h}function v(y){if(typeof y!="object"||y===null)return y;if(Array.isArray(y))return d(y,v);if(y.constructor!==Object&&(c=l.get(y.constructor)))return c(y,v);const h={};s.push(y),a.push(h);for(const m in y){const g=y[m];if(typeof g!="object"||g===null)h[m]=g;else if(g.constructor!==Object&&(c=l.get(g.constructor)))h[m]=c(g,v);else if(ArrayBuffer.isView(g))h[m]=n(g);else{const E=s.indexOf(g);E!==-1?h[m]=a[E]:h[m]=v(g)}}return s.pop(),a.pop(),h}}}});fn();fn();fn();var bu=typeof navigator<"u",F=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof F.chrome<"u"&&F.chrome.devtools;bu&&(F.self,F.top);var $i;typeof navigator<"u"&&(($i=navigator.userAgent)==null||$i.toLowerCase().includes("electron"));fn();var Ip=Dp(Cp()),Op=/(?:^|[-_/])(\w)/g;function kp(e,t){return t?t.toUpperCase():""}function xp(e){return e&&`${e}`.replace(Op,kp)}function Np(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const r=n.lastIndexOf("/"),o=n.substring(r+1);{const i=o.lastIndexOf(t);return o.substring(0,i)}}var Ui=(0,Ip.default)({circles:!0});const Rp={trailing:!0};function xt(e,t=25,n={}){if(n={...Rp,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,o,i=[],s,a;const l=(c,d)=>(s=Pp(e,c,d),s.finally(()=>{if(s=null,n.trailing&&a&&!o){const f=l(c,a);return a=null,f}}),s);return function(...c){return s?(n.trailing&&(a=c),s):new Promise(d=>{const f=!o&&n.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const v=n.leading?r:l(this,c);for(const y of i)y(v);i=[]},t),f?(r=l(this,c),d(r)):i.push(d)})}}async function Pp(e,t,n){return await e.apply(t,n)}function Fr(e,t={},n){for(const r in e){const o=e[r],i=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Fr(o,t,i):typeof o=="function"&&(t[i]=o)}return t}const Bp={run:e=>e()},Vp=()=>Bp,_u=typeof console.createTask<"u"?console.createTask:Vp;function Mp(e,t){const n=t.shift(),r=_u(n);return e.reduce((o,i)=>o.then(()=>r.run(()=>i(...t))),Promise.resolve())}function Fp(e,t){const n=t.shift(),r=_u(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function Er(e,t){for(const n of[...e])n(t)}class Lp{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let s=i.message;s||(s=`${o} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...i)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...i));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Fr(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Fr(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Mp,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Fp,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Er(this._before,o);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&o&&Er(this._after,o)}):(this._after&&o&&Er(this._after,o),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Su(){return new Lp}var $p=Object.create,Tu=Object.defineProperty,Up=Object.getOwnPropertyDescriptor,bo=Object.getOwnPropertyNames,Kp=Object.getPrototypeOf,Hp=Object.prototype.hasOwnProperty,jp=(e,t)=>function(){return e&&(t=(0,e[bo(e)[0]])(e=0)),t},Au=(e,t)=>function(){return t||(0,e[bo(e)[0]])((t={exports:{}}).exports,t),t.exports},zp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bo(t))!Hp.call(e,o)&&o!==n&&Tu(e,o,{get:()=>t[o],enumerable:!(r=Up(t,o))||r.enumerable});return e},qp=(e,t,n)=>(n=e!=null?$p(Kp(e)):{},zp(Tu(n,"default",{value:e,enumerable:!0}),e)),k=jp({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),Gp=Au({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){k(),function(n){var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],i={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},s={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},a={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),c=[";","?",":","@","&","=","+","$",","].join(""),d=[".","!","~","*","'","(",")"].join(""),f=function(g,E){var w="-",T="",D="",B=!0,b={},S,V,C,A,_,O,$,x,M,N,R,j,z,Z,L="";if(typeof g!="string")return"";if(typeof E=="string"&&(w=E),$=a.en,x=s.en,typeof E=="object"){S=E.maintainCase||!1,b=E.custom&&typeof E.custom=="object"?E.custom:b,C=+E.truncate>1&&E.truncate||!1,A=E.uric||!1,_=E.uricNoSlash||!1,O=E.mark||!1,B=!(E.symbols===!1||E.lang===!1),w=E.separator||w,A&&(L+=l),_&&(L+=c),O&&(L+=d),$=E.lang&&a[E.lang]&&B?a[E.lang]:B?a.en:{},x=E.lang&&s[E.lang]?s[E.lang]:E.lang===!1||E.lang===!0?{}:s.en,E.titleCase&&typeof E.titleCase.length=="number"&&Array.prototype.toString.call(E.titleCase)?(E.titleCase.forEach(function(q){b[q+""]=q+""}),V=!0):V=!!E.titleCase,E.custom&&typeof E.custom.length=="number"&&Array.prototype.toString.call(E.custom)&&E.custom.forEach(function(q){b[q+""]=q+""}),Object.keys(b).forEach(function(q){var re;q.length>1?re=new RegExp("\\b"+y(q)+"\\b","gi"):re=new RegExp(y(q),"gi"),g=g.replace(re,b[q])});for(R in b)L+=R}for(L+=w,L=y(L),g=g.replace(/(^\s+|\s+$)/g,""),z=!1,Z=!1,N=0,j=g.length;N<j;N++)R=g[N],h(R,b)?z=!1:x[R]?(R=z&&x[R].match(/[A-Za-z0-9]/)?" "+x[R]:x[R],z=!1):R in r?(N+1<j&&o.indexOf(g[N+1])>=0?(D+=R,R=""):Z===!0?(R=i[D]+r[R],D=""):R=z&&r[R].match(/[A-Za-z0-9]/)?" "+r[R]:r[R],z=!1,Z=!1):R in i?(D+=R,R="",N===j-1&&(R=i[D]),Z=!0):$[R]&&!(A&&l.indexOf(R)!==-1)&&!(_&&c.indexOf(R)!==-1)?(R=z||T.substr(-1).match(/[A-Za-z0-9]/)?w+$[R]:$[R],R+=g[N+1]!==void 0&&g[N+1].match(/[A-Za-z0-9]/)?w:"",z=!0):(Z===!0?(R=i[D]+R,D="",Z=!1):z&&(/[A-Za-z0-9]/.test(R)||T.substr(-1).match(/A-Za-z0-9]/))&&(R=" "+R),z=!1),T+=R.replace(new RegExp("[^\\w\\s"+L+"_-]","g"),w);return V&&(T=T.replace(/(\w)(\S*)/g,function(q,re,le){var H=re.toUpperCase()+(le!==null?le:"");return Object.keys(b).indexOf(H.toLowerCase())<0?H:H.toLowerCase()})),T=T.replace(/\s+/g,w).replace(new RegExp("\\"+w+"+","g"),w).replace(new RegExp("(^\\"+w+"+|\\"+w+"+$)","g"),""),C&&T.length>C&&(M=T.charAt(C)===w,T=T.slice(0,C),M||(T=T.slice(0,T.lastIndexOf(w)))),!S&&!V&&(T=T.toLowerCase()),T},v=function(g){return function(w){return f(w,g)}},y=function(g){return g.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},h=function(m,g){for(var E in g)if(g[E]===m)return!0};if(typeof t<"u"&&t.exports)t.exports=f,t.exports.createSlug=v;else if(typeof define<"u"&&define.amd)define([],function(){return f});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=f,n.createSlug=v}catch{}}(e)}}),Wp=Au({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){k(),t.exports=Gp()}});k();k();k();k();k();k();k();k();function Yp(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return n==="index"&&((t=e.__file)!=null&&t.endsWith("index.vue"))?"":n}function Zp(e){const t=e.__file;if(t)return xp(Np(t,".vue"))}function Ki(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function _o(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function wu(e){var t,n;const r=(t=e.subTree)==null?void 0:t.type,o=_o(e);return o?((n=o==null?void 0:o.types)==null?void 0:n.Fragment)===r:!1}function nr(e){var t,n,r;const o=Yp((e==null?void 0:e.type)||{});if(o)return o;if((e==null?void 0:e.root)===e)return"Root";for(const s in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[s]===(e==null?void 0:e.type))return Ki(e,s);for(const s in(r=e.appContext)==null?void 0:r.components)if(e.appContext.components[s]===(e==null?void 0:e.type))return Ki(e,s);const i=Zp((e==null?void 0:e.type)||{});return i||"Anonymous Component"}function Xp(e){var t,n,r;const o=(r=(n=(t=e==null?void 0:e.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?r:0,i=e===(e==null?void 0:e.root)?"root":e.uid;return`${o}:${i}`}function Lr(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function Jp(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var Tn;function Qp(e){return Tn||(Tn=document.createRange()),Tn.selectNode(e),Tn.getBoundingClientRect()}function e0(e){const t=Jp();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){const o=e.children[n];let i;if(o.component)i=ft(o.component);else if(o.el){const s=o.el;s.nodeType===1||s.getBoundingClientRect?i=s.getBoundingClientRect():s.nodeType===3&&s.data.trim()&&(i=Qp(s))}i&&t0(t,i)}return t}function t0(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var Hi={top:0,left:0,right:0,bottom:0,width:0,height:0};function ft(e){const t=e.subTree.el;return typeof window>"u"?Hi:wu(e)?e0(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?ft(e.subTree.component):Hi}k();function So(e){return wu(e)?n0(e.subTree):e.subTree?[e.subTree.el]:[]}function n0(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...So(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var Du="__vue-devtools-component-inspector__",Cu="__vue-devtools-component-inspector__card__",Iu="__vue-devtools-component-inspector__name__",Ou="__vue-devtools-component-inspector__indicator__",ku={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},r0={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},o0={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function Mt(){return document.getElementById(Du)}function i0(){return document.getElementById(Cu)}function s0(){return document.getElementById(Ou)}function a0(){return document.getElementById(Iu)}function To(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function Ao(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Du,Object.assign(n.style,{...ku,...To(e.bounds),...e.style});const r=document.createElement("span");r.id=Cu,Object.assign(r.style,{...r0,top:e.bounds.top<35?0:"-35px"});const o=document.createElement("span");o.id=Iu,o.innerHTML=`<${e.name}> `;const i=document.createElement("i");return i.id=Ou,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,o0),r.appendChild(o),r.appendChild(i),n.appendChild(r),document.body.appendChild(n),n}function wo(e){const t=Mt(),n=i0(),r=a0(),o=s0();t&&(Object.assign(t.style,{...ku,...To(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`<${e.name}> `,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function u0(e){const t=ft(e);if(!t.width&&!t.height)return;const n=nr(e);Mt()?wo({bounds:t,name:n}):Ao({bounds:t,name:n})}function xu(){const e=Mt();e&&(e.style.display="none")}var $r=null;function Ur(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&($r=n,n.vnode.el)){const o=ft(n),i=nr(n);Mt()?wo({bounds:o,name:i}):Ao({bounds:o,name:i})}}}function l0(e,t){if(e.preventDefault(),e.stopPropagation(),$r){const n=Xp($r);t(n)}}var Un=null;function c0(){xu(),window.removeEventListener("mouseover",Ur),window.removeEventListener("click",Un,!0),Un=null}function f0(){return window.addEventListener("mouseover",Ur),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),l0(n,r=>{window.removeEventListener("click",t,!0),Un=null,window.removeEventListener("mouseover",Ur);const o=Mt();o&&(o.style.display="none"),e(JSON.stringify({id:r}))})}Un=t,window.addEventListener("click",t,!0)})}function d0(e){const t=Lr(Se.value,e.id);if(t){const[n]=So(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=ft(t),o=document.createElement("div"),i={...To(r),position:"absolute"};Object.assign(o.style,i),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=ft(t);if(r.width||r.height){const o=nr(t),i=Mt();i?wo({...e,name:o,bounds:r}):Ao({...e,name:o,bounds:r}),setTimeout(()=>{i&&(i.style.display="none")},1500)}},1200)}}k();var ji,zi;(zi=(ji=F).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(ji.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function h0(e){let t=0;const n=setInterval(()=>{F.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function p0(){const e=F.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function g0(){return new Promise(e=>{function t(){p0(),e(F.__VUE_INSPECTOR__)}F.__VUE_INSPECTOR__?t():h0(()=>{t()})})}k();k();function y0(e){return!!(e&&e.__v_isReadonly)}function Nu(e){return y0(e)?Nu(e.__v_raw):!!(e&&e.__v_isReactive)}function br(e){return!!(e&&e.__v_isRef===!0)}function jt(e){const t=e&&e.__v_raw;return t?jt(t):e}var v0=class{constructor(){this.refEditor=new m0}set(e,t,n,r){const o=Array.isArray(t)?t:t.split(".");for(;o.length>1;){const a=o.shift();e instanceof Map?e=e.get(a):e instanceof Set?e=Array.from(e.values())[a]:e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const i=o[0],s=this.refEditor.get(e)[i];r?r(e,i,n):this.refEditor.isRef(s)?this.refEditor.set(s,n):e[i]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let r=0;r<n.length;r++)if(e instanceof Map?e=e.get(n[r]):e=e[n[r]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const r=Array.isArray(t)?t.slice():t.split("."),o=n?2:1;for(;e&&r.length>o;){const i=r.shift();e=e[i],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):jt(t)instanceof Map?t.delete(n):jt(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const o=t[e.newKey||n];this.refEditor.isRef(o)?this.refEditor.set(o,r):jt(t)instanceof Map?t.set(e.newKey||n,r):jt(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},m0=class{set(e,t){if(br(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(o=>e.add(o));return}const n=Object.keys(t);if(e instanceof Map){const o=new Set(e.keys());n.forEach(i=>{e.set(i,Reflect.get(t,i)),o.delete(i)}),o.forEach(i=>e.delete(i));return}const r=new Set(Object.keys(e));n.forEach(o=>{Reflect.set(e,o,Reflect.get(t,o)),r.delete(o)}),r.forEach(o=>Reflect.deleteProperty(e,o))}}get(e){return br(e)?e.value:e}isRef(e){return br(e)||Nu(e)}};k();k();k();var E0="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function b0(){if(!bu||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(E0);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}k();k();k();var qi,Gi;(Gi=(qi=F).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(qi.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var _0=new Proxy(F.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function S0(e,t){he.timelineLayersState[t.id]=!1,_0.push({...e,descriptorId:t.id,appRecord:_o(t.app)})}var Wi,Yi;(Yi=(Wi=F).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(Wi.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Do=new Proxy(F.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),Ru=xt(()=>{Ft.hooks.callHook("sendInspectorToClient",Pu())});function T0(e,t){var n,r;Do.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(r=e.stateFilterPlaceholder)!=null?r:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:_o(t.app)}),Ru()}function Pu(){return Do.filter(e=>e.descriptor.app===Se.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,r=e.options;return{id:r.id,label:r.label,logo:n.logo,icon:`custom-ic-baseline-${(t=r==null?void 0:r.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function kn(e,t){return Do.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function A0(){const e=Su();e.hook("addInspector",({inspector:r,plugin:o})=>{T0(r,o.descriptor)});const t=xt(async({inspectorId:r,plugin:o})=>{var i;if(!r||!((i=o==null?void 0:o.descriptor)!=null&&i.app)||he.highPerfModeEnabled)return;const s=kn(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,filter:(s==null?void 0:s.treeFilter)||"",rootNodes:[]};await new Promise(l=>{e.callHookWith(async c=>{await Promise.all(c.map(d=>d(a))),l()},"getInspectorTree")}),e.callHookWith(async l=>{await Promise.all(l.map(c=>c({inspectorId:r,rootNodes:a.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=xt(async({inspectorId:r,plugin:o})=>{var i;if(!r||!((i=o==null?void 0:o.descriptor)!=null&&i.app)||he.highPerfModeEnabled)return;const s=kn(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,nodeId:(s==null?void 0:s.selectedNodeId)||"",state:null},l={currentTab:`custom-inspector:${r}`};a.nodeId&&await new Promise(c=>{e.callHookWith(async d=>{await Promise.all(d.map(f=>f(a,l))),c()},"getInspectorState")}),e.callHookWith(async c=>{await Promise.all(c.map(d=>d({inspectorId:r,nodeId:a.nodeId,state:a.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:r,nodeId:o,plugin:i})=>{const s=kn(r,i.descriptor.app);s&&(s.selectedNodeId=o)}),e.hook("timelineLayerAdded",({options:r,plugin:o})=>{S0(r,o.descriptor)}),e.hook("timelineEventAdded",({options:r,plugin:o})=>{var i;const s=["performance","component-event","keyboard","mouse"];he.highPerfModeEnabled||!((i=he.timelineLayersState)!=null&&i[o.descriptor.id])&&!s.includes(r.layerId)||e.callHookWith(async a=>{await Promise.all(a.map(l=>l(r)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:r})=>{const o=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!o)return null;const i=o.id.toString();return[...o.instanceMap].filter(([a])=>a.split(":")[0]===i).map(([,a])=>a)}),e.hook("getComponentBounds",async({instance:r})=>ft(r)),e.hook("getComponentName",({instance:r})=>nr(r)),e.hook("componentHighlight",({uid:r})=>{const o=Se.value.instanceMap.get(r);o&&u0(o)}),e.hook("componentUnhighlight",()=>{xu()}),e}var Zi,Xi;(Xi=(Zi=F).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(Zi.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var Ji,Qi;(Qi=(Ji=F).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(Ji.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var es,ts;(ts=(es=F).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(es.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var ns,rs;(rs=(ns=F).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(ns.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var os,is;(is=(os=F).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(os.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var lt="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function w0(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:b0()}}var ss,as;(as=(ss=F)[lt])!=null||(ss[lt]=w0());var D0=xt(e=>{Ft.hooks.callHook("devtoolsStateUpdated",{state:e})});xt((e,t)=>{Ft.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var rr=new Proxy(F.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?F.__VUE_DEVTOOLS_KIT_APP_RECORDS__:F.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),Se=new Proxy(F.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?F.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?F.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:F.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function Bu(){D0({...F[lt],appRecords:rr.value,activeAppRecordId:Se.id,tabs:F.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:F.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function C0(e){F.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,Bu()}function I0(e){F.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,Bu()}var he=new Proxy(F[lt],{get(e,t){return t==="appRecords"?rr:t==="activeAppRecordId"?Se.id:t==="tabs"?F.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?F.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:F[lt][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...F[lt]},e[t]=n,F[lt][t]=n,!0}});function O0(e={}){var t,n,r;const{file:o,host:i,baseUrl:s=window.location.origin,line:a=0,column:l=0}=e;if(o){if(i==="chrome-extension"){const c=o.replace(/\\/g,"\\\\"),d=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${d}__open-in-editor?file=${encodeURI(o)}`).then(f=>{if(!f.ok){const v=`Opening component ${c} failed`;console.log(`%c${v}`,"color:red")}})}else if(he.vitePluginDetected){const c=(r=F.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?r:s;F.__VUE_INSPECTOR__.openInEditor(c,o,a,l)}}}k();k();k();k();k();var us,ls;(ls=(us=F).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(us.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Co=new Proxy(F.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Kr(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Io(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function k0(e){var t,n,r;const o=(n=(t=Co.find(i=>{var s;return i[0].id===e&&!!((s=i[0])!=null&&s.settings)}))==null?void 0:t[0])!=null?n:null;return(r=o==null?void 0:o.settings)!=null?r:null}function Vu(e,t){var n,r,o;const i=Io(e);if(i){const s=localStorage.getItem(i);if(s)return JSON.parse(s)}if(e){const s=(r=(n=Co.find(a=>a[0].id===e))==null?void 0:n[0])!=null?r:null;return Kr((o=s==null?void 0:s.settings)!=null?o:{})}return Kr(t)}function x0(e,t){const n=Io(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Kr(t)))}function N0(e,t,n){const r=Io(e),o=localStorage.getItem(r),i=JSON.parse(o||"{}"),s={...i,[t]:n};localStorage.setItem(r,JSON.stringify(s)),Ft.hooks.callHookWith(a=>{a.forEach(l=>l({pluginId:e,key:t,oldValue:i[t],newValue:n,settings:s}))},"setPluginSettings")}k();k();k();k();k();k();k();k();k();k();k();var cs,fs,De=(fs=(cs=F).__VUE_DEVTOOLS_HOOK)!=null?fs:cs.__VUE_DEVTOOLS_HOOK=Su(),R0={vueAppInit(e){De.hook("app:init",e)},vueAppUnmount(e){De.hook("app:unmount",e)},vueAppConnected(e){De.hook("app:connected",e)},componentAdded(e){return De.hook("component:added",e)},componentEmit(e){return De.hook("component:emit",e)},componentUpdated(e){return De.hook("component:updated",e)},componentRemoved(e){return De.hook("component:removed",e)},setupDevtoolsPlugin(e){De.hook("devtools-plugin:setup",e)},perfStart(e){return De.hook("perf:start",e)},perfEnd(e){return De.hook("perf:end",e)}},Mu={on:R0,setupDevToolsPlugin(e,t){return De.callHook("devtools-plugin:setup",e,t)}},P0=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(he.highPerfModeEnabled)return;const n=Pu().find(r=>r.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(e){const r=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];De.callHook("component:updated",...r)}else De.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&x0(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){he.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){he.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return he.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){he.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return Vu(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},B0=P0;k();k();k();k();var V0="__vue_devtool_undefined__",M0="__vue_devtool_infinity__",F0="__vue_devtool_negative_infinity__",L0="__vue_devtool_nan__";k();k();var $0={[V0]:"undefined",[L0]:"NaN",[M0]:"Infinity",[F0]:"-Infinity"};Object.entries($0).reduce((e,[t,n])=>(e[n]=t,e),{});k();k();k();k();k();var ds,hs;(hs=(ds=F).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(ds.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function Fu(e,t){return Mu.setupDevToolsPlugin(e,t)}function U0(e,t){const[n,r]=e;if(n.app!==t)return;const o=new B0({plugin:{setupFn:r,descriptor:n},ctx:Ft});n.packageName==="vuex"&&o.on.editInspectorState(i=>{o.sendInspectorState(i.inspectorId)}),r(o)}function Lu(e,t){F.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||he.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(F.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Co.forEach(n=>{U0(n,e)}))}k();k();var nn="__VUE_DEVTOOLS_ROUTER__",Nt="__VUE_DEVTOOLS_ROUTER_INFO__",ps,gs;(gs=(ps=F)[Nt])!=null||(ps[Nt]={currentRoute:null,routes:[]});var ys,vs;(vs=(ys=F)[nn])!=null||(ys[nn]={});new Proxy(F[Nt],{get(e,t){return F[Nt][t]}});new Proxy(F[nn],{get(e,t){if(t==="value")return F[nn]}});function K0(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Oo(e){return e.map(t=>{let{path:n,name:r,children:o,meta:i}=t;return o!=null&&o.length&&(o=Oo(o)),{path:n,name:r,children:o,meta:i}})}function H0(e){if(e){const{fullPath:t,hash:n,href:r,path:o,name:i,matched:s,params:a,query:l}=e;return{fullPath:t,hash:n,href:r,path:o,name:i,params:a,query:l,matched:Oo(s)}}return e}function j0(e,t){function n(){var r;const o=(r=e.app)==null?void 0:r.config.globalProperties.$router,i=H0(o==null?void 0:o.currentRoute.value),s=Oo(K0(o)),a=console.warn;console.warn=()=>{},F[Nt]={currentRoute:i?Ui(i):{},routes:Ui(s)},F[nn]=o,console.warn=a}n(),Mu.on.componentUpdated(xt(()=>{var r;((r=t.value)==null?void 0:r.app)===e.app&&(n(),!he.highPerfModeEnabled&&Ft.hooks.callHook("routerInfoUpdated",{state:F[Nt]}))},200))}function z0(e){return{async getInspectorTree(t){const n={...t,app:Se.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async o=>{await Promise.all(o.map(i=>i(n))),r()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:Se.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(o=>{e.callHookWith(async i=>{await Promise.all(i.map(s=>s(n,r))),o()},"getInspectorState")}),n.state},editInspectorState(t){const n=new v0,r={...t,app:Se.value.app,set:(o,i=t.path,s=t.state.value,a)=>{n.set(o,i,s,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(o=>{o.forEach(i=>i(r))},"editInspectorState")},sendInspectorState(t){const n=kn(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return f0()},cancelInspectComponentInspector(){return c0()},getComponentRenderCode(t){const n=Lr(Se.value,t);if(n)return typeof(n==null?void 0:n.type)!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return d0({id:t})},openInEditor:O0,getVueInspector:g0,toggleApp(t,n){const r=rr.value.find(o=>o.id===t);r&&(I0(t),C0(r),j0(r,Se),Ru(),Lu(r.app,n))},inspectDOM(t){const n=Lr(Se.value,t);if(n){const[r]=So(n);r&&(F.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){N0(t,n,r)},getPluginSettings(t){return{options:k0(t),values:Vu(t)}}}}k();var ms,Es;(Es=(ms=F).__VUE_DEVTOOLS_ENV__)!=null||(ms.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var bs=A0(),_s,Ss;(Ss=(_s=F).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(_s.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:bs,get state(){return{...he,activeAppRecordId:Se.id,activeAppRecord:Se.value,appRecords:rr.value}},api:z0(bs)});var Ft=F.__VUE_DEVTOOLS_KIT_CONTEXT__;k();qp(Wp());var Ts,As;(As=(Ts=F).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null||(Ts.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set});k();k();function q0(e){he.highPerfModeEnabled=e??!he.highPerfModeEnabled,!e&&Se.value&&Lu(Se.value.app)}k();k();k();function G0(e){he.devtoolsClientDetected={...he.devtoolsClientDetected,...e};const t=Object.values(he.devtoolsClientDetected).some(Boolean);q0(!t)}var ws,Ds;(Ds=(ws=F).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(ws.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=G0);k();k();k();k();k();k();k();var W0=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},$u=class{constructor(e){this.generateIdentifier=e,this.kv=new W0}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Y0=class extends $u{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};k();k();function Z0(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function X0(e,t){const n=Z0(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const i=r[o];if(t(i))return i}}function Rt(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function xn(e,t){return e.indexOf(t)!==-1}function Cs(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var J0=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return X0(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};k();k();var Q0=e=>Object.prototype.toString.call(e).slice(8,-1),Uu=e=>typeof e>"u",eg=e=>e===null,rn=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Hr=e=>rn(e)&&Object.keys(e).length===0,rt=e=>Array.isArray(e),tg=e=>typeof e=="string",ng=e=>typeof e=="number"&&!isNaN(e),rg=e=>typeof e=="boolean",og=e=>e instanceof RegExp,on=e=>e instanceof Map,sn=e=>e instanceof Set,Ku=e=>Q0(e)==="Symbol",ig=e=>e instanceof Date&&!isNaN(e.valueOf()),sg=e=>e instanceof Error,Is=e=>typeof e=="number"&&isNaN(e),ag=e=>rg(e)||eg(e)||Uu(e)||ng(e)||tg(e)||Ku(e),ug=e=>typeof e=="bigint",lg=e=>e===1/0||e===-1/0,cg=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),fg=e=>e instanceof URL;k();var Hu=e=>e.replace(/\./g,"\\."),_r=e=>e.map(String).map(Hu).join("."),Zt=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let i=e.charAt(o);if(i==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(i==="."){t.push(n),n="";continue}n+=i}const r=n;return t.push(r),t};k();function $e(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var ju=[$e(Uu,"undefined",()=>null,()=>{}),$e(ug,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),$e(ig,"Date",e=>e.toISOString(),e=>new Date(e)),$e(sg,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),$e(og,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),$e(sn,"set",e=>[...e.values()],e=>new Set(e)),$e(on,"map",e=>[...e.entries()],e=>new Map(e)),$e(e=>Is(e)||lg(e),"number",e=>Is(e)?"NaN":e>0?"Infinity":"-Infinity",Number),$e(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),$e(fg,"URL",e=>e.toString(),e=>new URL(e))];function or(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var zu=or((e,t)=>Ku(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),dg=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),qu=or(cg,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=dg[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Gu(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Wu=or(Gu,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),Yu=or((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),hg=[Wu,zu,Yu,qu],Os=(e,t)=>{const n=Cs(hg,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Cs(ju,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Zu={};ju.forEach(e=>{Zu[e.annotation]=e});var pg=(e,t,n)=>{if(rt(t))switch(t[0]){case"symbol":return zu.untransform(e,t,n);case"class":return Wu.untransform(e,t,n);case"custom":return Yu.untransform(e,t,n);case"typed-array":return qu.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=Zu[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}};k();var _t=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Xu(e){if(xn(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(xn(e,"prototype"))throw new Error("prototype is not allowed as a property");if(xn(e,"constructor"))throw new Error("constructor is not allowed as a property")}var gg=(e,t)=>{Xu(t);for(let n=0;n<t.length;n++){const r=t[n];if(sn(e))e=_t(e,+r);else if(on(e)){const o=+r,i=+t[++n]==0?"key":"value",s=_t(e,o);switch(i){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[r]}return e},jr=(e,t,n)=>{if(Xu(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){const s=t[i];if(rt(r)){const a=+s;r=r[a]}else if(rn(r))r=r[s];else if(sn(r)){const a=+s;r=_t(r,a)}else if(on(r)){if(i===t.length-2)break;const l=+s,c=+t[++i]==0?"key":"value",d=_t(r,l);switch(c){case"key":r=d;break;case"value":r=r.get(d);break}}}const o=t[t.length-1];if(rt(r)?r[+o]=n(r[+o]):rn(r)&&(r[o]=n(r[o])),sn(r)){const i=_t(r,+o),s=n(i);i!==s&&(r.delete(i),r.add(s))}if(on(r)){const i=+t[t.length-2],s=_t(r,i);switch(+o==0?"key":"value"){case"key":{const l=n(s);r.set(l,r.get(s)),l!==s&&r.delete(s);break}case"value":{r.set(s,n(r.get(s)));break}}}return e};function zr(e,t,n=[]){if(!e)return;if(!rt(e)){Rt(e,(i,s)=>zr(i,t,[...n,...Zt(s)]));return}const[r,o]=e;o&&Rt(o,(i,s)=>{zr(i,t,[...n,...Zt(s)])}),t(r,n)}function yg(e,t,n){return zr(t,(r,o)=>{e=jr(e,o,i=>pg(i,r,n))}),e}function vg(e,t){function n(r,o){const i=gg(e,Zt(o));r.map(Zt).forEach(s=>{e=jr(e,s,()=>i)})}if(rt(t)){const[r,o]=t;r.forEach(i=>{e=jr(e,Zt(i),()=>e)}),o&&Rt(o,n)}else Rt(t,n);return e}var mg=(e,t)=>rn(e)||rt(e)||on(e)||sn(e)||Gu(e,t);function Eg(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function bg(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(a=>a.map(String)).sort((a,l)=>a.length-l.length));const[i,...s]=o;i.length===0?r=s.map(_r):n[_r(i)]=s.map(_r)}),r?Hr(n)?[r]:[r,n]:Hr(n)?void 0:n}var Ju=(e,t,n,r,o=[],i=[],s=new Map)=>{var a;const l=ag(e);if(!l){Eg(e,o,t);const h=s.get(e);if(h)return r?{transformedValue:null}:h}if(!mg(e,n)){const h=Os(e,n),m=h?{transformedValue:h.value,annotations:[h.type]}:{transformedValue:e};return l||s.set(e,m),m}if(xn(i,e))return{transformedValue:null};const c=Os(e,n),d=(a=c==null?void 0:c.value)!=null?a:e,f=rt(d)?[]:{},v={};Rt(d,(h,m)=>{if(m==="__proto__"||m==="constructor"||m==="prototype")throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);const g=Ju(h,t,n,r,[...o,m],[...i,e],s);f[m]=g.transformedValue,rt(g.annotations)?v[m]=g.annotations:rn(g.annotations)&&Rt(g.annotations,(E,w)=>{v[Hu(m)+"."+w]=E})});const y=Hr(v)?{transformedValue:f,annotations:c?[c.type]:void 0}:{transformedValue:f,annotations:c?[c.type,v]:v};return l||s.set(e,y),y};k();k();function Qu(e){return Object.prototype.toString.call(e).slice(8,-1)}function ks(e){return Qu(e)==="Array"}function _g(e){if(Qu(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Sg(e,t,n,r,o){const i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),o&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function qr(e,t={}){if(ks(e))return e.map(o=>qr(o,t));if(!_g(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,i)=>{if(ks(t.props)&&!t.props.includes(i))return o;const s=e[i],a=qr(s,t);return Sg(o,i,a,e,t.nonenumerable),o},{})}var ae=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Y0,this.symbolRegistry=new $u(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new J0,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=Ju(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=bg(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=qr(t);return n!=null&&n.values&&(r=yg(r,n.values,this)),n!=null&&n.referentialEqualities&&(r=vg(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};ae.defaultInstance=new ae;ae.serialize=ae.defaultInstance.serialize.bind(ae.defaultInstance);ae.deserialize=ae.defaultInstance.deserialize.bind(ae.defaultInstance);ae.stringify=ae.defaultInstance.stringify.bind(ae.defaultInstance);ae.parse=ae.defaultInstance.parse.bind(ae.defaultInstance);ae.registerClass=ae.defaultInstance.registerClass.bind(ae.defaultInstance);ae.registerSymbol=ae.defaultInstance.registerSymbol.bind(ae.defaultInstance);ae.registerCustom=ae.defaultInstance.registerCustom.bind(ae.defaultInstance);ae.allowErrorProps=ae.defaultInstance.allowErrorProps.bind(ae.defaultInstance);k();k();k();k();k();k();k();k();k();k();k();k();k();k();k();k();k();k();k();k();k();k();k();var xs,Ns;(Ns=(xs=F).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(xs.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Rs,Ps;(Ps=(Rs=F).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(Rs.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var Bs,Vs;(Vs=(Bs=F).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(Bs.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var Ms,Fs;(Fs=(Ms=F).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(Ms.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var Ls,$s;($s=(Ls=F).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||(Ls.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var Us,Ks;(Ks=(Us=F).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(Us.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null);k();k();k();k();k();k();k();/*!
|
|
8
|
-
* pinia v3.0.3
|
|
9
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
10
|
-
* @license MIT
|
|
11
|
-
*/let zt;const an=e=>zt=e,el=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function dt(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ke;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ke||(Ke={}));const Qe=typeof window<"u",Hs=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Tg(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function ko(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){rl(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function tl(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Nn(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(n)}}const Rn=typeof navigator=="object"?navigator:{userAgent:""},nl=/Macintosh/.test(Rn.userAgent)&&/AppleWebKit/.test(Rn.userAgent)&&!/Safari/.test(Rn.userAgent),rl=Qe?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!nl?Ag:"msSaveOrOpenBlob"in Rn?wg:Dg:()=>{};function Ag(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?tl(r.href)?ko(e,t,n):(r.target="_blank",Nn(r)):Nn(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Nn(r)},0))}function wg(e,t="download",n){if(typeof e=="string")if(tl(e))ko(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Nn(r)})}else navigator.msSaveOrOpenBlob(Tg(e,n),t)}function Dg(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return ko(e,t,n);const o=e.type==="application/octet-stream",i=/constructor/i.test(String(Hs.HTMLElement))||"safari"in Hs,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&i||nl)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=s?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function pe(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function xo(e){return"_a"in e&&"install"in e}function ol(){if(!("clipboard"in navigator))return pe("Your browser doesn't support the Clipboard API","error"),!0}function il(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(pe('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Cg(e){if(!ol())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),pe("Global state copied to clipboard.")}catch(t){if(il(t))return;pe("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Ig(e){if(!ol())try{sl(e,JSON.parse(await navigator.clipboard.readText())),pe("Global state pasted from clipboard.")}catch(t){if(il(t))return;pe("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Og(e){try{rl(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){pe("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let ze;function kg(){ze||(ze=document.createElement("input"),ze.type="file",ze.accept=".json");function e(){return new Promise((t,n)=>{ze.onchange=async()=>{const r=ze.files;if(!r)return t(null);const o=r.item(0);return t(o?{text:await o.text(),file:o}:null)},ze.oncancel=()=>t(null),ze.onerror=n,ze.click()})}return e}async function xg(e){try{const n=await kg()();if(!n)return;const{text:r,file:o}=n;sl(e,JSON.parse(r)),pe(`Global state imported from "${o.name}".`)}catch(t){pe("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function sl(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function Be(e){return{_custom:{display:e}}}const al="🍍 Pinia (root)",Pn="_root";function Ng(e){return xo(e)?{id:Pn,label:al}:{id:e.$id,label:e.$id}}function Rg(e){if(xo(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(i=>({editable:!0,key:i,value:e.state.value[i]})),getters:n.filter(i=>r.get(i)._getters).map(i=>{const s=r.get(i);return{editable:!1,key:i,value:s._getters.reduce((a,l)=>(a[l]=s[l],a),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Pg(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Be(e.type),key:Be(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Bg(e){switch(e){case Ke.direct:return"mutation";case Ke.patchFunction:return"$patch";case Ke.patchObject:return"$patch";default:return"unknown"}}let St=!0;const Bn=[],it="pinia:mutations",Ee="pinia",{assign:Vg}=Object,Kn=e=>"🍍 "+e;function Mg(e,t){Fu({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Bn,app:e},n=>{typeof n.now!="function"&&pe("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:it,label:"Pinia 🍍",color:15064968}),n.addInspector({id:Ee,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Cg(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Ig(t),n.sendInspectorTree(Ee),n.sendInspectorState(Ee)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Og(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await xg(t),n.sendInspectorTree(Ee),n.sendInspectorState(Ee)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=t._s.get(r);o?typeof o.$reset!="function"?pe(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),pe(`Store "${r}" reset.`)):pe(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(r=>{const o=r.componentInstance&&r.componentInstance.proxy;if(o&&o._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(s=>{r.instanceData.state.push({type:Kn(s.$id),key:"state",editable:!0,value:s._isOptionsAPI?{_custom:{value:u.toRaw(s.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>s.$reset()}]}}:Object.keys(s.$state).reduce((a,l)=>(a[l]=s.$state[l],a),{})}),s._getters&&s._getters.length&&r.instanceData.state.push({type:Kn(s.$id),key:"getters",editable:!1,value:s._getters.reduce((a,l)=>{try{a[l]=s[l]}catch(c){a[l]=c}return a},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===Ee){let o=[t];o=o.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?o.filter(i=>"$id"in i?i.$id.toLowerCase().includes(r.filter.toLowerCase()):al.toLowerCase().includes(r.filter.toLowerCase())):o).map(Ng)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===Ee){const o=r.nodeId===Pn?t:t._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==Pn&&(globalThis.$store=u.toRaw(o)),r.state=Rg(o))}}),n.on.editInspectorState(r=>{if(r.app===e&&r.inspectorId===Ee){const o=r.nodeId===Pn?t:t._s.get(r.nodeId);if(!o)return pe(`store "${r.nodeId}" not found`,"error");const{path:i}=r;xo(o)?i.unshift("state"):(i.length!==1||!o._customProperties.has(i[0])||i[0]in o.$state)&&i.unshift("$state"),St=!1,r.set(o,i,r.state.value),St=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),i=t._s.get(o);if(!i)return pe(`store "${o}" not found`,"error");const{path:s}=r;if(s[0]!=="state")return pe(`Invalid path for store "${o}":
|
|
12
|
-
${s}
|
|
13
|
-
Only state can be modified.`);s[0]="$state",St=!1,r.set(i,s,r.state.value),St=!0}})})}function Fg(e,t){Bn.includes(Kn(t.$id))||Bn.push(Kn(t.$id)),Fu({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Bn,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:s,onError:a,name:l,args:c})=>{const d=ul++;n.addTimelineEvent({layerId:it,event:{time:r(),title:"🛫 "+l,subtitle:"start",data:{store:Be(t.$id),action:Be(l),args:c},groupId:d}}),s(f=>{et=void 0,n.addTimelineEvent({layerId:it,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:Be(t.$id),action:Be(l),args:c,result:f},groupId:d}})}),a(f=>{et=void 0,n.addTimelineEvent({layerId:it,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:Be(t.$id),action:Be(l),args:c,error:f},groupId:d}})})},!0),t._customProperties.forEach(s=>{u.watch(()=>u.unref(t[s]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(Ee),St&&n.addTimelineEvent({layerId:it,event:{time:r(),title:"Change",subtitle:s,data:{newValue:a,oldValue:l},groupId:et}})},{deep:!0})}),t.$subscribe(({events:s,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(Ee),!St)return;const c={time:r(),title:Bg(a),data:Vg({store:Be(t.$id)},Pg(s)),groupId:et};a===Ke.patchFunction?c.subtitle="⤵️":a===Ke.patchObject?c.subtitle="🧩":s&&!Array.isArray(s)&&(c.subtitle=s.type),s&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:s}}),n.addTimelineEvent({layerId:it,event:c})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=u.markRaw(s=>{o(s),n.addTimelineEvent({layerId:it,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:Be(t.$id),info:Be("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(Ee),n.sendInspectorState(Ee)});const{$dispose:i}=t;t.$dispose=()=>{i(),n.notifyComponentUpdate(),n.sendInspectorTree(Ee),n.sendInspectorState(Ee),n.getSettings().logStoreChanges&&pe(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(Ee),n.sendInspectorState(Ee),n.getSettings().logStoreChanges&&pe(`"${t.$id}" store installed 🆕`)})}let ul=0,et;function js(e,t,n){const r=t.reduce((o,i)=>(o[i]=u.toRaw(e)[i],o),{});for(const o in r)e[o]=function(){const i=ul,s=n?new Proxy(e,{get(...l){return et=i,Reflect.get(...l)},set(...l){return et=i,Reflect.set(...l)}}):e;et=i;const a=r[o].apply(s,arguments);return et=void 0,a}}function Lg({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){js(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;u.toRaw(t)._hotUpdate=function(o){r.apply(this,arguments),js(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)}}Fg(e,t)}}function $g(){const e=u.effectScope(!0),t=e.run(()=>u.ref({}));let n=[],r=[];const o=u.markRaw({install(i){an(o),o._a=i,i.provide(el,o),i.config.globalProperties.$pinia=o,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Qe&&Mg(i,o),r.forEach(s=>n.push(s)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Qe&&typeof Proxy<"u"&&o.use(Lg),o}function ll(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];dt(o)&&dt(r)&&!u.isRef(r)&&!u.isReactive(r)?e[n]=ll(o,r):e[n]=r}return e}const cl=()=>{};function zs(e,t,n,r=cl){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&u.getCurrentScope()&&u.onScopeDispose(o),o}function yt(e,...t){e.slice().forEach(n=>{n(...t)})}const Ug=e=>e(),qs=Symbol(),Sr=Symbol();function Gr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];dt(o)&&dt(r)&&e.hasOwnProperty(n)&&!u.isRef(r)&&!u.isReactive(r)?e[n]=Gr(o,r):e[n]=r}return e}const Kg=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Hg(e){return!dt(e)||!Object.prototype.hasOwnProperty.call(e,Kg)}const{assign:ke}=Object;function Gs(e){return!!(u.isRef(e)&&e.effect)}function Ws(e,t,n,r){const{state:o,actions:i,getters:s}=t,a=n.state.value[e];let l;function c(){!a&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=o?o():{});const d=process.env.NODE_ENV!=="production"&&r?u.toRefs(u.ref(o?o():{}).value):u.toRefs(n.state.value[e]);return ke(d,i,Object.keys(s||{}).reduce((f,v)=>(process.env.NODE_ENV!=="production"&&v in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${v}" in store "${e}".`),f[v]=u.markRaw(u.computed(()=>{an(n);const y=n._s.get(e);return s[v].call(y,y)})),f),{}))}return l=Wr(e,c,t,n,r,!0),l}function Wr(e,t,n={},r,o,i){let s;const a=ke({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&(l.onTrigger=A=>{c?y=A:c==!1&&!S._hotUpdating&&(Array.isArray(y)?y.push(A):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,d,f=[],v=[],y;const h=r.state.value[e];!i&&!h&&(process.env.NODE_ENV==="production"||!o)&&(r.state.value[e]={});const m=u.ref({});let g;function E(A){let _;c=d=!1,process.env.NODE_ENV!=="production"&&(y=[]),typeof A=="function"?(A(r.state.value[e]),_={type:Ke.patchFunction,storeId:e,events:y}):(Gr(r.state.value[e],A),_={type:Ke.patchObject,payload:A,storeId:e,events:y});const O=g=Symbol();u.nextTick().then(()=>{g===O&&(c=!0)}),d=!0,yt(f,_,r.state.value[e])}const w=i?function(){const{state:_}=n,O=_?_():{};this.$patch($=>{ke($,O)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:cl;function T(){s.stop(),f=[],v=[],r._s.delete(e)}const D=(A,_="")=>{if(qs in A)return A[Sr]=_,A;const O=function(){an(r);const $=Array.from(arguments),x=[],M=[];function N(z){x.push(z)}function R(z){M.push(z)}yt(v,{args:$,name:O[Sr],store:S,after:N,onError:R});let j;try{j=A.apply(this&&this.$id===e?this:S,$)}catch(z){throw yt(M,z),z}return j instanceof Promise?j.then(z=>(yt(x,z),z)).catch(z=>(yt(M,z),Promise.reject(z))):(yt(x,j),j)};return O[qs]=!0,O[Sr]=_,O},B=u.markRaw({actions:{},getters:{},state:[],hotState:m}),b={_p:r,$id:e,$onAction:zs.bind(null,v),$patch:E,$reset:w,$subscribe(A,_={}){const O=zs(f,A,_.detached,()=>$()),$=s.run(()=>u.watch(()=>r.state.value[e],x=>{(_.flush==="sync"?d:c)&&A({storeId:e,type:Ke.direct,events:y},x)},ke({},l,_)));return O},$dispose:T},S=u.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Qe?ke({_hmrPayload:B,_customProperties:u.markRaw(new Set)},b):b);r._s.set(e,S);const C=(r._a&&r._a.runWithContext||Ug)(()=>r._e.run(()=>(s=u.effectScope()).run(()=>t({action:D}))));for(const A in C){const _=C[A];if(u.isRef(_)&&!Gs(_)||u.isReactive(_))process.env.NODE_ENV!=="production"&&o?m.value[A]=u.toRef(C,A):i||(h&&Hg(_)&&(u.isRef(_)?_.value=h[A]:Gr(_,h[A])),r.state.value[e][A]=_),process.env.NODE_ENV!=="production"&&B.state.push(A);else if(typeof _=="function"){const O=process.env.NODE_ENV!=="production"&&o?_:D(_,A);C[A]=O,process.env.NODE_ENV!=="production"&&(B.actions[A]=_),a.actions[A]=_}else process.env.NODE_ENV!=="production"&&Gs(_)&&(B.getters[A]=i?n.getters[A]:_,Qe&&(C._getters||(C._getters=u.markRaw([]))).push(A))}if(ke(S,C),ke(u.toRaw(S),C),Object.defineProperty(S,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?m.value:r.state.value[e],set:A=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");E(_=>{ke(_,A)})}}),process.env.NODE_ENV!=="production"&&(S._hotUpdate=u.markRaw(A=>{S._hotUpdating=!0,A._hmrPayload.state.forEach(_=>{if(_ in S.$state){const O=A.$state[_],$=S.$state[_];typeof O=="object"&&dt(O)&&dt($)?ll(O,$):A.$state[_]=$}S[_]=u.toRef(A.$state,_)}),Object.keys(S.$state).forEach(_=>{_ in A.$state||delete S[_]}),c=!1,d=!1,r.state.value[e]=u.toRef(A._hmrPayload,"hotState"),d=!0,u.nextTick().then(()=>{c=!0});for(const _ in A._hmrPayload.actions){const O=A[_];S[_]=D(O,_)}for(const _ in A._hmrPayload.getters){const O=A._hmrPayload.getters[_],$=i?u.computed(()=>(an(r),O.call(S,S))):O;S[_]=$}Object.keys(S._hmrPayload.getters).forEach(_=>{_ in A._hmrPayload.getters||delete S[_]}),Object.keys(S._hmrPayload.actions).forEach(_=>{_ in A._hmrPayload.actions||delete S[_]}),S._hmrPayload=A._hmrPayload,S._getters=A._getters,S._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Qe){const A={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(_=>{Object.defineProperty(S,_,ke({value:S[_]},A))})}return r._p.forEach(A=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Qe){const _=s.run(()=>A({store:S,app:r._a,pinia:r,options:a}));Object.keys(_||{}).forEach(O=>S._customProperties.add(O)),ke(S,_)}else ke(S,s.run(()=>A({store:S,app:r._a,pinia:r,options:a})))}),process.env.NODE_ENV!=="production"&&S.$state&&typeof S.$state=="object"&&typeof S.$state.constructor=="function"&&!S.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
14
|
-
state: () => new MyClass()
|
|
15
|
-
Found in store "${S.$id}".`),h&&i&&n.hydrate&&n.hydrate(S.$state,h),c=!0,d=!0,S}/*! #__NO_SIDE_EFFECTS__ */function dn(e,t,n){let r;const o=typeof t=="function";r=o?n:t;function i(s,a){const l=u.hasInjectionContext();if(s=(process.env.NODE_ENV==="test"&&zt&&zt._testing?null:s)||(l?u.inject(el,null):null),s&&an(s),process.env.NODE_ENV!=="production"&&!zt)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
16
|
-
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
17
|
-
This will fail in production.`);s=zt,s._s.has(e)||(o?Wr(e,t,r,s):Ws(e,r,s),process.env.NODE_ENV!=="production"&&(i._pinia=s));const c=s._s.get(e);if(process.env.NODE_ENV!=="production"&&a){const d="__hot:"+e,f=o?Wr(d,t,r,s,!0):Ws(d,ke({},r),s,!0);a._hotUpdate(f),delete s.state.value[d],s._s.delete(d)}if(process.env.NODE_ENV!=="production"&&Qe){const d=u.getCurrentInstance();if(d&&d.proxy&&!a){const f=d.proxy,v="_pStores"in f?f._pStores:f._pStores={};v[e]=c}}return c}return i.$id=e,i}function Re(e){const t=u.toRaw(e),n={};for(const r in t){const o=t[r];o.effect?n[r]=u.computed({get:()=>e[r],set(i){e[r]=i}}):(u.isRef(o)||u.isReactive(o))&&(n[r]=u.toRef(e,r))}return n}const jg=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,zg=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,qg=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Gg(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Wg(e);return}return t}function Wg(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Yg(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!qg.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(jg.test(e)||zg.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Gg)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}function Zg(e,t){if(e==null)return;let n=e;for(let r=0;r<t.length;r++){if(n==null||n[t[r]]==null)return;n=n[t[r]]}return n}function No(e,t,n){if(n.length===0)return t;const r=n[0];return n.length>1&&(t=No(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function fl(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const n={};for(const r in e)n[r]=e[r];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const n={};for(const r in e)n[r]=e[r];return n}return No(e,fl(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function dl(e,t){return t.map(n=>n.split(".")).map(n=>[n,Zg(e,n)]).filter(n=>n[1]!==void 0).reduce((n,r)=>No(n,r[1],r[0]),{})}function hl(e,t){return t.map(n=>n.split(".")).reduce((n,r)=>fl(n,r),e)}function Ys(e,{storage:t,serializer:n,key:r,debug:o,pick:i,omit:s,beforeHydrate:a,afterHydrate:l},c,d=!0){try{d&&(a==null||a(c));const f=t.getItem(r);if(f){const v=n.deserialize(f),y=i?dl(v,i):v,h=s?hl(y,s):y;e.$patch(h)}d&&(l==null||l(c))}catch(f){o&&console.error("[pinia-plugin-persistedstate]",f)}}function Zs(e,{storage:t,serializer:n,key:r,debug:o,pick:i,omit:s}){try{const a=i?dl(e,i):e,l=s?hl(a,s):a,c=n.serialize(l);t.setItem(r,c)}catch(a){o&&console.error("[pinia-plugin-persistedstate]",a)}}function Xg(e,t,n){const{pinia:r,store:o,options:{persist:i=n}}=e;if(!i)return;if(!(o.$id in r.state.value)){const l=r._s.get(o.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const a=(Array.isArray(i)?i:i===!0?[{}]:[i]).map(t);o.$hydrate=({runHooks:l=!0}={})=>{a.forEach(c=>{Ys(o,c,e,l)})},o.$persist=()=>{a.forEach(l=>{Zs(o.$state,l)})},a.forEach(l=>{Ys(o,l,e),o.$subscribe((c,d)=>Zs(d,l),{detached:!0})})}function Jg(e={}){return function(t){Xg(t,n=>({key:(e.key?e.key:r=>r)(n.key??t.store.$id),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:r=>JSON.stringify(r),deserialize:r=>Yg(r)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate,afterHydrate:n.afterHydrate,pick:n.pick,omit:n.omit}),e.auto??!1)}}var Qg=Jg();const Te=$g();Te.use(Qg);const ey=[{title:"系统维护",path:"系统维护",level:0,icon:"平台管理",carryData:!1,show:!0,childMenus:[{title:"登录日志",path:"/系统维护/登录日志",show:!0,level:1,icon:"菜单管理",carryData:!0,isRouter:!0},{title:"操作日志",path:"/系统维护/操作日志",show:!0,level:1,icon:"主菜单管理",carryData:!0,isRouter:!0}]}],hn=dn("menuState",{state:()=>({isRefreshMenus:!1,activeMenuStructureIds:[],cacheInputMenu:{},configMenu:{form:{},options:[],structure:[]},cacheStructures:[],rawMenus:[],menus:[],activeTopMenuPath:"",activeMenuPath:"",activeOldMenuPath:"",activeMainMenu:{},activeAsideMenu:{},activeMenuOpenPaths:[],systemKey:"",buttonTriggerType:"contentConfig",menuTriggerType:"open",permissionSideMenus:[],importLoading:!1,contentLoading:!1,asideMenuLoading:!1,asideMenus:[],platform:"browser",platName:"",childMenu:""}),actions:{setAsideMenuLoading(e){this.asideMenuLoading=e},setCacheStructures(e){var n,r;const t=(n=this.cacheStructures)==null?void 0:n.map(o=>o.key);e?t!=null&&t.includes(e==null?void 0:e.key)?this.cacheStructures=(r=this.cacheStructures)==null?void 0:r.map(o=>o.key===(e==null?void 0:e.key)?{...o,data:e==null?void 0:e.data}:o):this.cacheStructures.push(e):this.cacheStructures=[]},setChildMenu(e){this.childMenu=e},async setConfigMenu(e){this.configMenu=e},setActiveMainMenu(e){this.activeMainMenu=e},setContentLoading(e){this.contentLoading=e},setActiveAsideMenu(e){this.activeAsideMenu=e},setActiveTopMenuPath(e){this.activeTopMenuPath=e},setCacheInputMenu(e){this.cacheInputMenu=e},setIsRefreshMenus(e){this.isRefreshMenus=e},setButtonTriggerType(e){this.buttonTriggerType=e},setAsideMenus(e){this.asideMenus=e},setMenus(e){this.menus=e},setPlatName(e){this.platName=e},setImportLoading(e){this.importLoading=e},setPlatform(e){this.platform=e},getPlatform(){return this.platform},setMenuTriggerType(e){this.menuTriggerType=e},setSystemKey(e){this.systemKey=e},setActiveMenuPath(e){this.activeOldMenuPath=K(this.activeMenuPath),this.activeMenuPath=e},setActiveMenuOpenPaths(e){this.activeMenuOpenPaths=e},setRawMenus(e){this.rawMenus=e,this.permissionSideMenus=ey}}}),ct=(e,t)=>e==null?void 0:e.map(r=>{var o,i,s,a,l,c;if(Array.isArray(r)?r=r:r=[r],(o=r==null?void 0:r.filter(d=>!(d!=null&&d.id)||typeof(d==null?void 0:d.id)=="string"))!=null&&o.every(d=>typeof d!="object"||d===null))return r;if((i=r==null?void 0:r.filter(d=>!(d!=null&&d.id)||typeof(d==null?void 0:d.id)=="string"))!=null&&i.some(d=>Array.isArray(d)))return r;{let d=[];if(d.push(r==null?void 0:r.find(f=>(f==null?void 0:f.id)&&typeof(f==null?void 0:f.id)=="number")),Array.isArray(t==null?void 0:t[0])){const f=(s=r==null?void 0:r.filter(v=>!(v!=null&&v.id)||typeof(v==null?void 0:v.id)=="string"))==null?void 0:s[0];(a=eo(K(t==null?void 0:t[0])))==null||a.forEach(v=>{d.push(f==null?void 0:f[(v==null?void 0:v.prop)??(v==null?void 0:v.label)??v])})}else{const f=(l=r==null?void 0:r.filter(v=>!(v!=null&&v.id)||typeof(v==null?void 0:v.id)=="string"))==null?void 0:l[0];(c=eo(K(t)))==null||c.forEach(v=>{d.push(f==null?void 0:f[(v==null?void 0:v.prop)??(v==null?void 0:v.label)??v])})}return d}}),ty=e=>{try{return JSON.parse(e),!0}catch{return!1}},Xs=(e,t)=>$a(e,t),ht=e=>{let t=[];function n(o){Array.isArray(o)&&(o==null||o.forEach(i=>{Array.isArray(i)||(i=[i]),i==null||i.forEach(s=>{!(s!=null&&s.children)||s.children.length===0?t.push(s.prop):r(s.children)})}))}function r(o){o==null||o.forEach(i=>{!(i!=null&&i.children)||i.children.length===0?t.push(i.prop):r(i.children)})}return n(e),t},ny=(e,t,n)=>{var o;let r=(o=K(e))==null?void 0:o.map(i=>(i=i.filter(s=>!(s!=null&&s.id)),i));return r=r==null?void 0:r.map(i=>{var s;return i=(s=i.map((a,l)=>{let c={};if(n!=null&&n.find(d=>d===t[l]))return c[t[l]]=a,c}))==null?void 0:s.filter(a=>a),i}),r},ry=(e,t)=>{var s,a;const n=K(e),r=(s=n==null?void 0:n.find(l=>(l==null?void 0:l.key)==="header"))==null?void 0:s.contents,o=(a=n==null?void 0:n.find(l=>(l==null?void 0:l.key)==="tableContents"))==null?void 0:a.contents;return ny(o,ht(r).slice(0,ht(r).length-1),t)},oy=async e=>{var n,r,o,i;let t="";if((r=(n=K(e))==null?void 0:n.split("/"))==null||r.forEach((s,a)=>{var l,c;a!==((c=(l=K(e))==null?void 0:l.split("/"))==null?void 0:c.length)-1&&(t=t===""?t+s:t+"/"+s)}),t!==""){let s="";const a=await It(t,sessionStorage.getItem("systemKey"),"");(i=(o=a==null?void 0:a[0])==null?void 0:o.compData)==null||i.forEach(l=>{var c;(l==null?void 0:l.key)==="tableContents"&&((c=l==null?void 0:l.contents)==null||c.forEach((d,f)=>{if(f===0){let v=d==null?void 0:d.filter(y=>!(y!=null&&y.id));s=t+"/"+(v==null?void 0:v[0])}}))}),await Ml(s,e)}},iy=e=>{var o,i,s,a;const t=e;let n=[];t.compData=(o=t.compData)==null?void 0:o.filter(l=>(l==null?void 0:l.key)!=="tableContents"&&(l==null?void 0:l.key)!=="tableIndex");const r=(s=(i=K(t.compData))==null?void 0:i.find(l=>(l==null?void 0:l.key)==="tableIndexColumn"))==null?void 0:s.contents;return(a=K(t.compData))==null||a.forEach(l=>{if((l==null?void 0:l.key)!=="tableIndexColumn"&&(l==null?void 0:l.key)!=="header")n.push(l);else if((l==null?void 0:l.key)==="header"){let c=l.contents;r&&(c!=null&&c.every(d=>Array.isArray(d))?c==null||c[0].unshift({label:r}):c.unshift({label:r})),n.push({key:"header",contents:c})}}),t.compData=n,t},sy=e=>{var i,s,a,l,c;const t=(i=e.compData)==null?void 0:i.filter(d=>(d==null?void 0:d.key)==="tableContents"||(d==null?void 0:d.key)==="tableIndex"),n=(a=(s=t==null?void 0:t.find(d=>(d==null?void 0:d.key)==="tableIndex"))==null?void 0:s.contents)==null?void 0:a.map(d=>d.label),r=(l=t==null?void 0:t.find(d=>(d==null?void 0:d.key)==="tableContents"))==null?void 0:l.contents;let o=[];return(n==null?void 0:n.length)>0&&(r!=null&&r.every(d=>Array.isArray(d)))?o=n==null?void 0:n.map((d,f)=>r[f]?[d,...r[f]]:[d]):Array.isArray(r==null?void 0:r[0])&&((c=r==null?void 0:r[0])!=null&&c.every(d=>Array.isArray(d)))?o=r==null?void 0:r[0]:Array.isArray(r==null?void 0:r[0])?o=r:o.push(r),o},ay=e=>{const t=[];function n(r){!r||r.length===0||(t.push(r==null?void 0:r.map(o=>({label:o.label}))),r==null||r.forEach(o=>{o!=null&&o.children&&(o==null?void 0:o.children.length)>0&&n(o==null?void 0:o.children)}))}return n(e),t},uy=e=>{const t=[];function n(r,o=[]){!r||r.length===0||(t.push({key:o==null?void 0:o.filter(i=>!Array.isArray(i)),value:r}),r==null||r.forEach(i=>{i!=null&&i.some(s=>Array.isArray(s))&&n(i.find(s=>Array.isArray(s)),i)}))}return n(e),t},ly=e=>{const t=[];function n(r){!r||r.length===0||(t.push(r==null?void 0:r.map(o=>o==null?void 0:o.filter(i=>!Array.isArray(i)))),r==null||r.forEach(o=>{o!=null&&o.some(i=>Array.isArray(i))&&n(o.find(i=>Array.isArray(i)))}))}return n(e),t},cy=e=>{const t=[];function n(r){var o;!r||r.length===0||(r!=null&&r.every(i=>!Array.isArray(i))?t.push(r):(t.push((o=r==null?void 0:r.map(i=>i==null?void 0:i.filter(s=>!Array.isArray(s))))==null?void 0:o[0]),r==null||r.forEach(i=>{i!=null&&i.some(s=>Array.isArray(s))&&n(i.find(s=>Array.isArray(s)))})))}return n(e),t},fy=(e,t)=>{let n;function r(o,i,s=1){var l;if(!o||o.length===0)return;const a=(l=K(i))==null?void 0:l.map(c=>c==null?void 0:c.filter(d=>!Array.isArray(d)));return a!=null&&a.find(c=>Xs(c,o==null?void 0:o.key))?(i==null||i.forEach(c=>{!r(o,c.find(f=>Array.isArray(f)))&&Xs(c.filter(f=>!Array.isArray(f)),o==null?void 0:o.key)&&(n={type:s,contents:c.filter(f=>!Array.isArray(f))})}),!0):!1}return r(e,t,0),n},Js=(e,t)=>{function n(r,o){return!r||r.length===0||r==null?void 0:r.map((s,a)=>{var c,d;let l=s;return l.unshift((c=o==null?void 0:o[a])==null?void 0:c.label),l.some(f=>Array.isArray(f))&&(l[l.length-1]=n(l.find(f=>Array.isArray(f)),(d=o==null?void 0:o[a])==null?void 0:d.children)),l})}return n(e,t)},dy=e=>{var n,r,o,i,s,a,l,c,d,f,v,y,h,m,g,E,w,T,D,B,b,S,V,C,A;const t=e;if((e==null?void 0:e.comp)==="Table"){if((o=(r=(n=e.compData)==null?void 0:n.find(_=>(_==null?void 0:_.key)==="tableIndex"))==null?void 0:r.contents)!=null&&o.every(_=>!(_!=null&&_.children))||!((i=e.compData)!=null&&i.find(_=>(_==null?void 0:_.key)==="tableIndex")))return((l=(a=(s=t.compData)==null?void 0:s.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:a.contents)==null?void 0:l.length)===1&&((v=(f=(d=(c=t.compData)==null?void 0:c.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:d.contents)==null?void 0:f[0])!=null&&v.every(_=>Array.isArray(_)))?(t.compData=(y=t.compData)==null?void 0:y.map(_=>{var O;return(_==null?void 0:_.key)==="tableContents"&&(_.contents=(O=_.contents)==null?void 0:O[0]),_}),[t]):[t];{let _=[];const O=t.compData,$=(h=K(O))==null?void 0:h.find(L=>(L==null?void 0:L.key)==="tableIndexColumn"),x=(m=K(O))==null?void 0:m.find(L=>(L==null?void 0:L.key)==="extraButton"),M=(g=K(O))==null?void 0:g.find(L=>(L==null?void 0:L.key)==="rowButton"),N=cy((w=(E=K(O))==null?void 0:E.find(L=>(L==null?void 0:L.key)==="header"))==null?void 0:w.contents),R=(T=K(O))==null?void 0:T.find(L=>(L==null?void 0:L.key)==="tableIndex"),j=ly((B=(D=K(O))==null?void 0:D.find(L=>(L==null?void 0:L.key)==="tableContents"))==null?void 0:B.contents),z=Js((S=(b=K(O))==null?void 0:b.find(L=>(L==null?void 0:L.key)==="tableContents"))==null?void 0:S.contents,R==null?void 0:R.contents),Z=uy(Js((C=(V=K(O))==null?void 0:V.find(L=>(L==null?void 0:L.key)==="tableContents"))==null?void 0:C.contents,R==null?void 0:R.contents));if(R)return(A=ay(R.contents))==null||A.forEach((L,q)=>{var le;let re=[];re.push({key:"tableIndex",contents:L}),re.push($),re.push(x),re.push(M),re.push({key:"tableContents",contents:j[q]}),re.push({key:"header",contents:N!=null&&N[q]?[N==null?void 0:N[q]]:[N==null?void 0:N[0]]}),_.push({comp:"Table",compData:re,name:"",parentTableContents:((le=fy(Z[q],z))==null?void 0:le.contents)??""})}),_}}else return[t]},Pt=(e,t)=>{let n={};return Array.isArray(e)?e==null||e.forEach((r,o)=>{t!=null&&t[o]&&(n[t[o]]=r)}):[e].forEach((r,o)=>{n[t[o]]=r}),n},hy=e=>{var n,r;let t="";return(r=(n=K(e))==null?void 0:n.split("/"))==null||r.forEach((o,i)=>{var s,a;i<((a=(s=K(e))==null?void 0:s.split("/"))==null?void 0:a.length)-1&&(t=t===""?t+o:t+"/"+o)}),t},py=async e=>{const t=K(e);let n=[],r=[];t==null||t.forEach(o=>{!(r!=null&&r.find(i=>(i==null?void 0:i.parentKey)===(o==null?void 0:o.parentKey)))&&(o==null?void 0:o.parentKey)!==""&&r.push(o)}),r=r==null?void 0:r.map(o=>{var i;return o.content=(i=o.content)==null?void 0:i.map(s=>{var a;return s.key={pageKey:(o==null?void 0:o.parentKey)??"",systemKey:((a=s.key)==null?void 0:a.systemKey)??"",version:1,type:"subStructure"},s}),o.content}),(r==null?void 0:r.length)>0&&(n=r==null?void 0:r.map(async o=>{let i;return(o==null?void 0:o.length)>0&&(i=await p.batchAddInsofDataApi({dataList:o})),i})),await Promise.all(n)};function pl(e,t,n,r="children"){var o;for(const i of e){if(i[t]===n)return i;if(i[r]&&((o=i[r])==null?void 0:o.length)>0){const s=pl(i[r],t,n);if(s)return s}}return null}function gy(){const e=new Date,t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),o=String(e.getHours()).padStart(2,"0"),i=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${n}-${r} ${o}:${i}:${s}`}function yy(e,t){const n=t.split("/");let r=e,o=null;for(let i of n){const s=r.find(a=>a.title===i);if(!s)return null;o||(o=s),r=s.children??[]}return o}const vy=e=>{var n;const t=e;return t.children=(n=t.children)==null?void 0:n.map(r=>{var o;return(o=r==null?void 0:r.title)!=null&&o.children?r==null?void 0:r.title:r}),t},my=e=>{var t,n,r;return Array.isArray(e==null?void 0:e.title)&&((t=e==null?void 0:e.title)==null?void 0:t.length)===((r=(n=e==null?void 0:e.title)==null?void 0:n.filter(o=>o.title))==null?void 0:r.length)?e==null?void 0:e.title:Array.isArray(e==null?void 0:e.children)?vy(e):e},gl=(e,t)=>{const n=t,r=[];e==null||e.forEach(i=>{Array.isArray(i)?r.push({children:gl(i,[])}):r.push({title:i})});let o=r.reduce((i,s)=>(Object.entries(s).forEach(([a,l])=>{i[a]===void 0?l!=null&&l.title?i[a]=[l]:i[a]=l:(Array.isArray(i[a])||(i[a]=[{title:i[a]}]),l!=null&&l.title||Array.isArray(l)?i[a].push(l):i[a].push({title:l}))}),i),{});return o=my(K(o)),n.push(o),Array.isArray(n)&&(n==null?void 0:n.length)>1?n:n==null?void 0:n[0]},Ey=e=>{let t=[],n=[];return e==null||e.forEach(r=>{t=gl(r,n)}),t},pn=dn("loginState",{state:()=>({superAdminInfo:{},cryptoInfo:{publicKey:"",privateKey:""},loginUserInfo:{},structureData:[],isStructureExist:!1,systemKey:"",systemInfo:null}),actions:{setSystemInfo(e){this.systemInfo=e},setSystemKey(e){this.systemKey=e},setSuperAdminInfo(e){this.superAdminInfo=e},setLoginUserInfo(e){this.loginUserInfo=e},setStructureData(e){this.structureData=e},setIsStructureExist(e){this.isStructureExist=e},async getModelSecretAsync(e){var n,r,o,i,s,a,l,c,d,f,v,y,h;const t=await p.getInsofDataApi({key:{systemKey:e?e.systemKey:sessionStorage.getItem("systemKey"),pageKey:"secret",type:"system"}});return((n=t==null?void 0:t.data)==null?void 0:n.code)===200&&(r=t==null?void 0:t.data)!=null&&r.result&&Array.isArray((o=t==null?void 0:t.data)==null?void 0:o.result)&&((s=(i=t==null?void 0:t.data)==null?void 0:i.result)==null?void 0:s.length)>0&&(this.cryptoInfo.publicKey=(d=(c=(l=(a=t.data)==null?void 0:a.result[0])==null?void 0:l.value)==null?void 0:c.cryptoInfo)==null?void 0:d.publicKey,this.cryptoInfo.privateKey=(h=(y=(v=(f=t.data)==null?void 0:f.result[0])==null?void 0:v.value)==null?void 0:y.cryptoInfo)==null?void 0:h.privateKey),{publicKey:this.cryptoInfo.publicKey,privateKey:this.cryptoInfo.privateKey}},async setLogRecordAsync(e,t,n="operate"){var r,o,i,s,a;try{const l=await p.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"/log",type:"system",logType:n},value:{module:t,timeStamp:gy(),account:((r=this.loginUserInfo)==null?void 0:r.account)??((o=this.loginUserInfo)==null?void 0:o.账号),userName:((i=this.loginUserInfo)==null?void 0:i.userName)??((s=this.loginUserInfo)==null?void 0:s.姓名),detail:{...e}}});return((a=l==null?void 0:l.data)==null?void 0:a.code)===200}catch(l){p.ElMessage.error(l)}}},persist:[{key:"loginState",storage:localStorage,pick:["superAdminInfo"]}]}),Ro=dn("authorityState",{state:()=>({routerPageStructures:[]}),actions:{setRouterPageStructure(e){this.routerPageStructures=e}}}),ir=dn("modelComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],systemPath:"",freshContent:!1,routeToChildPath:"",cacheUpdatingData:null,tableViewContents:[],activeItemIndex:-1}),actions:{setItemData(e){this.itemData=e},setTableViewContents(e){this.tableViewContents=e},setCacheUpdatingData(e){this.cacheUpdatingData=e},setFreshContent(e){this.freshContent=e},setRouteToChildPath(e){this.routeToChildPath=e},setSubmitCurStructure(e){this.isSubmitCurStructure=e},setCurStructureCompIds(e){this.curStructureCompIds=e},setRefreshCurStructure(e){this.isRefreshCurStructure=e},setOriginalData(e){this.originalData=e},setExtraContents(e){this.extraContents=e},setNodeDev(e){this.nodeDev=e},setIsEdit(e){this.isEdit=e},setSystemPath(e){this.systemPath=e},setActiveItemIndex(e){this.activeItemIndex=e}}}),by=hn(Te),{activeMenuPath:st}=Re(by),yl=pn(Te),{structureData:_y,loginUserInfo:tm}=Re(yl),Sy=Ro(Te),{routerPageStructures:Ty}=Re(Sy),Yr=ir(Te),Ay=u.ref([{label:"角色名称",value:"",name:"roleName"}]),wy=u.ref([{label:"查询"},{label:"重置"}]),Qs=u.reactive({isFilter:!1,filterForm:{}}),Dy=u.ref(!1),Cy=e=>{Qs.isFilter=!0,Qs.filterForm=e},vl=u.ref([]),ml=u.ref([]),El=u.ref(""),Iy=u.computed(()=>{var t,n,r,o,i;const e=(t=Ty.value)==null?void 0:t.find(s=>{var a;return((a=s==null?void 0:s.comp)==null?void 0:a.toUpperCase())==="TABLE"});if(e){El.value=e.name,ml.value=(o=(r=(n=e==null?void 0:e.compData)==null?void 0:n.find(a=>(a==null?void 0:a.key)==="header"))==null?void 0:r.contents)==null?void 0:o.filter(a=>(a==null?void 0:a.label)!=="操作");const s=(i=e==null?void 0:e.compData)==null?void 0:i.map(a=>{var l;if((a==null?void 0:a.key)==="rowButton"){let c=[];return Jt.value?c=[...a==null?void 0:a.contents,{label:"授权"}]:c=a==null?void 0:a.contents,{...a,contents:c}}return(a==null?void 0:a.key)==="header"?{...a,contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(c=>{var d,f;return{...c,isTableColHidden:(d=c==null?void 0:c.prop)==null?void 0:d.includes("授权"),isFormColHidden:(f=c==null?void 0:c.prop)==null?void 0:f.includes("授权")}})}:a});return Tl(s),s}return[]}),Oy=e=>{Uo(e.singleContent,e.buttonName,ar.value,e==null?void 0:e.selectItems)},Tt=u.ref({}),Po=u.ref(),Xt=async(e,t,n)=>{var r,o;try{const i=await e(t);return((r=i==null?void 0:i.data)==null?void 0:r.code)===200?(n!=="查询"&&await yl.setLogRecordAsync({type:n,data:t},st.value),Yr.setRefreshCurStructure(!0),i.data.result||((o=i==null?void 0:i.data)==null?void 0:o.code)===200):null}catch(i){p.ElMessage.error(i)}finally{Yr.setCacheUpdatingData(null)}},bl=(e,t)=>{const n=[];for(const r of e)t!=null&&t.has(r.path)&&n.push(r),r.children&&n.push(...bl(r.children,t));return n},ky=(e,t)=>{var n,r;try{const o=new Map(e==null?void 0:e.map(a=>[a.path,a.checkedButtons])),i=bl(t,o),s=(n=i==null?void 0:i.filter(a=>{var l,c;return((l=a==null?void 0:a.checkedButtons)==null?void 0:l.length)===((c=a==null?void 0:a.renderButtons)==null?void 0:c.length)}))==null?void 0:n.map(a=>a==null?void 0:a.path);(r=Po.value)==null||r.setCheckedKeys(s)}catch{throw new Error("数据显示处理失败")}},xy=(e,t)=>{const n=new Map(t==null?void 0:t.map(o=>[o.path,o.checkedButtons]));function r(o){var s,a;const i=(s=o==null?void 0:o.path)!=null&&s.startsWith("/")?(a=o==null?void 0:o.path)==null?void 0:a.substring(1):o==null?void 0:o.path;n.has(i)&&(o.checkedButtons=n.get(i)),o.children&&o.children.length>0&&o.children.forEach(r)}e.forEach(r)},_l=e=>e==null?void 0:e.map(t=>{var r;const n={...t,checkedButtons:[]};return n.children&&((r=n.children)==null?void 0:r.length)>0&&(n.children=_l(n.children)),n}),Bo=e=>{for(const t in e)if(Array.isArray(e[t]))return t;return""},Sl=e=>{const t=[];let n=0;for(;n<e.length;)if(typeof e[n]=="string"){const r={title:e[n]};n+1<e.length&&Array.isArray(e[n+1])?(r.children=Sl(e[n+1]),n+=2):n+=1,t.push(r)}return t},Vo=e=>{const t=[];let n=0;for(;n<(e==null?void 0:e.length);){const r={title:e==null?void 0:e[n]};n+1<(e==null?void 0:e.length)&&Array.isArray(e==null?void 0:e[n+1])?(r.children=Sl(e==null?void 0:e[n+1]),n+=2):n+=1,t.push(r)}return t},sr=(e,t="",n=new Map)=>e==null?void 0:e.map(r=>{const o=t?`${t}/${r.title}`:r.title;if(n.has(o))return n.get(o);const i={...r,path:o};return r.children&&r.children.length>0&&(i.children=sr(r.children,o,n)),n.set(o,i),i}),Mo=(e,t)=>e.reduce((n,r)=>{const o=r[t];return n[o]||(n[o]=[]),n[o].push(r),n},{}),Fo=e=>{const t=[];function n(r,o){!r.children||r.children.length===0?t.push({...r,parentPath:o||""}):r.children.forEach(i=>n(i,r.path||o))}return e.forEach(r=>n(r,"")),t},Lo=e=>Object.entries(e).map(([n,r])=>({path:n,checkedButtons:r==null?void 0:r.map(o=>o==null?void 0:o.path)})),Ny=e=>Object.prototype.toString.call(e)==="[object Object]"&&e!==null,Ry=(e,t)=>{const n={},r=Array.isArray(e)?e==null?void 0:e.filter(o=>{var i;return!(Ny(o)&&((i=Object.keys(o))!=null&&i.includes("id")))}):null;return r&&(r==null||r.forEach((o,i)=>{var s;n[(s=t[i])==null?void 0:s.prop]=o})),n},At=u.ref(""),Tl=e=>{var i;const t=e==null?void 0:e.find(s=>(s==null?void 0:s.key)==="tableContents"),n=e==null?void 0:e.find(s=>(s==null?void 0:s.key)==="header");if(!t||!n)return"";const r=(i=t==null?void 0:t.contents)==null?void 0:i[0],o=Ry(r,n==null?void 0:n.contents);At.value=Bo(o)},Py=e=>{if(!Array.isArray(e))return!1;for(let t of e){if(typeof t!="object"||t===null||typeof t.path!="string"||!Array.isArray(t.checkedButtons))return!1;for(let n of t.checkedButtons)if(typeof n!="string")return!1}return!0},By=e=>{const t=[];for(const n in e)e[n].forEach(o=>{var l,c;const i=(l=o.path)!=null&&l.startsWith("/")?(c=o.path)==null?void 0:c.substring(1):o.path,s=i==null?void 0:i.split("/");let a=t;s.forEach(d=>{let f=a.find(v=>v.title===d);f||(f={title:d,path:o.path,children:[]},a.push(f)),a=f.children})});return t},Vy=e=>{const t={};return e.forEach(n=>{const{path:r,checkedButtons:o}=n,i=r,s=o.map(a=>({title:a.split("/").pop()||"",path:a,parentPath:i}));t[i]=s}),t},Al=e=>{let t=[];for(const n of e){let r=[n.title];if(n.children&&Array.isArray(n.children)){let o=Al(n.children);o.length>0&&r.push(o)}t.push(r)}return t},My=e=>{const t=[];for(const n of e){if(!Array.isArray(n)||n.length!==2)continue;const[r,o]=n,i=wl(o),s=t.indexOf(r);s===-1?t.push(r,i):t[s+1]=Dl(t[s+1],i)}return t},wl=e=>{const t=[];for(const n of e)if(Array.isArray(n)){if(n.length===1&&typeof n[0]=="string")t.push(n[0]);else if(n.length===2&&typeof n[0]=="string"){const[r,o]=n;t.push(r,wl(o))}}return t},Dl=(e,t)=>{const n=[...e];let r=0;for(;r<t.length;){const o=t[r];if(typeof o=="string"){const i=n.indexOf(o);i===-1?n.push(o,t[r+1]):n[i+1]=Dl(n[i+1],t[r+1]),r+=2}else n.push(o),r+=1}return n},Fy=async(e,t)=>{var n;if(Tt.value=K(t),Yr.setRefreshCurStructure(!1),(n=wt.value)==null||n.splice(0),e==="授权"){if(!At.value){p.ElMessage.error("请正确定义角色权限");return}const r=Py(Tt.value[At.value]);let o;if(r)o=Tt.value[At.value];else{const i=Vo(Tt.value[At.value]),s=sr(i),a=Fo(s),l=Mo(a,"parentPath");o=Lo(l)}if(!o||!Array.isArray(o)){p.ElMessage.error("权限数据处理出错了,请联系管理员");return}pt.title=`【${t.角色名称}】授权`,pt.show=!0,await u.nextTick(),xy(Bt.value,o),ky(o,Bt.value)}},Ly=()=>{pt.show=!1},Hn=u.ref(),$y=async e=>{const t=await Xt(p.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(r=>{var o;return{id:r.id,tableData:(o=r==null?void 0:r.value)==null?void 0:o.tableData}});return n==null?void 0:n.map(r=>{var o;if(Array.isArray(r==null?void 0:r.tableData)){let i={id:r.id};return(o=r==null?void 0:r.tableData)==null||o.forEach((s,a)=>{i[`a${a}`]=s}),i}else return{...r.tableData,id:r.id}})},$o=(e,t)=>{let n={};return t==null||t.forEach(r=>{r.label&&e&&(n[r.label]=(e==null?void 0:e[r==null?void 0:r.prop])??null)}),n},Uo=(e,t,n,r)=>{var s,a,l,c;const o=K(e);o!=null&&o.id&&delete o.id;const i=$o(o,ml.value);if(t==="新增")Xt(p.createInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:(s=st.value)!=null&&s.startsWith("/")?(a=st.value)==null?void 0:a.substring(1):st.value,tableId:n},value:{tableData:i}},t).then(d=>{Hn.value={...e,newId:d}});else if(t==="编辑")Xt(p.updateInsofDataApi,{id:e.id,key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:(l=st.value)!=null&&l.startsWith("/")?(c=st.value)==null?void 0:c.substring(1):st.value,tableId:n},value:{tableData:i}},t).then(d=>{pt.show=!1});else if(t!=null&&t.includes("删除")){const d=t!=null&&t.includes("批量")?p.batchDeleteInsofDataApi:p.deleteInsofDataApi,f=t!=null&&t.includes("批量")?{ids:r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(v=>v==null?void 0:v.id):[]}:{id:e.id};Xt(d,f,t).then(v=>{t&&v&&p.ElMessage.success(t+"成功")})}},Cl=e=>{let t=[];return e==null||e.forEach(n=>{var r;if(n.checkedButtons&&((r=n.checkedButtons)==null?void 0:r.length)>0){const o={path:n.path,checkedButtons:n.checkedButtons};t=t.concat(o)}n.children&&(t=t.concat(Cl(n.children)))}),t},Uy=()=>{const e=Cl(Bt.value),t=Vy(e),n=By(t),r=Al(n),o=My(r);Hn.value={...Tt.value,[At.value]:o},u.nextTick(()=>{Uo(Hn.value,"编辑",ar.value)})},pt=u.reactive({show:!1,title:"角色授权",width:"50%",draggable:!0}),Ky=({isPenultimate:e},t)=>{var n,r;return console.log("isPenultimate",e,t),((r=(n=t==null?void 0:t.data)==null?void 0:n.renderButtons)==null?void 0:r.length)>0?"is-penultimate":""},ar=u.ref(0),Il=async e=>{var r,o,i,s,a;let t;const n=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:e!=null&&e.startsWith("/")?e==null?void 0:e.substring(1):e}});return((r=n==null?void 0:n.data)==null?void 0:r.code)===200&&(o=n==null?void 0:n.data)!=null&&o.result&&((i=n==null?void 0:n.data)==null?void 0:i.result.length)>0&&(t=(a=(s=n==null?void 0:n.data.result)==null?void 0:s[0])==null?void 0:a.id,ar.value=t),t},Bt=u.ref([]),Hy=u.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),jy=(e,t)=>{var n;e.checkedButtons=t?(n=e.renderButtons)==null?void 0:n.map(r=>r.path):[]},wt=u.ref([]),zy=(e,t)=>{var n,r,o;t.checkedButtons=e,((n=t.checkedButtons)==null?void 0:n.length)===((r=t.renderButtons)==null?void 0:r.length)?wt.value.push(t.path):(e==null?void 0:e.length)===0&&(wt.value=(o=wt.value)==null?void 0:o.filter(i=>i!==t.path))};u.watch(()=>wt.value.length,()=>{var e;(e=Po.value)==null||e.setCheckedKeys([...wt.value])});u.watch(()=>pt.show,e=>{e||(Bt.value=_l(Bt.value))});const Ol=u.computed(()=>{var n;const e=(n=K(_y.value))==null?void 0:n.filter(r=>{var o,i;return((i=(o=r==null?void 0:r.key)==null?void 0:o.pageKey)==null?void 0:i.toUpperCase())!=="MENU"});return[...e==null?void 0:e.map(r=>{var s,a,l,c,d,f,v,y;const o=/button/i;let i=(l=(a=(s=r==null?void 0:r.value)==null?void 0:s.pageData)==null?void 0:a.compData)==null?void 0:l.filter(h=>o.test(h==null?void 0:h.key));return i=Array.from(new Set(i==null?void 0:i.flatMap(h=>h.contents.map(m=>m.label)))),{path:(d=(c=r==null?void 0:r.key)==null?void 0:c.pageKey)!=null&&d.startsWith("/")?(v=(f=r==null?void 0:r.key)==null?void 0:f.pageKey)==null?void 0:v.substring(1):(y=r==null?void 0:r.key)==null?void 0:y.pageKey,buttons:i}}),...kl.value]}),kl=u.ref([]),qy=(e,t,n)=>{const o=[e==null?void 0:e.find(i=>(i==null?void 0:i.title)===t)].flatMap(i=>i==null?void 0:i.children);return o==null?void 0:o.map(i=>{var s,a;return{path:(s=i==null?void 0:i.path)!=null&&s.startsWith("/")?(a=i==null?void 0:i.path)==null?void 0:a.substring(1):i==null?void 0:i.path,buttons:n}})},ea=(e,t)=>{var n;if(e.carryData){if(e.path==="系统管理/个人中心"){const r=["基本信息","上传头像","签名","修改密码"];return r==null?void 0:r.map(o=>{var i,s;return{title:o,path:(i=e==null?void 0:e.path)!=null&&i.startsWith("/")?((s=e==null?void 0:e.path)==null?void 0:s.substring(1))+"/"+o:e.path+"/"+o}})}return(n=t==null?void 0:t.buttons)==null?void 0:n.map(r=>{var o,i;return{title:r,path:(o=e==null?void 0:e.path)!=null&&o.startsWith("/")?((i=e==null?void 0:e.path)==null?void 0:i.substring(1))+"/"+r:e.path+"/"+r}})}return[]},xl=(e,t)=>{if(Array.isArray(e))return e==null?void 0:e.map(n=>{var i,s;const r=(i=n==null?void 0:n.path)!=null&&i.startsWith("/")?(s=n==null?void 0:n.path)==null?void 0:s.substring(1):n==null?void 0:n.path,o=t==null?void 0:t.find(a=>(a==null?void 0:a.path)===r);return n.children&&n.children.length>0?{...n,renderButtons:ea(n,o),checkedButtons:[],children:xl(n.children,Ol.value)}:{...n,renderButtons:ea(n,o),checkedButtons:[]}})},Gy={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:vl.value,name:""}]}]},Wy=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:xl,addPathToTree:sr,authorizeDialog:pt,buttonValue:wy,changedRow:Hn,clickRow:Tt,clickRowButton:Fy,clickSubmitAuthority:Uy,closeAuthorizeDialog:Ly,compName:El,convertArrayToTree:Vo,convertIndexToLabel:$o,customNodeClass:Ky,getActivePageStructureId:Il,getAuthorityKey:Tl,getFirstArrayProperty:Bo,getLeafNodesRecursive:Fo,getPageDataAsync:$y,groupByField:Mo,handleAddSysMenusButtons:qy,handleItemDataChange:Oy,handleNodeBtnChange:zy,handleNodeCheckChange:jy,handleQueryChange:Cy,handleRowAuthorityRender:Lo,handleSubmitAsync:Xt,isPageDataExist:Dy,menuData:Bt,menusButtons:Hy,pageData:vl,pageDataFiltered:Iy,queryFormData:Ay,structureButtons:Ol,structureId:ar,submitTableAsyncByVerify:Uo,tempRolePageData:Gy,tempSysMenus:kl,treeRef:Po},Symbol.toStringTag,{value:"Module"}));var Yy="0123456789abcdefghijklmnopqrstuvwxyz";function Ge(e){return Yy.charAt(e)}function Zy(e,t){return e&t}function An(e,t){return e|t}function ta(e,t){return e^t}function na(e,t){return e&~t}function Xy(e){if(e==0)return-1;var t=0;return(e&65535)==0&&(e>>=16,t+=16),(e&255)==0&&(e>>=8,t+=8),(e&15)==0&&(e>>=4,t+=4),(e&3)==0&&(e>>=2,t+=2),(e&1)==0&&++t,t}function Jy(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nl="=";function jn(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=bt.charAt(n>>6)+bt.charAt(n&63);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=bt.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=bt.charAt(n>>2)+bt.charAt((n&3)<<4));(r.length&3)>0;)r+=Nl;return r}function ra(e){var t="",n,r=0,o=0;for(n=0;n<e.length&&e.charAt(n)!=Nl;++n){var i=bt.indexOf(e.charAt(n));i<0||(r==0?(t+=Ge(i>>2),o=i&3,r=1):r==1?(t+=Ge(o<<2|i>>4),o=i&15,r=2):r==2?(t+=Ge(o),t+=Ge(i>>2),o=i&3,r=3):(t+=Ge(o<<2|i>>4),t+=Ge(i&15),r=0))}return r==1&&(t+=Ge(o<<2)),t}var vt,Qy={decode:function(e){var t;if(vt===void 0){var n="0123456789ABCDEF",r=` \f
|
|
18
|
-
\r \u2028\u2029`;for(vt={},t=0;t<16;++t)vt[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)vt[n.charAt(t)]=t;for(t=0;t<r.length;++t)vt[r.charAt(t)]=-1}var o=[],i=0,s=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=vt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);i|=a,++s>=2?(o[o.length]=i,i=0,s=0):i<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return o}},ot,Zr={decode:function(e){var t;if(ot===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
|
|
19
|
-
\r \u2028\u2029`;for(ot=Object.create(null),t=0;t<64;++t)ot[n.charAt(t)]=t;for(ot["-"]=62,ot._=63,t=0;t<r.length;++t)ot[r.charAt(t)]=-1}var o=[],i=0,s=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=ot[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);i|=a,++s>=4?(o[o.length]=i>>16,o[o.length]=i>>8&255,o[o.length]=i&255,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:o[o.length]=i>>10;break;case 3:o[o.length]=i>>16,o[o.length]=i>>8&255;break}return o},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Zr.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return Zr.decode(e)}},mt=1e13,qt=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,n){var r=this.buf,o=r.length,i,s;for(i=0;i<o;++i)s=r[i]*t+n,s<mt?n=0:(n=0|s/mt,s-=n*mt),r[i]=s;n>0&&(r[i]=n)},e.prototype.sub=function(t){var n=this.buf,r=n.length,o,i;for(o=0;o<r;++o)i=n[o]-t,i<0?(i+=mt,t=1):t=0,n[o]=i;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,r=n[n.length-1].toString(),o=n.length-2;o>=0;--o)r+=(mt+n[o]).toString().substring(1);return r},e.prototype.valueOf=function(){for(var t=this.buf,n=0,r=t.length-1;r>=0;--r)n=n*mt+t[r];return n},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),Rl="…",ev=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,tv=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Dt(e,t){return e.length>t&&(e=e.substring(0,t)+Rl),e}var Tr=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,n,r){for(var o="",i=t;i<n;++i)if(o+=this.hexByte(this.get(i)),r!==!0)switch(i&15){case 7:o+=" ";break;case 15:o+=`
|
|
20
|
-
`;break;default:o+=" "}return o},e.prototype.isASCII=function(t,n){for(var r=t;r<n;++r){var o=this.get(r);if(o<32||o>176)return!1}return!0},e.prototype.parseStringISO=function(t,n){for(var r="",o=t;o<n;++o)r+=String.fromCharCode(this.get(o));return r},e.prototype.parseStringUTF=function(t,n){for(var r="",o=t;o<n;){var i=this.get(o++);i<128?r+=String.fromCharCode(i):i>191&&i<224?r+=String.fromCharCode((i&31)<<6|this.get(o++)&63):r+=String.fromCharCode((i&15)<<12|(this.get(o++)&63)<<6|this.get(o++)&63)}return r},e.prototype.parseStringBMP=function(t,n){for(var r="",o,i,s=t;s<n;)o=this.get(s++),i=this.get(s++),r+=String.fromCharCode(o<<8|i);return r},e.prototype.parseTime=function(t,n,r){var o=this.parseStringISO(t,n),i=(r?ev:tv).exec(o);return i?(r&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),o=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(o+=":"+i[5],i[6]&&(o+=":"+i[6],i[7]&&(o+="."+i[7]))),i[8]&&(o+=" UTC",i[8]!="Z"&&(o+=i[8],i[9]&&(o+=":"+i[9]))),o):"Unrecognized time: "+o},e.prototype.parseInteger=function(t,n){for(var r=this.get(t),o=r>127,i=o?255:0,s,a="";r==i&&++t<n;)r=this.get(t);if(s=n-t,s===0)return o?-1:0;if(s>4){for(a=r,s<<=3;((+a^i)&128)==0;)a=+a<<1,--s;a="("+s+` bit)
|
|
21
|
-
`}o&&(r=r-256);for(var l=new qt(r),c=t+1;c<n;++c)l.mulAdd(256,this.get(c));return a+l.toString()},e.prototype.parseBitString=function(t,n,r){for(var o=this.get(t),i=(n-t-1<<3)-o,s="("+i+` bit)
|
|
22
|
-
`,a="",l=t+1;l<n;++l){for(var c=this.get(l),d=l==n-1?o:0,f=7;f>=d;--f)a+=c>>f&1?"1":"0";if(a.length>r)return s+Dt(a,r)}return s+a},e.prototype.parseOctetString=function(t,n,r){if(this.isASCII(t,n))return Dt(this.parseStringISO(t,n),r);var o=n-t,i="("+o+` byte)
|
|
23
|
-
`;r/=2,o>r&&(n=t+r);for(var s=t;s<n;++s)i+=this.hexByte(this.get(s));return o>r&&(i+=Rl),i},e.prototype.parseOID=function(t,n,r){for(var o="",i=new qt,s=0,a=t;a<n;++a){var l=this.get(a);if(i.mulAdd(128,l&127),s+=7,!(l&128)){if(o==="")if(i=i.simplify(),i instanceof qt)i.sub(80),o="2."+i.toString();else{var c=i<80?i<40?0:1:2;o=c+"."+(i-c*40)}else o+="."+i.toString();if(o.length>r)return Dt(o,r);i=new qt,s=0}}return s>0&&(o+=".incomplete"),o},e}(),nv=function(){function e(t,n,r,o,i){if(!(o instanceof oa))throw new Error("Invalid tag value.");this.stream=t,this.header=n,this.length=r,this.tag=o,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var n=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+r,t);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+r,t);case 6:return this.stream.parseOID(n,n+r,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Dt(this.stream.parseStringUTF(n,n+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return Dt(this.stream.parseStringISO(n,n+r),t);case 30:return Dt(this.stream.parseStringBMP(n,n+r),t);case 23:case 24:return this.stream.parseTime(n,n+r,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var n=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
|
|
24
|
-
`,this.sub!==null){t+=" ";for(var r=0,o=this.sub.length;r<o;++r)n+=this.sub[r].toPrettyString(t)}return n},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var n=t.get(),r=n&127;if(r==n)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(r===0)return null;n=0;for(var o=0;o<r;++o)n=n*256+t.get();return n},e.prototype.getHexStringValue=function(){var t=this.toHexString(),n=this.header*2,r=this.length*2;return t.substr(n,r)},e.decode=function(t){var n;t instanceof Tr?n=t:n=new Tr(t,0);var r=new Tr(n),o=new oa(n),i=e.decodeLength(n),s=n.pos,a=s-r.pos,l=null,c=function(){var f=[];if(i!==null){for(var v=s+i;n.pos<v;)f[f.length]=e.decode(n);if(n.pos!=v)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var y=e.decode(n);if(y.tag.isEOC())break;f[f.length]=y}i=s-n.pos}catch(h){throw new Error("Exception while decoding undefined length content: "+h)}return f};if(o.tagConstructed)l=c();else if(o.isUniversal()&&(o.tagNumber==3||o.tagNumber==4))try{if(o.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var d=0;d<l.length;++d)if(l[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(i)}return new e(r,a,i,o,l)},e}(),oa=function(){function e(t){var n=t.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var r=new qt;do n=t.get(),r.mulAdd(128,n&127);while(n&128);this.tagNumber=r.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),nt,rv=0xdeadbeefcafe,ia=(rv&16777215)==15715070,_e=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],ov=(1<<26)/_e[_e.length-1],Y=function(){function e(t,n,r){t!=null&&(typeof t=="number"?this.fromNumber(t,n,r):n==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,n))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var n;if(t==16)n=4;else if(t==8)n=3;else if(t==2)n=1;else if(t==32)n=5;else if(t==4)n=2;else return this.toRadix(t);var r=(1<<n)-1,o,i=!1,s="",a=this.t,l=this.DB-a*this.DB%n;if(a-- >0)for(l<this.DB&&(o=this[a]>>l)>0&&(i=!0,s=Ge(o));a>=0;)l<n?(o=(this[a]&(1<<l)-1)<<n-l,o|=this[--a]>>(l+=this.DB-n)):(o=this[a]>>(l-=n)&r,l<=0&&(l+=this.DB,--a)),o>0&&(i=!0),i&&(s+=Ge(o));return i?s:"0"},e.prototype.negate=function(){var t=X();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var n=this.s-t.s;if(n!=0)return n;var r=this.t;if(n=r-t.t,n!=0)return this.s<0?-n:n;for(;--r>=0;)if((n=this[r]-t[r])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+wn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=X();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(t,n){var r;return t<256||n.isEven()?r=new sa(n):r=new aa(n),this.exp(t,r)},e.prototype.clone=function(){var t=X();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,n=[];n[0]=this.s;var r=this.DB-t*this.DB%8,o,i=0;if(t-- >0)for(r<this.DB&&(o=this[t]>>r)!=(this.s&this.DM)>>r&&(n[i++]=o|this.s<<this.DB-r);t>=0;)r<8?(o=(this[t]&(1<<r)-1)<<8-r,o|=this[--t]>>(r+=this.DB-8)):(o=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),(o&128)!=0&&(o|=-256),i==0&&(this.s&128)!=(o&128)&&++i,(i>0||o!=this.s)&&(n[i++]=o);return n},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var n=X();return this.bitwiseTo(t,Zy,n),n},e.prototype.or=function(t){var n=X();return this.bitwiseTo(t,An,n),n},e.prototype.xor=function(t){var n=X();return this.bitwiseTo(t,ta,n),n},e.prototype.andNot=function(t){var n=X();return this.bitwiseTo(t,na,n),n},e.prototype.not=function(){for(var t=X(),n=0;n<this.t;++n)t[n]=this.DM&~this[n];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var n=X();return t<0?this.rShiftTo(-t,n):this.lShiftTo(t,n),n},e.prototype.shiftRight=function(t){var n=X();return t<0?this.lShiftTo(-t,n):this.rShiftTo(t,n),n},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+Xy(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,n=this.s&this.DM,r=0;r<this.t;++r)t+=Jy(this[r]^n);return t},e.prototype.testBit=function(t){var n=Math.floor(t/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,An)},e.prototype.clearBit=function(t){return this.changeBit(t,na)},e.prototype.flipBit=function(t){return this.changeBit(t,ta)},e.prototype.add=function(t){var n=X();return this.addTo(t,n),n},e.prototype.subtract=function(t){var n=X();return this.subTo(t,n),n},e.prototype.multiply=function(t){var n=X();return this.multiplyTo(t,n),n},e.prototype.divide=function(t){var n=X();return this.divRemTo(t,n,null),n},e.prototype.remainder=function(t){var n=X();return this.divRemTo(t,null,n),n},e.prototype.divideAndRemainder=function(t){var n=X(),r=X();return this.divRemTo(t,n,r),[n,r]},e.prototype.modPow=function(t,n){var r=t.bitLength(),o,i=Ze(1),s;if(r<=0)return i;r<18?o=1:r<48?o=3:r<144?o=4:r<768?o=5:o=6,r<8?s=new sa(n):n.isEven()?s=new sv(n):s=new aa(n);var a=[],l=3,c=o-1,d=(1<<o)-1;if(a[1]=s.convert(this),o>1){var f=X();for(s.sqrTo(a[1],f);l<=d;)a[l]=X(),s.mulTo(f,a[l-2],a[l]),l+=2}var v=t.t-1,y,h=!0,m=X(),g;for(r=wn(t[v])-1;v>=0;){for(r>=c?y=t[v]>>r-c&d:(y=(t[v]&(1<<r+1)-1)<<c-r,v>0&&(y|=t[v-1]>>this.DB+r-c)),l=o;(y&1)==0;)y>>=1,--l;if((r-=l)<0&&(r+=this.DB,--v),h)a[y].copyTo(i),h=!1;else{for(;l>1;)s.sqrTo(i,m),s.sqrTo(m,i),l-=2;l>0?s.sqrTo(i,m):(g=i,i=m,m=g),s.mulTo(m,a[y],i)}for(;v>=0&&(t[v]&1<<r)==0;)s.sqrTo(i,m),g=i,i=m,m=g,--r<0&&(r=this.DB-1,--v)}return s.revert(i)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||t.signum()==0)return e.ZERO;for(var r=t.clone(),o=this.clone(),i=Ze(1),s=Ze(0),a=Ze(0),l=Ze(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),n?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(t,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;o.isEven();)o.rShiftTo(1,o),n?((!a.isEven()||!l.isEven())&&(a.addTo(this,a),l.subTo(t,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);r.compareTo(o)>=0?(r.subTo(o,r),n&&i.subTo(a,i),s.subTo(l,s)):(o.subTo(r,o),n&&a.subTo(i,a),l.subTo(s,l))}if(o.compareTo(e.ONE)!=0)return e.ZERO;if(l.compareTo(t)>=0)return l.subtract(t);if(l.signum()<0)l.addTo(t,l);else return l;return l.signum()<0?l.add(t):l},e.prototype.pow=function(t){return this.exp(t,new iv)},e.prototype.gcd=function(t){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var o=n;n=r,r=o}var i=n.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)return n;for(i<s&&(s=i),s>0&&(n.rShiftTo(s,n),r.rShiftTo(s,r));n.signum()>0;)(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r));return s>0&&r.lShiftTo(s,r),r},e.prototype.isProbablePrime=function(t){var n,r=this.abs();if(r.t==1&&r[0]<=_e[_e.length-1]){for(n=0;n<_e.length;++n)if(r[0]==_e[n])return!0;return!1}if(r.isEven())return!1;for(n=1;n<_e.length;){for(var o=_e[n],i=n+1;i<_e.length&&o<ov;)o*=_e[i++];for(o=r.modInt(o);n<i;)if(o%_e[n++]==0)return!1}return r.millerRabin(t)},e.prototype.copyTo=function(t){for(var n=this.t-1;n>=0;--n)t[n]=this[n];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,n){var r;if(n==16)r=4;else if(n==8)r=3;else if(n==256)r=8;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else{this.fromRadix(t,n);return}this.t=0,this.s=0;for(var o=t.length,i=!1,s=0;--o>=0;){var a=r==8?+t[o]&255:la(t,o);if(a<0){t.charAt(o)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=a:s+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,s+=r,s>=this.DB&&(s-=this.DB)}r==8&&(+t[0]&128)!=0&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,n){var r;for(r=this.t-1;r>=0;--r)n[r+t]=this[r];for(r=t-1;r>=0;--r)n[r]=0;n.t=this.t+t,n.s=this.s},e.prototype.drShiftTo=function(t,n){for(var r=t;r<this.t;++r)n[r-t]=this[r];n.t=Math.max(this.t-t,0),n.s=this.s},e.prototype.lShiftTo=function(t,n){for(var r=t%this.DB,o=this.DB-r,i=(1<<o)-1,s=Math.floor(t/this.DB),a=this.s<<r&this.DM,l=this.t-1;l>=0;--l)n[l+s+1]=this[l]>>o|a,a=(this[l]&i)<<r;for(var l=s-1;l>=0;--l)n[l]=0;n[s]=a,n.t=this.t+s+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(t,n){n.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){n.t=0;return}var o=t%this.DB,i=this.DB-o,s=(1<<o)-1;n[0]=this[r]>>o;for(var a=r+1;a<this.t;++a)n[a-r-1]|=(this[a]&s)<<i,n[a-r]=this[a]>>o;o>0&&(n[this.t-r-1]|=(this.s&s)<<i),n.t=this.t-r,n.clamp()},e.prototype.subTo=function(t,n){for(var r=0,o=0,i=Math.min(t.t,this.t);r<i;)o+=this[r]-t[r],n[r++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o-=t.s;r<this.t;)o+=this[r],n[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<t.t;)o-=t[r],n[r++]=o&this.DM,o>>=this.DB;o-=t.s}n.s=o<0?-1:0,o<-1?n[r++]=this.DV+o:o>0&&(n[r++]=o),n.t=r,n.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),o=t.abs(),i=r.t;for(n.t=i+o.t;--i>=0;)n[i]=0;for(i=0;i<o.t;++i)n[i+r.t]=r.am(0,o[i],n,i,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(t){for(var n=this.abs(),r=t.t=2*n.t;--r>=0;)t[r]=0;for(r=0;r<n.t-1;++r){var o=n.am(r,n[r],t,2*r,0,1);(t[r+n.t]+=n.am(r+1,2*n[r],t,2*r+1,o,n.t-r-1))>=n.DV&&(t[r+n.t]-=n.DV,t[r+n.t+1]=1)}t.t>0&&(t[t.t-1]+=n.am(r,n[r],t,2*r,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,n,r){var o=t.abs();if(!(o.t<=0)){var i=this.abs();if(i.t<o.t){n!=null&&n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=X());var s=X(),a=this.s,l=t.s,c=this.DB-wn(o[o.t-1]);c>0?(o.lShiftTo(c,s),i.lShiftTo(c,r)):(o.copyTo(s),i.copyTo(r));var d=s.t,f=s[d-1];if(f!=0){var v=f*(1<<this.F1)+(d>1?s[d-2]>>this.F2:0),y=this.FV/v,h=(1<<this.F1)/v,m=1<<this.F2,g=r.t,E=g-d,w=n??X();for(s.dlShiftTo(E,w),r.compareTo(w)>=0&&(r[r.t++]=1,r.subTo(w,r)),e.ONE.dlShiftTo(d,w),w.subTo(s,s);s.t<d;)s[s.t++]=0;for(;--E>=0;){var T=r[--g]==f?this.DM:Math.floor(r[g]*y+(r[g-1]+m)*h);if((r[g]+=s.am(0,T,r,E,0,d))<T)for(s.dlShiftTo(E,w),r.subTo(w,r);r[g]<--T;)r.subTo(w,r)}n!=null&&(r.drShiftTo(d,n),a!=l&&e.ZERO.subTo(n,n)),r.t=d,r.clamp(),c>0&&r.rShiftTo(c,r),a<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var n=t&3;return n=n*(2-(t&15)*n)&15,n=n*(2-(t&255)*n)&255,n=n*(2-((t&65535)*n&65535))&65535,n=n*(2-t*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=X(),o=X(),i=n.convert(this),s=wn(t)-1;for(i.copyTo(r);--s>=0;)if(n.sqrTo(r,o),(t&1<<s)>0)n.mulTo(o,i,r);else{var a=r;r=o,o=a}return n.revert(r)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var n=this.chunkSize(t),r=Math.pow(t,n),o=Ze(r),i=X(),s=X(),a="";for(this.divRemTo(o,i,s);i.signum()>0;)a=(r+s.intValue()).toString(t).substr(1)+a,i.divRemTo(o,i,s);return s.intValue().toString(t)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),n==null&&(n=10);for(var r=this.chunkSize(n),o=Math.pow(n,r),i=!1,s=0,a=0,l=0;l<t.length;++l){var c=la(t,l);if(c<0){t.charAt(l)=="-"&&this.signum()==0&&(i=!0);continue}a=n*a+c,++s>=r&&(this.dMultiply(o),this.dAddOffset(a,0),s=0,a=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(a,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if(typeof n=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),An,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var o=[],i=t&7;o.length=(t>>3)+1,n.nextBytes(o),i>0?o[0]&=(1<<i)-1:o[0]=0,this.fromString(o,256)}},e.prototype.bitwiseTo=function(t,n,r){var o,i,s=Math.min(t.t,this.t);for(o=0;o<s;++o)r[o]=n(this[o],t[o]);if(t.t<this.t){for(i=t.s&this.DM,o=s;o<this.t;++o)r[o]=n(this[o],i);r.t=this.t}else{for(i=this.s&this.DM,o=s;o<t.t;++o)r[o]=n(i,t[o]);r.t=t.t}r.s=n(this.s,t.s),r.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(t,n){for(var r=0,o=0,i=Math.min(t.t,this.t);r<i;)o+=this[r]+t[r],n[r++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o+=t.s;r<this.t;)o+=this[r],n[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<t.t;)o+=t[r],n[r++]=o&this.DM,o>>=this.DB;o+=t.s}n.s=o<0?-1:0,o>0?n[r++]=o:o<-1&&(n[r++]=this.DV+o),n.t=r,n.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,n){if(t!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=t;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(t,n,r){var o=Math.min(this.t+t.t,n);for(r.s=0,r.t=o;o>0;)r[--o]=0;for(var i=r.t-this.t;o<i;++o)r[o+this.t]=this.am(0,t[o],r,o,0,this.t);for(var i=Math.min(t.t,n);o<i;++o)this.am(0,t[o],r,o,0,n-o);r.clamp()},e.prototype.multiplyUpperTo=function(t,n,r){--n;var o=r.t=this.t+t.t-n;for(r.s=0;--o>=0;)r[o]=0;for(o=Math.max(n-this.t,0);o<t.t;++o)r[this.t+o-n]=this.am(n-o,t[o],r,0,0,this.t+o-n);r.clamp(),r.drShiftTo(1,r)},e.prototype.modInt=function(t){if(t<=0)return 0;var n=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(n==0)r=this[0]%t;else for(var o=this.t-1;o>=0;--o)r=(n*r+this[o])%t;return r},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var o=n.shiftRight(r);t=t+1>>1,t>_e.length&&(t=_e.length);for(var i=X(),s=0;s<t;++s){i.fromInt(_e[Math.floor(Math.random()*_e.length)]);var a=i.modPow(o,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(n)!=0){for(var l=1;l++<r&&a.compareTo(n)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var t=X();return this.squareTo(t),t},e.prototype.gcda=function(t,n){var r=this.s<0?this.negate():this.clone(),o=t.s<0?t.negate():t.clone();if(r.compareTo(o)<0){var i=r;r=o,o=i}var s=r.getLowestSetBit(),a=o.getLowestSetBit();if(a<0){n(r);return}s<a&&(a=s),a>0&&(r.rShiftTo(a,r),o.rShiftTo(a,o));var l=function(){(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=o.getLowestSetBit())>0&&o.rShiftTo(s,o),r.compareTo(o)>=0?(r.subTo(o,r),r.rShiftTo(1,r)):(o.subTo(r,o),o.rShiftTo(1,o)),r.signum()>0?setTimeout(l,0):(a>0&&o.lShiftTo(a,o),setTimeout(function(){n(o)},0))};setTimeout(l,10)},e.prototype.fromNumberAsync=function(t,n,r,o){if(typeof n=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),An,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(e.ONE.shiftLeft(t-1),i),i.isProbablePrime(n)?setTimeout(function(){o()},0):setTimeout(s,0)};setTimeout(s,0)}else{var a=[],l=t&7;a.length=(t>>3)+1,n.nextBytes(a),l>0?a[0]&=(1<<l)-1:a[0]=0,this.fromString(a,256)}},e}(),iv=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r)},e.prototype.sqrTo=function(t,n){t.squareTo(n)},e}(),sa=function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}(),aa=function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var n=X();return t.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),t.s<0&&n.compareTo(Y.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(t){var n=X();return t.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var n=0;n<this.m.t;++n){var r=t[n]&32767,o=r*this.mpl+((r*this.mph+(t[n]>>15)*this.mpl&this.um)<<15)&t.DM;for(r=n+this.m.t,t[r]+=this.m.am(0,o,t,n,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}(),sv=function(){function e(t){this.m=t,this.r2=X(),this.q3=X(),Y.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var n=X();return t.copyTo(n),this.reduce(n),n},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}();function X(){return new Y(null)}function ce(e,t){return new Y(e,t)}var ua=typeof navigator<"u";ua&&ia&&navigator.appName=="Microsoft Internet Explorer"?(Y.prototype.am=function(t,n,r,o,i,s){for(var a=n&32767,l=n>>15;--s>=0;){var c=this[t]&32767,d=this[t++]>>15,f=l*c+d*a;c=a*c+((f&32767)<<15)+r[o]+(i&1073741823),i=(c>>>30)+(f>>>15)+l*d+(i>>>30),r[o++]=c&1073741823}return i},nt=30):ua&&ia&&navigator.appName!="Netscape"?(Y.prototype.am=function(t,n,r,o,i,s){for(;--s>=0;){var a=n*this[t++]+r[o]+i;i=Math.floor(a/67108864),r[o++]=a&67108863}return i},nt=26):(Y.prototype.am=function(t,n,r,o,i,s){for(var a=n&16383,l=n>>14;--s>=0;){var c=this[t]&16383,d=this[t++]>>14,f=l*c+d*a;c=a*c+((f&16383)<<14)+r[o]+i,i=(c>>28)+(f>>14)+l*d,r[o++]=c&268435455}return i},nt=28);Y.prototype.DB=nt;Y.prototype.DM=(1<<nt)-1;Y.prototype.DV=1<<nt;var Ko=52;Y.prototype.FV=Math.pow(2,Ko);Y.prototype.F1=Ko-nt;Y.prototype.F2=2*nt-Ko;var ur=[],Lt,Ne;Lt=48;for(Ne=0;Ne<=9;++Ne)ur[Lt++]=Ne;Lt=97;for(Ne=10;Ne<36;++Ne)ur[Lt++]=Ne;Lt=65;for(Ne=10;Ne<36;++Ne)ur[Lt++]=Ne;function la(e,t){var n=ur[e.charCodeAt(t)];return n??-1}function Ze(e){var t=X();return t.fromInt(e),t}function wn(e){var t=1,n;return(n=e>>>16)!=0&&(e=n,t+=16),(n=e>>8)!=0&&(e=n,t+=8),(n=e>>4)!=0&&(e=n,t+=4),(n=e>>2)!=0&&(e=n,t+=2),(n=e>>1)!=0&&(e=n,t+=1),t}Y.ZERO=Ze(0);Y.ONE=Ze(1);var av=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var n,r,o;for(n=0;n<256;++n)this.S[n]=n;for(r=0,n=0;n<256;++n)r=r+this.S[n]+t[n%t.length]&255,o=this.S[n],this.S[n]=this.S[r],this.S[r]=o;this.i=0,this.j=0},e.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},e}();function uv(){return new av}var Pl=256,Dn,tt=null,Ve;if(tt==null){tt=[],Ve=0;var Cn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Ar=new Uint32Array(256);for(window.crypto.getRandomValues(Ar),Cn=0;Cn<Ar.length;++Cn)tt[Ve++]=Ar[Cn]&255}var In=0,On=function(e){if(In=In||0,In>=256||Ve>=Pl){window.removeEventListener?window.removeEventListener("mousemove",On,!1):window.detachEvent&&window.detachEvent("onmousemove",On);return}try{var t=e.x+e.y;tt[Ve++]=t&255,In+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",On,!1):window.attachEvent&&window.attachEvent("onmousemove",On))}function lv(){if(Dn==null){for(Dn=uv();Ve<Pl;){var e=Math.floor(65536*Math.random());tt[Ve++]=e&255}for(Dn.init(tt),Ve=0;Ve<tt.length;++Ve)tt[Ve]=0;Ve=0}return Dn.next()}var Xr=function(){function e(){}return e.prototype.nextBytes=function(t){for(var n=0;n<t.length;++n)t[n]=lv()},e}();function cv(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",o=0;o<n;o+=2)r+="ff";var i="0001"+r+"00"+e;return ce(i,16)}function fv(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=e.length-1;r>=0&&t>0;){var o=e.charCodeAt(r--);o<128?n[--t]=o:o>127&&o<2048?(n[--t]=o&63|128,n[--t]=o>>6|192):(n[--t]=o&63|128,n[--t]=o>>6&63|128,n[--t]=o>>12|224)}n[--t]=0;for(var i=new Xr,s=[];t>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);n[--t]=s[0]}return n[--t]=2,n[--t]=0,new Y(n)}var dv=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var n=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(r)<0;)n=n.add(this.p);return n.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},e.prototype.setPublic=function(t,n){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=ce(t,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var n=this.n.bitLength()+7>>3,r=fv(t,n);if(r==null)return null;var o=this.doPublic(r);if(o==null)return null;for(var i=o.toString(16),s=i.length,a=0;a<n*2-s;a++)i="0"+i;return i},e.prototype.setPrivate=function(t,n,r){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=ce(t,16),this.e=parseInt(n,16),this.d=ce(r,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,n,r,o,i,s,a,l){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=ce(t,16),this.e=parseInt(n,16),this.d=ce(r,16),this.p=ce(o,16),this.q=ce(i,16),this.dmp1=ce(s,16),this.dmq1=ce(a,16),this.coeff=ce(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,n){var r=new Xr,o=t>>1;this.e=parseInt(n,16);for(var i=new Y(n,16);;){for(;this.p=new Y(t-o,1,r),!(this.p.subtract(Y.ONE).gcd(i).compareTo(Y.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new Y(o,1,r),!(this.q.subtract(Y.ONE).gcd(i).compareTo(Y.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var a=this.p.subtract(Y.ONE),l=this.q.subtract(Y.ONE),c=a.multiply(l);if(c.gcd(i).compareTo(Y.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var n=ce(t,16),r=this.doPrivate(n);return r==null?null:hv(r,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,n,r){var o=new Xr,i=t>>1;this.e=parseInt(n,16);var s=new Y(n,16),a=this,l=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var v=a.p;a.p=a.q,a.q=v}var y=a.p.subtract(Y.ONE),h=a.q.subtract(Y.ONE),m=y.multiply(h);m.gcd(s).compareTo(Y.ONE)==0?(a.n=a.p.multiply(a.q),a.d=s.modInverse(m),a.dmp1=a.d.mod(y),a.dmq1=a.d.mod(h),a.coeff=a.q.modInverse(a.p),setTimeout(function(){r()},0)):setTimeout(l,0)},d=function(){a.q=X(),a.q.fromNumberAsync(i,1,o,function(){a.q.subtract(Y.ONE).gcda(s,function(v){v.compareTo(Y.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(d,0)})})},f=function(){a.p=X(),a.p.fromNumberAsync(t-i,1,o,function(){a.p.subtract(Y.ONE).gcda(s,function(v){v.compareTo(Y.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(d,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(l,0)},e.prototype.sign=function(t,n,r){var o=pv(r),i=o+n(t).toString(),s=cv(i,this.n.bitLength()/4);if(s==null)return null;var a=this.doPrivate(s);if(a==null)return null;var l=a.toString(16);return(l.length&1)==0?l:"0"+l},e.prototype.verify=function(t,n,r){var o=ce(n,16),i=this.doPublic(o);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),a=gv(s);return a==r(t).toString()},e}();function hv(e,t){for(var n=e.toByteArray(),r=0;r<n.length&&n[r]==0;)++r;if(n.length-r!=t-1||n[r]!=2)return null;for(++r;n[r]!=0;)if(++r>=n.length)return null;for(var o="";++r<n.length;){var i=n[r]&255;i<128?o+=String.fromCharCode(i):i>191&&i<224?(o+=String.fromCharCode((i&31)<<6|n[r+1]&63),++r):(o+=String.fromCharCode((i&15)<<12|(n[r+1]&63)<<6|n[r+2]&63),r+=2)}return o}var Vn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function pv(e){return Vn[e]||""}function gv(e){for(var t in Vn)if(Vn.hasOwnProperty(t)){var n=Vn[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}/*!
|
|
25
|
-
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
26
|
-
Code licensed under the BSD License:
|
|
27
|
-
http://developer.yahoo.com/yui/license.html
|
|
28
|
-
version: 2.9.0
|
|
29
|
-
*/var de={};de.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var o;for(o in n)e.prototype[o]=n[o];var i=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(a,l){for(o=0;o<s.length;o=o+1){var c=s[o],d=l[c];typeof d=="function"&&d!=Object.prototype[c]&&(a[c]=d)}})}catch{}i(e.prototype,n)}}};/**
|
|
30
|
-
* @fileOverview
|
|
31
|
-
* @name asn1-1.0.js
|
|
32
|
-
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
33
|
-
* @version asn1 1.0.13 (2017-Jun-02)
|
|
34
|
-
* @since jsrsasign 2.1
|
|
35
|
-
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
36
|
-
*/var I={};(typeof I.asn1>"u"||!I.asn1)&&(I.asn1={});I.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1),r=n.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var o="",i=0;i<r;i++)o+="f";var s=new Y(o,16),a=s.xor(e).add(Y.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=I,n=t.asn1,r=n.DERBoolean,o=n.DERInteger,i=n.DERBitString,s=n.DEROctetString,a=n.DERNull,l=n.DERObjectIdentifier,c=n.DEREnumerated,d=n.DERUTF8String,f=n.DERNumericString,v=n.DERPrintableString,y=n.DERTeletexString,h=n.DERIA5String,m=n.DERUTCTime,g=n.DERGeneralizedTime,E=n.DERSequence,w=n.DERSet,T=n.DERTaggedObject,D=n.ASN1Util.newObject,B=Object.keys(e);if(B.length!=1)throw"key of param shall be only one.";var b=B[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+b+":")==-1)throw"undefined key: "+b;if(b=="bool")return new r(e[b]);if(b=="int")return new o(e[b]);if(b=="bitstr")return new i(e[b]);if(b=="octstr")return new s(e[b]);if(b=="null")return new a(e[b]);if(b=="oid")return new l(e[b]);if(b=="enum")return new c(e[b]);if(b=="utf8str")return new d(e[b]);if(b=="numstr")return new f(e[b]);if(b=="prnstr")return new v(e[b]);if(b=="telstr")return new y(e[b]);if(b=="ia5str")return new h(e[b]);if(b=="utctime")return new m(e[b]);if(b=="gentime")return new g(e[b]);if(b=="seq"){for(var S=e[b],V=[],C=0;C<S.length;C++){var A=D(S[C]);V.push(A)}return new E({array:V})}if(b=="set"){for(var S=e[b],V=[],C=0;C<S.length;C++){var A=D(S[C]);V.push(A)}return new w({array:V})}if(b=="tag"){var _=e[b];if(Object.prototype.toString.call(_)==="[object Array]"&&_.length==3){var O=D(_[2]);return new T({tag:_[0],explicit:_[1],obj:O})}else{var $={};if(_.explicit!==void 0&&($.explicit=_.explicit),_.tag!==void 0&&($.tag=_.tag),_.obj===void 0)throw"obj shall be specified for 'tag'.";return $.obj=D(_.obj),new T($)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}};I.asn1.ASN1Util.oidHexToInt=function(e){for(var o="",t=parseInt(e.substr(0,2),16),n=Math.floor(t/40),r=t%40,o=n+"."+r,i="",s=2;s<e.length;s+=2){var a=parseInt(e.substr(s,2),16),l=("00000000"+a.toString(2)).slice(-8);if(i=i+l.substr(1,7),l.substr(0,1)=="0"){var c=new Y(i,2);o=o+"."+c.toString(10),i=""}}return o};I.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var l=a.toString(16);return l.length==1&&(l="0"+l),l},n=function(a){var l="",c=new Y(a,10),d=c.toString(2),f=7-d.length%7;f==7&&(f=0);for(var v="",y=0;y<f;y++)v+="0";d=v+d;for(var y=0;y<d.length-1;y+=7){var h=d.substr(y,7);y!=d.length-7&&(h="1"+h),l+=t(parseInt(h,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",o=e.split("."),i=parseInt(o[0])*40+parseInt(o[1]);r+=t(i),o.splice(0,2);for(var s=0;s<o.length;s++)r+=n(o[s]);return r};I.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,n=t.toString(16);if(n.length%2==1&&(n="0"+n),t<128)return n;var r=n.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var o=128+r;return o.toString(16)+n},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};I.asn1.DERAbstractString=function(e){I.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))};de.lang.extend(I.asn1.DERAbstractString,I.asn1.ASN1Object);I.asn1.DERAbstractTime=function(e){I.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(t,n,r){var o=this.zeroPadding,i=this.localDateToUTC(t),s=String(i.getFullYear());n=="utc"&&(s=s.substr(2,2));var a=o(String(i.getMonth()+1),2),l=o(String(i.getDate()),2),c=o(String(i.getHours()),2),d=o(String(i.getMinutes()),2),f=o(String(i.getSeconds()),2),v=s+a+l+c+d+f;if(r===!0){var y=i.getMilliseconds();if(y!=0){var h=o(String(y),3);h=h.replace(/[0]+$/,""),v=v+"."+h}}return v+"Z"},this.zeroPadding=function(t,n){return t.length>=n?t:new Array(n-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,n,r,o,i,s){var a=new Date(Date.UTC(t,n-1,r,o,i,s,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}};de.lang.extend(I.asn1.DERAbstractTime,I.asn1.ASN1Object);I.asn1.DERAbstractStructured=function(e){I.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)};de.lang.extend(I.asn1.DERAbstractStructured,I.asn1.ASN1Object);I.asn1.DERBoolean=function(){I.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};de.lang.extend(I.asn1.DERBoolean,I.asn1.ASN1Object);I.asn1.DERInteger=function(e){I.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=I.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new Y(String(t),10);this.setByBigInteger(n)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))};de.lang.extend(I.asn1.DERInteger,I.asn1.ASN1Object);I.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=I.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}I.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,r){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var o="0"+n;this.hTLV=null,this.isModified=!0,this.hV=o+r},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var r=8-n.length%8;r==8&&(r=0);for(var o=0;o<=r;o++)n+="0";for(var i="",o=0;o<n.length-1;o+=8){var s=n.substr(o,8),a=parseInt(s,2).toString(16);a.length==1&&(a="0"+a),i+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+r+i},this.setByBooleanArray=function(n){for(var r="",o=0;o<n.length;o++)n[o]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(n){for(var r=new Array(n),o=0;o<n;o++)r[o]=!1;return r},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))};de.lang.extend(I.asn1.DERBitString,I.asn1.ASN1Object);I.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=I.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}I.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"};de.lang.extend(I.asn1.DEROctetString,I.asn1.DERAbstractString);I.asn1.DERNull=function(){I.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};de.lang.extend(I.asn1.DERNull,I.asn1.ASN1Object);I.asn1.DERObjectIdentifier=function(e){var t=function(r){var o=r.toString(16);return o.length==1&&(o="0"+o),o},n=function(r){var o="",i=new Y(r,10),s=i.toString(2),a=7-s.length%7;a==7&&(a=0);for(var l="",c=0;c<a;c++)l+="0";s=l+s;for(var c=0;c<s.length-1;c+=7){var d=s.substr(c,7);c!=s.length-7&&(d="1"+d),o+=t(parseInt(d,2))}return o};I.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var o="",i=r.split("."),s=parseInt(i[0])*40+parseInt(i[1]);o+=t(s),i.splice(0,2);for(var a=0;a<i.length;a++)o+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.setValueName=function(r){var o=I.asn1.x509.OID.name2oid(r);if(o!=="")this.setValueOidString(o);else throw"DERObjectIdentifier oidName undefined: "+r},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))};de.lang.extend(I.asn1.DERObjectIdentifier,I.asn1.ASN1Object);I.asn1.DEREnumerated=function(e){I.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=I.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new Y(String(t),10);this.setByBigInteger(n)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))};de.lang.extend(I.asn1.DEREnumerated,I.asn1.ASN1Object);I.asn1.DERUTF8String=function(e){I.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"};de.lang.extend(I.asn1.DERUTF8String,I.asn1.DERAbstractString);I.asn1.DERNumericString=function(e){I.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"};de.lang.extend(I.asn1.DERNumericString,I.asn1.DERAbstractString);I.asn1.DERPrintableString=function(e){I.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"};de.lang.extend(I.asn1.DERPrintableString,I.asn1.DERAbstractString);I.asn1.DERTeletexString=function(e){I.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"};de.lang.extend(I.asn1.DERTeletexString,I.asn1.DERAbstractString);I.asn1.DERIA5String=function(e){I.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"};de.lang.extend(I.asn1.DERIA5String,I.asn1.DERAbstractString);I.asn1.DERUTCTime=function(e){I.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))};de.lang.extend(I.asn1.DERUTCTime,I.asn1.DERAbstractTime);I.asn1.DERGeneralizedTime=function(e){I.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))};de.lang.extend(I.asn1.DERGeneralizedTime,I.asn1.DERAbstractTime);I.asn1.DERSequence=function(e){I.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",n=0;n<this.asn1Array.length;n++){var r=this.asn1Array[n];t+=r.getEncodedHex()}return this.hV=t,this.hV}};de.lang.extend(I.asn1.DERSequence,I.asn1.DERAbstractStructured);I.asn1.DERSet=function(e){I.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,n=0;n<this.asn1Array.length;n++){var r=this.asn1Array[n];t.push(r.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)};de.lang.extend(I.asn1.DERSet,I.asn1.DERAbstractStructured);I.asn1.DERTaggedObject=function(e){I.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,n,r){this.hT=n,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,n),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};de.lang.extend(I.asn1.DERTaggedObject,I.asn1.ASN1Object);var yv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ca=function(e){yv(t,e);function t(n){var r=e.call(this)||this;return n&&(typeof n=="string"?r.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return t.prototype.parseKey=function(n){try{var r=0,o=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(n)?Qy.decode(n):Zr.unarmor(n),a=nv.decode(s);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){r=a.sub[1].getHexStringValue(),this.n=ce(r,16),o=a.sub[2].getHexStringValue(),this.e=parseInt(o,16);var l=a.sub[3].getHexStringValue();this.d=ce(l,16);var c=a.sub[4].getHexStringValue();this.p=ce(c,16);var d=a.sub[5].getHexStringValue();this.q=ce(d,16);var f=a.sub[6].getHexStringValue();this.dmp1=ce(f,16);var v=a.sub[7].getHexStringValue();this.dmq1=ce(v,16);var y=a.sub[8].getHexStringValue();this.coeff=ce(y,16)}else if(a.sub.length===2)if(a.sub[0].sub){var h=a.sub[1],m=h.sub[0];r=m.sub[0].getHexStringValue(),this.n=ce(r,16),o=m.sub[1].getHexStringValue(),this.e=parseInt(o,16)}else r=a.sub[0].getHexStringValue(),this.n=ce(r,16),o=a.sub[1].getHexStringValue(),this.e=parseInt(o,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var n={array:[new I.asn1.DERInteger({int:0}),new I.asn1.DERInteger({bigint:this.n}),new I.asn1.DERInteger({int:this.e}),new I.asn1.DERInteger({bigint:this.d}),new I.asn1.DERInteger({bigint:this.p}),new I.asn1.DERInteger({bigint:this.q}),new I.asn1.DERInteger({bigint:this.dmp1}),new I.asn1.DERInteger({bigint:this.dmq1}),new I.asn1.DERInteger({bigint:this.coeff})]},r=new I.asn1.DERSequence(n);return r.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return jn(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var n=new I.asn1.DERSequence({array:[new I.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new I.asn1.DERNull]}),r=new I.asn1.DERSequence({array:[new I.asn1.DERInteger({bigint:this.n}),new I.asn1.DERInteger({int:this.e})]}),o=new I.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),i=new I.asn1.DERSequence({array:[n,o]});return i.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return jn(this.getPublicBaseKey())},t.wordwrap=function(n,r){if(r=r||64,!n)return n;var o="(.{1,"+r+`})( +|$
|
|
37
|
-
?)|(.{1,`+r+"})";return n.match(RegExp(o,"g")).join(`
|
|
38
|
-
`)},t.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
|
|
39
|
-
`;return n+=t.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
40
|
-
`,n+="-----END RSA PRIVATE KEY-----",n},t.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY-----
|
|
41
|
-
`;return n+=t.wordwrap(this.getPublicBaseKeyB64())+`
|
|
42
|
-
`,n+="-----END PUBLIC KEY-----",n},t.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},t}(dv),wr,vv=typeof process<"u"?(wr=process.env)===null||wr===void 0?void 0:wr.npm_package_version:void 0,lr=function(){function e(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return e.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ca(t)},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(ra(t))}catch{return!1}},e.prototype.encrypt=function(t){try{return jn(this.getKey().encrypt(t))}catch{return!1}},e.prototype.sign=function(t,n,r){try{return jn(this.getKey().sign(t,n,r))}catch{return!1}},e.prototype.verify=function(t,n,r){try{return this.getKey().verify(t,ra(n),r)}catch{return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new ca,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=vv,e}();function mv(){const e=new lr({default_key_size:"2048"});return{publicKey:e.getPublicKey(),privateKey:e.getPrivateKey()}}function Jr(e,t){const n=new lr;return n.setPublicKey(t),n.encrypt(e)||""}function cr(e,t){const n=new lr;return n.setPrivateKey(t),n.decrypt(e)||""}function Ev(){return typeof new lr().encrypt=="function"}const Bl=pn(Te),{superAdminInfo:bv,cryptoInfo:xe}=Re(Bl),_v=hn(Te),{activeMenuPath:Xe}=Re(_v),zn=ir(Te),un="123456",Sv=Ro(Te),{routerPageStructures:Tv}=Re(Sv),Ho=u.ref(0),Av=u.ref([{label:"用户名称",value:"",name:"userName"}]),Jt=u.computed(()=>{const e=sessionStorage.getItem("isSuperAdmin");return e?JSON.parse(e):!1}),wv=e=>{console.log("handleQueryChange",e)},jo=u.ref([]),Vl=u.ref(""),qn=u.computed(()=>{var t,n,r,o,i;zn.setRefreshCurStructure(!1);const e=(t=Tv.value)==null?void 0:t.find(s=>{var a;return((a=s==null?void 0:s.comp)==null?void 0:a.toUpperCase())==="TABLE"});return e?(Vl.value=e.name,jo.value=(o=(r=(n=e==null?void 0:e.compData)==null?void 0:n.find(a=>(a==null?void 0:a.key)==="header"))==null?void 0:r.contents)==null?void 0:o.filter(a=>(a==null?void 0:a.label)!=="操作"),(i=e==null?void 0:e.compData)==null?void 0:i.map(a=>{if((a==null?void 0:a.key)==="rowButton"){const l=[...a==null?void 0:a.contents,{label:"重置密码"}];return{...a,contents:l}}return a})):[]}),Dv=e=>{fr(e.singleContent,e.buttonName,Ho.value,e==null?void 0:e.selectItems)},Gn=u.ref(),Cv=e=>{console.log("onDoubleClick",e)},Iv=(e,t)=>{e==="重置密码"&&mu.confirm(`该操作将会重置【${t==null?void 0:t.account}】的密码,确认重置?`,"警告",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Gn.value={...t,password:un},fr(Gn.value,e,Ho.value)}).catch(()=>{p.ElMessage.info("取消重置")})},Ov=()=>{Wn(Xe.value).then(e=>{var n;const t=Array.isArray(e)&&(e==null?void 0:e.filter(r=>(r==null?void 0:r.account)!==bv.value.account));qn.value=(n=qn.value)==null?void 0:n.map(r=>r.key==="tableContents"?{...r,contents:t==null?void 0:t.map(o=>{var i;return{...o,password:cr(o==null?void 0:o.password,(i=xe==null?void 0:xe.value)==null?void 0:i.privateKey)}})}:r)})},Ct=async(e,t,n)=>{var r,o;try{const i=await e(t);return((r=i==null?void 0:i.data)==null?void 0:r.code)===200?(n!=="查询"&&await Bl.setLogRecordAsync({type:n,data:t},Xe.value),zn.setRefreshCurStructure(!0),i.data.result||((o=i==null?void 0:i.data)==null?void 0:o.code)===200):null}catch(i){p.ElMessage.error(i)}finally{zn.setCacheUpdatingData(null)}},fr=(e,t,n,r)=>{var s,a,l,c,d,f;const o=K(e);o!=null&&o.id&&delete o.id;const i=$o(o,jo.value);if(Ev()&&i&&(!i.password&&Jt.value?i.password=Jr(un,(s=xe==null?void 0:xe.value)==null?void 0:s.publicKey):i.password&&Jt.value&&(i.password=Jr(i==null?void 0:i.password,(a=xe==null?void 0:xe.value)==null?void 0:a.publicKey))),t==="新增")Ct(p.createInsofDataApi,{key:{type:"data",layer:i==null?void 0:i.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(l=Xe.value)!=null&&l.startsWith("/")?(c=Xe.value)==null?void 0:c.substring(1):Xe.value,tableId:n},value:{tableData:i}},t).then(v=>{var y;Gn.value={...e,newId:v,password:Jt.value?cr((e==null?void 0:e.password)??un,(y=xe==null?void 0:xe.value)==null?void 0:y.privateKey):e==null?void 0:e.password}});else if(t==="编辑"||t==="重置密码")Ct(p.updateInsofDataApi,{id:e.id,key:{type:"data",layer:i==null?void 0:i.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(d=Xe.value)!=null&&d.startsWith("/")?(f=Xe.value)==null?void 0:f.substring(1):Xe.value,tableId:n},value:{tableData:i}},t).then(()=>{t==="重置密码"&&zn.setRefreshCurStructure(!0),pt.show=!1});else if(t!=null&&t.includes("删除")){const v=t!=null&&t.includes("批量")?p.batchDeleteInsofDataApi:p.deleteInsofDataApi,y=t!=null&&t.includes("批量")?{ids:r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(h=>h==null?void 0:h.id):[]}:{id:e.id};Ct(v,y,t).then(h=>{t&&h&&p.ElMessage.success(t+"成功")})}},Wn=async e=>{const t=await Ct(p.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(r=>{var o,i;return{id:r.id,layer:(o=r.key)==null?void 0:o.layer,tableData:(i=r==null?void 0:r.value)==null?void 0:i.tableData}});return n==null?void 0:n.map(r=>{var o;if(!Array.isArray(r==null?void 0:r.tableData))return{...r.tableData,layer:(o=r.key)==null?void 0:o.layer,id:r.id}})},kv={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:qn.value,name:""}]}]},xv=Object.freeze(Object.defineProperty({__proto__:null,changedRow:Gn,clickRowButton:Iv,columns:jo,compName:Vl,getPageDataAsync:Wn,handleItemDataChange:Dv,handleQueryChange:wv,handleSubmitAsync:Ct,loginUserIsSuper:Jt,onDoubleClick:Cv,pageData:qn,queryFormData:Av,refreshUserTableData:Ov,resetPassword:un,structureId:Ho,submitTableAsyncByVerify:fr,tempUserPageData:kv},Symbol.toStringTag,{value:"Module"})),Nv=ir(Te),{routeToChildPath:fa}=Re(Nv),Rv=pn(Te),{loginUserInfo:da,cryptoInfo:Dr}=Re(Rv),Pv=e=>{var t,n,r;return((n=(t=da.value)==null?void 0:t.layer)==null?void 0:n.toUpperCase())==="SUPERADMIN"?!0:((r=da.value)==null?void 0:r.account)===(e==null?void 0:e.account)},Bv=async(e,t,n)=>{const r=Wn("/系统管理/角色管理"),o=Wn("/系统管理/部门管理");return await Promise.all([r,o]).then(s=>{var c,d;const a=(c=s==null?void 0:s[0])==null?void 0:c.map(f=>({label:f==null?void 0:f.roleName,value:f==null?void 0:f.roleName})),l=(d=s==null?void 0:s[1])==null?void 0:d.map(f=>({label:f==null?void 0:f.deptName,value:f==null?void 0:f.deptName}));return e==null?void 0:e.map(f=>{var v;return{...f,compData:(v=f==null?void 0:f.compData)==null?void 0:v.map(y=>{var h,m;return(y==null?void 0:y.key)==="header"?{...y,contents:(h=y==null?void 0:y.contents)==null?void 0:h.map(g=>g.prop==="userDept"?{...g,options:l}:g.prop==="userRoles"?{...g,options:a}:g)}:(y==null?void 0:y.key)==="tableContents"?{...y,contents:(m=y==null?void 0:y.contents)==null?void 0:m.map(g=>{var E;return{...g,password:Pv(g)?cr(g==null?void 0:g.password,(E=Dr==null?void 0:Dr.value)==null?void 0:E.privateKey):g==null?void 0:g.password}})}:y})}})})},Vv=async(e,t)=>{const n=sessionStorage.getItem("authority"),r=JSON.parse(n||"");if(Array.isArray(r)){let o;fa.value?o=Array.isArray(r)&&(r==null?void 0:r.filter(a=>(a==null?void 0:a.includes(e))||(a==null?void 0:a.includes(fa.value)))):o=Array.isArray(r)&&(r==null?void 0:r.filter(a=>a==null?void 0:a.includes(e)));const i=o==null?void 0:o.map(a=>{var l;return((l=a==null?void 0:a.split("/"))==null?void 0:l.pop())||""});return t==null?void 0:t.map(a=>{var l;return{...a,compData:(l=a==null?void 0:a.compData)==null?void 0:l.map(c=>{var d;return(c==null?void 0:c.key)==="rowButton"||(c==null?void 0:c.key)==="extraButton"?{...c,contents:(d=c==null?void 0:c.contents)==null?void 0:d.filter(f=>i==null?void 0:i.includes(f==null?void 0:f.label))}:c})}})}else return typeof r=="string"&&(r==null?void 0:r.toUpperCase())==="SUPERADMIN"?e==="/系统管理/用户管理"?await Bv(t):t:[]},Qr=hn(Te),{activeMenuPath:Mv}=Re(Qr),Fv=async(e,t,n)=>{var y,h,m,g,E,w,T,D,B,b,S,V,C,A,_,O,$,x,M,N,R,j,z,Z,L,q,re,le,H,G,ee,Fe,ge,J,Le,$t,Ut;const r=(h=(y=e==null?void 0:e.find(te=>(te==null?void 0:te.key)==="header"))==null?void 0:y.contents)==null?void 0:h.find(te=>te==null?void 0:te.columnPath);let o=(B=(D=(T=(w=(m=K(r==null?void 0:r.columnPath))==null?void 0:m.split("["))==null?void 0:w[((E=(g=r==null?void 0:r.columnPath)==null?void 0:g.split("["))==null?void 0:E.length)-1])==null?void 0:T.split("]"))==null?void 0:D[0])==null?void 0:B.replaceAll("'",""),i=(S=(b=K(r==null?void 0:r.columnPath))==null?void 0:b.split("['"+o+"']"))==null?void 0:S[0],s="",a="",l="";if(i.includes("[")){let te=(_=(A=(C=(V=i==null?void 0:i.split("["))==null?void 0:V[1])==null?void 0:C.split("]"))==null?void 0:A[0])==null?void 0:_.split("/");a=i,s=(x=($=(O=i==null?void 0:i.split("["))==null?void 0:O[1])==null?void 0:$.split("]"))==null?void 0:x[0];let oe="";n==null||n.forEach(fe=>{var be,Ce,Ie,He,W;((Ce=(be=fe==null?void 0:fe.value)==null?void 0:be.pageData)==null?void 0:Ce.name)===(te==null?void 0:te[0])&&((W=(He=(Ie=fe==null?void 0:fe.value)==null?void 0:Ie.pageData)==null?void 0:He.compData)==null||W.forEach(ie=>{var me;(ie==null?void 0:ie.key)==="formContent"&&((me=ie==null?void 0:ie.contents)==null||me.forEach(P=>{(P==null?void 0:P.prop)===(te==null?void 0:te[1])&&(oe=P==null?void 0:P.value)}))}))}),l=oe,i=((M=i==null?void 0:i.split("["))==null?void 0:M[0])+oe}let c=[];const d=await p.getInsofDataApi({key:{pageKey:i,systemKey:sessionStorage.getItem("systemKey"),type:"structure"}}),f=await p.getInsofDataApi({key:{pageKey:Mv.value,systemKey:sessionStorage.getItem("systemKey"),tableId:parseInt(t),type:"data"}}),v=[];if((R=(N=f==null?void 0:f.data)==null?void 0:N.result)==null||R.forEach(te=>{v.push([{id:te==null?void 0:te.id},te.value.tableData])}),Array.isArray((j=d==null?void 0:d.data)==null?void 0:j.result)&&((Z=(z=d==null?void 0:d.data)==null?void 0:z.result)==null?void 0:Z.length)>0){let te;(q=(L=d==null?void 0:d.data)==null?void 0:L.result)!=null&&q.find(oe=>{var fe,be;return((be=(fe=oe==null?void 0:oe.value)==null?void 0:fe.pageData)==null?void 0:be.name)===o})&&(te=await((le=(re=d==null?void 0:d.data)==null?void 0:re.result)==null?void 0:le.map(async oe=>{var fe,be,Ce,Ie,He,W,ie,me,P,Q,Oe,ye,Kt,zo,qo,Go,Wo,Yo,Zo,Xo,Jo,Qo;if(((be=(fe=oe==null?void 0:oe.value)==null?void 0:fe.pageData)==null?void 0:be.name)===o){c=K((Ie=(Ce=oe==null?void 0:oe.value)==null?void 0:Ce.pageData)==null?void 0:Ie.compData);const gt=await p.getInsofDataApi({key:{pageKey:i,systemKey:sessionStorage.getItem("systemKey"),tableId:oe==null?void 0:oe.id,type:"data"}});let gn;if(((W=(He=gt==null?void 0:gt.data)==null?void 0:He.result)==null?void 0:W.length)>0)gn=(me=(ie=gt==null?void 0:gt.data)==null?void 0:ie.result)==null?void 0:me.map(U=>{var ei;let ne=[];return ne.push({id:U==null?void 0:U.id}),ne.push((ei=U==null?void 0:U.value)==null?void 0:ei.tableData),ne}),c.push({key:"tableContents",contents:ct(gn,(ye=(Oe=(Q=(P=oe==null?void 0:oe.value)==null?void 0:P.pageData)==null?void 0:Q.compData)==null?void 0:Oe.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:ye.contents)}),c.push({key:"contentTableId",contents:oe==null?void 0:oe.id});else{let U=await It(i,sessionStorage.getItem("systemKey"),"");c=(zo=(Kt=U==null?void 0:U.find(ne=>(ne==null?void 0:ne.name)===o))==null?void 0:Kt.compData)==null?void 0:zo.filter(ne=>(ne==null?void 0:ne.key)!=="tableContents"),U=(Wo=(Go=(qo=U==null?void 0:U.find(ne=>(ne==null?void 0:ne.name)===o))==null?void 0:qo.compData)==null?void 0:Go.find(ne=>(ne==null?void 0:ne.key)==="tableContents"))==null?void 0:Wo.contents,gn=U,c.push({key:"tableContents",contents:ct(gn,(Xo=(Zo=(Yo=U==null?void 0:U.find(ne=>(ne==null?void 0:ne.name)===o))==null?void 0:Yo.compData)==null?void 0:Zo.find(ne=>(ne==null?void 0:ne.key)==="header"))==null?void 0:Xo.contents)}),c.push({key:"contentTableId",contents:(Qo=(Jo=U==null?void 0:U.find(ne=>(ne==null?void 0:ne.name)===o))==null?void 0:Jo.compData)==null?void 0:Qo.id})}s!==""&&(c!=null&&c.find(U=>(U==null?void 0:U.key)==="pageColumn")&&(c=c==null?void 0:c.filter(U=>(U==null?void 0:U.key)!=="pageColumn")),c.push({key:"pageColumn",contents:a}),c!=null&&c.find(U=>(U==null?void 0:U.key)==="columnPath")&&(c=c==null?void 0:c.filter(U=>(U==null?void 0:U.key)!=="columnPath")),c.push({key:"columnPath",contents:s}),c!=null&&c.find(U=>(U==null?void 0:U.key)==="columnUsingPath")&&(c=c==null?void 0:c.filter(U=>(U==null?void 0:U.key)!=="columnUsingPath")),c.push({key:"columnUsingPath",contents:l}),c!=null&&c.find(U=>(U==null?void 0:U.key)==="pageGroup")&&(c=c==null?void 0:c.filter(U=>(U==null?void 0:U.key)!=="pageGroup")),c.push({key:"pageGroup",contents:o}))}})),await Promise.all(te))}else{let te="",oe="";(H=i==null?void 0:i.split("/"))==null||H.forEach((W,ie)=>{var me;ie<((me=i==null?void 0:i.split("/"))==null?void 0:me.length)-1?te=te===""?te+W:te+"/"+W:oe=W});let fe=await It(te,sessionStorage.getItem("systemKey"),""),be;(ge=(Fe=(ee=(G=fe==null?void 0:fe[0])==null?void 0:G.compData)==null?void 0:ee.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:Fe.contents)==null||ge.forEach((W,ie)=>{W!=null&&W.isMainKey&&(be=ie)});let Ce=[];(Ut=($t=(Le=(J=fe==null?void 0:fe[0])==null?void 0:J.compData)==null?void 0:Le.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:$t.contents)==null||Ut.forEach(W=>{W.find(ie=>ie===oe)&&(be||be===0)&&Ce.push(W==null?void 0:W[be])});let Ie=[],He=await(Ce==null?void 0:Ce.map(async W=>{let ie=await It(te+"/"+W,sessionStorage.getItem("systemKey"),""),me=ie==null?void 0:ie.find(P=>(P==null?void 0:P.name)===o);Ie.push(me)}));await Promise.all(He),Ie==null||Ie.forEach(W=>{var me,P,Q,Oe;let ie=K(W==null?void 0:W.compData);ie=ie==null?void 0:ie.filter(ye=>(ye==null?void 0:ye.key)!=="tableContents"),ie.push({key:"tableContents",contents:ct((P=(me=W==null?void 0:W.compData)==null?void 0:me.find(ye=>(ye==null?void 0:ye.key)==="tableContents"))==null?void 0:P.contents,(Oe=(Q=W==null?void 0:W.compData)==null?void 0:Q.find(ye=>(ye==null?void 0:ye.key)==="header"))==null?void 0:Oe.contents)}),ie.push({key:"contentTableId",contents:W==null?void 0:W.id}),c.push(ie)})}return c},It=async(e,t,n="",r=!1,o,i)=>{var m,g,E,w,T,D,B;let s,a=await p.getInsofDataApi({key:{systemKey:t}}),l=new WeakMap;(g=(m=a.data.result)==null?void 0:m.filter(b=>{var S,V;return((S=b==null?void 0:b.key)==null?void 0:S.pageKey)!=="menu"&&((V=b==null?void 0:b.key)==null?void 0:V.pageKey)!=="secret"}))==null||g.forEach(b=>{l[b.key.pageKey]?l[b.key.pageKey]=[...l[b.key.pageKey],b]:l[b.key.pageKey]=[b]}),(!r||!o)&&(s=(E=l[e])==null?void 0:E.filter(b=>{var S;return((S=b==null?void 0:b.key)==null?void 0:S.parentTable)===n}));const c=(w=l[e])==null?void 0:w.filter(b=>{var S;return((S=b==null?void 0:b.key)==null?void 0:S.type)==="structureMethod"}),d=s==null?void 0:s.map(b=>b.id);if(!d)return;const f=(T=l[e])==null?void 0:T.filter(b=>{var S,V;return((S=b==null?void 0:b.key)==null?void 0:S.type)==="data"&&d.includes((V=b==null?void 0:b.key)==null?void 0:V.tableId)});let v=[];f==null||f.forEach(b=>{var C;const S=Array.isArray(b.value.tableData)?b.value.tableData:[b.value.tableData];S.unshift({id:b.id});const V=(C=b==null?void 0:b.key)==null?void 0:C.tableId;v!=null&&v.find(A=>(A==null?void 0:A.key)===V)?v=v==null?void 0:v.map(A=>((A==null?void 0:A.key)===V&&(A.contents=[...A.contents,S]),A)):v.push({key:V,contents:[S]})});let y=[];const h=await(s==null?void 0:s.map(async b=>{var A,_,O,$,x,M,N,R,j,z,Z,L,q,re,le;const S=b.value.pageData,V=b==null?void 0:b.id;let C=(A=K(S.compData))==null?void 0:A.filter(H=>(H==null?void 0:H.key)!=="tableContents");if(C&&(C!=null&&C.find(H=>(H==null?void 0:H.key)==="header"))&&((O=(_=C==null?void 0:C.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:_.contents)!=null&&O.every(H=>!(H!=null&&H.columnPath)))){let H=ct(($=v==null?void 0:v.find(G=>(G==null?void 0:G.key)===b.id))==null?void 0:$.contents,(x=C==null?void 0:C.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:x.contents);if(!H||(H==null?void 0:H.length)===0){let G=await em((M=C==null?void 0:C.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:M.contents,e,(N=C==null?void 0:C.find(ee=>(ee==null?void 0:ee.key)==="tableFilter"))==null?void 0:N.contents,l);G!=null&&G.mainKeys&&C.push({key:"mainRouters",contents:G==null?void 0:G.mainKeys}),G!=null&&G.tableContents?(C.push({key:"tableContents",contents:ct(G==null?void 0:G.tableContents,(R=C==null?void 0:C.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:R.contents)}),C=C==null?void 0:C.map(ee=>{var Fe;return(ee==null?void 0:ee.key)==="header"&&(ee.contents=(Fe=ee.contents)==null?void 0:Fe.map(ge=>((ge==null?void 0:ge.prop)===(G==null?void 0:G.mainKey)&&(ge.isMainKey=!0),ge))),ee})):C.push({key:"tableContents",contents:ct(G,(j=C==null?void 0:C.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:j.contents)})}else C.push({key:"tableContents",contents:H})}else C&&(C!=null&&C.find(H=>(H==null?void 0:H.key)==="header"))&&(C=await Fv(K(C),V,s),S.tableId=(z=C==null?void 0:C.find(H=>(H==null?void 0:H.key)==="contentTableId"))==null?void 0:z.contents);if(S.id=b.id,S.isShow=(L=(Z=b==null?void 0:b.value)==null?void 0:Z.pageData)==null?void 0:L.isShow,S.compData=C,((q=b.key)==null?void 0:q.type)!=="method")(re=S==null?void 0:S.compData)!=null&&re.every(H=>Array.isArray(H))?(le=S==null?void 0:S.compData)==null||le.forEach((H,G)=>{G===0?y.push({comp:S==null?void 0:S.comp,compData:H,id:S==null?void 0:S.id,name:S==null?void 0:S.name,isShow:S==null?void 0:S.isShow}):y.push({comp:S==null?void 0:S.comp,compData:H,id:S==null?void 0:S.id,name:"",isShow:S==null?void 0:S.isShow})}):y.push(S);else{let H;H={name:"",compData:[S],comp:"calculator"},y.push(H)}}));return await Promise.all(h),((D=c==null?void 0:c.map(b=>b.value.pageData))==null?void 0:D.filter(b=>Object.values(b).length>0).length)>0&&y.push({comp:"methodButton",name:"",compData:(B=c==null?void 0:c.map(b=>b.value.pageData))==null?void 0:B.filter(b=>Object.values(b).length>0)}),y=y.sort((b,S)=>b.id-S.id),i?y:await Vv(e,y)},Lv=async e=>{await p.deleteInsofDataApi({id:e})},$v=async(e,t,n,r,o,i,s)=>{var l,c,d,f,v,y,h,m,g,E,w,T,D,B,b;const a=((c=(l=s==null?void 0:s.content)==null?void 0:l[0])==null?void 0:c.id)??"";if(a!==""&&((d=s==null?void 0:s.content)==null?void 0:d.length)>1){const S=await p.getInsofDataApi({id:a});let V=((h=(y=(v=(f=S==null?void 0:S.data)==null?void 0:f.result)==null?void 0:v[0])==null?void 0:y.key)==null?void 0:h.tableId)??"",C=((w=(E=(g=(m=S==null?void 0:S.data)==null?void 0:m.result)==null?void 0:g[0])==null?void 0:E.key)==null?void 0:w.pageKey)??"";const A=await p.createInsofDataApi({key:{type:e,pageKey:C,tableId:V,systemKey:r},value:{tableData:Pt(o,(T=ht(i))==null?void 0:T.filter(_=>_!=="操作"))}});((D=A==null?void 0:A.data)==null?void 0:D.code)===200?p.ElMessage.success("保存成功"):p.ElMessage.error("保存响应失败")}else{const S=await p.createInsofDataApi({key:{type:e,pageKey:t,tableId:n,systemKey:r},value:{tableData:Pt(o,(B=ht(i))==null?void 0:B.filter(V=>V!=="操作"))}});((b=S==null?void 0:S.data)==null?void 0:b.code)===200?p.ElMessage.success("保存成功"):p.ElMessage.error("保存响应失败")}},Uv=async(e,t,n,r,o,i,s)=>{var d,f,v,y,h,m,g,E,w,T,D,B;const a=await p.getInsofDataApi({id:r});let l=((y=(v=(f=(d=a==null?void 0:a.data)==null?void 0:d.result)==null?void 0:f[0])==null?void 0:v.key)==null?void 0:y.tableId)??"",c=((E=(g=(m=(h=a==null?void 0:a.data)==null?void 0:h.result)==null?void 0:m[0])==null?void 0:g.key)==null?void 0:E.pageKey)??"";if(l&&l!==""){const b=await p.updateInsofDataApi({key:{type:e,pageKey:c,tableId:l,systemKey:o},value:{tableData:Pt(i,(w=ht(s))==null?void 0:w.filter(S=>S!=="操作"))},id:r});((T=b==null?void 0:b.data)==null?void 0:T.code)===200?p.ElMessage.success("保存成功"):p.ElMessage.error("保存响应失败")}else{const b=await p.updateInsofDataApi({key:{type:e,pageKey:t,tableId:n,systemKey:o},value:{tableData:Pt(i,(D=ht(s))==null?void 0:D.filter(S=>S!=="操作"))},id:r});((B=b==null?void 0:b.data)==null?void 0:B.code)===200?p.ElMessage.success("保存成功"):p.ElMessage.error("保存响应失败")}},Kv=async(e,t)=>{await p.updateInsofDataApi({value:{pageData:t},id:e})},Hv=async(e,t)=>await p.getInsofDataApi({key:e,valueLikes:t}),jv=async()=>{var e,t,n,r,o,i,s,a,l;try{const c=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});((e=c==null?void 0:c.data)==null?void 0:e.code)===200&&(Qr.setPlatform(((o=(r=(n=(t=c==null?void 0:c.data)==null?void 0:t.result)==null?void 0:n[0])==null?void 0:r.key)==null?void 0:o.systemType)==="制造系统"?"client":"browser"),Qr.setPlatName(((l=(a=(s=(i=c==null?void 0:c.data)==null?void 0:i.result)==null?void 0:s[0])==null?void 0:a.key)==null?void 0:l.name)??""))}catch(c){return Promise.reject(c)}},Ot=u.ref(0),zv=hn(Te),qv=pn(Te),{loginUserInfo:Cr}=Re(qv),{activeMenuPath:nm}=Re(zv),Yn=e=>e==null?void 0:e.map(n=>(Ot.value++,Array.isArray(n)?Yn(n):{label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":(n==null?void 0:n.prop)??"a"+Ot.value,width:(n==null?void 0:n.label)==="操作"?"200":n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"left",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??Ot.value,type:(n==null?void 0:n.label)==="操作"?"operate":void 0,formType:(n==null?void 0:n.formType)??"",isHidden:n==null?void 0:n.isHidden,options:(n==null?void 0:n.options)??[],children:Yn(n.children)??void 0})),Gv=e=>{const t=[];function n(r){if(Array.isArray(r))for(const o of r)!o.children||o.children.length===0?t.push(o):n(o.children)}return n(e),t},Wv=e=>K(e).map(n=>(Array.isArray(n)&&(n=n.map(r=>(Array.isArray(r)?r=Yn(r):(r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":(r==null?void 0:r.prop)??"a"+Ot.value,width:(r==null?void 0:r.label)==="操作"?"200":r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??Ot.value,type:(r==null?void 0:r.label)==="操作"?"operate":void 0,formType:(r==null?void 0:r.formType)??"",isHidden:r==null?void 0:r.isHidden,options:(r==null?void 0:r.options)??[],children:Yn(r.children)},Ot.value++),r))),n)),eo=e=>{function t(n,r=[]){if(!n||n.length===0)return[];let o=r;return Array.isArray(n)&&(n==null||n.forEach(i=>{var s;i!=null&&i.children&&((s=i.children)==null?void 0:s.length)>0?o=t(i==null?void 0:i.children,o):o.push(i)})),o}return t(e)},Yv=e=>{let t=K(e);return t=t==null?void 0:t.map(n=>((n==null?void 0:n.type)==="Select"&&(n={label:n==null?void 0:n.label,name:n==null?void 0:n.name,type:n==null?void 0:n.type,value:"",optionUrl:{groupSelect:n==null?void 0:n.groupSelect,menuSelect:n==null?void 0:n.menuSelect,type:"Select",selectRelateType:n==null?void 0:n.selectRelateType,multiple:n==null?void 0:n.multiple}}),n)),t},Zv=e=>{var t,n,r,o,i,s;if(((t=e==null?void 0:e.pageData)==null?void 0:t.comp)==="Form"){let a=(r=(n=e==null?void 0:e.pageData)==null?void 0:n.compData)==null?void 0:r.map(c=>{var d;return(c==null?void 0:c.key)==="formContent"&&(c.contents=(d=c.contents)==null?void 0:d.map(f=>f)),c});return{pageData:{comp:(o=e==null?void 0:e.pageData)==null?void 0:o.comp,compData:a,name:(i=e==null?void 0:e.pageData)==null?void 0:i.name,isShow:(s=e==null?void 0:e.pageData)==null?void 0:s.isShow}}}else return e},Xv=(e,t)=>{var r,o,i,s,a,l,c,d,f;let n=(i=(o=(r=t==null?void 0:t.pageData)==null?void 0:r.compData)==null?void 0:o.find(v=>(v==null?void 0:v.key)==="formContent"))==null?void 0:i.contents;if(((s=e==null?void 0:e.pageData)==null?void 0:s.comp)==="Form"){let v=(l=(a=e==null?void 0:e.pageData)==null?void 0:a.compData)==null?void 0:l.map(h=>{var m;return(h==null?void 0:h.key)==="formContent"&&(h.contents=(m=h.contents)==null?void 0:m.map(g=>{var E;return g.value=(E=n==null?void 0:n.find(w=>(w==null?void 0:w.key)===(g==null?void 0:g.key)))==null?void 0:E.value,g})),h});return{pageData:{comp:(c=e==null?void 0:e.pageData)==null?void 0:c.comp,compData:v,name:(d=e==null?void 0:e.pageData)==null?void 0:d.name,isShow:(f=e==null?void 0:e.pageData)==null?void 0:f.isShow}}}else return e},Ml=async(e,t,n,r)=>{var y,h,m,g,E,w,T,D,B,b,S,V,C,A,_,O,$;let o=e;(o==null?void 0:o[(o==null?void 0:o.length)-1])!=="/"&&(o="",(h=(y=K(e))==null?void 0:y.split("/"))==null||h.forEach((x,M)=>{var N,R;M!==((R=(N=K(e))==null?void 0:N.split("/"))==null?void 0:R.length)-1&&(o=o===""?o+x:o+"/"+x)}),o=o+"/");let i=[];const s=await p.getInsofDataApi({key:{pageKey:e,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});let a;(e==null?void 0:e[(e==null?void 0:e.length)-1])!=="/"&&(a=await p.getInsofDataApi({key:{pageKey:o,type:"structure",systemKey:sessionStorage.getItem("systemKey")}}),((g=(m=a==null?void 0:a.data)==null?void 0:m.result)==null?void 0:g.length)>0&&(a=(w=(E=K(a))==null?void 0:E.data)==null?void 0:w.result));const l=await p.getInsofDataApi({key:{pageKey:o,systemKey:sessionStorage.getItem("systemKey"),type:"structureMethod"}}),c=await p.getInsofDataApi({key:{pageKey:e,type:"data",systemKey:sessionStorage.getItem("systemKey")}});if((e==null?void 0:e[(e==null?void 0:e.length)-1])!=="/"){let x=(T=s==null?void 0:s.data)==null?void 0:T.result;if(!Array.isArray(a))return;a==null||a.forEach(M=>{var R,j,z,Z,L;let N=(R=x==null?void 0:x.find(q=>{var re,le,H,G;return((le=(re=M==null?void 0:M.value)==null?void 0:re.pageData)==null?void 0:le.name)===((G=(H=q==null?void 0:q.value)==null?void 0:H.pageData)==null?void 0:G.name)}))==null?void 0:R.value;N?N=N:N=void 0,i.push({key:{pageKey:t,parentTable:((j=N==null?void 0:N.key)==null?void 0:j.parentTable)??"",systemKey:(z=M==null?void 0:M.key)==null?void 0:z.systemKey,type:((Z=N==null?void 0:N.key)==null?void 0:Z.type)??((L=M==null?void 0:M.key)==null?void 0:L.type),version:1},value:Xv(M==null?void 0:M.value,N)})})}else(B=(D=s==null?void 0:s.data)==null?void 0:D.result)==null||B.forEach(x=>{var M,N,R;i.push({key:{pageKey:t,parentTable:(M=x==null?void 0:x.key)==null?void 0:M.parentTable,systemKey:(N=x==null?void 0:x.key)==null?void 0:N.systemKey,type:(R=x==null?void 0:x.key)==null?void 0:R.type,version:1},value:Zv(x==null?void 0:x.value)})});(S=(b=l==null?void 0:l.data)==null?void 0:b.result)==null||S.forEach(x=>{var M,N;i.push({key:{pageKey:t,systemKey:(M=x==null?void 0:x.key)==null?void 0:M.systemKey,type:(N=x==null?void 0:x.key)==null?void 0:N.type,version:1},value:x==null?void 0:x.value})}),i=i==null?void 0:i.map(x=>{var M,N,R;return((N=(M=x==null?void 0:x.value)==null?void 0:M.pageData)==null?void 0:N.comp)==="Form"&&(x.value.pageData.compData=(R=x.value.pageData.compData)==null?void 0:R.map(j=>{var z;return(j==null?void 0:j.key)==="formContent"&&(j.contents=(z=j.contents)==null?void 0:z.map(Z=>(n!=null&&n[Z==null?void 0:Z.key]&&(Z.value=n[Z.key]),Z))),j}),r&&x.value.pageData.compData.push({key:"parentFormPath",contents:r})),x}),(i==null?void 0:i.length)>0&&await p.batchAddInsofDataApi({dataList:i});let d={};const f=await p.getInsofDataApi({key:{pageKey:t,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});((C=(V=s==null?void 0:s.data)==null?void 0:V.result)==null?void 0:C.length)>0&&((_=(A=s==null?void 0:s.data)==null?void 0:A.result)==null||_.forEach(x=>{var M,N,R;d[x.id]=(R=(N=(M=f==null?void 0:f.data)==null?void 0:M.result)==null?void 0:N.find(j=>{var z,Z,L,q;return((Z=(z=j==null?void 0:j.value)==null?void 0:z.pageData)==null?void 0:Z.name)===((q=(L=x==null?void 0:x.value)==null?void 0:L.pageData)==null?void 0:q.name)}))==null?void 0:R.id}));let v=[];($=(O=c==null?void 0:c.data)==null?void 0:O.result)==null||$.forEach(x=>{var M,N,R;v.push({key:{pageKey:t,tableId:d[(M=x==null?void 0:x.key)==null?void 0:M.tableId],systemKey:(N=x==null?void 0:x.key)==null?void 0:N.systemKey,type:(R=x==null?void 0:x.key)==null?void 0:R.type},value:x==null?void 0:x.value})}),(v==null?void 0:v.length)>0&&await p.batchAddInsofDataApi({dataList:v})},Fl=(e,t)=>{let n=K(e);return n=n==null?void 0:n.map(o=>{var l,c,d;let i=[],s=[];for(let f in t)if(f!=null&&f.includes((c=(l=K(o))==null?void 0:l.key)==null?void 0:c.pageKey)){let v=(d=t[f])==null?void 0:d.filter(y=>{var h,m,g;return((h=y==null?void 0:y.key)==null?void 0:h.type)==="data"&&((m=y==null?void 0:y.key)==null?void 0:m.tableId)===((g=K(o))==null?void 0:g.id)});s=[...s,...v]}(s==null?void 0:s.length)>0&&(s==null||s.forEach(f=>{i.push(f.value.tableData)}));let a=K(o).value.pageData.compData;return a.push({key:"tableContents",contents:i}),o.value.pageData.compData=a,o}),n},ha=(e,t)=>{var s,a,l;let n=(s=e==null?void 0:e[0])==null?void 0:s.formMenuSelect,r=e==null?void 0:e.map(c=>{var d,f;return(f=(d=c.groupSelect)==null?void 0:d.split(":"))==null?void 0:f[1]}),o="";n==null||n.forEach(c=>{o=o===""?o+c:o+"/"+c});let i=[];for(let c in t)if(c!=null&&c.includes(o)){let d=(a=t[c])==null?void 0:a.filter(f=>{var v,y;return((v=f==null?void 0:f.key)==null?void 0:v.type)==="structure"&&((y=f==null?void 0:f.key)==null?void 0:y.parentTable)===""});i=[...i,...d]}if((i==null?void 0:i.length)>0){let c=i==null?void 0:i.filter(h=>{var m,g,E;return((m=h==null?void 0:h.key)==null?void 0:m.pageKey)!==o&&((E=(g=h==null?void 0:h.value)==null?void 0:g.pageData)==null?void 0:E.comp)==="Form"}),d=i==null?void 0:i.filter(h=>{var m,g,E;return((m=h==null?void 0:h.key)==null?void 0:m.pageKey)!==o&&((E=(g=h==null?void 0:h.value)==null?void 0:g.pageData)==null?void 0:E.comp)==="Table"});d=Fl(K(d),t),c=[...K(c),...d],c=c==null?void 0:c.map(h=>({[h.key.pageKey]:h}));let f=0;c=c.reduce((h,m)=>(Object.keys(m).forEach(g=>{h[g]||(h[g]=[],h[g].push({index:f})),h[g].push(m[g])}),f++,h),{});let v=(l=Object.values(c))==null?void 0:l.sort((h,m)=>{var w,T;let g=(w=h==null?void 0:h.find(D=>D==null?void 0:D.index))==null?void 0:w.index,E=(T=m==null?void 0:m.find(D=>D==null?void 0:D.index))==null?void 0:T.index;return g-E});c=v==null?void 0:v.map(h=>h==null?void 0:h.filter(m=>{var g,E,w,T;return!(m!=null&&m.index)&&(m==null?void 0:m.index)!==0&&!((E=(g=m==null?void 0:m.key)==null?void 0:g.pageKey)!=null&&E.includes("updateLoading"))&&!((T=(w=m==null?void 0:m.key)==null?void 0:w.pageKey)!=null&&T.includes("loading"))}));let y=[];return c==null||c.forEach(h=>{var E,w,T,D,B,b,S,V,C,A;const m=h==null?void 0:h.find(_=>{var O,$,x,M,N;return(($=(O=_==null?void 0:_.value)==null?void 0:O.pageData)==null?void 0:$.name)===((N=(M=(x=e==null?void 0:e[0])==null?void 0:x.groupSelect)==null?void 0:M.split(":"))==null?void 0:N[0])});let g=(B=(D=(T=(w=(E=K(m))==null?void 0:E.value)==null?void 0:w.pageData)==null?void 0:T.compData)==null?void 0:D.find(_=>(_==null?void 0:_.key)==="formContent"))==null?void 0:B.contents;if(g){let _=[];r==null||r.forEach((O,$)=>{var N,R,j,z,Z,L;let x=h==null?void 0:h.find(q=>{var re,le,H,G,ee;return((le=(re=q==null?void 0:q.value)==null?void 0:re.pageData)==null?void 0:le.name)===((ee=(G=(H=e==null?void 0:e[$])==null?void 0:H.groupSelect)==null?void 0:G.split(":"))==null?void 0:ee[0])}),M=(Z=(z=(j=(R=(N=K(x))==null?void 0:N.value)==null?void 0:R.pageData)==null?void 0:j.compData)==null?void 0:z.find(q=>(q==null?void 0:q.key)==="formContent"))==null?void 0:Z.contents;M!=null&&M.find(q=>(q==null?void 0:q.key)===O)?_.push((L=M==null?void 0:M.find(q=>(q==null?void 0:q.key)===O))==null?void 0:L.value):_.push("")}),y.push(_)}else g=(A=(C=(V=(S=(b=K(m))==null?void 0:b.value)==null?void 0:S.pageData)==null?void 0:V.compData)==null?void 0:C.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:A.contents,g==null||g.forEach(_=>{let O=[];r==null||r.forEach($=>{_!=null&&_[$]&&O.push(_==null?void 0:_[$])}),y.push(O)})}),y}},Jv=(e,t,n)=>{var s,a,l,c,d;let r=K(e),o=t==null?void 0:t.map(f=>f==null?void 0:f.prop),i=[];for(let f in n)if(f!=null&&f.includes(r)){let v=(s=n[f])==null?void 0:s.filter(y=>{var h,m;return((h=y==null?void 0:y.key)==null?void 0:h.type)==="structure"&&((m=y==null?void 0:y.key)==null?void 0:m.parentTable)===""});i=[...i,...v]}if((i==null?void 0:i.length)>0){let f=i==null?void 0:i.filter(T=>{var D,B,b,S;return((D=T==null?void 0:T.key)==null?void 0:D.pageKey)!==r&&((b=(B=T==null?void 0:T.value)==null?void 0:B.pageData)==null?void 0:b.comp)==="Form"&&(T==null?void 0:T.key.pageKey.includes(r+"/"))&&!((S=T==null?void 0:T.key.pageKey)!=null&&S.includes("@"))}),v=i==null?void 0:i.filter(T=>{var D,B,b,S;return((D=T==null?void 0:T.key)==null?void 0:D.pageKey)!==r&&((b=(B=T==null?void 0:T.value)==null?void 0:B.pageData)==null?void 0:b.comp)==="Table"&&(T==null?void 0:T.key.pageKey.includes(r+"/"))&&!((S=T==null?void 0:T.key.pageKey)!=null&&S.includes("@"))});v=Fl(K(v),n),f=[...K(f),...v],f=f==null?void 0:f.map(T=>({[T.key.pageKey]:T}));let y=0;f=f.reduce((T,D)=>(Object.keys(D).forEach(B=>{T[B]||(T[B]=[],T[B].push({index:y})),T[B].push(D[B])}),y++,T),{});let h=(a=Object.values(f))==null?void 0:a.sort((T,D)=>{var S,V;let B=(S=T==null?void 0:T.find(C=>C==null?void 0:C.index))==null?void 0:S.index,b=(V=D==null?void 0:D.find(C=>C==null?void 0:C.index))==null?void 0:V.index;return B-b});f=h==null?void 0:h.map(T=>T==null?void 0:T.filter(D=>!(D!=null&&D.index)&&(D==null?void 0:D.index)!==0));let m=(l=K(f))==null?void 0:l.filter(T=>T==null?void 0:T.find(D=>{var B,b,S,V;return((V=(B=D==null?void 0:D.key)==null?void 0:B.pageKey)==null?void 0:V[((S=(b=D==null?void 0:D.key)==null?void 0:b.pageKey)==null?void 0:S.length)-1])==="/"}));f=f==null?void 0:f.filter(T=>!(T!=null&&T.find(D=>{var B,b,S,V,C,A,_,O;return((V=(B=D==null?void 0:D.key)==null?void 0:B.pageKey)==null?void 0:V[((S=(b=D==null?void 0:D.key)==null?void 0:b.pageKey)==null?void 0:S.length)-1])==="/"||((A=(C=D==null?void 0:D.key)==null?void 0:C.pageKey)==null?void 0:A.includes("updateLoading"))||((O=(_=D==null?void 0:D.key)==null?void 0:_.pageKey)==null?void 0:O.includes("loading"))})));let g=[],E=[];(c=m==null?void 0:m[0])==null||c.forEach(T=>{var D,B,b,S,V;((B=(D=T==null?void 0:T.value)==null?void 0:D.pageData)==null?void 0:B.comp)==="Form"&&((V=(S=(b=T==null?void 0:T.value)==null?void 0:b.pageData)==null?void 0:S.compData)==null||V.forEach(C=>{(C==null?void 0:C.key)==="formContent"&&(E=[...E,...C==null?void 0:C.contents])}))});let w=(d=E==null?void 0:E.find(T=>(T==null?void 0:T.isMain)===!0))==null?void 0:d.key;return f==null||f.forEach(T=>{let D=[];T==null||T.forEach(b=>{var S,V,C,A,_;((V=(S=b==null?void 0:b.value)==null?void 0:S.pageData)==null?void 0:V.comp)==="Form"&&((_=(A=(C=b==null?void 0:b.value)==null?void 0:C.pageData)==null?void 0:A.compData)==null||_.forEach(O=>{(O==null?void 0:O.key)==="formContent"&&(D=[...D,...O==null?void 0:O.contents])}))});let B=[];o==null||o.forEach(b=>{var S;B.push(((S=D==null?void 0:D.find(V=>(V==null?void 0:V.key)===b))==null?void 0:S.value)??"")}),g.push(B)}),{mainKey:w,tableContents:g}}},Qv=async(e,t,n,r)=>{var s,a,l,c,d,f,v,y,h;let o=(a=(s=K(e))==null?void 0:s.split("/"))==null?void 0:a[0],i=[];for(let m in r)if(m!=null&&m.includes(o)){let g=(l=r[m])==null?void 0:l.filter(E=>{var w,T;return((w=E==null?void 0:E.key)==null?void 0:w.type)==="structure"&&((T=E==null?void 0:E.key)==null?void 0:T.parentTable)===""});i=[...i,...g]}if((i==null?void 0:i.length)>0){let m=(f=(d=(c=i==null?void 0:i.filter(w=>{var T;return((T=w==null?void 0:w.key)==null?void 0:T.pageKey)===o}))==null?void 0:c[0])==null?void 0:d.key)==null?void 0:f.parentPageKey,g=[];for(let w in r)if(w!=null&&w.includes(m)){let T=(v=r[w])==null?void 0:v.filter(D=>{var B,b;return((B=D==null?void 0:D.key)==null?void 0:B.type)==="structure"&&((b=D==null?void 0:D.key)==null?void 0:b.parentTable)===""});g=[...g,...T]}let E="";if((g==null?void 0:g.length)>0){let w=[],T=(y=g==null?void 0:g.filter(A=>{var _,O,$,x,M,N;return(($=(O=(_=A==null?void 0:A.key)==null?void 0:_.pageKey)==null?void 0:O.split("/"))==null?void 0:$[0])===m&&((N=(M=(x=A==null?void 0:A.key)==null?void 0:x.pageKey)==null?void 0:M.split("/"))==null?void 0:N.length)===2}))==null?void 0:y.map(A=>{var _;return(_=A==null?void 0:A.key)==null?void 0:_.pageKey}),D=(h=K(T))==null?void 0:h.map(async A=>{var M,N,R,j,z,Z,L,q,re,le,H,G,ee,Fe,ge;let _=await It(A,sessionStorage.getItem("systemKey")),O=(j=(R=(N=(M=K(_))==null?void 0:M[0])==null?void 0:N.compData)==null?void 0:R.find(J=>(J==null?void 0:J.key)==="tableContents"))==null?void 0:j.contents,$=(le=(re=(q=(L=(Z=(z=K(_))==null?void 0:z[0])==null?void 0:Z.compData)==null?void 0:L.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:q.contents)==null?void 0:re.filter(J=>(J==null?void 0:J.label)!=="操作"))==null?void 0:le.map(J=>J==null?void 0:J.prop),x=[];return(ge=(Fe=(ee=(G=(H=K(_))==null?void 0:H[0])==null?void 0:G.compData)==null?void 0:ee.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:Fe.contents)==null||ge.forEach(J=>{(J==null?void 0:J.isMainKey)===!0&&(E=J==null?void 0:J.prop)}),O==null||O.forEach(J=>{let Le=Pt(J,$);x.push(Le),w.push({key:Le==null?void 0:Le[E],routerContent:A})}),x}),B=await Promise.all(D),b=[];B==null||B.forEach(A=>{(A==null?void 0:A.length)>0&&(A==null||A.forEach(_=>{b.push(_)}))});let S=[];S=t==null?void 0:t.map(A=>{var O,$,x;let _={};for(let M in A)A[M].toUpperCase()==="@LOGINUSER"?_[M]=(O=Cr.value)!=null&&O.account?($=Cr.value)==null?void 0:$.account:(x=Cr.value)==null?void 0:x.账号:_[M]=A[M];return _});let V=[];b==null||b.forEach(A=>{let _=[];S==null||S.forEach(O=>{let $=[];for(let x in O)$.push(A[x]===O[x]);_.push($)}),_.find(O=>O==null?void 0:O.every($=>$===!0))&&V.push(A)});let C=[];return V==null||V.forEach(A=>{let _={};n==null||n.forEach(O=>{_[O.prop]=A[O.prop]??""}),C.push(_)}),C=C==null?void 0:C.map(A=>Object.values(A)),{mainKey:E,tableContents:C,mainKeys:w}}else return}else return},em=async(e,t,n,r)=>{var i,s,a,l;let o=(i=K(e))==null?void 0:i.filter(c=>(c==null?void 0:c.label)!=="操作");if((n==null?void 0:n.length)>0){let c=await Qv(t,n,o,r);return c&&((s=c==null?void 0:c.tableContents)==null?void 0:s.length)>0?c:[]}if(!(o!=null&&o.every(c=>{var d,f,v,y;return((d=c==null?void 0:c.formMenuSelect)==null?void 0:d.length)>0&&((v=(f=c==null?void 0:c.groupSelect)==null?void 0:f.split(":"))==null?void 0:v.length)>0||((y=c==null?void 0:c.formMenuGroup)==null?void 0:y.length)>0})))return Jv(t,o,r);if(o!=null&&o.every(c=>!(c!=null&&c.formMenuGroup)))return ha(o,r);{let c=[];(l=(a=o==null?void 0:o[0])==null?void 0:a.formMenuGroup)==null||l.forEach((y,h)=>{let m=[];o==null||o.forEach(g=>{var E,w,T,D,B,b;m.push({columnPath:g==null?void 0:g.columnPath,formMenuSelect:(T=((E=g==null?void 0:g.formMenuGroup)==null?void 0:E[h])??((w=g==null?void 0:g.formMenuGroup)==null?void 0:w[0]))==null?void 0:T.formMenuSelect,groupSelect:(b=((D=g==null?void 0:g.formMenuGroup)==null?void 0:D[h])??((B=g==null?void 0:g.formMenuGroup)==null?void 0:B[0]))==null?void 0:b.groupSelect,isRoute:g==null?void 0:g.isRoute,label:g==null?void 0:g.label,prop:g==null?void 0:g.label})}),c.push(m)});let d=[],v=c==null?void 0:c.map(async y=>ha(y,r));return v==null||v.forEach(y=>{y==null||y.forEach(h=>{d.push(h)})}),d}};exports.CHANGE_EVENT=Nr;exports.ElButton=du;exports.ElButtonGroup=Jh;exports.ElFocusTrap=iu;exports.ElInput=nu;exports.ElMessageBox=mu;exports.ElOverlay=pu;exports.FOCUS_TRAP_INJECTION_KEY=ru;exports.INPUT_EVENT=Rr;exports.IsJson=ty;exports.PatchFlags=Yt;exports.Set=Mn;exports.SetCache=en;exports.Stack=Ue;exports.State=xv;exports.State$1=Wy;exports.TinyColor=cu;exports.UPDATE_MODEL_EVENT=Ln;exports.addPathToTree=sr;exports.addTableContents=$v;exports.animateScrollTo=Xd;exports.baseClone=Wt;exports.baseFlatten=ao;exports.baseIsEqual=fo;exports.buttonTypes=uu;exports.cAF=Ha;exports.cacheHas=Va;exports.cloneBuffer=Da;exports.cloneDeep=K;exports.cloneTypedArray=xa;exports.convertArrayToTree=Vo;exports.convertRawToTree=Ey;exports.copyArray=ga;exports.copyObject=ln;exports.decryptData=cr;exports.defineStore=dn;exports.deleteTableContents=Lv;exports.encryptData=Jr;exports.ensureOnlyChild=rp;exports.filterContents=Hv;exports.findNodeByPropInTree=pl;exports.findRootNodeByPath=yy;exports.fixFormContents=Kv;exports.fixTableContents=Uv;exports.flatRest=Aa;exports.flattedChildren=Ht;exports.flatten=Ta;exports.focusNode=dh;exports.formContextKey=Qn;exports.formItemContextKey=ho;exports.generateKeyPair=mv;exports.getActivePageStructureId=Il;exports.getAllKeysIn=ka;exports.getAllLeafNodes=Gv;exports.getColumnChild=eo;exports.getColumnContents=ht;exports.getFirstArrayProperty=Bo;exports.getGradeColumns=Wv;exports.getItemData=It;exports.getLeafNodesRecursive=Fo;exports.getNormalizedProps=np;exports.getParentConstruct=py;exports.getParentContents=oy;exports.getParentKey=hy;exports.getPrototype=uo;exports.getScrollBarWidth=ja;exports.getScrollContainer=Yd;exports.getScrollElement=Jd;exports.getScrollTop=Qd;exports.getSibling=fh;exports.getTableContents=ct;exports.getTableFormToForm=Yv;exports.getValueToObjectValue=Pt;exports.groupByField=Mo;exports.handleRowAuthorityRender=Lo;exports.handleSubmitAsync=Ct;exports.hasIn=La;exports.identity=pa;exports.initCloneObject=Na;exports.inputProps=Ga;exports.isArguments=Zn;exports.isArrayLike=no;exports.isBuffer=Qt;exports.isEqual=$a;exports.isFirefox=za;exports.isFocusable=er;exports.isFragment=hu;exports.isLeaf=Ja;exports.isTypedArray=io;exports.isValidComponentSize=vu;exports.isValidElementNode=tp;exports.keys=Xn;exports.keysIn=Jn;exports.loadingConstruct=Ml;exports.loadingSystemType=jv;exports.methodTableToContent=ry;exports.overRest=va;exports.pick=Ua;exports.pinia=Te;exports.rAF=Ka;exports.resetPassword=un;exports.scrollIntoView=Zd;exports.setToArray=Fa;exports.setToString=ya;exports.storeToRefs=Re;exports.submitTableAsyncByVerify=fr;exports.tableEveryContents=dy;exports.tableToContents=sy;exports.tableToStruct=iy;exports.triggerEvent=ch;exports.tryFocus=qe;exports.useAriaProps=qa;exports.useAttrs=Wa;exports.useAuthorityState=Ro;exports.useComposition=eu;exports.useDeprecated=au;exports.useDraggable=gu;exports.useFocusController=Qa;exports.useFormDisabled=cn;exports.useFormItem=po;exports.useFormItemInputId=Za;exports.useFormSize=go;exports.useId=$n;exports.useIdInjection=Ya;exports.useLockscreen=yu;exports.useLoginState=pn;exports.useMenuState=hn;exports.useModelComp=ir;exports.useSameTarget=mo;
|