ss-component-new 1.3.113 → 1.3.115
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/{MTLLoader-y4B1LPuT.js → MTLLoader-C-9g5iRs.js} +36 -36
- package/dist/{MTLLoader-BviVUPWi.cjs → MTLLoader-CfO9qTqV.cjs} +1 -1
- package/dist/{OrbitControls-390k2OM3.js → OrbitControls-B2gEQ18i.js} +1 -1
- package/dist/{OrbitControls-Cqppy3wb.cjs → OrbitControls-DoGWhGYE.cjs} +1 -1
- package/dist/{URDFLoader-BlbEAIgR.js → URDFLoader-BWZcLTTH.js} +193 -193
- package/dist/{URDFLoader-C2tFq0lk.cjs → URDFLoader-BlsYqWJQ.cjs} +1 -1
- package/dist/{animationData-B1Jlpr7b.cjs → animationData-BjpsMpYe.cjs} +1 -1
- package/dist/{animationData-DfDLy_M4.js → animationData-CK7mtjyo.js} +18 -18
- package/dist/{array-ymebeoXj.cjs → array-4sEK1Tp6.cjs} +1 -1
- package/dist/{array-DLBDgy0c.js → array-C61a4nGq.js} +5 -5
- package/dist/{iconfont-BYa5tDrN.js → iconfont-BEEudegG.js} +37 -37
- package/dist/{iconfont-cBX7rs7k.cjs → iconfont-w8ZxNH1R.cjs} +1 -1
- package/dist/{index-DMzBNabY.js → index--HdSHCHH.js} +1 -1
- package/dist/{index-YwMY3Aya.js → index-2A65FWWp.js} +7 -7
- package/dist/{index-SeEbZNcJ.cjs → index-32lNvNQY.cjs} +1 -1
- package/dist/{index-CVySIgt4.cjs → index-AjU4645d.cjs} +1 -1
- package/dist/{index-bbJ9Y_oO.js → index-B2h_bCtP.js} +3 -3
- package/dist/{index-pE8_wnGy.cjs → index-B9sLkbkE.cjs} +1 -1
- package/dist/{index--hQDmx_x.js → index-BADcwiJj.js} +2 -2
- package/dist/{index-DJoiySWn.cjs → index-BEpwtI2Q.cjs} +1 -1
- package/dist/index-BGo77kB8.cjs +1 -0
- package/dist/{index-BjAtlMRE.cjs → index-BHDqgLbZ.cjs} +1 -1
- package/dist/{index-8TMkI46d.js → index-BJxcMaQu.js} +5 -5
- package/dist/{index-NdxRkX7O.js → index-BaMfm3q6.js} +959 -956
- package/dist/index-BdXsBH1P.cjs +13 -0
- package/dist/{index-B9g8IV0C.cjs → index-Bd_SZg7S.cjs} +1 -1
- package/dist/{index-CXtLJs5O.js → index-BhJTGJWX.js} +27 -25
- package/dist/{index-UytjSmc1.cjs → index-BiA-_xPC.cjs} +1 -1
- package/dist/{index-DpirbR20.js → index-Bjm0BPhX.js} +12 -12
- package/dist/{index-BmlomuGZ.cjs → index-Bk8qPn0a.cjs} +1 -1
- package/dist/{index-CVwsrCrZ.cjs → index-BxNotDao.cjs} +12 -12
- package/dist/{index-DaX27S_0.js → index-BxcjTlnl.js} +31 -31
- package/dist/{index-D6UEkdRE.cjs → index-C1HjpqRi.cjs} +1 -1
- package/dist/{index-DovAfsVt.js → index-C4NqB81x.js} +2 -2
- package/dist/{index-DpIzJvIr.cjs → index-C5dht9fE.cjs} +1 -1
- package/dist/{index-BVURmufk.js → index-CANPj8uh.js} +7 -7
- package/dist/{index-BXZlLwr6.cjs → index-CHVJAILH.cjs} +1 -1
- package/dist/{index-D0e2ki27.js → index-CMMIt7u5.js} +63 -64
- package/dist/{index-Cu75UXH1.js → index-CPq8y_kH.js} +2 -2
- package/dist/{index-CJiEoadC.js → index-CRv6JQ2C.js} +5 -5
- package/dist/{index-CXkaTWVT.js → index-Cl2nQDI1.js} +2 -2
- package/dist/{index-CaV5K0t4.js → index-Cn5h5u4P.js} +2408 -2005
- package/dist/{index-Cg30L32X.cjs → index-CpZcO0Vv.cjs} +3 -3
- package/dist/{index-BIOl9xBh.js → index-CutPkLky.js} +2 -2
- package/dist/{index-4p0yEeUu.js → index-CyWkVCgH.js} +1 -1
- package/dist/{index-DdCyGfF9.cjs → index-D8LkomEw.cjs} +1 -1
- package/dist/{index-CXlemLjY.js → index-D8c3Spt0.js} +1 -1
- package/dist/{index-mabPGJUl.js → index-DC6oFcJ3.js} +2191 -2186
- package/dist/index-DMp47JRO.cjs +1 -0
- package/dist/{index-CEiscADV.cjs → index-DNQnpERW.cjs} +1 -1
- package/dist/{index-D39f9FDD.cjs → index-DNSrAjI9.cjs} +1 -1
- package/dist/index-DavcqNxP.cjs +1 -0
- package/dist/{index-DBdrmcqM.cjs → index-DefT5mRw.cjs} +1 -1
- package/dist/index-DgBjwajW.js +456 -0
- package/dist/index-DiowIVZT.cjs +36 -0
- package/dist/{index-BxmhgJuz.js → index-DjITcxoB.js} +1 -1
- package/dist/{index-DONt1we8.js → index-DpdFnDS3.js} +128 -78
- package/dist/index-DsOOj9Lf.cjs +1 -0
- package/dist/{index-JJBPRJiI.cjs → index-DsgMH4OH.cjs} +1 -1
- package/dist/{index-C6_KNp1M.cjs → index-DtABq3r6.cjs} +1 -1
- package/dist/{index-B22a33l9.js → index-DzSpBcvn.js} +1 -1
- package/dist/{index-DLK6UU4l.cjs → index-LqtTDLKt.cjs} +1 -1
- package/dist/index-SJHk-hwy.cjs +1 -0
- package/dist/{index-DnJB2OQC.cjs → index-UCzD4hzW.cjs} +1 -1
- package/dist/{index-CIoHy7Dg.js → index-ZhE5DWe_.js} +3 -3
- package/dist/{index-CYXsxIou.js → index-a2aJc3TK.js} +1 -1
- package/dist/{index-BfNg0B2v.js → index-eiZuqNHp.js} +3167 -3138
- package/dist/{index-C2yeqxnB.js → index-eyvk-8N6.js} +3 -3
- package/dist/index-h4MsH7WN.cjs +1 -0
- package/dist/{index-Drd5_tIE.js → index-voXoCiq0.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Ctc5O7Al.js} +17645 -18043
- package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-yeqe0Dqi.cjs} +392 -392
- package/dist/{index.vue_vue_type_style_index_1_lang-B88Ne666.js → index.vue_vue_type_style_index_1_lang-CIY5Sa-o.js} +722 -712
- package/dist/{index.vue_vue_type_style_index_1_lang-B2vRPxHe.cjs → index.vue_vue_type_style_index_1_lang-fwFKG5I3.cjs} +3 -3
- package/dist/{main-b1OREkjD.js → main-Bv-bP073.js} +4 -4
- package/dist/{main-ChE0Sl1V.cjs → main-CojqsPyy.cjs} +1 -1
- package/dist/{menuIndex-QovY60sY.cjs → menuIndex-7DwfwtqQ.cjs} +1 -1
- package/dist/{menuIndex-BlBV6RY8.js → menuIndex-BpEQqtCU.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-CUViA1pV.js → threeModel-D3f91Rt6.js} +62 -62
- package/dist/{threeModel-BTiM-_yY.cjs → threeModel-DdDMV2Z7.cjs} +1 -1
- package/dist/{threePreview-DiDVwpOj.cjs → threePreview-BbT2A1VX.cjs} +1 -1
- package/dist/{threePreview-fEcukbqP.js → threePreview-fvD6ZuLp.js} +102 -102
- package/dist/{threeSceneView-BsxoPqAA.js → threeSceneView-BslSyd85.js} +133 -133
- package/dist/{threeSceneView-CxhlNkvh.cjs → threeSceneView-DoaygXsI.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-Bq9A66VO.cjs → threeSceneViewForCPMPIP-CwkRm33h.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CCTwBiPg.js → threeSceneViewForCPMPIP-DqFJ61VU.js} +8 -8
- package/dist/{threeTrackPathView-DbqptnRu.js → threeTrackPathView-2EPeOu-l.js} +49 -49
- package/dist/{threeTrackPathView-D7zto1f1.cjs → threeTrackPathView-Qy1rvMIK.cjs} +1 -1
- package/dist/{threeViewerHost-Dhc4vxhv.cjs → threeViewerHost-BCN3cVBD.cjs} +1 -1
- package/dist/{threeViewerHost-B9vgyTcM.js → threeViewerHost-Bys_DQyR.js} +17 -17
- package/dist/{urdfTree-B9gafrR3.js → urdfTree-Dj3GmZU4.js} +1 -1
- package/dist/{urdfTree-CfUfqc73.cjs → urdfTree-Dj_MX-rV.cjs} +1 -1
- package/dist/{workpieceTreePanel-CoUx6lll.js → workpieceTreePanel-CfqOi5LU.js} +81 -81
- package/dist/{workpieceTreePanel-DzEBifIL.cjs → workpieceTreePanel-sLZ6i9PT.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-8ddlDjHL.js +0 -455
- package/dist/index-BLGT4-wX.cjs +0 -1
- package/dist/index-CTGhzBZx.cjs +0 -1
- package/dist/index-D7Ao1GyZ.cjs +0 -1
- package/dist/index-DUqjjluX.cjs +0 -1
- package/dist/index-DczQgLYk.cjs +0 -13
- package/dist/index-NtRUaVwS.cjs +0 -1
- package/dist/index-aMvM6ti6.cjs +0 -1
- package/dist/index-kutaq0AT.cjs +0 -36
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";const T=require("vue"),C=require("./index-Dc6Q0f3F.cjs");function Ws(t){return t}var or=C.getNative(C.root,"WeakMap"),en=Object.create,Fo=function(){function t(){}return function(e){if(!C.isObject(e))return{};if(en)return en(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function $o(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var Lo=800,Uo=16,jo=Date.now;function Ho(t){var e=0,r=0;return function(){var n=jo(),s=Uo-(n-r);if(r=n,s>0){if(++e>=Lo)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Ko(t){return function(){return t}}var Me=function(){try{var t=C.getNative(Object,"defineProperty");return t({},"",{}),t}catch{}}(),zo=Me?function(t,e){return Me(t,"toString",{configurable:!0,enumerable:!1,value:Ko(e),writable:!0})}:Ws,qo=Ho(zo);function Go(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var Wo=9007199254740991,Yo=/^(?:0|[1-9]\d*)$/;function Ys(t,e){var r=typeof t;return e=e??Wo,!!e&&(r=="number"||r!="symbol"&&Yo.test(t))&&t>-1&&t%1==0&&t<e}function Zs(t,e,r){e=="__proto__"&&Me?Me(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Zo=Object.prototype,Jo=Zo.hasOwnProperty;function Js(t,e,r){var n=t[e];(!(Jo.call(t,e)&&C.eq(n,r))||r===void 0&&!(e in t))&&Zs(t,e,r)}var rn=Math.max;function Xo(t,e,r){return e=rn(e===void 0?t.length-1:e,0),function(){for(var n=arguments,s=-1,i=rn(n.length-e,0),o=Array(i);++s<i;)o[s]=n[e+s];s=-1;for(var u=Array(e+1);++s<e;)u[s]=n[s];return u[e]=r(o),$o(t,this,u)}}var Qo=9007199254740991;function Cr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Qo}function Xs(t){return t!=null&&Cr(t.length)&&!C.isFunction(t)}var tu=Object.prototype;function Rr(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||tu;return t===r}function eu(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var ru="[object Arguments]";function nn(t){return C.isObjectLike(t)&&C.baseGetTag(t)==ru}var Qs=Object.prototype,nu=Qs.hasOwnProperty,su=Qs.propertyIsEnumerable,ti=nn(function(){return arguments}())?nn:function(t){return C.isObjectLike(t)&&nu.call(t,"callee")&&!su.call(t,"callee")};function iu(){return!1}var ei=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sn=ei&&typeof module=="object"&&module&&!module.nodeType&&module,ou=sn&&sn.exports===ei,on=ou?C.root.Buffer:void 0,uu=on?on.isBuffer:void 0,xr=uu||iu,au="[object Arguments]",cu="[object Array]",lu="[object Boolean]",fu="[object Date]",hu="[object Error]",du="[object Function]",pu="[object Map]",gu="[object Number]",vu="[object Object]",yu="[object RegExp]",_u="[object Set]",Eu="[object String]",mu="[object WeakMap]",bu="[object ArrayBuffer]",Su="[object DataView]",Tu="[object Float32Array]",Au="[object Float64Array]",wu="[object Int8Array]",Ou="[object Int16Array]",Du="[object Int32Array]",Iu="[object Uint8Array]",Cu="[object Uint8ClampedArray]",Ru="[object Uint16Array]",xu="[object Uint32Array]",z={};z[Tu]=z[Au]=z[wu]=z[Ou]=z[Du]=z[Iu]=z[Cu]=z[Ru]=z[xu]=!0;z[au]=z[cu]=z[bu]=z[lu]=z[Su]=z[fu]=z[hu]=z[du]=z[pu]=z[gu]=z[vu]=z[yu]=z[_u]=z[Eu]=z[mu]=!1;function Pu(t){return C.isObjectLike(t)&&Cr(t.length)&&!!z[C.baseGetTag(t)]}function He(t){return function(e){return t(e)}}var ri=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ae=ri&&typeof module=="object"&&module&&!module.nodeType&&module,ku=ae&&ae.exports===ri,Ze=ku&&C.freeGlobal.process,xt=function(){try{var t=ae&&ae.require&&ae.require("util").types;return t||Ze&&Ze.binding&&Ze.binding("util")}catch{}}(),un=xt&&xt.isTypedArray,ni=un?He(un):Pu,Nu=Object.prototype,Vu=Nu.hasOwnProperty;function si(t,e){var r=C.isArray(t),n=!r&&ti(t),s=!r&&!n&&xr(t),i=!r&&!n&&!s&&ni(t),o=r||n||s||i,u=o?eu(t.length,String):[],a=u.length;for(var c in t)(e||Vu.call(t,c))&&!(o&&(c=="length"||s&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ys(c,a)))&&u.push(c);return u}function ii(t,e){return function(r){return t(e(r))}}var Bu=ii(Object.keys,Object),Mu=Object.prototype,Fu=Mu.hasOwnProperty;function $u(t){if(!Rr(t))return Bu(t);var e=[];for(var r in Object(t))Fu.call(t,r)&&r!="constructor"&&e.push(r);return e}function Lu(t){return Xs(t)?si(t):$u(t)}function oi(t,e){for(var r=-1,n=e.length,s=t.length;++r<n;)t[s+r]=e[r];return t}var ui=ii(Object.getPrototypeOf,Object);function Uu(){this.__data__=new C.ListCache,this.size=0}function ju(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function Hu(t){return this.__data__.get(t)}function Ku(t){return this.__data__.has(t)}var zu=200;function qu(t,e){var r=this.__data__;if(r instanceof C.ListCache){var n=r.__data__;if(!C.Map||n.length<zu-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new C.MapCache(n)}return r.set(t,e),this.size=r.size,this}function Vt(t){var e=this.__data__=new C.ListCache(t);this.size=e.size}Vt.prototype.clear=Uu;Vt.prototype.delete=ju;Vt.prototype.get=Hu;Vt.prototype.has=Ku;Vt.prototype.set=qu;var ai=typeof exports=="object"&&exports&&!exports.nodeType&&exports,an=ai&&typeof module=="object"&&module&&!module.nodeType&&module,Gu=an&&an.exports===ai,cn=Gu?C.root.Buffer:void 0,ln=cn?cn.allocUnsafe:void 0;function ci(t,e){if(e)return t.slice();var r=t.length,n=ln?ln(r):new t.constructor(r);return t.copy(n),n}function Wu(t,e){for(var r=-1,n=t==null?0:t.length,s=0,i=[];++r<n;){var o=t[r];e(o,r,t)&&(i[s++]=o)}return i}function Yu(){return[]}var Zu=Object.prototype,Ju=Zu.propertyIsEnumerable,fn=Object.getOwnPropertySymbols,Xu=fn?function(t){return t==null?[]:(t=Object(t),Wu(fn(t),function(e){return Ju.call(t,e)}))}:Yu;function Qu(t,e,r){var n=e(t);return C.isArray(t)?n:oi(n,r(t))}function li(t){return Qu(t,Lu,Xu)}var ur=C.getNative(C.root,"DataView"),ar=C.getNative(C.root,"Promise"),cr=C.getNative(C.root,"Set"),hn="[object Map]",ta="[object Object]",dn="[object Promise]",pn="[object Set]",gn="[object WeakMap]",vn="[object DataView]",ea=C.toSource(ur),ra=C.toSource(C.Map),na=C.toSource(ar),sa=C.toSource(cr),ia=C.toSource(or);exports.getTag=C.baseGetTag;(ur&&exports.getTag(new ur(new ArrayBuffer(1)))!=vn||C.Map&&exports.getTag(new C.Map)!=hn||ar&&exports.getTag(ar.resolve())!=dn||cr&&exports.getTag(new cr)!=pn||or&&exports.getTag(new or)!=gn)&&(exports.getTag=function(t){var e=C.baseGetTag(t),r=e==ta?t.constructor:void 0,n=r?C.toSource(r):"";if(n)switch(n){case ea:return vn;case ra:return hn;case na:return dn;case sa:return pn;case ia:return gn}return e});var oa=Object.prototype,ua=oa.hasOwnProperty;function aa(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&ua.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var lr=C.root.Uint8Array;function Pr(t){var e=new t.constructor(t.byteLength);return new lr(e).set(new lr(t)),e}function ca(t,e){var r=Pr(t.buffer);return new t.constructor(r,t.byteOffset,t.byteLength)}var la=/\w*$/;function fa(t){var e=new t.constructor(t.source,la.exec(t));return e.lastIndex=t.lastIndex,e}var yn=C.Symbol?C.Symbol.prototype:void 0,_n=yn?yn.valueOf:void 0;function ha(t){return _n?Object(_n.call(t)):{}}function fi(t,e){var r=e?Pr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var da="[object Boolean]",pa="[object Date]",ga="[object Map]",va="[object Number]",ya="[object RegExp]",_a="[object Set]",Ea="[object String]",ma="[object Symbol]",ba="[object ArrayBuffer]",Sa="[object DataView]",Ta="[object Float32Array]",Aa="[object Float64Array]",wa="[object Int8Array]",Oa="[object Int16Array]",Da="[object Int32Array]",Ia="[object Uint8Array]",Ca="[object Uint8ClampedArray]",Ra="[object Uint16Array]",xa="[object Uint32Array]";function Pa(t,e,r){var n=t.constructor;switch(e){case ba:return Pr(t);case da:case pa:return new n(+t);case Sa:return ca(t);case Ta:case Aa:case wa:case Oa:case Da:case Ia:case Ca:case Ra:case xa:return fi(t,r);case ga:return new n;case va:case Ea:return new n(t);case ya:return fa(t);case _a:return new n;case ma:return ha(t)}}function hi(t){return typeof t.constructor=="function"&&!Rr(t)?Fo(ui(t)):{}}var ka="[object Map]";function Na(t){return C.isObjectLike(t)&&exports.getTag(t)==ka}var En=xt&&xt.isMap,Va=En?He(En):Na,Ba="[object Set]";function Ma(t){return C.isObjectLike(t)&&exports.getTag(t)==Ba}var mn=xt&&xt.isSet,Fa=mn?He(mn):Ma,$a=1,di="[object Arguments]",La="[object Array]",Ua="[object Boolean]",ja="[object Date]",Ha="[object Error]",pi="[object Function]",Ka="[object GeneratorFunction]",za="[object Map]",qa="[object Number]",gi="[object Object]",Ga="[object RegExp]",Wa="[object Set]",Ya="[object String]",Za="[object Symbol]",Ja="[object WeakMap]",Xa="[object ArrayBuffer]",Qa="[object DataView]",tc="[object Float32Array]",ec="[object Float64Array]",rc="[object Int8Array]",nc="[object Int16Array]",sc="[object Int32Array]",ic="[object Uint8Array]",oc="[object Uint8ClampedArray]",uc="[object Uint16Array]",ac="[object Uint32Array]",H={};H[di]=H[La]=H[Xa]=H[Qa]=H[Ua]=H[ja]=H[tc]=H[ec]=H[rc]=H[nc]=H[sc]=H[za]=H[qa]=H[gi]=H[Ga]=H[Wa]=H[Ya]=H[Za]=H[ic]=H[oc]=H[uc]=H[ac]=!0;H[Ha]=H[pi]=H[Ja]=!1;function Oe(t,e,r,n,s,i){var o,u=e&$a;if(o!==void 0)return o;if(!C.isObject(t))return t;var a=C.isArray(t);if(a)o=aa(t);else{var c=exports.getTag(t),f=c==pi||c==Ka;if(xr(t))return ci(t,u);if(c==gi||c==di||f&&!s)o=f?{}:hi(t);else{if(!H[c])return s?t:{};o=Pa(t,c,u)}}i||(i=new Vt);var l=i.get(t);if(l)return l;i.set(t,o),Fa(t)?t.forEach(function(d){o.add(Oe(d,e,r,d,t,i))}):Va(t)&&t.forEach(function(d,m){o.set(m,Oe(d,e,r,m,t,i))});var p=li,h=a?void 0:p(t);return Go(h||t,function(d,m){h&&(m=d,d=t[m]),Js(o,m,Oe(d,e,r,m,t,i))}),o}var cc=1,lc=4;function Tt(t){return Oe(t,cc|lc)}var fc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function hc(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return t[n]}})}),r}var De={exports:{}},dc=De.exports,bn;function pc(){return bn||(bn=1,function(t,e){(function(r,n){t.exports=n()})(dc,function(){var r=1e3,n=6e4,s=36e5,i="millisecond",o="second",u="minute",a="hour",c="day",f="week",l="month",p="quarter",h="year",d="date",m="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,B={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var w=["th","st","nd","rd"],E=x%100;return"["+x+(w[(E-20)%10]||w[E]||w[0])+"]"}},N=function(x,w,E){var _=String(x);return!_||_.length>=w?x:""+Array(w+1-_.length).join(E)+x},W={s:N,z:function(x){var w=-x.utcOffset(),E=Math.abs(w),_=Math.floor(E/60),A=E%60;return(w<=0?"+":"-")+N(_,2,"0")+":"+N(A,2,"0")},m:function x(w,E){if(w.date()<E.date())return-x(E,w);var _=12*(E.year()-w.year())+(E.month()-w.month()),A=w.clone().add(_,l),I=E-A<0,k=w.clone().add(_+(I?-1:1),l);return+(-(_+(E-A)/(I?A-k:k-A))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:l,y:h,w:f,d:c,D:d,h:a,m:u,s:o,ms:i,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},Q="en",R={};R[Q]=B;var P="$isDayjsObject",rt=function(x){return x instanceof $||!(!x||!x[P])},U=function x(w,E,_){var A;if(!w)return Q;if(typeof w=="string"){var I=w.toLowerCase();R[I]&&(A=I),E&&(R[I]=E,A=I);var k=w.split("-");if(!A&&k.length>1)return x(k[0])}else{var F=w.name;R[F]=w,A=F}return!_&&A&&(Q=A),A||!_&&Q},b=function(x,w){if(rt(x))return x.clone();var E=typeof w=="object"?w:{};return E.date=x,E.args=arguments,new $(E)},v=W;v.l=U,v.i=rt,v.w=function(x,w){return b(x,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var $=function(){function x(E){this.$L=U(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[P]=!0}var w=x.prototype;return w.parse=function(E){this.$d=function(_){var A=_.date,I=_.utc;if(A===null)return new Date(NaN);if(v.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var k=A.match(S);if(k){var F=k[2]-1||0,L=(k[7]||"0").substring(0,3);return I?new Date(Date.UTC(k[1],F,k[3]||1,k[4]||0,k[5]||0,k[6]||0,L)):new Date(k[1],F,k[3]||1,k[4]||0,k[5]||0,k[6]||0,L)}}return new Date(A)}(E),this.init()},w.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},w.$utils=function(){return v},w.isValid=function(){return this.$d.toString()!==m},w.isSame=function(E,_){var A=b(E);return this.startOf(_)<=A&&A<=this.endOf(_)},w.isAfter=function(E,_){return b(E)<this.startOf(_)},w.isBefore=function(E,_){return this.endOf(_)<b(E)},w.$g=function(E,_,A){return v.u(E)?this[_]:this.set(A,E)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(E,_){var A=this,I=!!v.u(_)||_,k=v.p(E),F=function(Dt,it){var yt=v.w(A.$u?Date.UTC(A.$y,it,Dt):new Date(A.$y,it,Dt),A);return I?yt:yt.endOf(c)},L=function(Dt,it){return v.w(A.toDate()[Dt].apply(A.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(it)),A)},q=this.$W,Z=this.$M,tt=this.$D,Bt="set"+(this.$u?"UTC":"");switch(k){case h:return I?F(1,0):F(31,11);case l:return I?F(1,Z):F(0,Z+1);case f:var Ot=this.$locale().weekStart||0,ee=(q<Ot?q+7:q)-Ot;return F(I?tt-ee:tt+(6-ee),Z);case c:case d:return L(Bt+"Hours",0);case a:return L(Bt+"Minutes",1);case u:return L(Bt+"Seconds",2);case o:return L(Bt+"Milliseconds",3);default:return this.clone()}},w.endOf=function(E){return this.startOf(E,!1)},w.$set=function(E,_){var A,I=v.p(E),k="set"+(this.$u?"UTC":""),F=(A={},A[c]=k+"Date",A[d]=k+"Date",A[l]=k+"Month",A[h]=k+"FullYear",A[a]=k+"Hours",A[u]=k+"Minutes",A[o]=k+"Seconds",A[i]=k+"Milliseconds",A)[I],L=I===c?this.$D+(_-this.$W):_;if(I===l||I===h){var q=this.clone().set(d,1);q.$d[F](L),q.init(),this.$d=q.set(d,Math.min(this.$D,q.daysInMonth())).$d}else F&&this.$d[F](L);return this.init(),this},w.set=function(E,_){return this.clone().$set(E,_)},w.get=function(E){return this[v.p(E)]()},w.add=function(E,_){var A,I=this;E=Number(E);var k=v.p(_),F=function(Z){var tt=b(I);return v.w(tt.date(tt.date()+Math.round(Z*E)),I)};if(k===l)return this.set(l,this.$M+E);if(k===h)return this.set(h,this.$y+E);if(k===c)return F(1);if(k===f)return F(7);var L=(A={},A[u]=n,A[a]=s,A[o]=r,A)[k]||1,q=this.$d.getTime()+E*L;return v.w(q,this)},w.subtract=function(E,_){return this.add(-1*E,_)},w.format=function(E){var _=this,A=this.$locale();if(!this.isValid())return A.invalidDate||m;var I=E||"YYYY-MM-DDTHH:mm:ssZ",k=v.z(this),F=this.$H,L=this.$m,q=this.$M,Z=A.weekdays,tt=A.months,Bt=A.meridiem,Ot=function(it,yt,re,_e){return it&&(it[yt]||it(_,I))||re[yt].slice(0,_e)},ee=function(it){return v.s(F%12||12,it,"0")},Dt=Bt||function(it,yt,re){var _e=it<12?"AM":"PM";return re?_e.toLowerCase():_e};return I.replace(O,function(it,yt){return yt||function(re){switch(re){case"YY":return String(_.$y).slice(-2);case"YYYY":return v.s(_.$y,4,"0");case"M":return q+1;case"MM":return v.s(q+1,2,"0");case"MMM":return Ot(A.monthsShort,q,tt,3);case"MMMM":return Ot(tt,q);case"D":return _.$D;case"DD":return v.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Ot(A.weekdaysMin,_.$W,Z,2);case"ddd":return Ot(A.weekdaysShort,_.$W,Z,3);case"dddd":return Z[_.$W];case"H":return String(F);case"HH":return v.s(F,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return Dt(F,L,!0);case"A":return Dt(F,L,!1);case"m":return String(L);case"mm":return v.s(L,2,"0");case"s":return String(_.$s);case"ss":return v.s(_.$s,2,"0");case"SSS":return v.s(_.$ms,3,"0");case"Z":return k}return null}(it)||k.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(E,_,A){var I,k=this,F=v.p(_),L=b(E),q=(L.utcOffset()-this.utcOffset())*n,Z=this-L,tt=function(){return v.m(k,L)};switch(F){case h:I=tt()/12;break;case l:I=tt();break;case p:I=tt()/3;break;case f:I=(Z-q)/6048e5;break;case c:I=(Z-q)/864e5;break;case a:I=Z/s;break;case u:I=Z/n;break;case o:I=Z/r;break;default:I=Z}return A?I:v.a(I)},w.daysInMonth=function(){return this.endOf(l).$D},w.$locale=function(){return R[this.$L]},w.locale=function(E,_){if(!E)return this.$L;var A=this.clone(),I=U(E,_,!0);return I&&(A.$L=I),A},w.clone=function(){return v.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},x}(),j=$.prototype;return b.prototype=j,[["$ms",i],["$s",o],["$m",u],["$H",a],["$W",c],["$M",l],["$y",h],["$D",d]].forEach(function(x){j[x[1]]=function(w){return this.$g(w,x[0],x[1])}}),b.extend=function(x,w){return x.$i||(x(w,$,b),x.$i=!0),b},b.locale=U,b.isDayjs=rt,b.unix=function(x){return b(1e3*x)},b.en=R[Q],b.Ls=R,b.p={},b})}(De)),De.exports}var gc=pc();const vc=vi(gc);var yc=Object.create,yi=Object.defineProperty,_c=Object.getOwnPropertyDescriptor,kr=Object.getOwnPropertyNames,Ec=Object.getPrototypeOf,mc=Object.prototype.hasOwnProperty,bc=(t,e)=>function(){return t&&(e=(0,t[kr(t)[0]])(t=0)),e},Sc=(t,e)=>function(){return e||(0,t[kr(t)[0]])((e={exports:{}}).exports,e),e.exports},Tc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of kr(e))!mc.call(t,s)&&s!==r&&yi(t,s,{get:()=>e[s],enumerable:!(n=_c(e,s))||n.enumerable});return t},Ac=(t,e,r)=>(r=t!=null?yc(Ec(t)):{},Tc(yi(r,"default",{value:t,enumerable:!0}),t)),ye=bc({"../../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"(){}}),wc=Sc({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(t,e){ye(),e.exports=n;function r(i){return i instanceof Buffer?Buffer.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}function n(i){if(i=i||{},i.circles)return s(i);const o=new Map;if(o.set(Date,l=>new Date(l)),o.set(Map,(l,p)=>new Map(a(Array.from(l),p))),o.set(Set,(l,p)=>new Set(a(Array.from(l),p))),i.constructorHandlers)for(const l of i.constructorHandlers)o.set(l[0],l[1]);let u=null;return i.proto?f:c;function a(l,p){const h=Object.keys(l),d=new Array(h.length);for(let m=0;m<h.length;m++){const S=h[m],O=l[S];typeof O!="object"||O===null?d[S]=O:O.constructor!==Object&&(u=o.get(O.constructor))?d[S]=u(O,p):ArrayBuffer.isView(O)?d[S]=r(O):d[S]=p(O)}return d}function c(l){if(typeof l!="object"||l===null)return l;if(Array.isArray(l))return a(l,c);if(l.constructor!==Object&&(u=o.get(l.constructor)))return u(l,c);const p={};for(const h in l){if(Object.hasOwnProperty.call(l,h)===!1)continue;const d=l[h];typeof d!="object"||d===null?p[h]=d:d.constructor!==Object&&(u=o.get(d.constructor))?p[h]=u(d,c):ArrayBuffer.isView(d)?p[h]=r(d):p[h]=c(d)}return p}function f(l){if(typeof l!="object"||l===null)return l;if(Array.isArray(l))return a(l,f);if(l.constructor!==Object&&(u=o.get(l.constructor)))return u(l,f);const p={};for(const h in l){const d=l[h];typeof d!="object"||d===null?p[h]=d:d.constructor!==Object&&(u=o.get(d.constructor))?p[h]=u(d,f):ArrayBuffer.isView(d)?p[h]=r(d):p[h]=f(d)}return p}}function s(i){const o=[],u=[],a=new Map;if(a.set(Date,h=>new Date(h)),a.set(Map,(h,d)=>new Map(f(Array.from(h),d))),a.set(Set,(h,d)=>new Set(f(Array.from(h),d))),i.constructorHandlers)for(const h of i.constructorHandlers)a.set(h[0],h[1]);let c=null;return i.proto?p:l;function f(h,d){const m=Object.keys(h),S=new Array(m.length);for(let O=0;O<m.length;O++){const B=m[O],N=h[B];if(typeof N!="object"||N===null)S[B]=N;else if(N.constructor!==Object&&(c=a.get(N.constructor)))S[B]=c(N,d);else if(ArrayBuffer.isView(N))S[B]=r(N);else{const W=o.indexOf(N);W!==-1?S[B]=u[W]:S[B]=d(N)}}return S}function l(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return f(h,l);if(h.constructor!==Object&&(c=a.get(h.constructor)))return c(h,l);const d={};o.push(h),u.push(d);for(const m in h){if(Object.hasOwnProperty.call(h,m)===!1)continue;const S=h[m];if(typeof S!="object"||S===null)d[m]=S;else if(S.constructor!==Object&&(c=a.get(S.constructor)))d[m]=c(S,l);else if(ArrayBuffer.isView(S))d[m]=r(S);else{const O=o.indexOf(S);O!==-1?d[m]=u[O]:d[m]=l(S)}}return o.pop(),u.pop(),d}function p(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return f(h,p);if(h.constructor!==Object&&(c=a.get(h.constructor)))return c(h,p);const d={};o.push(h),u.push(d);for(const m in h){const S=h[m];if(typeof S!="object"||S===null)d[m]=S;else if(S.constructor!==Object&&(c=a.get(S.constructor)))d[m]=c(S,p);else if(ArrayBuffer.isView(S))d[m]=r(S);else{const O=o.indexOf(S);O!==-1?d[m]=u[O]:d[m]=p(S)}}return o.pop(),u.pop(),d}}}});ye();ye();ye();var _i=typeof navigator<"u",D=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof D.chrome<"u"&&D.chrome.devtools;_i&&(D.self,D.top);var Sn;typeof navigator<"u"&&((Sn=navigator.userAgent)==null||Sn.toLowerCase().includes("electron"));ye();var Oc=Ac(wc()),Dc=/(?:^|[-_/])(\w)/g;function Ic(t,e){return e?e.toUpperCase():""}function Cc(t){return t&&`${t}`.replace(Dc,Ic)}function Rc(t,e){let r=t.replace(/^[a-z]:/i,"").replace(/\\/g,"/");r.endsWith(`index${e}`)&&(r=r.replace(`/index${e}`,e));const n=r.lastIndexOf("/"),s=r.substring(n+1);{const i=s.lastIndexOf(e);return s.substring(0,i)}}var Tn=(0,Oc.default)({circles:!0});const xc={trailing:!0};function Gt(t,e=25,r={}){if(r={...xc,...r},!Number.isFinite(e))throw new TypeError("Expected `wait` to be a finite number");let n,s,i=[],o,u;const a=(c,f)=>(o=Pc(t,c,f),o.finally(()=>{if(o=null,r.trailing&&u&&!s){const l=a(c,u);return u=null,l}}),o);return function(...c){return o?(r.trailing&&(u=c),o):new Promise(f=>{const l=!s&&r.leading;clearTimeout(s),s=setTimeout(()=>{s=null;const p=r.leading?n:a(this,c);for(const h of i)h(p);i=[]},e),l?(n=a(this,c),f(n)):i.push(f)})}}async function Pc(t,e,r){return await t.apply(e,r)}function fr(t,e={},r){for(const n in t){const s=t[n],i=r?`${r}:${n}`:n;typeof s=="object"&&s!==null?fr(s,e,i):typeof s=="function"&&(e[i]=s)}return e}const kc={run:t=>t()},Nc=()=>kc,Ei=typeof console.createTask<"u"?console.createTask:Nc;function Vc(t,e){const r=e.shift(),n=Ei(r);return t.reduce((s,i)=>s.then(()=>n.run(()=>i(...e))),Promise.resolve())}function Bc(t,e){const r=e.shift(),n=Ei(r);return Promise.all(t.map(s=>n.run(()=>s(...e))))}function Je(t,e){for(const r of[...t])r(e)}class Mc{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(e,r,n={}){if(!e||typeof r!="function")return()=>{};const s=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(r),()=>{r&&(this.removeHook(e,r),r=void 0)}}hookOnce(e,r){let n,s=(...i)=>(typeof n=="function"&&n(),n=void 0,s=void 0,r(...i));return n=this.hook(e,s),n}removeHook(e,r){if(this._hooks[e]){const n=this._hooks[e].indexOf(r);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,r){this._deprecatedHooks[e]=typeof r=="string"?{to:r}:r;const n=this._hooks[e]||[];delete this._hooks[e];for(const s of n)this.hook(e,s)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const r in e)this.deprecateHook(r,e[r])}addHooks(e){const r=fr(e),n=Object.keys(r).map(s=>this.hook(s,r[s]));return()=>{for(const s of n.splice(0,n.length))s()}}removeHooks(e){const r=fr(e);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...r){return r.unshift(e),this.callHookWith(Vc,e,...r)}callHookParallel(e,...r){return r.unshift(e),this.callHookWith(Bc,e,...r)}callHookWith(e,r,...n){const s=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&Je(this._before,s);const i=e(r in this._hooks?[...this._hooks[r]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&s&&Je(this._after,s)}):(this._after&&s&&Je(this._after,s),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const r=this._before.indexOf(e);r!==-1&&this._before.splice(r,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const r=this._after.indexOf(e);r!==-1&&this._after.splice(r,1)}}}}function mi(){return new Mc}var Fc=Object.create,bi=Object.defineProperty,$c=Object.getOwnPropertyDescriptor,Nr=Object.getOwnPropertyNames,Lc=Object.getPrototypeOf,Uc=Object.prototype.hasOwnProperty,jc=(t,e)=>function(){return t&&(e=(0,t[Nr(t)[0]])(t=0)),e},Si=(t,e)=>function(){return e||(0,t[Nr(t)[0]])((e={exports:{}}).exports,e),e.exports},Hc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Nr(e))!Uc.call(t,s)&&s!==r&&bi(t,s,{get:()=>e[s],enumerable:!(n=$c(e,s))||n.enumerable});return t},Kc=(t,e,r)=>(r=t!=null?Fc(Lc(t)):{},Hc(bi(r,"default",{value:t,enumerable:!0}),t)),y=jc({"../../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"(){}}),zc=Si({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(t,e){y(),function(r){var n={À:"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"},s=["်","ް"],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"},o={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"}},u={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"}},a=[";","?",":","@","&","=","+","$",",","/"].join(""),c=[";","?",":","@","&","=","+","$",","].join(""),f=[".","!","~","*","'","(",")"].join(""),l=function(S,O){var B="-",N="",W="",Q=!0,R={},P,rt,U,b,v,$,j,x,w,E,_,A,I,k,F="";if(typeof S!="string")return"";if(typeof O=="string"&&(B=O),j=u.en,x=o.en,typeof O=="object"){P=O.maintainCase||!1,R=O.custom&&typeof O.custom=="object"?O.custom:R,U=+O.truncate>1&&O.truncate||!1,b=O.uric||!1,v=O.uricNoSlash||!1,$=O.mark||!1,Q=!(O.symbols===!1||O.lang===!1),B=O.separator||B,b&&(F+=a),v&&(F+=c),$&&(F+=f),j=O.lang&&u[O.lang]&&Q?u[O.lang]:Q?u.en:{},x=O.lang&&o[O.lang]?o[O.lang]:O.lang===!1||O.lang===!0?{}:o.en,O.titleCase&&typeof O.titleCase.length=="number"&&Array.prototype.toString.call(O.titleCase)?(O.titleCase.forEach(function(L){R[L+""]=L+""}),rt=!0):rt=!!O.titleCase,O.custom&&typeof O.custom.length=="number"&&Array.prototype.toString.call(O.custom)&&O.custom.forEach(function(L){R[L+""]=L+""}),Object.keys(R).forEach(function(L){var q;L.length>1?q=new RegExp("\\b"+h(L)+"\\b","gi"):q=new RegExp(h(L),"gi"),S=S.replace(q,R[L])});for(_ in R)F+=_}for(F+=B,F=h(F),S=S.replace(/(^\s+|\s+$)/g,""),I=!1,k=!1,E=0,A=S.length;E<A;E++)_=S[E],d(_,R)?I=!1:x[_]?(_=I&&x[_].match(/[A-Za-z0-9]/)?" "+x[_]:x[_],I=!1):_ in n?(E+1<A&&s.indexOf(S[E+1])>=0?(W+=_,_=""):k===!0?(_=i[W]+n[_],W=""):_=I&&n[_].match(/[A-Za-z0-9]/)?" "+n[_]:n[_],I=!1,k=!1):_ in i?(W+=_,_="",E===A-1&&(_=i[W]),k=!0):j[_]&&!(b&&a.indexOf(_)!==-1)&&!(v&&c.indexOf(_)!==-1)?(_=I||N.substr(-1).match(/[A-Za-z0-9]/)?B+j[_]:j[_],_+=S[E+1]!==void 0&&S[E+1].match(/[A-Za-z0-9]/)?B:"",I=!0):(k===!0?(_=i[W]+_,W="",k=!1):I&&(/[A-Za-z0-9]/.test(_)||N.substr(-1).match(/A-Za-z0-9]/))&&(_=" "+_),I=!1),N+=_.replace(new RegExp("[^\\w\\s"+F+"_-]","g"),B);return rt&&(N=N.replace(/(\w)(\S*)/g,function(L,q,Z){var tt=q.toUpperCase()+(Z!==null?Z:"");return Object.keys(R).indexOf(tt.toLowerCase())<0?tt:tt.toLowerCase()})),N=N.replace(/\s+/g,B).replace(new RegExp("\\"+B+"+","g"),B).replace(new RegExp("(^\\"+B+"+|\\"+B+"+$)","g"),""),U&&N.length>U&&(w=N.charAt(U)===B,N=N.slice(0,U),w||(N=N.slice(0,N.lastIndexOf(B)))),!P&&!rt&&(N=N.toLowerCase()),N},p=function(S){return function(B){return l(B,S)}},h=function(S){return S.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},d=function(m,S){for(var O in S)if(S[O]===m)return!0};if(typeof e<"u"&&e.exports)e.exports=l,e.exports.createSlug=p;else if(typeof define<"u"&&define.amd)define([],function(){return l});else try{if(r.getSlug||r.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";r.getSlug=l,r.createSlug=p}catch{}}(t)}}),qc=Si({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(t,e){y(),e.exports=zc()}});y();y();y();y();y();y();y();y();function Gc(t){var e;const r=t.name||t._componentTag||t.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||t.__name;return r==="index"&&((e=t.__file)!=null&&e.endsWith("index.vue"))?"":r}function Wc(t){const e=t.__file;if(e)return Cc(Rc(e,".vue"))}function An(t,e){return t.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=e,e}function Vr(t){if(t.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return t.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(t.root)return t.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Ti(t){var e,r;const n=(e=t.subTree)==null?void 0:e.type,s=Vr(t);return s?((r=s==null?void 0:s.types)==null?void 0:r.Fragment)===n:!1}function Ke(t){var e,r,n;const s=Gc((t==null?void 0:t.type)||{});if(s)return s;if((t==null?void 0:t.root)===t)return"Root";for(const o in(r=(e=t.parent)==null?void 0:e.type)==null?void 0:r.components)if(t.parent.type.components[o]===(t==null?void 0:t.type))return An(t,o);for(const o in(n=t.appContext)==null?void 0:n.components)if(t.appContext.components[o]===(t==null?void 0:t.type))return An(t,o);const i=Wc((t==null?void 0:t.type)||{});return i||"Anonymous Component"}function Yc(t){var e,r,n;const s=(n=(r=(e=t==null?void 0:t.appContext)==null?void 0:e.app)==null?void 0:r.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?n:0,i=t===(t==null?void 0:t.root)?"root":t.uid;return`${s}:${i}`}function hr(t,e){return e=e||`${t.id}:root`,t.instanceMap.get(e)||t.instanceMap.get(":root")}function Zc(){const t={top:0,bottom:0,left:0,right:0,get width(){return t.right-t.left},get height(){return t.bottom-t.top}};return t}var Ee;function Jc(t){return Ee||(Ee=document.createRange()),Ee.selectNode(t),Ee.getBoundingClientRect()}function Xc(t){const e=Zc();if(!t.children)return e;for(let r=0,n=t.children.length;r<n;r++){const s=t.children[r];let i;if(s.component)i=Pt(s.component);else if(s.el){const o=s.el;o.nodeType===1||o.getBoundingClientRect?i=o.getBoundingClientRect():o.nodeType===3&&o.data.trim()&&(i=Jc(o))}i&&Qc(e,i)}return e}function Qc(t,e){return(!t.top||e.top<t.top)&&(t.top=e.top),(!t.bottom||e.bottom>t.bottom)&&(t.bottom=e.bottom),(!t.left||e.left<t.left)&&(t.left=e.left),(!t.right||e.right>t.right)&&(t.right=e.right),t}var wn={top:0,left:0,right:0,bottom:0,width:0,height:0};function Pt(t){const e=t.subTree.el;return typeof window>"u"?wn:Ti(t)?Xc(t.subTree):(e==null?void 0:e.nodeType)===1?e==null?void 0:e.getBoundingClientRect():t.subTree.component?Pt(t.subTree.component):wn}y();function Br(t){return Ti(t)?tl(t.subTree):t.subTree?[t.subTree.el]:[]}function tl(t){if(!t.children)return[];const e=[];return t.children.forEach(r=>{r.component?e.push(...Br(r.component)):r!=null&&r.el&&e.push(r.el)}),e}var Ai="__vue-devtools-component-inspector__",wi="__vue-devtools-component-inspector__card__",Oi="__vue-devtools-component-inspector__name__",Di="__vue-devtools-component-inspector__indicator__",Ii={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},el={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)"},rl={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function Jt(){return document.getElementById(Ai)}function nl(){return document.getElementById(wi)}function sl(){return document.getElementById(Di)}function il(){return document.getElementById(Oi)}function Mr(t){return{left:`${Math.round(t.left*100)/100}px`,top:`${Math.round(t.top*100)/100}px`,width:`${Math.round(t.width*100)/100}px`,height:`${Math.round(t.height*100)/100}px`}}function Fr(t){var e;const r=document.createElement("div");r.id=(e=t.elementId)!=null?e:Ai,Object.assign(r.style,{...Ii,...Mr(t.bounds),...t.style});const n=document.createElement("span");n.id=wi,Object.assign(n.style,{...el,top:t.bounds.top<35?0:"-35px"});const s=document.createElement("span");s.id=Oi,s.innerHTML=`<${t.name}> `;const i=document.createElement("i");return i.id=Di,i.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`,Object.assign(i.style,rl),n.appendChild(s),n.appendChild(i),r.appendChild(n),document.body.appendChild(r),r}function $r(t){const e=Jt(),r=nl(),n=il(),s=sl();e&&(Object.assign(e.style,{...Ii,...Mr(t.bounds)}),Object.assign(r.style,{top:t.bounds.top<35?0:"-35px"}),n.innerHTML=`<${t.name}> `,s.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`)}function ol(t){const e=Pt(t);if(!e.width&&!e.height)return;const r=Ke(t);Jt()?$r({bounds:e,name:r}):Fr({bounds:e,name:r})}function Ci(){const t=Jt();t&&(t.style.display="none")}var dr=null;function pr(t){const e=t.target;if(e){const r=e.__vueParentComponent;if(r&&(dr=r,r.vnode.el)){const s=Pt(r),i=Ke(r);Jt()?$r({bounds:s,name:i}):Fr({bounds:s,name:i})}}}function ul(t,e){if(t.preventDefault(),t.stopPropagation(),dr){const r=Yc(dr);e(r)}}var Fe=null;function al(){Ci(),window.removeEventListener("mouseover",pr),window.removeEventListener("click",Fe,!0),Fe=null}function cl(){return window.addEventListener("mouseover",pr),new Promise(t=>{function e(r){r.preventDefault(),r.stopPropagation(),ul(r,n=>{window.removeEventListener("click",e,!0),Fe=null,window.removeEventListener("mouseover",pr);const s=Jt();s&&(s.style.display="none"),t(JSON.stringify({id:n}))})}Fe=e,window.addEventListener("click",e,!0)})}function ll(t){const e=hr(st.value,t.id);if(e){const[r]=Br(e);if(typeof r.scrollIntoView=="function")r.scrollIntoView({behavior:"smooth"});else{const n=Pt(e),s=document.createElement("div"),i={...Mr(n),position:"absolute"};Object.assign(s.style,i),document.body.appendChild(s),s.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(s)},2e3)}setTimeout(()=>{const n=Pt(e);if(n.width||n.height){const s=Ke(e),i=Jt();i?$r({...t,name:s,bounds:n}):Fr({...t,name:s,bounds:n}),setTimeout(()=>{i&&(i.style.display="none")},1500)}},1200)}}y();var On,Dn;(Dn=(On=D).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(On.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function fl(t){let e=0;const r=setInterval(()=>{D.__VUE_INSPECTOR__&&(clearInterval(r),e+=30,t()),e>=5e3&&clearInterval(r)},30)}function hl(){const t=D.__VUE_INSPECTOR__,e=t.openInEditor;t.openInEditor=async(...r)=>{t.disable(),e(...r)}}function dl(){return new Promise(t=>{function e(){hl(),t(D.__VUE_INSPECTOR__)}D.__VUE_INSPECTOR__?e():fl(()=>{e()})})}y();y();function pl(t){return!!(t&&t.__v_isReadonly)}function Ri(t){return pl(t)?Ri(t.__v_raw):!!(t&&t.__v_isReactive)}function Xe(t){return!!(t&&t.__v_isRef===!0)}function ne(t){const e=t&&t.__v_raw;return e?ne(e):t}var gl=class{constructor(){this.refEditor=new vl}set(t,e,r,n){const s=Array.isArray(e)?e:e.split(".");for(;s.length>1;){const u=s.shift();t instanceof Map?t=t.get(u):t instanceof Set?t=Array.from(t.values())[u]:t=t[u],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}const i=s[0],o=this.refEditor.get(t)[i];n?n(t,i,r):this.refEditor.isRef(o)?this.refEditor.set(o,r):t[i]=r}get(t,e){const r=Array.isArray(e)?e:e.split(".");for(let n=0;n<r.length;n++)if(t instanceof Map?t=t.get(r[n]):t=t[r[n]],this.refEditor.isRef(t)&&(t=this.refEditor.get(t)),!t)return;return t}has(t,e,r=!1){if(typeof t>"u")return!1;const n=Array.isArray(e)?e.slice():e.split("."),s=r?2:1;for(;t&&n.length>s;){const i=n.shift();t=t[i],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}return t!=null&&Object.prototype.hasOwnProperty.call(t,n[0])}createDefaultSetCallback(t){return(e,r,n)=>{if((t.remove||t.newKey)&&(Array.isArray(e)?e.splice(r,1):ne(e)instanceof Map?e.delete(r):ne(e)instanceof Set?e.delete(Array.from(e.values())[r]):Reflect.deleteProperty(e,r)),!t.remove){const s=e[t.newKey||r];this.refEditor.isRef(s)?this.refEditor.set(s,n):ne(e)instanceof Map?e.set(t.newKey||r,n):ne(e)instanceof Set?e.add(n):e[t.newKey||r]=n}}}},vl=class{set(t,e){if(Xe(t))t.value=e;else{if(t instanceof Set&&Array.isArray(e)){t.clear(),e.forEach(s=>t.add(s));return}const r=Object.keys(e);if(t instanceof Map){const s=new Set(t.keys());r.forEach(i=>{t.set(i,Reflect.get(e,i)),s.delete(i)}),s.forEach(i=>t.delete(i));return}const n=new Set(Object.keys(t));r.forEach(s=>{Reflect.set(t,s,Reflect.get(e,s)),n.delete(s)}),n.forEach(s=>Reflect.deleteProperty(t,s))}}get(t){return Xe(t)?t.value:t}isRef(t){return Xe(t)||Ri(t)}};y();y();y();var yl="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function _l(){if(!_i||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const t=localStorage.getItem(yl);return t?JSON.parse(t):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}y();y();y();var In,Cn;(Cn=(In=D).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(In.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var El=new Proxy(D.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(t,e,r){return Reflect.get(t,e,r)}});function ml(t,e){J.timelineLayersState[e.id]=!1,El.push({...t,descriptorId:e.id,appRecord:Vr(e.app)})}var Rn,xn;(xn=(Rn=D).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(Rn.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Lr=new Proxy(D.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(t,e,r){return Reflect.get(t,e,r)}}),xi=Gt(()=>{Xt.hooks.callHook("sendInspectorToClient",Pi())});function bl(t,e){var r,n;Lr.push({options:t,descriptor:e,treeFilterPlaceholder:(r=t.treeFilterPlaceholder)!=null?r:"Search tree...",stateFilterPlaceholder:(n=t.stateFilterPlaceholder)!=null?n:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Vr(e.app)}),xi()}function Pi(){return Lr.filter(t=>t.descriptor.app===st.value.app).filter(t=>t.descriptor.id!=="components").map(t=>{var e;const r=t.descriptor,n=t.options;return{id:n.id,label:n.label,logo:r.logo,icon:`custom-ic-baseline-${(e=n==null?void 0:n.icon)==null?void 0:e.replace(/_/g,"-")}`,packageName:r.packageName,homepage:r.homepage,pluginId:r.id}})}function Ie(t,e){return Lr.find(r=>r.options.id===t&&(e?r.descriptor.app===e:!0))}function Sl(){const t=mi();t.hook("addInspector",({inspector:n,plugin:s})=>{bl(n,s.descriptor)});const e=Gt(async({inspectorId:n,plugin:s})=>{var i;if(!n||!((i=s==null?void 0:s.descriptor)!=null&&i.app)||J.highPerfModeEnabled)return;const o=Ie(n,s.descriptor.app),u={app:s.descriptor.app,inspectorId:n,filter:(o==null?void 0:o.treeFilter)||"",rootNodes:[]};await new Promise(a=>{t.callHookWith(async c=>{await Promise.all(c.map(f=>f(u))),a()},"getInspectorTree")}),t.callHookWith(async a=>{await Promise.all(a.map(c=>c({inspectorId:n,rootNodes:u.rootNodes})))},"sendInspectorTreeToClient")},120);t.hook("sendInspectorTree",e);const r=Gt(async({inspectorId:n,plugin:s})=>{var i;if(!n||!((i=s==null?void 0:s.descriptor)!=null&&i.app)||J.highPerfModeEnabled)return;const o=Ie(n,s.descriptor.app),u={app:s.descriptor.app,inspectorId:n,nodeId:(o==null?void 0:o.selectedNodeId)||"",state:null},a={currentTab:`custom-inspector:${n}`};u.nodeId&&await new Promise(c=>{t.callHookWith(async f=>{await Promise.all(f.map(l=>l(u,a))),c()},"getInspectorState")}),t.callHookWith(async c=>{await Promise.all(c.map(f=>f({inspectorId:n,nodeId:u.nodeId,state:u.state})))},"sendInspectorStateToClient")},120);return t.hook("sendInspectorState",r),t.hook("customInspectorSelectNode",({inspectorId:n,nodeId:s,plugin:i})=>{const o=Ie(n,i.descriptor.app);o&&(o.selectedNodeId=s)}),t.hook("timelineLayerAdded",({options:n,plugin:s})=>{ml(n,s.descriptor)}),t.hook("timelineEventAdded",({options:n,plugin:s})=>{var i;const o=["performance","component-event","keyboard","mouse"];J.highPerfModeEnabled||!((i=J.timelineLayersState)!=null&&i[s.descriptor.id])&&!o.includes(n.layerId)||t.callHookWith(async u=>{await Promise.all(u.map(a=>a(n)))},"sendTimelineEventToClient")}),t.hook("getComponentInstances",async({app:n})=>{const s=n.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!s)return null;const i=s.id.toString();return[...s.instanceMap].filter(([u])=>u.split(":")[0]===i).map(([,u])=>u)}),t.hook("getComponentBounds",async({instance:n})=>Pt(n)),t.hook("getComponentName",({instance:n})=>Ke(n)),t.hook("componentHighlight",({uid:n})=>{const s=st.value.instanceMap.get(n);s&&ol(s)}),t.hook("componentUnhighlight",()=>{Ci()}),t}var Pn,kn;(kn=(Pn=D).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(Pn.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var Nn,Vn;(Vn=(Nn=D).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(Nn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var Bn,Mn;(Mn=(Bn=D).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(Bn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var Fn,$n;($n=(Fn=D).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(Fn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var Ln,Un;(Un=(Ln=D).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(Ln.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var Rt="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Tl(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:_l()}}var jn,Hn;(Hn=(jn=D)[Rt])!=null||(jn[Rt]=Tl());var Al=Gt(t=>{Xt.hooks.callHook("devtoolsStateUpdated",{state:t})});Gt((t,e)=>{Xt.hooks.callHook("devtoolsConnectedUpdated",{state:t,oldState:e})});var ze=new Proxy(D.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(t,e,r){return e==="value"?D.__VUE_DEVTOOLS_KIT_APP_RECORDS__:D.__VUE_DEVTOOLS_KIT_APP_RECORDS__[e]}}),st=new Proxy(D.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(t,e,r){return e==="value"?D.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:e==="id"?D.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:D.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[e]}});function ki(){Al({...D[Rt],appRecords:ze.value,activeAppRecordId:st.id,tabs:D.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:D.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function wl(t){D.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=t,ki()}function Ol(t){D.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=t,ki()}var J=new Proxy(D[Rt],{get(t,e){return e==="appRecords"?ze:e==="activeAppRecordId"?st.id:e==="tabs"?D.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:e==="commands"?D.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:D[Rt][e]},deleteProperty(t,e){return delete t[e],!0},set(t,e,r){return{...D[Rt]},t[e]=r,D[Rt][e]=r,!0}});function Dl(t={}){var e,r,n;const{file:s,host:i,baseUrl:o=window.location.origin,line:u=0,column:a=0}=t;if(s){if(i==="chrome-extension"){const c=s.replace(/\\/g,"\\\\"),f=(r=(e=window.VUE_DEVTOOLS_CONFIG)==null?void 0:e.openInEditorHost)!=null?r:"/";fetch(`${f}__open-in-editor?file=${encodeURI(s)}`).then(l=>{if(!l.ok){const p=`Opening component ${c} failed`;console.log(`%c${p}`,"color:red")}})}else if(J.vitePluginDetected){const c=(n=D.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?n:o;D.__VUE_INSPECTOR__.openInEditor(c,s,u,a)}}}y();y();y();y();y();var Kn,zn;(zn=(Kn=D).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(Kn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Ur=new Proxy(D.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(t,e,r){return Reflect.get(t,e,r)}});function gr(t){const e={};return Object.keys(t).forEach(r=>{e[r]=t[r].defaultValue}),e}function jr(t){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${t}__`}function Il(t){var e,r,n;const s=(r=(e=Ur.find(i=>{var o;return i[0].id===t&&!!((o=i[0])!=null&&o.settings)}))==null?void 0:e[0])!=null?r:null;return(n=s==null?void 0:s.settings)!=null?n:null}function Ni(t,e){var r,n,s;const i=jr(t);if(i){const o=localStorage.getItem(i);if(o)return JSON.parse(o)}if(t){const o=(n=(r=Ur.find(u=>u[0].id===t))==null?void 0:r[0])!=null?n:null;return gr((s=o==null?void 0:o.settings)!=null?s:{})}return gr(e)}function Cl(t,e){const r=jr(t);localStorage.getItem(r)||localStorage.setItem(r,JSON.stringify(gr(e)))}function Rl(t,e,r){const n=jr(t),s=localStorage.getItem(n),i=JSON.parse(s||"{}"),o={...i,[e]:r};localStorage.setItem(n,JSON.stringify(o)),Xt.hooks.callHookWith(u=>{u.forEach(a=>a({pluginId:t,key:e,oldValue:i[e],newValue:r,settings:o}))},"setPluginSettings")}y();y();y();y();y();y();y();y();y();y();y();var qn,Gn,ot=(Gn=(qn=D).__VUE_DEVTOOLS_HOOK)!=null?Gn:qn.__VUE_DEVTOOLS_HOOK=mi(),xl={vueAppInit(t){ot.hook("app:init",t)},vueAppUnmount(t){ot.hook("app:unmount",t)},vueAppConnected(t){ot.hook("app:connected",t)},componentAdded(t){return ot.hook("component:added",t)},componentEmit(t){return ot.hook("component:emit",t)},componentUpdated(t){return ot.hook("component:updated",t)},componentRemoved(t){return ot.hook("component:removed",t)},setupDevtoolsPlugin(t){ot.hook("devtools-plugin:setup",t)},perfStart(t){return ot.hook("perf:start",t)},perfEnd(t){return ot.hook("perf:end",t)}},Vi={on:xl,setupDevToolsPlugin(t,e){return ot.callHook("devtools-plugin:setup",t,e)}},Pl=class{constructor({plugin:t,ctx:e}){this.hooks=e.hooks,this.plugin=t}get on(){return{visitComponentTree:t=>{this.hooks.hook("visitComponentTree",t)},inspectComponent:t=>{this.hooks.hook("inspectComponent",t)},editComponentState:t=>{this.hooks.hook("editComponentState",t)},getInspectorTree:t=>{this.hooks.hook("getInspectorTree",t)},getInspectorState:t=>{this.hooks.hook("getInspectorState",t)},editInspectorState:t=>{this.hooks.hook("editInspectorState",t)},inspectTimelineEvent:t=>{this.hooks.hook("inspectTimelineEvent",t)},timelineCleared:t=>{this.hooks.hook("timelineCleared",t)},setPluginSettings:t=>{this.hooks.hook("setPluginSettings",t)}}}notifyComponentUpdate(t){var e;if(J.highPerfModeEnabled)return;const r=Pi().find(n=>n.packageName===this.plugin.descriptor.packageName);if(r!=null&&r.id){if(t){const n=[t.appContext.app,t.uid,(e=t.parent)==null?void 0:e.uid,t];ot.callHook("component:updated",...n)}else ot.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:r.id,plugin:this.plugin})}}addInspector(t){this.hooks.callHook("addInspector",{inspector:t,plugin:this.plugin}),this.plugin.descriptor.settings&&Cl(t.id,this.plugin.descriptor.settings)}sendInspectorTree(t){J.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:t,plugin:this.plugin})}sendInspectorState(t){J.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:t,plugin:this.plugin})}selectInspectorNode(t,e){this.hooks.callHook("customInspectorSelectNode",{inspectorId:t,nodeId:e,plugin:this.plugin})}visitComponentTree(t){return this.hooks.callHook("visitComponentTree",t)}now(){return J.highPerfModeEnabled?0:Date.now()}addTimelineLayer(t){this.hooks.callHook("timelineLayerAdded",{options:t,plugin:this.plugin})}addTimelineEvent(t){J.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:t,plugin:this.plugin})}getSettings(t){return Ni(t??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(t){return this.hooks.callHook("getComponentInstances",{app:t})}getComponentBounds(t){return this.hooks.callHook("getComponentBounds",{instance:t})}getComponentName(t){return this.hooks.callHook("getComponentName",{instance:t})}highlightElement(t){const e=t.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:e})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},kl=Pl;y();y();y();y();var Nl="__vue_devtool_undefined__",Vl="__vue_devtool_infinity__",Bl="__vue_devtool_negative_infinity__",Ml="__vue_devtool_nan__";y();y();var Fl={[Nl]:"undefined",[Ml]:"NaN",[Vl]:"Infinity",[Bl]:"-Infinity"};Object.entries(Fl).reduce((t,[e,r])=>(t[r]=e,t),{});y();y();y();y();y();var Wn,Yn;(Yn=(Wn=D).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(Wn.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function Bi(t,e){return Vi.setupDevToolsPlugin(t,e)}function $l(t,e){const[r,n]=t;if(r.app!==e)return;const s=new kl({plugin:{setupFn:n,descriptor:r},ctx:Xt});r.packageName==="vuex"&&s.on.editInspectorState(i=>{s.sendInspectorState(i.inspectorId)}),n(s)}function Mi(t,e){D.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(t)||J.highPerfModeEnabled&&!(e!=null&&e.inspectingComponent)||(D.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(t),Ur.forEach(r=>{$l(r,t)}))}y();y();var le="__VUE_DEVTOOLS_ROUTER__",Wt="__VUE_DEVTOOLS_ROUTER_INFO__",Zn,Jn;(Jn=(Zn=D)[Wt])!=null||(Zn[Wt]={currentRoute:null,routes:[]});var Xn,Qn;(Qn=(Xn=D)[le])!=null||(Xn[le]={});new Proxy(D[Wt],{get(t,e){return D[Wt][e]}});new Proxy(D[le],{get(t,e){if(e==="value")return D[le]}});function Ll(t){const e=new Map;return((t==null?void 0:t.getRoutes())||[]).filter(r=>!e.has(r.path)&&e.set(r.path,1))}function Hr(t){return t.map(e=>{let{path:r,name:n,children:s,meta:i}=e;return s!=null&&s.length&&(s=Hr(s)),{path:r,name:n,children:s,meta:i}})}function Ul(t){if(t){const{fullPath:e,hash:r,href:n,path:s,name:i,matched:o,params:u,query:a}=t;return{fullPath:e,hash:r,href:n,path:s,name:i,params:u,query:a,matched:Hr(o)}}return t}function jl(t,e){function r(){var n;const s=(n=t.app)==null?void 0:n.config.globalProperties.$router,i=Ul(s==null?void 0:s.currentRoute.value),o=Hr(Ll(s)),u=console.warn;console.warn=()=>{},D[Wt]={currentRoute:i?Tn(i):{},routes:Tn(o)},D[le]=s,console.warn=u}r(),Vi.on.componentUpdated(Gt(()=>{var n;((n=e.value)==null?void 0:n.app)===t.app&&(r(),!J.highPerfModeEnabled&&Xt.hooks.callHook("routerInfoUpdated",{state:D[Wt]}))},200))}function Hl(t){return{async getInspectorTree(e){const r={...e,app:st.value.app,rootNodes:[]};return await new Promise(n=>{t.callHookWith(async s=>{await Promise.all(s.map(i=>i(r))),n()},"getInspectorTree")}),r.rootNodes},async getInspectorState(e){const r={...e,app:st.value.app,state:null},n={currentTab:`custom-inspector:${e.inspectorId}`};return await new Promise(s=>{t.callHookWith(async i=>{await Promise.all(i.map(o=>o(r,n))),s()},"getInspectorState")}),r.state},editInspectorState(e){const r=new gl,n={...e,app:st.value.app,set:(s,i=e.path,o=e.state.value,u)=>{r.set(s,i,o,u||r.createDefaultSetCallback(e.state))}};t.callHookWith(s=>{s.forEach(i=>i(n))},"editInspectorState")},sendInspectorState(e){const r=Ie(e);t.callHook("sendInspectorState",{inspectorId:e,plugin:{descriptor:r.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return cl()},cancelInspectComponentInspector(){return al()},getComponentRenderCode(e){const r=hr(st.value,e);if(r)return typeof(r==null?void 0:r.type)!="function"?r.render.toString():r.type.toString()},scrollToComponent(e){return ll({id:e})},openInEditor:Dl,getVueInspector:dl,toggleApp(e,r){const n=ze.value.find(s=>s.id===e);n&&(Ol(e),wl(n),jl(n,st),xi(),Mi(n.app,r))},inspectDOM(e){const r=hr(st.value,e);if(r){const[n]=Br(r);n&&(D.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=n)}},updatePluginSettings(e,r,n){Rl(e,r,n)},getPluginSettings(e){return{options:Il(e),values:Ni(e)}}}}y();var ts,es;(es=(ts=D).__VUE_DEVTOOLS_ENV__)!=null||(ts.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var rs=Sl(),ns,ss;(ss=(ns=D).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(ns.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:rs,get state(){return{...J,activeAppRecordId:st.id,activeAppRecord:st.value,appRecords:ze.value}},api:Hl(rs)});var Xt=D.__VUE_DEVTOOLS_KIT_CONTEXT__;y();Kc(qc());var is,os;(os=(is=D).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null||(is.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set});y();y();function Kl(t){J.highPerfModeEnabled=t??!J.highPerfModeEnabled,!t&&st.value&&Mi(st.value.app)}y();y();y();function zl(t){J.devtoolsClientDetected={...J.devtoolsClientDetected,...t};const e=Object.values(J.devtoolsClientDetected).some(Boolean);Kl(!e)}var us,as;(as=(us=D).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(us.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=zl);y();y();y();y();y();y();y();var ql=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(t,e){this.keyToValue.set(t,e),this.valueToKey.set(e,t)}getByKey(t){return this.keyToValue.get(t)}getByValue(t){return this.valueToKey.get(t)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Fi=class{constructor(t){this.generateIdentifier=t,this.kv=new ql}register(t,e){this.kv.getByValue(t)||(e||(e=this.generateIdentifier(t)),this.kv.set(e,t))}clear(){this.kv.clear()}getIdentifier(t){return this.kv.getByValue(t)}getValue(t){return this.kv.getByKey(t)}},Gl=class extends Fi{constructor(){super(t=>t.name),this.classToAllowedProps=new Map}register(t,e){typeof e=="object"?(e.allowProps&&this.classToAllowedProps.set(t,e.allowProps),super.register(t,e.identifier)):super.register(t,e)}getAllowedProps(t){return this.classToAllowedProps.get(t)}};y();y();function Wl(t){if("values"in Object)return Object.values(t);const e=[];for(const r in t)t.hasOwnProperty(r)&&e.push(t[r]);return e}function Yl(t,e){const r=Wl(t);if("find"in r)return r.find(e);const n=r;for(let s=0;s<n.length;s++){const i=n[s];if(e(i))return i}}function Yt(t,e){Object.entries(t).forEach(([r,n])=>e(n,r))}function Ce(t,e){return t.indexOf(e)!==-1}function cs(t,e){for(let r=0;r<t.length;r++){const n=t[r];if(e(n))return n}}var Zl=class{constructor(){this.transfomers={}}register(t){this.transfomers[t.name]=t}findApplicable(t){return Yl(this.transfomers,e=>e.isApplicable(t))}findByName(t){return this.transfomers[t]}};y();y();var Jl=t=>Object.prototype.toString.call(t).slice(8,-1),$i=t=>typeof t>"u",Xl=t=>t===null,fe=t=>typeof t!="object"||t===null||t===Object.prototype?!1:Object.getPrototypeOf(t)===null?!0:Object.getPrototypeOf(t)===Object.prototype,vr=t=>fe(t)&&Object.keys(t).length===0,At=t=>Array.isArray(t),Ql=t=>typeof t=="string",tf=t=>typeof t=="number"&&!isNaN(t),ef=t=>typeof t=="boolean",rf=t=>t instanceof RegExp,he=t=>t instanceof Map,de=t=>t instanceof Set,Li=t=>Jl(t)==="Symbol",nf=t=>t instanceof Date&&!isNaN(t.valueOf()),sf=t=>t instanceof Error,ls=t=>typeof t=="number"&&isNaN(t),of=t=>ef(t)||Xl(t)||$i(t)||tf(t)||Ql(t)||Li(t),uf=t=>typeof t=="bigint",af=t=>t===1/0||t===-1/0,cf=t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),lf=t=>t instanceof URL;y();var Ui=t=>t.replace(/\./g,"\\."),Qe=t=>t.map(String).map(Ui).join("."),ce=t=>{const e=[];let r="";for(let s=0;s<t.length;s++){let i=t.charAt(s);if(i==="\\"&&t.charAt(s+1)==="."){r+=".",s++;continue}if(i==="."){e.push(r),r="";continue}r+=i}const n=r;return e.push(n),e};y();function dt(t,e,r,n){return{isApplicable:t,annotation:e,transform:r,untransform:n}}var ji=[dt($i,"undefined",()=>null,()=>{}),dt(uf,"bigint",t=>t.toString(),t=>typeof BigInt<"u"?BigInt(t):(console.error("Please add a BigInt polyfill."),t)),dt(nf,"Date",t=>t.toISOString(),t=>new Date(t)),dt(sf,"Error",(t,e)=>{const r={name:t.name,message:t.message};return e.allowedErrorProps.forEach(n=>{r[n]=t[n]}),r},(t,e)=>{const r=new Error(t.message);return r.name=t.name,r.stack=t.stack,e.allowedErrorProps.forEach(n=>{r[n]=t[n]}),r}),dt(rf,"regexp",t=>""+t,t=>{const e=t.slice(1,t.lastIndexOf("/")),r=t.slice(t.lastIndexOf("/")+1);return new RegExp(e,r)}),dt(de,"set",t=>[...t.values()],t=>new Set(t)),dt(he,"map",t=>[...t.entries()],t=>new Map(t)),dt(t=>ls(t)||af(t),"number",t=>ls(t)?"NaN":t>0?"Infinity":"-Infinity",Number),dt(t=>t===0&&1/t===-1/0,"number",()=>"-0",Number),dt(lf,"URL",t=>t.toString(),t=>new URL(t))];function qe(t,e,r,n){return{isApplicable:t,annotation:e,transform:r,untransform:n}}var Hi=qe((t,e)=>Li(t)?!!e.symbolRegistry.getIdentifier(t):!1,(t,e)=>["symbol",e.symbolRegistry.getIdentifier(t)],t=>t.description,(t,e,r)=>{const n=r.symbolRegistry.getValue(e[1]);if(!n)throw new Error("Trying to deserialize unknown symbol");return n}),ff=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((t,e)=>(t[e.name]=e,t),{}),Ki=qe(cf,t=>["typed-array",t.constructor.name],t=>[...t],(t,e)=>{const r=ff[e[1]];if(!r)throw new Error("Trying to deserialize unknown typed array");return new r(t)});function zi(t,e){return t!=null&&t.constructor?!!e.classRegistry.getIdentifier(t.constructor):!1}var qi=qe(zi,(t,e)=>["class",e.classRegistry.getIdentifier(t.constructor)],(t,e)=>{const r=e.classRegistry.getAllowedProps(t.constructor);if(!r)return{...t};const n={};return r.forEach(s=>{n[s]=t[s]}),n},(t,e,r)=>{const n=r.classRegistry.getValue(e[1]);if(!n)throw new Error(`Trying to deserialize unknown class '${e[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(n.prototype),t)}),Gi=qe((t,e)=>!!e.customTransformerRegistry.findApplicable(t),(t,e)=>["custom",e.customTransformerRegistry.findApplicable(t).name],(t,e)=>e.customTransformerRegistry.findApplicable(t).serialize(t),(t,e,r)=>{const n=r.customTransformerRegistry.findByName(e[1]);if(!n)throw new Error("Trying to deserialize unknown custom value");return n.deserialize(t)}),hf=[qi,Hi,Gi,Ki],fs=(t,e)=>{const r=cs(hf,s=>s.isApplicable(t,e));if(r)return{value:r.transform(t,e),type:r.annotation(t,e)};const n=cs(ji,s=>s.isApplicable(t,e));if(n)return{value:n.transform(t,e),type:n.annotation}},Wi={};ji.forEach(t=>{Wi[t.annotation]=t});var df=(t,e,r)=>{if(At(e))switch(e[0]){case"symbol":return Hi.untransform(t,e,r);case"class":return qi.untransform(t,e,r);case"custom":return Gi.untransform(t,e,r);case"typed-array":return Ki.untransform(t,e,r);default:throw new Error("Unknown transformation: "+e)}else{const n=Wi[e];if(!n)throw new Error("Unknown transformation: "+e);return n.untransform(t,r)}};y();var Ut=(t,e)=>{if(e>t.size)throw new Error("index out of bounds");const r=t.keys();for(;e>0;)r.next(),e--;return r.next().value};function Yi(t){if(Ce(t,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Ce(t,"prototype"))throw new Error("prototype is not allowed as a property");if(Ce(t,"constructor"))throw new Error("constructor is not allowed as a property")}var pf=(t,e)=>{Yi(e);for(let r=0;r<e.length;r++){const n=e[r];if(de(t))t=Ut(t,+n);else if(he(t)){const s=+n,i=+e[++r]==0?"key":"value",o=Ut(t,s);switch(i){case"key":t=o;break;case"value":t=t.get(o);break}}else t=t[n]}return t},yr=(t,e,r)=>{if(Yi(e),e.length===0)return r(t);let n=t;for(let i=0;i<e.length-1;i++){const o=e[i];if(At(n)){const u=+o;n=n[u]}else if(fe(n))n=n[o];else if(de(n)){const u=+o;n=Ut(n,u)}else if(he(n)){if(i===e.length-2)break;const a=+o,c=+e[++i]==0?"key":"value",f=Ut(n,a);switch(c){case"key":n=f;break;case"value":n=n.get(f);break}}}const s=e[e.length-1];if(At(n)?n[+s]=r(n[+s]):fe(n)&&(n[s]=r(n[s])),de(n)){const i=Ut(n,+s),o=r(i);i!==o&&(n.delete(i),n.add(o))}if(he(n)){const i=+e[e.length-2],o=Ut(n,i);switch(+s==0?"key":"value"){case"key":{const a=r(o);n.set(a,n.get(o)),a!==o&&n.delete(o);break}case"value":{n.set(o,r(n.get(o)));break}}}return t};function _r(t,e,r=[]){if(!t)return;if(!At(t)){Yt(t,(i,o)=>_r(i,e,[...r,...ce(o)]));return}const[n,s]=t;s&&Yt(s,(i,o)=>{_r(i,e,[...r,...ce(o)])}),e(n,r)}function gf(t,e,r){return _r(e,(n,s)=>{t=yr(t,s,i=>df(i,n,r))}),t}function vf(t,e){function r(n,s){const i=pf(t,ce(s));n.map(ce).forEach(o=>{t=yr(t,o,()=>i)})}if(At(e)){const[n,s]=e;n.forEach(i=>{t=yr(t,ce(i),()=>t)}),s&&Yt(s,r)}else Yt(e,r);return t}var yf=(t,e)=>fe(t)||At(t)||he(t)||de(t)||zi(t,e);function _f(t,e,r){const n=r.get(t);n?n.push(e):r.set(t,[e])}function Ef(t,e){const r={};let n;return t.forEach(s=>{if(s.length<=1)return;e||(s=s.map(u=>u.map(String)).sort((u,a)=>u.length-a.length));const[i,...o]=s;i.length===0?n=o.map(Qe):r[Qe(i)]=o.map(Qe)}),n?vr(r)?[n]:[n,r]:vr(r)?void 0:r}var Zi=(t,e,r,n,s=[],i=[],o=new Map)=>{var u;const a=of(t);if(!a){_f(t,s,e);const d=o.get(t);if(d)return n?{transformedValue:null}:d}if(!yf(t,r)){const d=fs(t,r),m=d?{transformedValue:d.value,annotations:[d.type]}:{transformedValue:t};return a||o.set(t,m),m}if(Ce(i,t))return{transformedValue:null};const c=fs(t,r),f=(u=c==null?void 0:c.value)!=null?u:t,l=At(f)?[]:{},p={};Yt(f,(d,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 S=Zi(d,e,r,n,[...s,m],[...i,t],o);l[m]=S.transformedValue,At(S.annotations)?p[m]=S.annotations:fe(S.annotations)&&Yt(S.annotations,(O,B)=>{p[Ui(m)+"."+B]=O})});const h=vr(p)?{transformedValue:l,annotations:c?[c.type]:void 0}:{transformedValue:l,annotations:c?[c.type,p]:p};return a||o.set(t,h),h};y();y();function Ji(t){return Object.prototype.toString.call(t).slice(8,-1)}function hs(t){return Ji(t)==="Array"}function mf(t){if(Ji(t)!=="Object")return!1;const e=Object.getPrototypeOf(t);return!!e&&e.constructor===Object&&e===Object.prototype}function bf(t,e,r,n,s){const i={}.propertyIsEnumerable.call(n,e)?"enumerable":"nonenumerable";i==="enumerable"&&(t[e]=r),s&&i==="nonenumerable"&&Object.defineProperty(t,e,{value:r,enumerable:!1,writable:!0,configurable:!0})}function Er(t,e={}){if(hs(t))return t.map(s=>Er(s,e));if(!mf(t))return t;const r=Object.getOwnPropertyNames(t),n=Object.getOwnPropertySymbols(t);return[...r,...n].reduce((s,i)=>{if(hs(e.props)&&!e.props.includes(i))return s;const o=t[i],u=Er(o,e);return bf(s,i,u,t,e.nonenumerable),s},{})}var K=class{constructor({dedupe:t=!1}={}){this.classRegistry=new Gl,this.symbolRegistry=new Fi(e=>{var r;return(r=e.description)!=null?r:""}),this.customTransformerRegistry=new Zl,this.allowedErrorProps=[],this.dedupe=t}serialize(t){const e=new Map,r=Zi(t,e,this,this.dedupe),n={json:r.transformedValue};r.annotations&&(n.meta={...n.meta,values:r.annotations});const s=Ef(e,this.dedupe);return s&&(n.meta={...n.meta,referentialEqualities:s}),n}deserialize(t){const{json:e,meta:r}=t;let n=Er(e);return r!=null&&r.values&&(n=gf(n,r.values,this)),r!=null&&r.referentialEqualities&&(n=vf(n,r.referentialEqualities)),n}stringify(t){return JSON.stringify(this.serialize(t))}parse(t){return this.deserialize(JSON.parse(t))}registerClass(t,e){this.classRegistry.register(t,e)}registerSymbol(t,e){this.symbolRegistry.register(t,e)}registerCustom(t,e){this.customTransformerRegistry.register({name:e,...t})}allowErrorProps(...t){this.allowedErrorProps.push(...t)}};K.defaultInstance=new K;K.serialize=K.defaultInstance.serialize.bind(K.defaultInstance);K.deserialize=K.defaultInstance.deserialize.bind(K.defaultInstance);K.stringify=K.defaultInstance.stringify.bind(K.defaultInstance);K.parse=K.defaultInstance.parse.bind(K.defaultInstance);K.registerClass=K.defaultInstance.registerClass.bind(K.defaultInstance);K.registerSymbol=K.defaultInstance.registerSymbol.bind(K.defaultInstance);K.registerCustom=K.defaultInstance.registerCustom.bind(K.defaultInstance);K.allowErrorProps=K.defaultInstance.allowErrorProps.bind(K.defaultInstance);y();y();y();y();y();y();y();y();y();y();y();y();y();y();y();y();y();y();y();y();y();y();y();var ds,ps;(ps=(ds=D).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(ds.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var gs,vs;(vs=(gs=D).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(gs.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var ys,_s;(_s=(ys=D).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(ys.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var Es,ms;(ms=(Es=D).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(Es.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var bs,Ss;(Ss=(bs=D).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||(bs.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var Ts,As;(As=(Ts=D).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(Ts.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null);y();y();y();y();y();y();y();/*!
|
|
2
|
+
* pinia v3.0.3
|
|
3
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/let se;const pe=t=>se=t,Xi=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function kt(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var pt;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(pt||(pt={}));const Et=typeof window<"u",ws=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 Sf(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function Kr(t,e,r){const n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){eo(n.response,e,r)},n.onerror=function(){console.error("could not download file")},n.send()}function Qi(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Re(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{const r=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});t.dispatchEvent(r)}}const xe=typeof navigator=="object"?navigator:{userAgent:""},to=/Macintosh/.test(xe.userAgent)&&/AppleWebKit/.test(xe.userAgent)&&!/Safari/.test(xe.userAgent),eo=Et?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!to?Tf:"msSaveOrOpenBlob"in xe?Af:wf:()=>{};function Tf(t,e="download",r){const n=document.createElement("a");n.download=e,n.rel="noopener",typeof t=="string"?(n.href=t,n.origin!==location.origin?Qi(n.href)?Kr(t,e,r):(n.target="_blank",Re(n)):Re(n)):(n.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(n.href)},4e4),setTimeout(function(){Re(n)},0))}function Af(t,e="download",r){if(typeof t=="string")if(Qi(t))Kr(t,e,r);else{const n=document.createElement("a");n.href=t,n.target="_blank",setTimeout(function(){Re(n)})}else navigator.msSaveOrOpenBlob(Sf(t,r),e)}function wf(t,e,r,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),typeof t=="string")return Kr(t,e,r);const s=t.type==="application/octet-stream",i=/constructor/i.test(String(ws.HTMLElement))||"safari"in ws,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||s&&i||to)&&typeof FileReader<"u"){const u=new FileReader;u.onloadend=function(){let a=u.result;if(typeof a!="string")throw n=null,new Error("Wrong reader.result type");a=o?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=a:location.assign(a),n=null},u.readAsDataURL(t)}else{const u=URL.createObjectURL(t);n?n.location.assign(u):location.href=u,n=null,setTimeout(function(){URL.revokeObjectURL(u)},4e4)}}function X(t,e){const r="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(r,e):e==="error"?console.error(r):e==="warn"?console.warn(r):console.log(r)}function zr(t){return"_a"in t&&"install"in t}function ro(){if(!("clipboard"in navigator))return X("Your browser doesn't support the Clipboard API","error"),!0}function no(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(X('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Of(t){if(!ro())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),X("Global state copied to clipboard.")}catch(e){if(no(e))return;X("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function Df(t){if(!ro())try{so(t,JSON.parse(await navigator.clipboard.readText())),X("Global state pasted from clipboard.")}catch(e){if(no(e))return;X("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function If(t){try{eo(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){X("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let gt;function Cf(){gt||(gt=document.createElement("input"),gt.type="file",gt.accept=".json");function t(){return new Promise((e,r)=>{gt.onchange=async()=>{const n=gt.files;if(!n)return e(null);const s=n.item(0);return e(s?{text:await s.text(),file:s}:null)},gt.oncancel=()=>e(null),gt.onerror=r,gt.click()})}return t}async function Rf(t){try{const r=await Cf()();if(!r)return;const{text:n,file:s}=r;so(t,JSON.parse(n)),X(`Global state imported from "${s.name}".`)}catch(e){X("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function so(t,e){for(const r in e){const n=t.state.value[r];n?Object.assign(n,e[r]):t.state.value[r]=e[r]}}function ft(t){return{_custom:{display:t}}}const io="🍍 Pinia (root)",Pe="_root";function xf(t){return zr(t)?{id:Pe,label:io}:{id:t.$id,label:t.$id}}function Pf(t){if(zr(t)){const r=Array.from(t._s.keys()),n=t._s;return{state:r.map(i=>({editable:!0,key:i,value:t.state.value[i]})),getters:r.filter(i=>n.get(i)._getters).map(i=>{const o=n.get(i);return{editable:!1,key:i,value:o._getters.reduce((u,a)=>(u[a]=o[a],u),{})}})}}const e={state:Object.keys(t.$state).map(r=>({editable:!0,key:r,value:t.$state[r]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(r=>({editable:!1,key:r,value:t[r]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(r=>({editable:!0,key:r,value:t[r]}))),e}function kf(t){return t?Array.isArray(t)?t.reduce((e,r)=>(e.keys.push(r.key),e.operations.push(r.type),e.oldValue[r.key]=r.oldValue,e.newValue[r.key]=r.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:ft(t.type),key:ft(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function Nf(t){switch(t){case pt.direct:return"mutation";case pt.patchFunction:return"$patch";case pt.patchObject:return"$patch";default:return"unknown"}}let jt=!0;const ke=[],Ct="pinia:mutations",et="pinia",{assign:Vf}=Object,$e=t=>"🍍 "+t;function Bf(t,e){Bi({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ke,app:t},r=>{typeof r.now!="function"&&X("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."),r.addTimelineLayer({id:Ct,label:"Pinia 🍍",color:15064968}),r.addInspector({id:et,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Of(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Df(e),r.sendInspectorTree(et),r.sendInspectorState(et)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{If(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Rf(e),r.sendInspectorTree(et),r.sendInspectorState(et)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:n=>{const s=e._s.get(n);s?typeof s.$reset!="function"?X(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),X(`Store "${n}" reset.`)):X(`Cannot reset "${n}" store because it wasn't found.`,"warn")}}]}),r.on.inspectComponent(n=>{const s=n.componentInstance&&n.componentInstance.proxy;if(s&&s._pStores){const i=n.componentInstance.proxy._pStores;Object.values(i).forEach(o=>{n.instanceData.state.push({type:$e(o.$id),key:"state",editable:!0,value:o._isOptionsAPI?{_custom:{value:T.toRaw(o.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>o.$reset()}]}}:Object.keys(o.$state).reduce((u,a)=>(u[a]=o.$state[a],u),{})}),o._getters&&o._getters.length&&n.instanceData.state.push({type:$e(o.$id),key:"getters",editable:!1,value:o._getters.reduce((u,a)=>{try{u[a]=o[a]}catch(c){u[a]=c}return u},{})})})}}),r.on.getInspectorTree(n=>{if(n.app===t&&n.inspectorId===et){let s=[e];s=s.concat(Array.from(e._s.values())),n.rootNodes=(n.filter?s.filter(i=>"$id"in i?i.$id.toLowerCase().includes(n.filter.toLowerCase()):io.toLowerCase().includes(n.filter.toLowerCase())):s).map(xf)}}),globalThis.$pinia=e,r.on.getInspectorState(n=>{if(n.app===t&&n.inspectorId===et){const s=n.nodeId===Pe?e:e._s.get(n.nodeId);if(!s)return;s&&(n.nodeId!==Pe&&(globalThis.$store=T.toRaw(s)),n.state=Pf(s))}}),r.on.editInspectorState(n=>{if(n.app===t&&n.inspectorId===et){const s=n.nodeId===Pe?e:e._s.get(n.nodeId);if(!s)return X(`store "${n.nodeId}" not found`,"error");const{path:i}=n;zr(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),jt=!1,n.set(s,i,n.state.value),jt=!0}}),r.on.editComponentState(n=>{if(n.type.startsWith("🍍")){const s=n.type.replace(/^🍍\s*/,""),i=e._s.get(s);if(!i)return X(`store "${s}" not found`,"error");const{path:o}=n;if(o[0]!=="state")return X(`Invalid path for store "${s}":
|
|
6
|
+
${o}
|
|
7
|
+
Only state can be modified.`);o[0]="$state",jt=!1,n.set(i,o,n.state.value),jt=!0}})})}function Mf(t,e){ke.includes($e(e.$id))||ke.push($e(e.$id)),Bi({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ke,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},r=>{const n=typeof r.now=="function"?r.now.bind(r):Date.now;e.$onAction(({after:o,onError:u,name:a,args:c})=>{const f=oo++;r.addTimelineEvent({layerId:Ct,event:{time:n(),title:"🛫 "+a,subtitle:"start",data:{store:ft(e.$id),action:ft(a),args:c},groupId:f}}),o(l=>{mt=void 0,r.addTimelineEvent({layerId:Ct,event:{time:n(),title:"🛬 "+a,subtitle:"end",data:{store:ft(e.$id),action:ft(a),args:c,result:l},groupId:f}})}),u(l=>{mt=void 0,r.addTimelineEvent({layerId:Ct,event:{time:n(),logType:"error",title:"💥 "+a,subtitle:"end",data:{store:ft(e.$id),action:ft(a),args:c,error:l},groupId:f}})})},!0),e._customProperties.forEach(o=>{T.watch(()=>T.unref(e[o]),(u,a)=>{r.notifyComponentUpdate(),r.sendInspectorState(et),jt&&r.addTimelineEvent({layerId:Ct,event:{time:n(),title:"Change",subtitle:o,data:{newValue:u,oldValue:a},groupId:mt}})},{deep:!0})}),e.$subscribe(({events:o,type:u},a)=>{if(r.notifyComponentUpdate(),r.sendInspectorState(et),!jt)return;const c={time:n(),title:Nf(u),data:Vf({store:ft(e.$id)},kf(o)),groupId:mt};u===pt.patchFunction?c.subtitle="⤵️":u===pt.patchObject?c.subtitle="🧩":o&&!Array.isArray(o)&&(c.subtitle=o.type),o&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:o}}),r.addTimelineEvent({layerId:Ct,event:c})},{detached:!0,flush:"sync"});const s=e._hotUpdate;e._hotUpdate=T.markRaw(o=>{s(o),r.addTimelineEvent({layerId:Ct,event:{time:n(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:ft(e.$id),info:ft("HMR update")}}}),r.notifyComponentUpdate(),r.sendInspectorTree(et),r.sendInspectorState(et)});const{$dispose:i}=e;e.$dispose=()=>{i(),r.notifyComponentUpdate(),r.sendInspectorTree(et),r.sendInspectorState(et),r.getSettings().logStoreChanges&&X(`Disposed "${e.$id}" store 🗑`)},r.notifyComponentUpdate(),r.sendInspectorTree(et),r.sendInspectorState(et),r.getSettings().logStoreChanges&&X(`"${e.$id}" store installed 🆕`)})}let oo=0,mt;function Os(t,e,r){const n=e.reduce((s,i)=>(s[i]=T.toRaw(t)[i],s),{});for(const s in n)t[s]=function(){const i=oo,o=r?new Proxy(t,{get(...a){return mt=i,Reflect.get(...a)},set(...a){return mt=i,Reflect.set(...a)}}):t;mt=i;const u=n[s].apply(o,arguments);return mt=void 0,u}}function Ff({app:t,store:e,options:r}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!r.state,!e._p._testing){Os(e,Object.keys(r.actions),e._isOptionsAPI);const n=e._hotUpdate;T.toRaw(e)._hotUpdate=function(s){n.apply(this,arguments),Os(e,Object.keys(s._hmrPayload.actions),!!e._isOptionsAPI)}}Mf(t,e)}}function $f(){const t=T.effectScope(!0),e=t.run(()=>T.ref({}));let r=[],n=[];const s=T.markRaw({install(i){pe(s),s._a=i,i.provide(Xi,s),i.config.globalProperties.$pinia=s,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Et&&Bf(i,s),n.forEach(o=>r.push(o)),n=[]},use(i){return this._a?r.push(i):n.push(i),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Et&&typeof Proxy<"u"&&s.use(Ff),s}function uo(t,e){for(const r in e){const n=e[r];if(!(r in t))continue;const s=t[r];kt(s)&&kt(n)&&!T.isRef(n)&&!T.isReactive(n)?t[r]=uo(s,n):t[r]=n}return t}const ao=()=>{};function Ds(t,e,r,n=ao){t.push(e);const s=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),n())};return!r&&T.getCurrentScope()&&T.onScopeDispose(s),s}function Mt(t,...e){t.slice().forEach(r=>{r(...e)})}const Lf=t=>t(),Is=Symbol(),tr=Symbol();function mr(t,e){t instanceof Map&&e instanceof Map?e.forEach((r,n)=>t.set(n,r)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],s=t[r];kt(s)&&kt(n)&&t.hasOwnProperty(r)&&!T.isRef(n)&&!T.isReactive(n)?t[r]=mr(s,n):t[r]=n}return t}const Uf=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function jf(t){return!kt(t)||!Object.prototype.hasOwnProperty.call(t,Uf)}const{assign:at}=Object;function Cs(t){return!!(T.isRef(t)&&t.effect)}function Rs(t,e,r,n){const{state:s,actions:i,getters:o}=e,u=r.state.value[t];let a;function c(){!u&&(process.env.NODE_ENV==="production"||!n)&&(r.state.value[t]=s?s():{});const f=process.env.NODE_ENV!=="production"&&n?T.toRefs(T.ref(s?s():{}).value):T.toRefs(r.state.value[t]);return at(f,i,Object.keys(o||{}).reduce((l,p)=>(process.env.NODE_ENV!=="production"&&p in f&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${t}".`),l[p]=T.markRaw(T.computed(()=>{pe(r);const h=r._s.get(t);return o[p].call(h,h)})),l),{}))}return a=br(t,c,e,r,n,!0),a}function br(t,e,r={},n,s,i){let o;const u=at({actions:{}},r);if(process.env.NODE_ENV!=="production"&&!n._e.active)throw new Error("Pinia destroyed");const a={deep:!0};process.env.NODE_ENV!=="production"&&(a.onTrigger=b=>{c?h=b:c==!1&&!P._hotUpdating&&(Array.isArray(h)?h.push(b):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,f,l=[],p=[],h;const d=n.state.value[t];!i&&!d&&(process.env.NODE_ENV==="production"||!s)&&(n.state.value[t]={});const m=T.ref({});let S;function O(b){let v;c=f=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof b=="function"?(b(n.state.value[t]),v={type:pt.patchFunction,storeId:t,events:h}):(mr(n.state.value[t],b),v={type:pt.patchObject,payload:b,storeId:t,events:h});const $=S=Symbol();T.nextTick().then(()=>{S===$&&(c=!0)}),f=!0,Mt(l,v,n.state.value[t])}const B=i?function(){const{state:v}=r,$=v?v():{};this.$patch(j=>{at(j,$)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:ao;function N(){o.stop(),l=[],p=[],n._s.delete(t)}const W=(b,v="")=>{if(Is in b)return b[tr]=v,b;const $=function(){pe(n);const j=Array.from(arguments),x=[],w=[];function E(I){x.push(I)}function _(I){w.push(I)}Mt(p,{args:j,name:$[tr],store:P,after:E,onError:_});let A;try{A=b.apply(this&&this.$id===t?this:P,j)}catch(I){throw Mt(w,I),I}return A instanceof Promise?A.then(I=>(Mt(x,I),I)).catch(I=>(Mt(w,I),Promise.reject(I))):(Mt(x,A),A)};return $[Is]=!0,$[tr]=v,$},Q=T.markRaw({actions:{},getters:{},state:[],hotState:m}),R={_p:n,$id:t,$onAction:Ds.bind(null,p),$patch:O,$reset:B,$subscribe(b,v={}){const $=Ds(l,b,v.detached,()=>j()),j=o.run(()=>T.watch(()=>n.state.value[t],x=>{(v.flush==="sync"?f:c)&&b({storeId:t,type:pt.direct,events:h},x)},at({},a,v)));return $},$dispose:N},P=T.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Et?at({_hmrPayload:Q,_customProperties:T.markRaw(new Set)},R):R);n._s.set(t,P);const U=(n._a&&n._a.runWithContext||Lf)(()=>n._e.run(()=>(o=T.effectScope()).run(()=>e({action:W}))));for(const b in U){const v=U[b];if(T.isRef(v)&&!Cs(v)||T.isReactive(v))process.env.NODE_ENV!=="production"&&s?m.value[b]=T.toRef(U,b):i||(d&&jf(v)&&(T.isRef(v)?v.value=d[b]:mr(v,d[b])),n.state.value[t][b]=v),process.env.NODE_ENV!=="production"&&Q.state.push(b);else if(typeof v=="function"){const $=process.env.NODE_ENV!=="production"&&s?v:W(v,b);U[b]=$,process.env.NODE_ENV!=="production"&&(Q.actions[b]=v),u.actions[b]=v}else process.env.NODE_ENV!=="production"&&Cs(v)&&(Q.getters[b]=i?r.getters[b]:v,Et&&(U._getters||(U._getters=T.markRaw([]))).push(b))}if(at(P,U),at(T.toRaw(P),U),Object.defineProperty(P,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?m.value:n.state.value[t],set:b=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");O(v=>{at(v,b)})}}),process.env.NODE_ENV!=="production"&&(P._hotUpdate=T.markRaw(b=>{P._hotUpdating=!0,b._hmrPayload.state.forEach(v=>{if(v in P.$state){const $=b.$state[v],j=P.$state[v];typeof $=="object"&&kt($)&&kt(j)?uo($,j):b.$state[v]=j}P[v]=T.toRef(b.$state,v)}),Object.keys(P.$state).forEach(v=>{v in b.$state||delete P[v]}),c=!1,f=!1,n.state.value[t]=T.toRef(b._hmrPayload,"hotState"),f=!0,T.nextTick().then(()=>{c=!0});for(const v in b._hmrPayload.actions){const $=b[v];P[v]=W($,v)}for(const v in b._hmrPayload.getters){const $=b._hmrPayload.getters[v],j=i?T.computed(()=>(pe(n),$.call(P,P))):$;P[v]=j}Object.keys(P._hmrPayload.getters).forEach(v=>{v in b._hmrPayload.getters||delete P[v]}),Object.keys(P._hmrPayload.actions).forEach(v=>{v in b._hmrPayload.actions||delete P[v]}),P._hmrPayload=b._hmrPayload,P._getters=b._getters,P._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Et){const b={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(v=>{Object.defineProperty(P,v,at({value:P[v]},b))})}return n._p.forEach(b=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Et){const v=o.run(()=>b({store:P,app:n._a,pinia:n,options:u}));Object.keys(v||{}).forEach($=>P._customProperties.add($)),at(P,v)}else at(P,o.run(()=>b({store:P,app:n._a,pinia:n,options:u})))}),process.env.NODE_ENV!=="production"&&P.$state&&typeof P.$state=="object"&&typeof P.$state.constructor=="function"&&!P.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
8
|
+
state: () => new MyClass()
|
|
9
|
+
Found in store "${P.$id}".`),d&&i&&r.hydrate&&r.hydrate(P.$state,d),c=!0,f=!0,P}/*! #__NO_SIDE_EFFECTS__ */function Qt(t,e,r){let n;const s=typeof e=="function";n=s?r:e;function i(o,u){const a=T.hasInjectionContext();if(o=(process.env.NODE_ENV==="test"&&se&&se._testing?null:o)||(a?T.inject(Xi,null):null),o&&pe(o),process.env.NODE_ENV!=="production"&&!se)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
10
|
+
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
11
|
+
This will fail in production.`);o=se,o._s.has(t)||(s?br(t,e,n,o):Rs(t,n,o),process.env.NODE_ENV!=="production"&&(i._pinia=o));const c=o._s.get(t);if(process.env.NODE_ENV!=="production"&&u){const f="__hot:"+t,l=s?br(f,e,n,o,!0):Rs(f,at({},n),o,!0);u._hotUpdate(l),delete o.state.value[f],o._s.delete(f)}if(process.env.NODE_ENV!=="production"&&Et){const f=T.getCurrentInstance();if(f&&f.proxy&&!u){const l=f.proxy,p="_pStores"in l?l._pStores:l._pStores={};p[t]=c}}return c}return i.$id=t,i}function wt(t){const e=T.toRaw(t),r={};for(const n in e){const s=e[n];s.effect?r[n]=T.computed({get:()=>t[n],set(i){t[n]=i}}):(T.isRef(s)||T.isReactive(s))&&(r[n]=T.toRef(t,n))}return r}const Hf=/"(?:_|\\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*:/,Kf=/"(?: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*:/,zf=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function qf(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){Gf(t);return}return e}function Gf(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function Wf(t,e={}){if(typeof t!="string")return t;if(t[0]==='"'&&t[t.length-1]==='"'&&t.indexOf("\\")===-1)return t.slice(1,-1);const r=t.trim();if(r.length<=9)switch(r.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(!zf.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(Hf.test(t)||Kf.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,qf)}return JSON.parse(t)}catch(n){if(e.strict)throw n;return t}}function Yf(t,e){if(t==null)return;let r=t;for(let n=0;n<e.length;n++){if(r==null||r[e[n]]==null)return;r=r[e[n]]}return r}function qr(t,e,r){if(r.length===0)return e;const n=r[0];return r.length>1&&(e=qr(typeof t!="object"||t===null||!Object.prototype.hasOwnProperty.call(t,n)?Number.isInteger(Number(r[1]))?[]:{}:t[n],e,Array.prototype.slice.call(r,1))),Number.isInteger(Number(n))&&Array.isArray(t)?t.slice()[n]:Object.assign({},t,{[n]:e})}function co(t,e){if(t==null||e.length===0)return t;if(e.length===1){if(t==null)return t;if(Number.isInteger(e[0])&&Array.isArray(t))return Array.prototype.slice.call(t,0).splice(e[0],1);const r={};for(const n in t)r[n]=t[n];return delete r[e[0]],r}if(t[e[0]]==null){if(Number.isInteger(e[0])&&Array.isArray(t))return Array.prototype.concat.call([],t);const r={};for(const n in t)r[n]=t[n];return r}return qr(t,co(t[e[0]],Array.prototype.slice.call(e,1)),[e[0]])}function lo(t,e){return e.map(r=>r.split(".")).map(r=>[r,Yf(t,r)]).filter(r=>r[1]!==void 0).reduce((r,n)=>qr(r,n[1],n[0]),{})}function fo(t,e){return e.map(r=>r.split(".")).reduce((r,n)=>co(r,n),t)}function xs(t,{storage:e,serializer:r,key:n,debug:s,pick:i,omit:o,beforeHydrate:u,afterHydrate:a},c,f=!0){try{f&&(u==null||u(c));const l=e.getItem(n);if(l){const p=r.deserialize(l),h=i?lo(p,i):p,d=o?fo(h,o):h;t.$patch(d)}f&&(a==null||a(c))}catch(l){s&&console.error("[pinia-plugin-persistedstate]",l)}}function Ps(t,{storage:e,serializer:r,key:n,debug:s,pick:i,omit:o}){try{const u=i?lo(t,i):t,a=o?fo(u,o):u,c=r.serialize(a);e.setItem(n,c)}catch(u){s&&console.error("[pinia-plugin-persistedstate]",u)}}function Zf(t,e,r){const{pinia:n,store:s,options:{persist:i=r}}=t;if(!i)return;if(!(s.$id in n.state.value)){const a=n._s.get(s.$id.replace("__hot:",""));a&&Promise.resolve().then(()=>a.$persist());return}const u=(Array.isArray(i)?i:i===!0?[{}]:[i]).map(e);s.$hydrate=({runHooks:a=!0}={})=>{u.forEach(c=>{xs(s,c,t,a)})},s.$persist=()=>{u.forEach(a=>{Ps(s.$state,a)})},u.forEach(a=>{xs(s,a,t),s.$subscribe((c,f)=>Ps(f,a),{detached:!0})})}function Jf(t={}){return function(e){Zf(e,r=>({key:(t.key?t.key:n=>n)(r.key??e.store.$id),debug:r.debug??t.debug??!1,serializer:r.serializer??t.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>Wf(n)},storage:r.storage??t.storage??window.localStorage,beforeHydrate:r.beforeHydrate,afterHydrate:r.afterHydrate,pick:r.pick,omit:r.omit}),t.auto??!1)}}var Xf=Jf();const lt=$f();lt.use(Xf);const Gr=Qt("loginState",{state:()=>({superAdminInfo:{},cryptoInfo:{publicKey:"",privateKey:""},loginUserInfo:{},structureData:[],isStructureExist:!1,systemKey:"",systemInfo:null}),actions:{setSystemInfo(t){this.systemInfo=t},setSystemKey(t){this.systemKey=t},setSuperAdminInfo(t){this.superAdminInfo=t},setLoginUserInfo(t){this.loginUserInfo=t},setStructureData(t){this.structureData=t},setIsStructureExist(t){this.isStructureExist=t},async getModelSecretAsync(t){},async setLogRecordAsync(t,e,r="operate"){}}}),ho=Qt("unit",{state:()=>({selectIndex:"",selectMenu:"",selectTitle:[],chooseTitle:[]}),actions:{setSelectIndex(t){this.selectIndex=t},setSelectMenu(t){this.selectMenu=t},setSelectTitle(t){this.selectTitle=t},setChooseTitle(t){this.chooseTitle=t}}}),Ge=Qt("modelComp",{state:()=>({lockingPage:"",itemData:[],itemGridData:[],itemExtendData:{},originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],systemPath:"",freshContent:!1,routeToChildPath:"",cacheUpdatingData:null,tableViewContents:[],activeItemIndex:-1,tableLoading:!1,pageMapState:{},payloadTypes:"data,structure,structureMethod,gridLayout,extend,related",fixMenuStatus:!1,refreshTable:!1}),actions:{setLockingPage(t){this.lockingPage=t},setFixMenuStatus(t){this.fixMenuStatus=t},setRefreshTable(t){this.refreshTable=t},setPageMapState(t){this.pageMapState=t},setItemGridData(t){this.itemGridData=t},setItemExtendData(t){this.itemExtendData=t},setItemData(t){this.itemData=t},setTableLoading(t){this.tableLoading=t},setTableViewContents(t){this.tableViewContents=t},setCacheUpdatingData(t){this.cacheUpdatingData=t},setFreshContent(t){this.freshContent=t},setRouteToChildPath(t){this.routeToChildPath=t},setSubmitCurStructure(t){this.isSubmitCurStructure=t},setCurStructureCompIds(t){this.curStructureCompIds=t},setRefreshCurStructure(t){this.isRefreshCurStructure=t},setOriginalData(t){this.originalData=t},setExtraContents(t){this.extraContents=t},setNodeDev(t){this.nodeDev=t},setIsEdit(t){this.isEdit=t},setSystemPath(t){this.systemPath=t},setActiveItemIndex(t){this.activeItemIndex=t}}}),Qf=Ge(lt),Sr=ho(lt),{selectTitle:ks}=wt(Sr),th=[],Wr=Qt("menuState",{state:()=>({isRefreshMenus:!1,activeMenuStructureIds:[],cacheInputMenu:{},configMenu:{form:{},options:[],structure:[]},cacheStructures:[],rawMenus:[],menus:[],activeTopMenuPath:"",updateMenuStatus:!0,activeMenuPath:"",currentMenuPath:"",activeOldMenuPath:"",activeMainMenu:{},activeAsideMenu:{},activeMenuOpenPaths:[],systemKey:"",buttonTriggerType:"contentConfig",menuTriggerType:"open",permissionSideMenus:[],importLoading:!1,contentLoading:!1,asideMenuLoading:!1,asideMenus:[],platform:"browser",platName:"",childMenu:"",linkMenuInfo:null}),actions:{setCurrentMenuPath(t){this.currentMenuPath=t},setUpdateMenuStatus(t){this.updateMenuStatus=t},setLinkMenuInfo(t){this.linkMenuInfo=t},setAsideMenuLoading(t){this.asideMenuLoading=t},setCacheStructures(t){var r,n;const e=(r=this.cacheStructures)==null?void 0:r.map(s=>s.key);t?e!=null&&e.includes(t==null?void 0:t.key)?this.cacheStructures=(n=this.cacheStructures)==null?void 0:n.map(s=>s.key===(t==null?void 0:t.key)?{...s,data:t==null?void 0:t.data}:s):this.cacheStructures.push(t):this.cacheStructures=[]},setChildMenu(t){this.childMenu=t},async setConfigMenu(t){this.configMenu=t},setActiveMainMenu(t){this.activeMainMenu=t},setContentLoading(t){this.contentLoading=t},setActiveAsideMenu(t){this.activeAsideMenu=t},setActiveTopMenuPath(t){this.activeTopMenuPath=t},setCacheInputMenu(t){this.cacheInputMenu=t},setIsRefreshMenus(t){this.isRefreshMenus=t},setButtonTriggerType(t){this.buttonTriggerType=t},setAsideMenus(t){this.asideMenus=t},setMenus(t){this.menus=t},setPlatName(t){this.platName=t},setImportLoading(t){this.importLoading=t},setPlatform(t){this.platform=t},getPlatform(){return this.platform},setMenuTriggerType(t){this.menuTriggerType=t},setSystemKey(t){this.systemKey=t},setActiveMenuPath(t){var n,s,i,o,u,a,c;if(!t&&t!==null)return;this.activeOldMenuPath=Tt(this.activeMenuPath);let e=(s=(n=ks.value)==null?void 0:n.filter(f=>(f==null?void 0:f.condition)==="child"))==null?void 0:s[0];e=e==null?void 0:e.options;let r=(o=t==null?void 0:t.split("/"))==null?void 0:o[((i=t==null?void 0:t.split("/"))==null?void 0:i.length)-1];if(e!=null&&e.find(f=>(f==null?void 0:f.value)===r)){t=(a=(u=t==null?void 0:t.split("/"))==null?void 0:u.filter((p,h)=>{var d;return h!==((d=t==null?void 0:t.split("/"))==null?void 0:d.length)-1}))==null?void 0:a.join("/");let f=(c=ks.value)==null?void 0:c.map(p=>((p==null?void 0:p.condition)==="child"&&(p.value=r),p)),l=f==null?void 0:f.filter(p=>(p==null?void 0:p.condition)==="child");Sr.setChooseTitle(l),Sr.setSelectTitle(f),Qf.setFreshContent(!0)}this.activeMenuPath=t},setActiveMenuOpenPaths(t){this.activeMenuOpenPaths=t},setRawMenus(t){this.rawMenus=t,this.permissionSideMenus=th}}}),Yr=Qt("authorityState",{state:()=>({routerPageStructures:[]}),actions:{setRouterPageStructure(t){this.routerPageStructures=t}}}),eh=Wr(lt),{activeMenuPath:Ne}=wt(eh),po=Gr(lt),{structureData:rh,loginUserInfo:er}=wt(po),nh=Yr(lt),{routerPageStructures:sh}=wt(nh),Le=Ge(lt),ih=T.ref([{label:"角色名称",value:"",name:"roleName"}]),oh=T.ref([{label:"查询"},{label:"重置"}]),Ns=T.reactive({isFilter:!1,filterForm:{}}),uh=T.ref(!1),ah=t=>{Ns.isFilter=!0,Ns.filterForm=t},go=T.ref([]),Tr=T.ref([]),vo=T.ref(""),ch=T.computed(()=>{var e,r,n,s,i;const t=(e=sh.value)==null?void 0:e.find(o=>{var u;return((u=o==null?void 0:o.comp)==null?void 0:u.toUpperCase())==="TABLE"});if(t){vo.value=t.name,Tr.value=(s=(n=(r=t==null?void 0:t.compData)==null?void 0:r.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:n.contents)==null?void 0:s.filter(u=>(u==null?void 0:u.label)!=="操作");const o=(i=t==null?void 0:t.compData)==null?void 0:i.map(u=>{var a;if((u==null?void 0:u.key)==="rowButton"){let c=[];return ue.value?c=[...u==null?void 0:u.contents,{label:"授权"}]:c=u==null?void 0:u.contents,{...u,contents:c}}return(u==null?void 0:u.key)==="header"?{...u,contents:(a=u==null?void 0:u.contents)==null?void 0:a.map(c=>{var f,l;return{...c,isTableColHidden:(f=c==null?void 0:c.prop)==null?void 0:f.includes("授权"),isFormColHidden:(l=c==null?void 0:c.prop)==null?void 0:l.includes("授权")}})}:u});return wo(o),o}return[]}),lh=t=>{Le.setRefreshCurStructure(!1),Xr(t.singleContent,t.buttonName,We.value,t==null?void 0:t.selectItems)},Ht=T.ref({}),Zr=T.ref(),ge=async(t,e,r)=>{var n,s;try{const i=await t(e);return((n=i==null?void 0:i.data)==null?void 0:n.code)===200?(r!=="查询"&&await po.setLogRecordAsync({type:r,data:e},Ne.value),C.ElMessage.success("保存成功"),Le.setRefreshCurStructure(!0),i.data.result||((s=i==null?void 0:i.data)==null?void 0:s.code)===200):null}catch(i){C.ElMessage.error(i)}finally{Le.setCacheUpdatingData(null)}},yo=(t,e)=>{const r=[];for(const n of t)e!=null&&e.has(n.path)&&r.push(n),n.children&&r.push(...yo(n.children,e));return r},fh=(t,e)=>{var r,n;try{const s=new Map(t==null?void 0:t.map(u=>[u.path,u.checkedButtons])),i=yo(e,s),o=(r=i==null?void 0:i.filter(u=>{var a,c;return((a=u==null?void 0:u.checkedButtons)==null?void 0:a.length)===((c=u==null?void 0:u.renderButtons)==null?void 0:c.length)}))==null?void 0:r.map(u=>u==null?void 0:u.path);(n=Zr.value)==null||n.setCheckedKeys(o)}catch{throw new Error("数据显示处理失败")}},hh=(t,e)=>{const r=new Map(e==null?void 0:e.map(s=>[s.path,s.checkedButtons]));function n(s){var o,u;const i=(o=s==null?void 0:s.path)!=null&&o.startsWith("/")?(u=s==null?void 0:s.path)==null?void 0:u.substring(1):s==null?void 0:s.path;r.has(i)&&(s.checkedButtons=r.get(i)),s.children&&s.children.length>0&&s.children.forEach(n)}t.forEach(n)},_o=t=>t==null?void 0:t.map(e=>{var n;const r={...e,checkedButtons:[]};return r.children&&((n=r.children)==null?void 0:n.length)>0&&(r.children=_o(r.children)),r}),Eo=t=>{for(const e in t)if(Array.isArray(t[e]))return e;return""},mo=t=>{const e=[];let r=0;for(;r<t.length;)if(typeof t[r]=="string"){const n={title:t[r]};r+1<t.length&&Array.isArray(t[r+1])?(n.children=mo(t[r+1]),r+=2):r+=1,e.push(n)}return e},bo=t=>{const e=[];let r=0;for(;r<(t==null?void 0:t.length);){const n={title:t==null?void 0:t[r]};r+1<(t==null?void 0:t.length)&&Array.isArray(t==null?void 0:t[r+1])?(n.children=mo(t==null?void 0:t[r+1]),r+=2):r+=1,e.push(n)}return e},Jr=(t,e="",r=new Map)=>t==null?void 0:t.map(n=>{const s=e?`${e}/${n.title}`:n.title;if(r.has(s))return r.get(s);const i={...n,path:s};return n.children&&n.children.length>0&&(i.children=Jr(n.children,s,r)),r.set(s,i),i}),So=(t,e)=>t.reduce((r,n)=>{const s=n[e];return r[s]||(r[s]=[]),r[s].push(n),r},{}),To=t=>{const e=[];function r(n,s){!n.children||n.children.length===0?e.push({...n,parentPath:s||""}):n.children.forEach(i=>r(i,n.path||s))}return t.forEach(n=>r(n,"")),e},Ao=t=>Object.entries(t).map(([r,n])=>({path:r,checkedButtons:n==null?void 0:n.map(s=>s==null?void 0:s.path)})),dh=t=>Object.prototype.toString.call(t)==="[object Object]"&&t!==null,ph=(t,e)=>{const r={},n=Array.isArray(t)?t==null?void 0:t.filter(s=>{var i;return!(dh(s)&&((i=Object.keys(s))!=null&&i.includes("id")))}):null;return n&&(n==null||n.forEach((s,i)=>{var o;r[(o=e[i])==null?void 0:o.prop]=s})),r},Kt=T.ref(""),wo=t=>{var i;const e=t==null?void 0:t.find(o=>(o==null?void 0:o.key)==="tableContents"),r=t==null?void 0:t.find(o=>(o==null?void 0:o.key)==="header");if(!e||!r)return"";const n=(i=e==null?void 0:e.contents)==null?void 0:i[0],s=ph(n,r==null?void 0:r.contents);Kt.value=Eo(s)},gh=t=>{if(!Array.isArray(t))return!1;for(let e of t){if(typeof e!="object"||e===null||typeof e.path!="string"||!Array.isArray(e.checkedButtons))return!1;for(let r of e.checkedButtons)if(typeof r!="string")return!1}return!0},vh=t=>{const e=[];for(const r in t)t[r].forEach(s=>{var a,c;const i=(a=s.path)!=null&&a.startsWith("/")?(c=s.path)==null?void 0:c.substring(1):s.path,o=i==null?void 0:i.split("/");let u=e;o.forEach(f=>{let l=u.find(p=>p.title===f);l||(l={title:f,path:s.path,children:[]},u.push(l)),u=l.children})});return e},yh=t=>{const e={};return t.forEach(r=>{const{path:n,checkedButtons:s}=r,i=n,o=s.map(u=>({title:u.split("/").pop()||"",path:u,parentPath:i}));e[i]=o}),e},Oo=t=>{let e=[];for(const r of t){let n=[r.title];if(r.children&&Array.isArray(r.children)){let s=Oo(r.children);s.length>0&&n.push(s)}e.push(n)}return e},_h=t=>{const e=[];for(const r of t){if(!Array.isArray(r)||r.length!==2)continue;const[n,s]=r,i=Do(s),o=e.indexOf(n);o===-1?e.push(n,i):e[o+1]=Io(e[o+1],i)}return e},Do=t=>{const e=[];for(const r of t)if(Array.isArray(r)){if(r.length===1&&typeof r[0]=="string")e.push(r[0]);else if(r.length===2&&typeof r[0]=="string"){const[n,s]=r;e.push(n,Do(s))}}return e},Io=(t,e)=>{const r=[...t];let n=0;for(;n<e.length;){const s=e[n];if(typeof s=="string"){const i=r.indexOf(s);i===-1?r.push(s,e[n+1]):r[i+1]=Io(r[i+1],e[n+1]),n+=2}else r.push(s),n+=1}return r},Eh=async(t,e)=>{var r;if(Ht.value=Tt(e),Le.setRefreshCurStructure(!1),(r=zt.value)==null||r.splice(0),t==="授权"){if(!Kt.value){C.ElMessage.error("请正确定义角色权限");return}const n=gh(Ht.value[Kt.value]);let s;if(n)s=Ht.value[Kt.value];else{const i=bo(Ht.value[Kt.value]),o=Jr(i),u=To(o),a=So(u,"parentPath");s=Ao(a)}if(!s||!Array.isArray(s)){C.ElMessage.error("权限数据处理出错了,请联系管理员");return}Nt.title=`【${e.角色名称}】授权`,Nt.show=!0,await T.nextTick(),hh(Zt.value,s),fh(s,Zt.value)}},mh=()=>{Nt.show=!1},Ar=T.ref(),bh=async t=>{const e=await ge(C.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:t}},"查询"),r=e==null?void 0:e.map(n=>{var s;return{id:n.id,tableData:(s=n==null?void 0:n.value)==null?void 0:s.tableData}});return r==null?void 0:r.map(n=>{var s;if(Array.isArray(n==null?void 0:n.tableData)){let i={id:n.id};return(s=n==null?void 0:n.tableData)==null||s.forEach((o,u)=>{i[`a${u}`]=o}),i}else return{...n.tableData,id:n.id}})},ve=(t,e)=>{let r={};if(e==null||e.forEach(n=>{n.label&&t&&(r[n.label]=(t==null?void 0:t[n==null?void 0:n.prop])??null)}),r!=null&&r.id){const{id:n,...s}=r;return s}return r},Sh=async(t,e)=>{var i,o;let r=[];Array.isArray(t)?r=Tt(t):r=[Tt(t)];const n=(i=r==null?void 0:r.filter(u=>typeof(u==null?void 0:u.id)=="string"))==null?void 0:i.map(u=>{var a,c,f,l,p;return{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:(a=Ne.value)!=null&&a.startsWith("/")?(c=Ne.value)==null?void 0:c.substring(1):Ne.value,tableId:e,createUserId:(f=er.value)==null?void 0:f.id,createUserOrg:((l=er.value)==null?void 0:l.dept)||((p=er.value)==null?void 0:p.部门名称)},value:{tableData:ve(u,Tr.value)}}}),s=(o=r==null?void 0:r.filter(u=>typeof(u==null?void 0:u.id)=="number"))==null?void 0:o.map(u=>({id:u==null?void 0:u.id,value:{tableData:ve(u,Tr.value)}}));n.length>0&&await ge(C.batchAddInsofDataApi,{dataList:n},"新增"),s.length>0&&(await ge(C.batchUpdateInsofDataApi,{dataList:s},"编辑"),Nt.show=!1)},Xr=async(t,e,r,n)=>{if(!(e!=null&&e.includes("删除")))await Sh(t,r);else{let s=[];e!=null&&e.includes("批量")?s=n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map(i=>i==null?void 0:i.id):[]:s=[t==null?void 0:t.id],await ge(C.batchDeleteInsofDataApi,{ids:s},"编辑")}},Co=t=>{let e=[];return t==null||t.forEach(r=>{var n;if(r.checkedButtons&&((n=r.checkedButtons)==null?void 0:n.length)>0){const s={path:r.path,checkedButtons:r.checkedButtons};e=e.concat(s)}r.children&&(e=e.concat(Co(r.children)))}),e},Th=()=>{const t=Co(Zt.value),e=yh(t),r=vh(e),n=Oo(r),s=_h(n);Ar.value={...Ht.value,[Kt.value]:s},T.nextTick(()=>{Xr(Ar.value,"编辑",We.value)})},Nt=T.reactive({show:!1,title:"角色授权",width:"30%",draggable:!0}),Ah=({isPenultimate:t},e)=>{var r,n;return console.log("isPenultimate",t,e),((n=(r=e==null?void 0:e.data)==null?void 0:r.renderButtons)==null?void 0:n.length)>0?"is-penultimate":""},We=T.ref(0),Ro=async t=>{var n,s,i,o,u;let e;const r=await C.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:t!=null&&t.startsWith("/")?t==null?void 0:t.substring(1):t}});return((n=r==null?void 0:r.data)==null?void 0:n.code)===200&&(s=r==null?void 0:r.data)!=null&&s.result&&((i=r==null?void 0:r.data)==null?void 0:i.result.length)>0&&(e=(u=(o=r==null?void 0:r.data.result)==null?void 0:o[0])==null?void 0:u.id,We.value=e),e},Zt=T.ref([]),wh=T.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),Oh=(t,e)=>{var r;t.checkedButtons=e?(r=t.renderButtons)==null?void 0:r.map(n=>n.path):[]},zt=T.ref([]),Dh=(t,e)=>{var r,n,s;e.checkedButtons=t,((r=e.checkedButtons)==null?void 0:r.length)===((n=e.renderButtons)==null?void 0:n.length)?zt.value.push(e.path):(t==null?void 0:t.length)===0&&(zt.value=(s=zt.value)==null?void 0:s.filter(i=>i!==e.path))};T.watch(()=>zt.value.length,()=>{var t;(t=Zr.value)==null||t.setCheckedKeys([...zt.value])});T.watch(()=>Nt.show,t=>{t||(Zt.value=_o(Zt.value))});const xo=T.computed(()=>{var r;const t=(r=Tt(rh.value))==null?void 0:r.filter(n=>{var s,i;return((i=(s=n==null?void 0:n.key)==null?void 0:s.pageKey)==null?void 0:i.toUpperCase())!=="MENU"});return[...t==null?void 0:t.map(n=>{var o,u,a,c,f,l,p,h;const s=/button/i;let i=(a=(u=(o=n==null?void 0:n.value)==null?void 0:o.pageData)==null?void 0:u.compData)==null?void 0:a.filter(d=>s.test(d==null?void 0:d.key));return i=Array.from(new Set(i==null?void 0:i.flatMap(d=>d.contents.map(m=>m.label)))),{path:(f=(c=n==null?void 0:n.key)==null?void 0:c.pageKey)!=null&&f.startsWith("/")?(p=(l=n==null?void 0:n.key)==null?void 0:l.pageKey)==null?void 0:p.substring(1):(h=n==null?void 0:n.key)==null?void 0:h.pageKey,buttons:i}}),...Po.value]}),Po=T.ref([]),Ih=(t,e,r)=>{const s=[t==null?void 0:t.find(i=>(i==null?void 0:i.title)===e)].flatMap(i=>i==null?void 0:i.children);return s==null?void 0:s.map(i=>{var o,u;return{path:(o=i==null?void 0:i.path)!=null&&o.startsWith("/")?(u=i==null?void 0:i.path)==null?void 0:u.substring(1):i==null?void 0:i.path,buttons:r}})},Vs=(t,e)=>{var r;if(t.carryData){if(t.path==="系统管理/个人中心"){const s=["基本信息","上传头像","签名","修改密码"];return s==null?void 0:s.map(i=>{var o,u;return{title:i,path:(o=t==null?void 0:t.path)!=null&&o.startsWith("/")?((u=t==null?void 0:t.path)==null?void 0:u.substring(1))+"/"+i:t.path+"/"+i}})}if(!(e!=null&&e.buttons)||!Array.isArray(e==null?void 0:e.buttons))return[];const n=(r=e==null?void 0:e.buttons)!=null&&r.includes("查看")?e==null?void 0:e.buttons:["查看",...e==null?void 0:e.buttons];return n==null?void 0:n.map(s=>{var i,o;return{title:s,path:(i=t==null?void 0:t.path)!=null&&i.startsWith("/")?((o=t==null?void 0:t.path)==null?void 0:o.substring(1))+"/"+s:t.path+"/"+s}})}return[]},ko=(t,e)=>{if(Array.isArray(t))return t==null?void 0:t.map(r=>{var i,o;const n=(i=r==null?void 0:r.path)!=null&&i.startsWith("/")?(o=r==null?void 0:r.path)==null?void 0:o.substring(1):r==null?void 0:r.path,s=e==null?void 0:e.find(u=>(u==null?void 0:u.path)===n);return r.children&&r.children.length>0?{...r,renderButtons:Vs(r,s),checkedButtons:[],children:ko(r.children,xo.value)}:{...r,renderButtons:Vs(r,s),checkedButtons:[]}})},Ch={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:go.value,name:""}]}]},Rh=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:ko,addPathToTree:Jr,authorizeDialog:Nt,buttonValue:oh,changedRow:Ar,clickRow:Ht,clickRowButton:Eh,clickSubmitAuthority:Th,closeAuthorizeDialog:mh,compName:vo,convertArrayToTree:bo,convertIndexToLabel:ve,customNodeClass:Ah,getActivePageStructureId:Ro,getAuthorityKey:wo,getFirstArrayProperty:Eo,getLeafNodesRecursive:To,getPageDataAsync:bh,groupByField:So,handleAddSysMenusButtons:Ih,handleItemDataChange:lh,handleNodeBtnChange:Dh,handleNodeCheckChange:Oh,handleQueryChange:ah,handleRowAuthorityRender:Ao,handleSubmitAsync:ge,isPageDataExist:uh,menuData:Zt,menusButtons:wh,pageData:go,pageDataFiltered:ch,queryFormData:ih,structureButtons:xo,structureId:We,submitTableAsyncByVerify:Xr,tempRolePageData:Ch,tempSysMenus:Po,treeRef:Zr},Symbol.toStringTag,{value:"Module"}));var xh="0123456789abcdefghijklmnopqrstuvwxyz";function vt(t){return xh.charAt(t)}function Ph(t,e){return t&e}function me(t,e){return t|e}function Bs(t,e){return t^e}function Ms(t,e){return t&~e}function kh(t){if(t==0)return-1;var e=0;return(t&65535)==0&&(t>>=16,e+=16),(t&255)==0&&(t>>=8,e+=8),(t&15)==0&&(t>>=4,e+=4),(t&3)==0&&(t>>=2,e+=2),(t&1)==0&&++e,e}function Nh(t){for(var e=0;t!=0;)t&=t-1,++e;return e}var Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",No="=";function Ue(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=Lt.charAt(r>>6)+Lt.charAt(r&63);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=Lt.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=Lt.charAt(r>>2)+Lt.charAt((r&3)<<4));(n.length&3)>0;)n+=No;return n}function Fs(t){var e="",r,n=0,s=0;for(r=0;r<t.length&&t.charAt(r)!=No;++r){var i=Lt.indexOf(t.charAt(r));i<0||(n==0?(e+=vt(i>>2),s=i&3,n=1):n==1?(e+=vt(s<<2|i>>4),s=i&15,n=2):n==2?(e+=vt(s),e+=vt(i>>2),s=i&3,n=3):(e+=vt(s<<2|i>>4),e+=vt(i&15),n=0))}return n==1&&(e+=vt(s<<2)),e}var Ft,Vh={decode:function(t){var e;if(Ft===void 0){var r="0123456789ABCDEF",n=` \f
|
|
12
|
+
\r \u2028\u2029`;for(Ft={},e=0;e<16;++e)Ft[r.charAt(e)]=e;for(r=r.toLowerCase(),e=10;e<16;++e)Ft[r.charAt(e)]=e;for(e=0;e<n.length;++e)Ft[n.charAt(e)]=-1}var s=[],i=0,o=0;for(e=0;e<t.length;++e){var u=t.charAt(e);if(u=="=")break;if(u=Ft[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+e);i|=u,++o>=2?(s[s.length]=i,i=0,o=0):i<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return s}},It,wr={decode:function(t){var e;if(It===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
|
|
13
|
+
\r \u2028\u2029`;for(It=Object.create(null),e=0;e<64;++e)It[r.charAt(e)]=e;for(It["-"]=62,It._=63,e=0;e<n.length;++e)It[n.charAt(e)]=-1}var s=[],i=0,o=0;for(e=0;e<t.length;++e){var u=t.charAt(e);if(u=="=")break;if(u=It[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+e);i|=u,++o>=4?(s[s.length]=i>>16,s[s.length]=i>>8&255,s[s.length]=i&255,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:s[s.length]=i>>10;break;case 3:s[s.length]=i>>16,s[s.length]=i>>8&255;break}return s},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=wr.re.exec(t);if(e)if(e[1])t=e[1];else if(e[2])t=e[2];else throw new Error("RegExp out of sync");return wr.decode(t)}},$t=1e13,ie=function(){function t(e){this.buf=[+e||0]}return t.prototype.mulAdd=function(e,r){var n=this.buf,s=n.length,i,o;for(i=0;i<s;++i)o=n[i]*e+r,o<$t?r=0:(r=0|o/$t,o-=r*$t),n[i]=o;r>0&&(n[i]=r)},t.prototype.sub=function(e){var r=this.buf,n=r.length,s,i;for(s=0;s<n;++s)i=r[s]-e,i<0?(i+=$t,e=1):e=0,r[s]=i;for(;r[r.length-1]===0;)r.pop()},t.prototype.toString=function(e){if((e||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,n=r[r.length-1].toString(),s=r.length-2;s>=0;--s)n+=($t+r[s]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var e=this.buf,r=0,n=e.length-1;n>=0;--n)r=r*$t+e[n];return r},t.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},t}(),Vo="…",Bh=/^(\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)?)?$/,Mh=/^(\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 qt(t,e){return t.length>e&&(t=t.substring(0,e)+Vo),t}var rr=function(){function t(e,r){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=r)}return t.prototype.get=function(e){if(e===void 0&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(e):this.enc[e]},t.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(e&15)},t.prototype.hexDump=function(e,r,n){for(var s="",i=e;i<r;++i)if(s+=this.hexByte(this.get(i)),n!==!0)switch(i&15){case 7:s+=" ";break;case 15:s+=`
|
|
14
|
+
`;break;default:s+=" "}return s},t.prototype.isASCII=function(e,r){for(var n=e;n<r;++n){var s=this.get(n);if(s<32||s>176)return!1}return!0},t.prototype.parseStringISO=function(e,r){for(var n="",s=e;s<r;++s)n+=String.fromCharCode(this.get(s));return n},t.prototype.parseStringUTF=function(e,r){for(var n="",s=e;s<r;){var i=this.get(s++);i<128?n+=String.fromCharCode(i):i>191&&i<224?n+=String.fromCharCode((i&31)<<6|this.get(s++)&63):n+=String.fromCharCode((i&15)<<12|(this.get(s++)&63)<<6|this.get(s++)&63)}return n},t.prototype.parseStringBMP=function(e,r){for(var n="",s,i,o=e;o<r;)s=this.get(o++),i=this.get(o++),n+=String.fromCharCode(s<<8|i);return n},t.prototype.parseTime=function(e,r,n){var s=this.parseStringISO(e,r),i=(n?Bh:Mh).exec(s);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),s=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(s+=":"+i[5],i[6]&&(s+=":"+i[6],i[7]&&(s+="."+i[7]))),i[8]&&(s+=" UTC",i[8]!="Z"&&(s+=i[8],i[9]&&(s+=":"+i[9]))),s):"Unrecognized time: "+s},t.prototype.parseInteger=function(e,r){for(var n=this.get(e),s=n>127,i=s?255:0,o,u="";n==i&&++e<r;)n=this.get(e);if(o=r-e,o===0)return s?-1:0;if(o>4){for(u=n,o<<=3;((+u^i)&128)==0;)u=+u<<1,--o;u="("+o+` bit)
|
|
15
|
+
`}s&&(n=n-256);for(var a=new ie(n),c=e+1;c<r;++c)a.mulAdd(256,this.get(c));return u+a.toString()},t.prototype.parseBitString=function(e,r,n){for(var s=this.get(e),i=(r-e-1<<3)-s,o="("+i+` bit)
|
|
16
|
+
`,u="",a=e+1;a<r;++a){for(var c=this.get(a),f=a==r-1?s:0,l=7;l>=f;--l)u+=c>>l&1?"1":"0";if(u.length>n)return o+qt(u,n)}return o+u},t.prototype.parseOctetString=function(e,r,n){if(this.isASCII(e,r))return qt(this.parseStringISO(e,r),n);var s=r-e,i="("+s+` byte)
|
|
17
|
+
`;n/=2,s>n&&(r=e+n);for(var o=e;o<r;++o)i+=this.hexByte(this.get(o));return s>n&&(i+=Vo),i},t.prototype.parseOID=function(e,r,n){for(var s="",i=new ie,o=0,u=e;u<r;++u){var a=this.get(u);if(i.mulAdd(128,a&127),o+=7,!(a&128)){if(s==="")if(i=i.simplify(),i instanceof ie)i.sub(80),s="2."+i.toString();else{var c=i<80?i<40?0:1:2;s=c+"."+(i-c*40)}else s+="."+i.toString();if(s.length>n)return qt(s,n);i=new ie,o=0}}return o>0&&(s+=".incomplete"),s},t}(),Fh=function(){function t(e,r,n,s,i){if(!(s instanceof $s))throw new Error("Invalid tag value.");this.stream=e,this.header=r,this.length=n,this.tag=s,this.sub=i}return t.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()}},t.prototype.content=function(e){if(this.tag===void 0)return null;e===void 0&&(e=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,e);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,e);case 6:return this.stream.parseOID(r,r+n,e);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return qt(this.stream.parseStringUTF(r,r+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return qt(this.stream.parseStringISO(r,r+n),e);case 30:return qt(this.stream.parseStringBMP(r,r+n),e);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(e){e===void 0&&(e="");var r=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
|
|
18
|
+
`,this.sub!==null){e+=" ";for(var n=0,s=this.sub.length;n<s;++n)r+=this.sub[n].toPrettyString(e)}return r},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(e){var r=e.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(n===0)return null;r=0;for(var s=0;s<n;++s)r=r*256+e.get();return r},t.prototype.getHexStringValue=function(){var e=this.toHexString(),r=this.header*2,n=this.length*2;return e.substr(r,n)},t.decode=function(e){var r;e instanceof rr?r=e:r=new rr(e,0);var n=new rr(r),s=new $s(r),i=t.decodeLength(r),o=r.pos,u=o-n.pos,a=null,c=function(){var l=[];if(i!==null){for(var p=o+i;r.pos<p;)l[l.length]=t.decode(r);if(r.pos!=p)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var h=t.decode(r);if(h.tag.isEOC())break;l[l.length]=h}i=o-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return l};if(s.tagConstructed)a=c();else if(s.isUniversal()&&(s.tagNumber==3||s.tagNumber==4))try{if(s.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");a=c();for(var f=0;f<a.length;++f)if(a[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{a=null}if(a===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(i)}return new t(n,u,i,s,a)},t}(),$s=function(){function t(e){var r=e.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new ie;do r=e.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return this.tagClass===0},t.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},t}(),St,$h=0xdeadbeefcafe,Ls=($h&16777215)==15715070,nt=[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],Lh=(1<<26)/nt[nt.length-1],V=function(){function t(e,r,n){e!=null&&(typeof e=="number"?this.fromNumber(e,r,n):r==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,r))}return t.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var r;if(e==16)r=4;else if(e==8)r=3;else if(e==2)r=1;else if(e==32)r=5;else if(e==4)r=2;else return this.toRadix(e);var n=(1<<r)-1,s,i=!1,o="",u=this.t,a=this.DB-u*this.DB%r;if(u-- >0)for(a<this.DB&&(s=this[u]>>a)>0&&(i=!0,o=vt(s));u>=0;)a<r?(s=(this[u]&(1<<a)-1)<<r-a,s|=this[--u]>>(a+=this.DB-r)):(s=this[u]>>(a-=r)&n,a<=0&&(a+=this.DB,--u)),s>0&&(i=!0),i&&(o+=vt(s));return i?o:"0"},t.prototype.negate=function(){var e=M();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(e){var r=this.s-e.s;if(r!=0)return r;var n=this.t;if(r=n-e.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-e[n])!=0)return r;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+be(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var r=M();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.modPowInt=function(e,r){var n;return e<256||r.isEven()?n=new Us(r):n=new js(r),this.exp(e,n)},t.prototype.clone=function(){var e=M();return this.copyTo(e),e},t.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]},t.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var e=this.t,r=[];r[0]=this.s;var n=this.DB-e*this.DB%8,s,i=0;if(e-- >0)for(n<this.DB&&(s=this[e]>>n)!=(this.s&this.DM)>>n&&(r[i++]=s|this.s<<this.DB-n);e>=0;)n<8?(s=(this[e]&(1<<n)-1)<<8-n,s|=this[--e]>>(n+=this.DB-8)):(s=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),(s&128)!=0&&(s|=-256),i==0&&(this.s&128)!=(s&128)&&++i,(i>0||s!=this.s)&&(r[i++]=s);return r},t.prototype.equals=function(e){return this.compareTo(e)==0},t.prototype.min=function(e){return this.compareTo(e)<0?this:e},t.prototype.max=function(e){return this.compareTo(e)>0?this:e},t.prototype.and=function(e){var r=M();return this.bitwiseTo(e,Ph,r),r},t.prototype.or=function(e){var r=M();return this.bitwiseTo(e,me,r),r},t.prototype.xor=function(e){var r=M();return this.bitwiseTo(e,Bs,r),r},t.prototype.andNot=function(e){var r=M();return this.bitwiseTo(e,Ms,r),r},t.prototype.not=function(){for(var e=M(),r=0;r<this.t;++r)e[r]=this.DM&~this[r];return e.t=this.t,e.s=~this.s,e},t.prototype.shiftLeft=function(e){var r=M();return e<0?this.rShiftTo(-e,r):this.lShiftTo(e,r),r},t.prototype.shiftRight=function(e){var r=M();return e<0?this.lShiftTo(-e,r):this.rShiftTo(e,r),r},t.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(this[e]!=0)return e*this.DB+kh(this[e]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var e=0,r=this.s&this.DM,n=0;n<this.t;++n)e+=Nh(this[n]^r);return e},t.prototype.testBit=function(e){var r=Math.floor(e/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<e%this.DB)!=0},t.prototype.setBit=function(e){return this.changeBit(e,me)},t.prototype.clearBit=function(e){return this.changeBit(e,Ms)},t.prototype.flipBit=function(e){return this.changeBit(e,Bs)},t.prototype.add=function(e){var r=M();return this.addTo(e,r),r},t.prototype.subtract=function(e){var r=M();return this.subTo(e,r),r},t.prototype.multiply=function(e){var r=M();return this.multiplyTo(e,r),r},t.prototype.divide=function(e){var r=M();return this.divRemTo(e,r,null),r},t.prototype.remainder=function(e){var r=M();return this.divRemTo(e,null,r),r},t.prototype.divideAndRemainder=function(e){var r=M(),n=M();return this.divRemTo(e,r,n),[r,n]},t.prototype.modPow=function(e,r){var n=e.bitLength(),s,i=_t(1),o;if(n<=0)return i;n<18?s=1:n<48?s=3:n<144?s=4:n<768?s=5:s=6,n<8?o=new Us(r):r.isEven()?o=new jh(r):o=new js(r);var u=[],a=3,c=s-1,f=(1<<s)-1;if(u[1]=o.convert(this),s>1){var l=M();for(o.sqrTo(u[1],l);a<=f;)u[a]=M(),o.mulTo(l,u[a-2],u[a]),a+=2}var p=e.t-1,h,d=!0,m=M(),S;for(n=be(e[p])-1;p>=0;){for(n>=c?h=e[p]>>n-c&f:(h=(e[p]&(1<<n+1)-1)<<c-n,p>0&&(h|=e[p-1]>>this.DB+n-c)),a=s;(h&1)==0;)h>>=1,--a;if((n-=a)<0&&(n+=this.DB,--p),d)u[h].copyTo(i),d=!1;else{for(;a>1;)o.sqrTo(i,m),o.sqrTo(m,i),a-=2;a>0?o.sqrTo(i,m):(S=i,i=m,m=S),o.mulTo(m,u[h],i)}for(;p>=0&&(e[p]&1<<n)==0;)o.sqrTo(i,m),S=i,i=m,m=S,--n<0&&(n=this.DB-1,--p)}return o.revert(i)},t.prototype.modInverse=function(e){var r=e.isEven();if(this.isEven()&&r||e.signum()==0)return t.ZERO;for(var n=e.clone(),s=this.clone(),i=_t(1),o=_t(0),u=_t(0),a=_t(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!i.isEven()||!o.isEven())&&(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;s.isEven();)s.rShiftTo(1,s),r?((!u.isEven()||!a.isEven())&&(u.addTo(this,u),a.subTo(e,a)),u.rShiftTo(1,u)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);n.compareTo(s)>=0?(n.subTo(s,n),r&&i.subTo(u,i),o.subTo(a,o)):(s.subTo(n,s),r&&u.subTo(i,u),a.subTo(o,a))}if(s.compareTo(t.ONE)!=0)return t.ZERO;if(a.compareTo(e)>=0)return a.subtract(e);if(a.signum()<0)a.addTo(e,a);else return a;return a.signum()<0?a.add(e):a},t.prototype.pow=function(e){return this.exp(e,new Uh)},t.prototype.gcd=function(e){var r=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(r.compareTo(n)<0){var s=r;r=n,n=s}var i=r.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return r;for(i<o&&(o=i),o>0&&(r.rShiftTo(o,r),n.rShiftTo(o,n));r.signum()>0;)(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(e){var r,n=this.abs();if(n.t==1&&n[0]<=nt[nt.length-1]){for(r=0;r<nt.length;++r)if(n[0]==nt[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<nt.length;){for(var s=nt[r],i=r+1;i<nt.length&&s<Lh;)s*=nt[i++];for(s=n.modInt(s);r<i;)if(s%nt[r++]==0)return!1}return n.millerRabin(e)},t.prototype.copyTo=function(e){for(var r=this.t-1;r>=0;--r)e[r]=this[r];e.t=this.t,e.s=this.s},t.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},t.prototype.fromString=function(e,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(e,r);return}this.t=0,this.s=0;for(var s=e.length,i=!1,o=0;--s>=0;){var u=n==8?+e[s]&255:Ks(e,s);if(u<0){e.charAt(s)=="-"&&(i=!0);continue}i=!1,o==0?this[this.t++]=u:o+n>this.DB?(this[this.t-1]|=(u&(1<<this.DB-o)-1)<<o,this[this.t++]=u>>this.DB-o):this[this.t-1]|=u<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&(+e[0]&128)!=0&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},t.prototype.dlShiftTo=function(e,r){var n;for(n=this.t-1;n>=0;--n)r[n+e]=this[n];for(n=e-1;n>=0;--n)r[n]=0;r.t=this.t+e,r.s=this.s},t.prototype.drShiftTo=function(e,r){for(var n=e;n<this.t;++n)r[n-e]=this[n];r.t=Math.max(this.t-e,0),r.s=this.s},t.prototype.lShiftTo=function(e,r){for(var n=e%this.DB,s=this.DB-n,i=(1<<s)-1,o=Math.floor(e/this.DB),u=this.s<<n&this.DM,a=this.t-1;a>=0;--a)r[a+o+1]=this[a]>>s|u,u=(this[a]&i)<<n;for(var a=o-1;a>=0;--a)r[a]=0;r[o]=u,r.t=this.t+o+1,r.s=this.s,r.clamp()},t.prototype.rShiftTo=function(e,r){r.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t){r.t=0;return}var s=e%this.DB,i=this.DB-s,o=(1<<s)-1;r[0]=this[n]>>s;for(var u=n+1;u<this.t;++u)r[u-n-1]|=(this[u]&o)<<i,r[u-n]=this[u]>>s;s>0&&(r[this.t-n-1]|=(this.s&o)<<i),r.t=this.t-n,r.clamp()},t.prototype.subTo=function(e,r){for(var n=0,s=0,i=Math.min(e.t,this.t);n<i;)s+=this[n]-e[n],r[n++]=s&this.DM,s>>=this.DB;if(e.t<this.t){for(s-=e.s;n<this.t;)s+=this[n],r[n++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;n<e.t;)s-=e[n],r[n++]=s&this.DM,s>>=this.DB;s-=e.s}r.s=s<0?-1:0,s<-1?r[n++]=this.DV+s:s>0&&(r[n++]=s),r.t=n,r.clamp()},t.prototype.multiplyTo=function(e,r){var n=this.abs(),s=e.abs(),i=n.t;for(r.t=i+s.t;--i>=0;)r[i]=0;for(i=0;i<s.t;++i)r[i+n.t]=n.am(0,s[i],r,i,0,n.t);r.s=0,r.clamp(),this.s!=e.s&&t.ZERO.subTo(r,r)},t.prototype.squareTo=function(e){for(var r=this.abs(),n=e.t=2*r.t;--n>=0;)e[n]=0;for(n=0;n<r.t-1;++n){var s=r.am(n,r[n],e,2*n,0,1);(e[n+r.t]+=r.am(n+1,2*r[n],e,2*n+1,s,r.t-n-1))>=r.DV&&(e[n+r.t]-=r.DV,e[n+r.t+1]=1)}e.t>0&&(e[e.t-1]+=r.am(n,r[n],e,2*n,0,1)),e.s=0,e.clamp()},t.prototype.divRemTo=function(e,r,n){var s=e.abs();if(!(s.t<=0)){var i=this.abs();if(i.t<s.t){r!=null&&r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=M());var o=M(),u=this.s,a=e.s,c=this.DB-be(s[s.t-1]);c>0?(s.lShiftTo(c,o),i.lShiftTo(c,n)):(s.copyTo(o),i.copyTo(n));var f=o.t,l=o[f-1];if(l!=0){var p=l*(1<<this.F1)+(f>1?o[f-2]>>this.F2:0),h=this.FV/p,d=(1<<this.F1)/p,m=1<<this.F2,S=n.t,O=S-f,B=r??M();for(o.dlShiftTo(O,B),n.compareTo(B)>=0&&(n[n.t++]=1,n.subTo(B,n)),t.ONE.dlShiftTo(f,B),B.subTo(o,o);o.t<f;)o[o.t++]=0;for(;--O>=0;){var N=n[--S]==l?this.DM:Math.floor(n[S]*h+(n[S-1]+m)*d);if((n[S]+=o.am(0,N,n,O,0,f))<N)for(o.dlShiftTo(O,B),n.subTo(B,n);n[S]<--N;)n.subTo(B,n)}r!=null&&(n.drShiftTo(f,r),u!=a&&t.ZERO.subTo(r,r)),n.t=f,n.clamp(),c>0&&n.rShiftTo(c,n),u<0&&t.ZERO.subTo(n,n)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if((e&1)==0)return 0;var r=e&3;return r=r*(2-(e&15)*r)&15,r=r*(2-(e&255)*r)&255,r=r*(2-((e&65535)*r&65535))&65535,r=r*(2-e*r%this.DV)%this.DV,r>0?this.DV-r:-r},t.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var n=M(),s=M(),i=r.convert(this),o=be(e)-1;for(i.copyTo(n);--o>=0;)if(r.sqrTo(n,s),(e&1<<o)>0)r.mulTo(s,i,n);else{var u=n;n=s,s=u}return r.revert(n)},t.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},t.prototype.toRadix=function(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var r=this.chunkSize(e),n=Math.pow(e,r),s=_t(n),i=M(),o=M(),u="";for(this.divRemTo(s,i,o);i.signum()>0;)u=(n+o.intValue()).toString(e).substr(1)+u,i.divRemTo(s,i,o);return o.intValue().toString(e)+u},t.prototype.fromRadix=function(e,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),s=Math.pow(r,n),i=!1,o=0,u=0,a=0;a<e.length;++a){var c=Ks(e,a);if(c<0){e.charAt(a)=="-"&&this.signum()==0&&(i=!0);continue}u=r*u+c,++o>=n&&(this.dMultiply(s),this.dAddOffset(u,0),o=0,u=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(u,0)),i&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,r,n){if(typeof r=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),me,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var s=[],i=e&7;s.length=(e>>3)+1,r.nextBytes(s),i>0?s[0]&=(1<<i)-1:s[0]=0,this.fromString(s,256)}},t.prototype.bitwiseTo=function(e,r,n){var s,i,o=Math.min(e.t,this.t);for(s=0;s<o;++s)n[s]=r(this[s],e[s]);if(e.t<this.t){for(i=e.s&this.DM,s=o;s<this.t;++s)n[s]=r(this[s],i);n.t=this.t}else{for(i=this.s&this.DM,s=o;s<e.t;++s)n[s]=r(i,e[s]);n.t=e.t}n.s=r(this.s,e.s),n.clamp()},t.prototype.changeBit=function(e,r){var n=t.ONE.shiftLeft(e);return this.bitwiseTo(n,r,n),n},t.prototype.addTo=function(e,r){for(var n=0,s=0,i=Math.min(e.t,this.t);n<i;)s+=this[n]+e[n],r[n++]=s&this.DM,s>>=this.DB;if(e.t<this.t){for(s+=e.s;n<this.t;)s+=this[n],r[n++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;n<e.t;)s+=e[n],r[n++]=s&this.DM,s>>=this.DB;s+=e.s}r.s=s<0?-1:0,s>0?r[n++]=s:s<-1&&(r[n++]=this.DV+s),r.t=n,r.clamp()},t.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(e,r){if(e!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=e;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},t.prototype.multiplyLowerTo=function(e,r,n){var s=Math.min(this.t+e.t,r);for(n.s=0,n.t=s;s>0;)n[--s]=0;for(var i=n.t-this.t;s<i;++s)n[s+this.t]=this.am(0,e[s],n,s,0,this.t);for(var i=Math.min(e.t,r);s<i;++s)this.am(0,e[s],n,s,0,r-s);n.clamp()},t.prototype.multiplyUpperTo=function(e,r,n){--r;var s=n.t=this.t+e.t-r;for(n.s=0;--s>=0;)n[s]=0;for(s=Math.max(r-this.t,0);s<e.t;++s)n[this.t+s-r]=this.am(r-s,e[s],n,0,0,this.t+s-r);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(e){if(e<=0)return 0;var r=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(r==0)n=this[0]%e;else for(var s=this.t-1;s>=0;--s)n=(r*n+this[s])%e;return n},t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var s=r.shiftRight(n);e=e+1>>1,e>nt.length&&(e=nt.length);for(var i=M(),o=0;o<e;++o){i.fromInt(nt[Math.floor(Math.random()*nt.length)]);var u=i.modPow(s,this);if(u.compareTo(t.ONE)!=0&&u.compareTo(r)!=0){for(var a=1;a++<n&&u.compareTo(r)!=0;)if(u=u.modPowInt(2,this),u.compareTo(t.ONE)==0)return!1;if(u.compareTo(r)!=0)return!1}}return!0},t.prototype.square=function(){var e=M();return this.squareTo(e),e},t.prototype.gcda=function(e,r){var n=this.s<0?this.negate():this.clone(),s=e.s<0?e.negate():e.clone();if(n.compareTo(s)<0){var i=n;n=s,s=i}var o=n.getLowestSetBit(),u=s.getLowestSetBit();if(u<0){r(n);return}o<u&&(u=o),u>0&&(n.rShiftTo(u,n),s.rShiftTo(u,s));var a=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=s.getLowestSetBit())>0&&s.rShiftTo(o,s),n.compareTo(s)>=0?(n.subTo(s,n),n.rShiftTo(1,n)):(s.subTo(n,s),s.rShiftTo(1,s)),n.signum()>0?setTimeout(a,0):(u>0&&s.lShiftTo(u,s),setTimeout(function(){r(s)},0))};setTimeout(a,10)},t.prototype.fromNumberAsync=function(e,r,n,s){if(typeof r=="number")if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),me,this),this.isEven()&&this.dAddOffset(1,0);var i=this,o=function(){i.dAddOffset(2,0),i.bitLength()>e&&i.subTo(t.ONE.shiftLeft(e-1),i),i.isProbablePrime(r)?setTimeout(function(){s()},0):setTimeout(o,0)};setTimeout(o,0)}else{var u=[],a=e&7;u.length=(e>>3)+1,r.nextBytes(u),a>0?u[0]&=(1<<a)-1:u[0]=0,this.fromString(u,256)}},t}(),Uh=function(){function t(){}return t.prototype.convert=function(e){return e},t.prototype.revert=function(e){return e},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n)},t.prototype.sqrTo=function(e,r){e.squareTo(r)},t}(),Us=function(){function t(e){this.m=e}return t.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},t.prototype.revert=function(e){return e},t.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n),this.reduce(n)},t.prototype.sqrTo=function(e,r){e.squareTo(r),this.reduce(r)},t}(),js=function(){function t(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return t.prototype.convert=function(e){var r=M();return e.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),e.s<0&&r.compareTo(V.ZERO)>0&&this.m.subTo(r,r),r},t.prototype.revert=function(e){var r=M();return e.copyTo(r),this.reduce(r),r},t.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var r=0;r<this.m.t;++r){var n=e[r]&32767,s=n*this.mpl+((n*this.mph+(e[r]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=r+this.m.t,e[n]+=this.m.am(0,s,e,r,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n),this.reduce(n)},t.prototype.sqrTo=function(e,r){e.squareTo(r),this.reduce(r)},t}(),jh=function(){function t(e){this.m=e,this.r2=M(),this.q3=M(),V.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return t.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var r=M();return e.copyTo(r),this.reduce(r),r},t.prototype.revert=function(e){return e},t.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n),this.reduce(n)},t.prototype.sqrTo=function(e,r){e.squareTo(r),this.reduce(r)},t}();function M(){return new V(null)}function G(t,e){return new V(t,e)}var Hs=typeof navigator<"u";Hs&&Ls&&navigator.appName=="Microsoft Internet Explorer"?(V.prototype.am=function(e,r,n,s,i,o){for(var u=r&32767,a=r>>15;--o>=0;){var c=this[e]&32767,f=this[e++]>>15,l=a*c+f*u;c=u*c+((l&32767)<<15)+n[s]+(i&1073741823),i=(c>>>30)+(l>>>15)+a*f+(i>>>30),n[s++]=c&1073741823}return i},St=30):Hs&&Ls&&navigator.appName!="Netscape"?(V.prototype.am=function(e,r,n,s,i,o){for(;--o>=0;){var u=r*this[e++]+n[s]+i;i=Math.floor(u/67108864),n[s++]=u&67108863}return i},St=26):(V.prototype.am=function(e,r,n,s,i,o){for(var u=r&16383,a=r>>14;--o>=0;){var c=this[e]&16383,f=this[e++]>>14,l=a*c+f*u;c=u*c+((l&16383)<<14)+n[s]+i,i=(c>>28)+(l>>14)+a*f,n[s++]=c&268435455}return i},St=28);V.prototype.DB=St;V.prototype.DM=(1<<St)-1;V.prototype.DV=1<<St;var Qr=52;V.prototype.FV=Math.pow(2,Qr);V.prototype.F1=Qr-St;V.prototype.F2=2*St-Qr;var Ye=[],te,ct;te=48;for(ct=0;ct<=9;++ct)Ye[te++]=ct;te=97;for(ct=10;ct<36;++ct)Ye[te++]=ct;te=65;for(ct=10;ct<36;++ct)Ye[te++]=ct;function Ks(t,e){var r=Ye[t.charCodeAt(e)];return r??-1}function _t(t){var e=M();return e.fromInt(t),e}function be(t){var e=1,r;return(r=t>>>16)!=0&&(t=r,e+=16),(r=t>>8)!=0&&(t=r,e+=8),(r=t>>4)!=0&&(t=r,e+=4),(r=t>>2)!=0&&(t=r,e+=2),(r=t>>1)!=0&&(t=r,e+=1),e}V.ZERO=_t(0);V.ONE=_t(1);var Hh=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(e){var r,n,s;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+e[r%e.length]&255,s=this.S[r],this.S[r]=this.S[n],this.S[n]=s;this.i=0,this.j=0},t.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},t}();function Kh(){return new Hh}var Bo=256,Se,bt=null,ht;if(bt==null){bt=[],ht=0;var Te=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var nr=new Uint32Array(256);for(window.crypto.getRandomValues(nr),Te=0;Te<nr.length;++Te)bt[ht++]=nr[Te]&255}var Ae=0,we=function(t){if(Ae=Ae||0,Ae>=256||ht>=Bo){window.removeEventListener?window.removeEventListener("mousemove",we,!1):window.detachEvent&&window.detachEvent("onmousemove",we);return}try{var e=t.x+t.y;bt[ht++]=e&255,Ae+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",we,!1):window.attachEvent&&window.attachEvent("onmousemove",we))}function zh(){if(Se==null){for(Se=Kh();ht<Bo;){var t=Math.floor(65536*Math.random());bt[ht++]=t&255}for(Se.init(bt),ht=0;ht<bt.length;++ht)bt[ht]=0;ht=0}return Se.next()}var Or=function(){function t(){}return t.prototype.nextBytes=function(e){for(var r=0;r<e.length;++r)e[r]=zh()},t}();function qh(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var r=e-t.length-6,n="",s=0;s<r;s+=2)n+="ff";var i="0001"+n+"00"+t;return G(i,16)}function Gh(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=t.length-1;n>=0&&e>0;){var s=t.charCodeAt(n--);s<128?r[--e]=s:s>127&&s<2048?(r[--e]=s&63|128,r[--e]=s>>6|192):(r[--e]=s&63|128,r[--e]=s>>6&63|128,r[--e]=s>>12|224)}r[--e]=0;for(var i=new Or,o=[];e>2;){for(o[0]=0;o[0]==0;)i.nextBytes(o);r[--e]=o[0]}return r[--e]=2,r[--e]=0,new V(r)}var Wh=function(){function t(){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 t.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var r=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(e,r){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=G(e,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(e){var r=this.n.bitLength()+7>>3,n=Gh(e,r);if(n==null)return null;var s=this.doPublic(n);if(s==null)return null;for(var i=s.toString(16),o=i.length,u=0;u<r*2-o;u++)i="0"+i;return i},t.prototype.setPrivate=function(e,r,n){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=G(e,16),this.e=parseInt(r,16),this.d=G(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(e,r,n,s,i,o,u,a){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=G(e,16),this.e=parseInt(r,16),this.d=G(n,16),this.p=G(s,16),this.q=G(i,16),this.dmp1=G(o,16),this.dmq1=G(u,16),this.coeff=G(a,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(e,r){var n=new Or,s=e>>1;this.e=parseInt(r,16);for(var i=new V(r,16);;){for(;this.p=new V(e-s,1,n),!(this.p.subtract(V.ONE).gcd(i).compareTo(V.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new V(s,1,n),!(this.q.subtract(V.ONE).gcd(i).compareTo(V.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var u=this.p.subtract(V.ONE),a=this.q.subtract(V.ONE),c=u.multiply(a);if(c.gcd(i).compareTo(V.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(u),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(e){var r=G(e,16),n=this.doPrivate(r);return n==null?null:Yh(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(e,r,n){var s=new Or,i=e>>1;this.e=parseInt(r,16);var o=new V(r,16),u=this,a=function(){var c=function(){if(u.p.compareTo(u.q)<=0){var p=u.p;u.p=u.q,u.q=p}var h=u.p.subtract(V.ONE),d=u.q.subtract(V.ONE),m=h.multiply(d);m.gcd(o).compareTo(V.ONE)==0?(u.n=u.p.multiply(u.q),u.d=o.modInverse(m),u.dmp1=u.d.mod(h),u.dmq1=u.d.mod(d),u.coeff=u.q.modInverse(u.p),setTimeout(function(){n()},0)):setTimeout(a,0)},f=function(){u.q=M(),u.q.fromNumberAsync(i,1,s,function(){u.q.subtract(V.ONE).gcda(o,function(p){p.compareTo(V.ONE)==0&&u.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})},l=function(){u.p=M(),u.p.fromNumberAsync(e-i,1,s,function(){u.p.subtract(V.ONE).gcda(o,function(p){p.compareTo(V.ONE)==0&&u.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(l,0)})})};setTimeout(l,0)};setTimeout(a,0)},t.prototype.sign=function(e,r,n){var s=Zh(n),i=s+r(e).toString(),o=qh(i,this.n.bitLength()/4);if(o==null)return null;var u=this.doPrivate(o);if(u==null)return null;var a=u.toString(16);return(a.length&1)==0?a:"0"+a},t.prototype.verify=function(e,r,n){var s=G(r,16),i=this.doPublic(s);if(i==null)return null;var o=i.toString(16).replace(/^1f+00/,""),u=Jh(o);return u==n(e).toString()},t}();function Yh(t,e){for(var r=t.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=e-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var s="";++n<r.length;){var i=r[n]&255;i<128?s+=String.fromCharCode(i):i>191&&i<224?(s+=String.fromCharCode((i&31)<<6|r[n+1]&63),++n):(s+=String.fromCharCode((i&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return s}var Ve={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Zh(t){return Ve[t]||""}function Jh(t){for(var e in Ve)if(Ve.hasOwnProperty(e)){var r=Ve[e],n=r.length;if(t.substr(0,n)==r)return t.substr(n)}return t}/*!
|
|
19
|
+
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
20
|
+
Code licensed under the BSD License:
|
|
21
|
+
http://developer.yahoo.com/yui/license.html
|
|
22
|
+
version: 2.9.0
|
|
23
|
+
*/var Y={};Y.lang={extend:function(t,e,r){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),r){var s;for(s in r)t.prototype[s]=r[s];var i=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(u,a){for(s=0;s<o.length;s=s+1){var c=o[s],f=a[c];typeof f=="function"&&f!=Object.prototype[c]&&(u[c]=f)}})}catch{}i(t.prototype,r)}}};/**
|
|
24
|
+
* @fileOverview
|
|
25
|
+
* @name asn1-1.0.js
|
|
26
|
+
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
27
|
+
* @version asn1 1.0.13 (2017-Jun-02)
|
|
28
|
+
* @since jsrsasign 2.1
|
|
29
|
+
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
30
|
+
*/var g={};(typeof g.asn1>"u"||!g.asn1)&&(g.asn1={});g.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if(e.substr(0,1)!="-")e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var r=e.substr(1),n=r.length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var s="",i=0;i<n;i++)s+="f";var o=new V(s,16),u=o.xor(t).add(V.ONE);e=u.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=g,r=e.asn1,n=r.DERBoolean,s=r.DERInteger,i=r.DERBitString,o=r.DEROctetString,u=r.DERNull,a=r.DERObjectIdentifier,c=r.DEREnumerated,f=r.DERUTF8String,l=r.DERNumericString,p=r.DERPrintableString,h=r.DERTeletexString,d=r.DERIA5String,m=r.DERUTCTime,S=r.DERGeneralizedTime,O=r.DERSequence,B=r.DERSet,N=r.DERTaggedObject,W=r.ASN1Util.newObject,Q=Object.keys(t);if(Q.length!=1)throw"key of param shall be only one.";var R=Q[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+R+":")==-1)throw"undefined key: "+R;if(R=="bool")return new n(t[R]);if(R=="int")return new s(t[R]);if(R=="bitstr")return new i(t[R]);if(R=="octstr")return new o(t[R]);if(R=="null")return new u(t[R]);if(R=="oid")return new a(t[R]);if(R=="enum")return new c(t[R]);if(R=="utf8str")return new f(t[R]);if(R=="numstr")return new l(t[R]);if(R=="prnstr")return new p(t[R]);if(R=="telstr")return new h(t[R]);if(R=="ia5str")return new d(t[R]);if(R=="utctime")return new m(t[R]);if(R=="gentime")return new S(t[R]);if(R=="seq"){for(var P=t[R],rt=[],U=0;U<P.length;U++){var b=W(P[U]);rt.push(b)}return new O({array:rt})}if(R=="set"){for(var P=t[R],rt=[],U=0;U<P.length;U++){var b=W(P[U]);rt.push(b)}return new B({array:rt})}if(R=="tag"){var v=t[R];if(Object.prototype.toString.call(v)==="[object Array]"&&v.length==3){var $=W(v[2]);return new N({tag:v[0],explicit:v[1],obj:$})}else{var j={};if(v.explicit!==void 0&&(j.explicit=v.explicit),v.tag!==void 0&&(j.tag=v.tag),v.obj===void 0)throw"obj shall be specified for 'tag'.";return j.obj=W(v.obj),new N(j)}}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}};g.asn1.ASN1Util.oidHexToInt=function(t){for(var s="",e=parseInt(t.substr(0,2),16),r=Math.floor(e/40),n=e%40,s=r+"."+n,i="",o=2;o<t.length;o+=2){var u=parseInt(t.substr(o,2),16),a=("00000000"+u.toString(2)).slice(-8);if(i=i+a.substr(1,7),a.substr(0,1)=="0"){var c=new V(i,2);s=s+"."+c.toString(10),i=""}}return s};g.asn1.ASN1Util.oidIntToHex=function(t){var e=function(u){var a=u.toString(16);return a.length==1&&(a="0"+a),a},r=function(u){var a="",c=new V(u,10),f=c.toString(2),l=7-f.length%7;l==7&&(l=0);for(var p="",h=0;h<l;h++)p+="0";f=p+f;for(var h=0;h<f.length-1;h+=7){var d=f.substr(h,7);h!=f.length-7&&(d="1"+d),a+=e(parseInt(d,2))}return a};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",s=t.split("."),i=parseInt(s[0])*40+parseInt(s[1]);n+=e(i),s.splice(0,2);for(var o=0;o<s.length;o++)n+=r(s[o]);return n};g.asn1.ASN1Object=function(){var t="";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="+t.length+",v="+this.hV;var e=this.hV.length/2,r=e.toString(16);if(r.length%2==1&&(r="0"+r),e<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var s=128+n;return s.toString(16)+r},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""}};g.asn1.DERAbstractString=function(t){g.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t<"u"&&(typeof t=="string"?this.setString(t):typeof t.str<"u"?this.setString(t.str):typeof t.hex<"u"&&this.setStringHex(t.hex))};Y.lang.extend(g.asn1.DERAbstractString,g.asn1.ASN1Object);g.asn1.DERAbstractTime=function(t){g.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+e.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(e,r,n){var s=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());r=="utc"&&(o=o.substr(2,2));var u=s(String(i.getMonth()+1),2),a=s(String(i.getDate()),2),c=s(String(i.getHours()),2),f=s(String(i.getMinutes()),2),l=s(String(i.getSeconds()),2),p=o+u+a+c+f+l;if(n===!0){var h=i.getMilliseconds();if(h!=0){var d=s(String(h),3);d=d.replace(/[0]+$/,""),p=p+"."+d}}return p+"Z"},this.zeroPadding=function(e,r){return e.length>=r?e:new Array(r-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,r,n,s,i,o){var u=new Date(Date.UTC(e,r-1,n,s,i,o,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}};Y.lang.extend(g.asn1.DERAbstractTime,g.asn1.ASN1Object);g.asn1.DERAbstractStructured=function(t){g.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof t<"u"&&typeof t.array<"u"&&(this.asn1Array=t.array)};Y.lang.extend(g.asn1.DERAbstractStructured,g.asn1.ASN1Object);g.asn1.DERBoolean=function(){g.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};Y.lang.extend(g.asn1.DERBoolean,g.asn1.ASN1Object);g.asn1.DERInteger=function(t){g.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=g.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var r=new V(String(e),10);this.setByBigInteger(r)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t<"u"&&(typeof t.bigint<"u"?this.setByBigInteger(t.bigint):typeof t.int<"u"?this.setByInteger(t.int):typeof t=="number"?this.setByInteger(t):typeof t.hex<"u"&&this.setValueHex(t.hex))};Y.lang.extend(g.asn1.DERInteger,g.asn1.ASN1Object);g.asn1.DERBitString=function(t){if(t!==void 0&&typeof t.obj<"u"){var e=g.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}g.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var s="0"+r;this.hTLV=null,this.isModified=!0,this.hV=s+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var s=0;s<=n;s++)r+="0";for(var i="",s=0;s<r.length-1;s+=8){var o=r.substr(s,8),u=parseInt(o,2).toString(16);u.length==1&&(u="0"+u),i+=u}this.hTLV=null,this.isModified=!0,this.hV="0"+n+i},this.setByBooleanArray=function(r){for(var n="",s=0;s<r.length;s++)r[s]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),s=0;s<r;s++)n[s]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof t<"u"&&(typeof t=="string"&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):typeof t.hex<"u"?this.setHexValueIncludingUnusedBits(t.hex):typeof t.bin<"u"?this.setByBinaryString(t.bin):typeof t.array<"u"&&this.setByBooleanArray(t.array))};Y.lang.extend(g.asn1.DERBitString,g.asn1.ASN1Object);g.asn1.DEROctetString=function(t){if(t!==void 0&&typeof t.obj<"u"){var e=g.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}g.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"};Y.lang.extend(g.asn1.DEROctetString,g.asn1.DERAbstractString);g.asn1.DERNull=function(){g.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};Y.lang.extend(g.asn1.DERNull,g.asn1.ASN1Object);g.asn1.DERObjectIdentifier=function(t){var e=function(n){var s=n.toString(16);return s.length==1&&(s="0"+s),s},r=function(n){var s="",i=new V(n,10),o=i.toString(2),u=7-o.length%7;u==7&&(u=0);for(var a="",c=0;c<u;c++)a+="0";o=a+o;for(var c=0;c<o.length-1;c+=7){var f=o.substr(c,7);c!=o.length-7&&(f="1"+f),s+=e(parseInt(f,2))}return s};g.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var s="",i=n.split("."),o=parseInt(i[0])*40+parseInt(i[1]);s+=e(o),i.splice(0,2);for(var u=0;u<i.length;u++)s+=r(i[u]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=s},this.setValueName=function(n){var s=g.asn1.x509.OID.name2oid(n);if(s!=="")this.setValueOidString(s);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},t!==void 0&&(typeof t=="string"?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):t.oid!==void 0?this.setValueOidString(t.oid):t.hex!==void 0?this.setValueHex(t.hex):t.name!==void 0&&this.setValueName(t.name))};Y.lang.extend(g.asn1.DERObjectIdentifier,g.asn1.ASN1Object);g.asn1.DEREnumerated=function(t){g.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=g.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var r=new V(String(e),10);this.setByBigInteger(r)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t<"u"&&(typeof t.int<"u"?this.setByInteger(t.int):typeof t=="number"?this.setByInteger(t):typeof t.hex<"u"&&this.setValueHex(t.hex))};Y.lang.extend(g.asn1.DEREnumerated,g.asn1.ASN1Object);g.asn1.DERUTF8String=function(t){g.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"};Y.lang.extend(g.asn1.DERUTF8String,g.asn1.DERAbstractString);g.asn1.DERNumericString=function(t){g.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"};Y.lang.extend(g.asn1.DERNumericString,g.asn1.DERAbstractString);g.asn1.DERPrintableString=function(t){g.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"};Y.lang.extend(g.asn1.DERPrintableString,g.asn1.DERAbstractString);g.asn1.DERTeletexString=function(t){g.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"};Y.lang.extend(g.asn1.DERTeletexString,g.asn1.DERAbstractString);g.asn1.DERIA5String=function(t){g.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"};Y.lang.extend(g.asn1.DERIA5String,g.asn1.DERAbstractString);g.asn1.DERUTCTime=function(t){g.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,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},t!==void 0&&(t.str!==void 0?this.setString(t.str):typeof t=="string"&&t.match(/^[0-9]{12}Z$/)?this.setString(t):t.hex!==void 0?this.setStringHex(t.hex):t.date!==void 0&&this.setByDate(t.date))};Y.lang.extend(g.asn1.DERUTCTime,g.asn1.DERAbstractTime);g.asn1.DERGeneralizedTime=function(t){g.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,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},t!==void 0&&(t.str!==void 0?this.setString(t.str):typeof t=="string"&&t.match(/^[0-9]{14}Z$/)?this.setString(t):t.hex!==void 0?this.setStringHex(t.hex):t.date!==void 0&&this.setByDate(t.date),t.millis===!0&&(this.withMillis=!0))};Y.lang.extend(g.asn1.DERGeneralizedTime,g.asn1.DERAbstractTime);g.asn1.DERSequence=function(t){g.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var e="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];e+=n.getEncodedHex()}return this.hV=e,this.hV}};Y.lang.extend(g.asn1.DERSequence,g.asn1.DERAbstractStructured);g.asn1.DERSet=function(t){g.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];e.push(n.getEncodedHex())}return this.sortFlag==!0&&e.sort(),this.hV=e.join(""),this.hV},typeof t<"u"&&typeof t.sortflag<"u"&&t.sortflag==!1&&(this.sortFlag=!1)};Y.lang.extend(g.asn1.DERSet,g.asn1.DERAbstractStructured);g.asn1.DERTaggedObject=function(t){g.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,r,n){this.hT=r,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof t<"u"&&(typeof t.tag<"u"&&(this.hT=t.tag),typeof t.explicit<"u"&&(this.isExplicit=t.explicit),typeof t.obj<"u"&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};Y.lang.extend(g.asn1.DERTaggedObject,g.asn1.ASN1Object);var Xh=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),zs=function(t){Xh(e,t);function e(r){var n=t.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return e.prototype.parseKey=function(r){try{var n=0,s=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=i.test(r)?Vh.decode(r):wr.unarmor(r),u=Fh.decode(o);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=G(n,16),s=u.sub[2].getHexStringValue(),this.e=parseInt(s,16);var a=u.sub[3].getHexStringValue();this.d=G(a,16);var c=u.sub[4].getHexStringValue();this.p=G(c,16);var f=u.sub[5].getHexStringValue();this.q=G(f,16);var l=u.sub[6].getHexStringValue();this.dmp1=G(l,16);var p=u.sub[7].getHexStringValue();this.dmq1=G(p,16);var h=u.sub[8].getHexStringValue();this.coeff=G(h,16)}else if(u.sub.length===2)if(u.sub[0].sub){var d=u.sub[1],m=d.sub[0];n=m.sub[0].getHexStringValue(),this.n=G(n,16),s=m.sub[1].getHexStringValue(),this.e=parseInt(s,16)}else n=u.sub[0].getHexStringValue(),this.n=G(n,16),s=u.sub[1].getHexStringValue(),this.e=parseInt(s,16);else return!1;return!0}catch{return!1}},e.prototype.getPrivateBaseKey=function(){var r={array:[new g.asn1.DERInteger({int:0}),new g.asn1.DERInteger({bigint:this.n}),new g.asn1.DERInteger({int:this.e}),new g.asn1.DERInteger({bigint:this.d}),new g.asn1.DERInteger({bigint:this.p}),new g.asn1.DERInteger({bigint:this.q}),new g.asn1.DERInteger({bigint:this.dmp1}),new g.asn1.DERInteger({bigint:this.dmq1}),new g.asn1.DERInteger({bigint:this.coeff})]},n=new g.asn1.DERSequence(r);return n.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Ue(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var r=new g.asn1.DERSequence({array:[new g.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new g.asn1.DERNull]}),n=new g.asn1.DERSequence({array:[new g.asn1.DERInteger({bigint:this.n}),new g.asn1.DERInteger({int:this.e})]}),s=new g.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),i=new g.asn1.DERSequence({array:[r,s]});return i.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Ue(this.getPublicBaseKey())},e.wordwrap=function(r,n){if(n=n||64,!r)return r;var s="(.{1,"+n+`})( +|$
|
|
31
|
+
?)|(.{1,`+n+"})";return r.match(RegExp(s,"g")).join(`
|
|
32
|
+
`)},e.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
|
|
33
|
+
`;return r+=e.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
34
|
+
`,r+="-----END RSA PRIVATE KEY-----",r},e.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
|
|
35
|
+
`;return r+=e.wordwrap(this.getPublicBaseKeyB64())+`
|
|
36
|
+
`,r+="-----END PUBLIC KEY-----",r},e.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},e}(Wh),sr,Qh=typeof process<"u"?(sr=process.env)===null||sr===void 0?void 0:sr.npm_package_version:void 0,tn=function(){function t(e){e===void 0&&(e={}),e=e||{},this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}return t.prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new zs(e)},t.prototype.setPrivateKey=function(e){this.setKey(e)},t.prototype.setPublicKey=function(e){this.setKey(e)},t.prototype.decrypt=function(e){try{return this.getKey().decrypt(Fs(e))}catch{return!1}},t.prototype.encrypt=function(e){try{return Ue(this.getKey().encrypt(e))}catch{return!1}},t.prototype.sign=function(e,r,n){try{return Ue(this.getKey().sign(e,r,n))}catch{return!1}},t.prototype.verify=function(e,r,n){try{return this.getKey().verify(e,Fs(r),n)}catch{return!1}},t.prototype.getKey=function(e){if(!this.key){if(this.key=new zs,e&&{}.toString.call(e)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=Qh,t}();function oe(t,e){const r=new tn;return r.setPublicKey(e),r.encrypt(t)||""}function td(t,e){const r=new tn;return r.setPrivateKey(e),r.decrypt(t)||""}function qs(){return typeof new tn().encrypt=="function"}const Mo=Gr(lt),{superAdminInfo:fd,cryptoInfo:ut,loginUserInfo:ir}=wt(Mo),ed=Wr(lt),{activeMenuPath:Be}=wt(ed),Gs=Ge(lt),Dr="123456",rd=Yr(lt),{routerPageStructures:nd}=wt(rd);T.ref(0);T.ref([{label:"用户名称",value:"",name:"userName"}]);const ue=T.computed(()=>{const t=sessionStorage.getItem("isSuperAdmin");return t?JSON.parse(t):!1}),Ir=T.ref([]),sd=T.ref(""),id=T.computed(()=>{var e,r,n,s,i;const t=(e=nd.value)==null?void 0:e.find(o=>{var u;return((u=o==null?void 0:o.comp)==null?void 0:u.toUpperCase())==="TABLE"});return t?(sd.value=t.name,Ir.value=(s=(n=(r=t==null?void 0:t.compData)==null?void 0:r.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:n.contents)==null?void 0:s.filter(u=>(u==null?void 0:u.label)!=="操作"),(i=t==null?void 0:t.compData)==null?void 0:i.map(u=>{var a;if((u==null?void 0:u.key)==="rowButton"){const c=[...u==null?void 0:u.contents,{label:"重置密码"}];return{...u,contents:c}}return(u==null?void 0:u.key)==="header"?{...u,contents:(a=u==null?void 0:u.contents)==null?void 0:a.map(c=>{var f,l,p,h;return{...c,isTableColHidden:((f=c==null?void 0:c.prop)==null?void 0:f.includes("头像"))||((l=c==null?void 0:c.prop)==null?void 0:l.includes("签名")),isFormColHidden:((p=c==null?void 0:c.prop)==null?void 0:p.includes("头像"))||((h=c==null?void 0:c.prop)==null?void 0:h.includes("签名"))}})}:u})):[]});T.ref();const je=async(t,e,r)=>{var n,s;try{const i=await t(e);return((n=i==null?void 0:i.data)==null?void 0:n.code)===200?(r!=="查询"&&await Mo.setLogRecordAsync({type:r,data:e},Be.value),C.ElMessage.success("保存成功"),Gs.setRefreshCurStructure(!0),i.data.result||((s=i==null?void 0:i.data)==null?void 0:s.code)===200):null}catch(i){C.ElMessage.error(i)}finally{Gs.setCacheUpdatingData(null)}},od=async(t,e)=>{var i,o;let r=[];Array.isArray(t)?r=Tt(t):r=[Tt(t)];const n=(i=r==null?void 0:r.filter(u=>typeof(u==null?void 0:u.id)=="string"))==null?void 0:i.map(u=>{var c,f,l,p,h,d,m;const a=ve(u,Ir.value);return qs()&&a&&(!a.password&&ue.value?a.password=oe(Dr,(c=ut==null?void 0:ut.value)==null?void 0:c.publicKey):a.password&&ue.value&&(a.password=oe(a==null?void 0:a.password,(f=ut==null?void 0:ut.value)==null?void 0:f.publicKey))),{key:{type:"data",layer:u==null?void 0:u.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(l=Be.value)!=null&&l.startsWith("/")?(p=Be.value)==null?void 0:p.substring(1):Be.value,tableId:e,createUserId:(h=ir.value)==null?void 0:h.id,createUserOrg:((d=ir.value)==null?void 0:d.dept)||((m=ir.value)==null?void 0:m.部门名称)},value:{tableData:a}}}),s=(o=r==null?void 0:r.filter(u=>typeof(u==null?void 0:u.id)=="number"))==null?void 0:o.map(u=>{var c,f;const a=ve(u,Ir.value);return qs()&&a&&(!a.password&&ue.value?a.password=oe(Dr,(c=ut==null?void 0:ut.value)==null?void 0:c.publicKey):a.password&&ue.value&&(a.password=oe(a==null?void 0:a.password,(f=ut==null?void 0:ut.value)==null?void 0:f.publicKey))),{id:u==null?void 0:u.id,value:{tableData:a}}});n.length>0&&await je(C.batchAddInsofDataApi,{dataList:n},"新增"),s.length>0&&(await je(C.batchUpdateInsofDataApi,{dataList:s},"编辑"),Nt.show=!1)},ud=async(t,e,r,n)=>{if(!(e!=null&&e.includes("删除")))await od(t,r);else{let s=[];e!=null&&e.includes("批量")?s=[]:s=[t==null?void 0:t.id],await je(C.batchDeleteInsofDataApi,{ids:s},"编辑")}};id.value;function ad(t){const e=sessionStorage.getItem("loginToken")??"123456";return C.service({url:"/api/sysFile/uploadFile",method:"post",data:t,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function cd(t){const e=sessionStorage.getItem("loginToken")??"123456";return C.service({url:"/api/sysFile/downloadFile",method:"post",data:t,headers:{Authorization:e,Accept:"application/octet-stream"},responseType:"blob"})}function ld(t){const e=sessionStorage.getItem("loginToken")??"123456";return C.service({url:"/api/sysFile/uploadFiles",method:"post",data:t,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}exports.Stack=Vt;exports.State=Rh;exports.Uint8Array=lr;exports.arrayLikeKeys=si;exports.arrayPush=oi;exports.assignValue=Js;exports.baseAssignValue=Zs;exports.baseUnary=He;exports.cloneBuffer=ci;exports.cloneDeep=Tt;exports.cloneTypedArray=fi;exports.commonjsGlobal=fc;exports.dayjs=vc;exports.decryptData=td;exports.defineStore=Qt;exports.downloadAvatarApi=cd;exports.encryptData=oe;exports.getActivePageStructureId=Ro;exports.getAllKeys=li;exports.getAugmentedNamespace=hc;exports.getDefaultExportFromCjs=vi;exports.getPrototype=ui;exports.handleSubmitAsync=je;exports.identity=Ws;exports.initCloneObject=hi;exports.isArguments=ti;exports.isArrayLike=Xs;exports.isBuffer=xr;exports.isIndex=Ys;exports.isLength=Cr;exports.isPrototype=Rr;exports.isTypedArray=ni;exports.nodeUtil=xt;exports.overRest=Xo;exports.pinia=lt;exports.resetPassword=Dr;exports.setToString=qo;exports.storeToRefs=wt;exports.submitTableAsyncByVerify=ud;exports.uploadAmountApi=ld;exports.uploadFile=ad;exports.useAuthorityState=Yr;exports.useLoginState=Gr;exports.useMenuState=Wr;exports.useModelComp=Ge;exports.useUnit=ho;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, defineComponent as m, createElementBlock as f, openBlock as p, createElementVNode as e, createVNode as u, unref as t } from "vue";
|
|
2
|
-
import { s as C } from "./index-
|
|
2
|
+
import { s as C } from "./index-BaMfm3q6.js";
|
|
3
3
|
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const b = () => {
|
|
5
5
|
const i = l("日志管理"), o = l(), a = l([
|