ss-component-new 1.3.113 → 1.3.114

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.
Files changed (112) hide show
  1. package/dist/{MTLLoader-BviVUPWi.cjs → MTLLoader-DcIQb_s3.cjs} +1 -1
  2. package/dist/{MTLLoader-y4B1LPuT.js → MTLLoader-iRxhJhIF.js} +34 -34
  3. package/dist/{OrbitControls-Cqppy3wb.cjs → OrbitControls-9REskSZo.cjs} +1 -1
  4. package/dist/{OrbitControls-390k2OM3.js → OrbitControls-PQJZejy_.js} +1 -1
  5. package/dist/{URDFLoader-C2tFq0lk.cjs → URDFLoader-BuABv8Tv.cjs} +1 -1
  6. package/dist/{URDFLoader-BlbEAIgR.js → URDFLoader-Buak6sTX.js} +222 -222
  7. package/dist/{animationData-DfDLy_M4.js → animationData-DJhhkfHw.js} +18 -18
  8. package/dist/{animationData-B1Jlpr7b.cjs → animationData-DiCszzEt.cjs} +1 -1
  9. package/dist/{array-DLBDgy0c.js → array-Be4dCwU5.js} +5 -5
  10. package/dist/{array-ymebeoXj.cjs → array-BsWbhqqH.cjs} +1 -1
  11. package/dist/{iconfont-cBX7rs7k.cjs → iconfont-CTi1EROO.cjs} +1 -1
  12. package/dist/{iconfont-BYa5tDrN.js → iconfont-Dkz3EhnP.js} +37 -37
  13. package/dist/{index-JJBPRJiI.cjs → index-1ATQxYGc.cjs} +1 -1
  14. package/dist/{index-UytjSmc1.cjs → index-69FRQH94.cjs} +1 -1
  15. package/dist/{index-4p0yEeUu.js → index-B2WIMplB.js} +1 -1
  16. package/dist/{index--hQDmx_x.js → index-B2pcDjLn.js} +2 -2
  17. package/dist/{index-pE8_wnGy.cjs → index-B9sLkbkE.cjs} +1 -1
  18. package/dist/{index-DdCyGfF9.cjs → index-BBrdsI9W.cjs} +1 -1
  19. package/dist/{index-DJoiySWn.cjs → index-BEpwtI2Q.cjs} +1 -1
  20. package/dist/{index-BXZlLwr6.cjs → index-Bd8mah99.cjs} +1 -1
  21. package/dist/{index-CXtLJs5O.js → index-BhJTGJWX.js} +27 -25
  22. package/dist/{index-C2yeqxnB.js → index-BhPhyI8f.js} +3 -3
  23. package/dist/{index-bbJ9Y_oO.js → index-BhU0rWGt.js} +3 -3
  24. package/dist/index-BhsUBoCD.cjs +1 -0
  25. package/dist/{index-DpirbR20.js → index-Bjm0BPhX.js} +12 -12
  26. package/dist/{index-BmlomuGZ.cjs → index-Bk8qPn0a.cjs} +1 -1
  27. package/dist/{index-BfNg0B2v.js → index-BsoWrBpk.js} +33 -33
  28. package/dist/{index-DpIzJvIr.cjs → index-BuaAY6T_.cjs} +1 -1
  29. package/dist/{index-DaX27S_0.js → index-BugYnyXc.js} +31 -31
  30. package/dist/{index-DMzBNabY.js → index-Bz_ZsUz_.js} +1 -1
  31. package/dist/{index-D6UEkdRE.cjs → index-C1HjpqRi.cjs} +1 -1
  32. package/dist/{index-CXkaTWVT.js → index-C3LqP4qY.js} +2 -2
  33. package/dist/{index-DovAfsVt.js → index-C4NqB81x.js} +2 -2
  34. package/dist/{index-D0e2ki27.js → index-CMMIt7u5.js} +63 -64
  35. package/dist/{index-DLK6UU4l.cjs → index-C_CGGyPH.cjs} +1 -1
  36. package/dist/{index-CYXsxIou.js → index-CdOlTQZV.js} +1 -1
  37. package/dist/{index-CVwsrCrZ.cjs → index-CdzQfZvY.cjs} +12 -12
  38. package/dist/{index-CaV5K0t4.js → index-Cn5h5u4P.js} +2408 -2005
  39. package/dist/{index-Cg30L32X.cjs → index-CpZcO0Vv.cjs} +3 -3
  40. package/dist/{index-BxmhgJuz.js → index-Cw0eFU8n.js} +1 -1
  41. package/dist/{index-CXlemLjY.js → index-D8c3Spt0.js} +1 -1
  42. package/dist/{index-Drd5_tIE.js → index-DHrzZlzn.js} +2 -2
  43. package/dist/{index-CEiscADV.cjs → index-DVhZbYfk.cjs} +1 -1
  44. package/dist/{index-CJiEoadC.js → index-Dar27fP9.js} +5 -5
  45. package/dist/index-DavcqNxP.cjs +1 -0
  46. package/dist/{index-DczQgLYk.cjs → index-DbAWw4as.cjs} +5 -5
  47. package/dist/{index-C6_KNp1M.cjs → index-DbnQZ22f.cjs} +1 -1
  48. package/dist/{index-CIoHy7Dg.js → index-Ddn_i6kt.js} +3 -3
  49. package/dist/index-DgBjwajW.js +456 -0
  50. package/dist/{index-SeEbZNcJ.cjs → index-DhFQdrUj.cjs} +1 -1
  51. package/dist/index-DiowIVZT.cjs +36 -0
  52. package/dist/{index-YwMY3Aya.js → index-DkgsdCot.js} +7 -7
  53. package/dist/{index-NdxRkX7O.js → index-Do9OpnU6.js} +316 -316
  54. package/dist/{index-DONt1we8.js → index-DpdFnDS3.js} +128 -78
  55. package/dist/{index-mabPGJUl.js → index-DqljyATQ.js} +1924 -1902
  56. package/dist/{index-B9g8IV0C.cjs → index-Dxxg-n__.cjs} +1 -1
  57. package/dist/{index-B22a33l9.js → index-DzSpBcvn.js} +1 -1
  58. package/dist/{index-BjAtlMRE.cjs → index-OS-qw-PB.cjs} +1 -1
  59. package/dist/{index-BVURmufk.js → index-RJF35C5O.js} +7 -7
  60. package/dist/index-SJHk-hwy.cjs +1 -0
  61. package/dist/index-TspEOSLc.cjs +1 -0
  62. package/dist/{index-DnJB2OQC.cjs → index-d198q36G.cjs} +1 -1
  63. package/dist/{index-CVySIgt4.cjs → index-eOampyhu.cjs} +1 -1
  64. package/dist/index-h4MsH7WN.cjs +1 -0
  65. package/dist/{index-DBdrmcqM.cjs → index-hSBc9pHD.cjs} +1 -1
  66. package/dist/index-kP2LUcSw.cjs +1 -0
  67. package/dist/{index-BIOl9xBh.js → index-p6bofhog.js} +2 -2
  68. package/dist/{index-D39f9FDD.cjs → index-rgLAMPYl.cjs} +1 -1
  69. package/dist/{index-8TMkI46d.js → index-tXc9-Dpz.js} +5 -5
  70. package/dist/{index-Cu75UXH1.js → index-wT_u7Sip.js} +2 -2
  71. 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-Cp7jnXuw.js} +19045 -19450
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CuQjU1nB.cjs} +397 -397
  73. package/dist/{index.vue_vue_type_style_index_1_lang-B2vRPxHe.cjs → index.vue_vue_type_style_index_1_lang-AEdMqNIL.cjs} +2 -2
  74. package/dist/{index.vue_vue_type_style_index_1_lang-B88Ne666.js → index.vue_vue_type_style_index_1_lang-DzaXkSeA.js} +134 -134
  75. package/dist/{main-b1OREkjD.js → main-BuHWLsd1.js} +4 -4
  76. package/dist/{main-ChE0Sl1V.cjs → main-CvEytDJd.cjs} +1 -1
  77. package/dist/{menuIndex-QovY60sY.cjs → menuIndex-7DwfwtqQ.cjs} +1 -1
  78. package/dist/{menuIndex-BlBV6RY8.js → menuIndex-BpEQqtCU.js} +1 -1
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +1 -1
  81. package/dist/ss-component.js +10 -10
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +12 -12
  84. package/dist/{threeModel-BTiM-_yY.cjs → threeModel-BBPdmBqX.cjs} +1 -1
  85. package/dist/{threeModel-CUViA1pV.js → threeModel-qPRHxt0O.js} +62 -62
  86. package/dist/{threePreview-fEcukbqP.js → threePreview-BNspl3PQ.js} +102 -102
  87. package/dist/{threePreview-DiDVwpOj.cjs → threePreview-BQfgRzYJ.cjs} +1 -1
  88. package/dist/{threeSceneView-CxhlNkvh.cjs → threeSceneView-BTG6qz5g.cjs} +1 -1
  89. package/dist/{threeSceneView-BsxoPqAA.js → threeSceneView-Dkw-3Lex.js} +133 -133
  90. package/dist/{threeSceneViewForCPMPIP-CCTwBiPg.js → threeSceneViewForCPMPIP-BUGbgcyW.js} +8 -8
  91. package/dist/{threeSceneViewForCPMPIP-Bq9A66VO.cjs → threeSceneViewForCPMPIP-DZtGuJLA.cjs} +1 -1
  92. package/dist/{threeTrackPathView-D7zto1f1.cjs → threeTrackPathView-BMRciFya.cjs} +1 -1
  93. package/dist/{threeTrackPathView-DbqptnRu.js → threeTrackPathView-D5aLq-PQ.js} +94 -94
  94. package/dist/{threeViewerHost-B9vgyTcM.js → threeViewerHost-B5ajpfKi.js} +17 -17
  95. package/dist/{threeViewerHost-Dhc4vxhv.cjs → threeViewerHost-DZgqSUXb.cjs} +1 -1
  96. package/dist/{urdfTree-CfUfqc73.cjs → urdfTree-CXoYn4F5.cjs} +1 -1
  97. package/dist/{urdfTree-B9gafrR3.js → urdfTree-DVRrRAEg.js} +1 -1
  98. package/dist/{workpieceTreePanel-DzEBifIL.cjs → workpieceTreePanel--Lz2aEfm.cjs} +1 -1
  99. package/dist/{workpieceTreePanel-CoUx6lll.js → workpieceTreePanel-myjwdWI9.js} +81 -81
  100. package/package.json +1 -1
  101. package/dist/index-8ddlDjHL.js +0 -455
  102. package/dist/index-BLGT4-wX.cjs +0 -1
  103. package/dist/index-CTGhzBZx.cjs +0 -1
  104. package/dist/index-D7Ao1GyZ.cjs +0 -1
  105. package/dist/index-DUqjjluX.cjs +0 -1
  106. package/dist/index-NtRUaVwS.cjs +0 -1
  107. package/dist/index-aMvM6ti6.cjs +0 -1
  108. package/dist/index-kutaq0AT.cjs +0 -36
  109. package/dist/obj/model.mtl +0 -42
  110. package/dist/obj/model.obj +0 -26110
  111. package/public/obj/model.mtl +0 -42
  112. package/public/obj/model.obj +0 -26110
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),I=require("./index-CEiscADV.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs"),x=require("./index-Dc6Q0f3F.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-CVwsrCrZ.cjs"),k=require("./index-BpPyaNFa.cjs"),N={class:"avatar-model-wrap"},V={key:0},E=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(i,{emit:b}){const s=i,u=b,h=e.computed(()=>"http://222.92.178.198:62001"),d=e.ref(""),p=e.ref(""),_=e.ref();e.watch(()=>{var o;return(o=s.userInfo)==null?void 0:o.头像},o=>{p.value=o?h.value+"/"+o:""},{immediate:!0});const w=async()=>{if(!(s!=null&&s.disabled))try{const o=await B.downloadAvatarApi({url:d.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});_.value=f}catch(o){throw new Error(o)}},S=async o=>{var f,g,t,n,c;try{const r=await B.uploadFile(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(p.value=h.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),d.value=(c=(n=r.data)==null?void 0:n.result)==null?void 0:c.url,u("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},y=async()=>{try{if(!p.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t;return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(I.Avatar,{avatarUrl:p.value??"",avatarBlob:_.value,size:i.size,onClickAvatar:w,onSubmitImage:S,onDeleteImage:y,clickStop:s==null?void 0:s.clickStop},{avatarDefault:e.withCtx(()=>{var n,c,r,l;return[e.createTextVNode(e.toDisplayString(((c=(n=i.userInfo)==null?void 0:n.account)==null?void 0:c.charAt(0))||((l=(r=i.userInfo)==null?void 0:r.姓名)==null?void 0:l.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),i.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",V,e.toDisplayString(((g=i.userInfo)==null?void 0:g.account)||((t=i.userInfo)==null?void 0:t.账号)||"未知"),1))])}}}),T=C._export_sfc(E,[["__scopeId","data-v-e466982c"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:b}){const s=i,u=e.ref({}),h=e.ref([]),d=b,p=t=>{u.value.dialogShow=(t==null?void 0:t.label)==="电子签名",d("clickSignButton",t)},_=()=>{u.value.dialogShow=!1,d("beforeDestroy")},w=e.computed(()=>"http://222.92.178.198:62001"),S=t=>{var a;const n=t.split(","),c=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let l=r.length;const v=new Uint8Array(l);for(;l--;)v[l]=r.charCodeAt(l);return new Blob([v],{type:c})},y=async t=>{var n,c,r;try{const l=await B.uploadFile(t);((n=l==null?void 0:l.data)==null?void 0:n.code)===200&&d("clickSubmitSign",(r=(c=l.data)==null?void 0:c.result)==null?void 0:r.url)}catch(l){x.ElMessage.error(l)}},o=e.ref(""),f=t=>{o.value=t,u.value.dialogShow=!1;const n=new FormData,c=S(t);n.append("file",c,"image.png"),y(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),y(n)};return e.watch(()=>s==null?void 0:s.itemData,t=>{var c,r,l,v;o.value="",(c=u.value)!=null&&c.dialogShow&&(u.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),u.value=(l=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:l.contents,h.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const c=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),l=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:u.value,onBeforeDestroy:_,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=u.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:w.value+"/"+((m=i.userInfo)==null?void 0:m.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(c,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(l,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(l,{key:1,id:"themeButton",disabled:a.disabled,onClick:$=>p(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=C._export_sfc(U,[["__scopeId","data-v-ce5a2314"]]);exports.ssAvatar=T;exports.ssSignature=q;
@@ -1 +0,0 @@
1
- "use strict";const F=require("vue"),g=require("./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs"),c=require("./index-kutaq0AT.cjs"),G=require("./index-DJoiySWn.cjs"),d=require("./index-Dc6Q0f3F.cjs"),H=require("./index-Cg30L32X.cjs");function y(s){return d.service({url:"http://222.92.178.198:63002/platform/getdata",method:"post",data:s})}function K(){return d.service({url:"http://222.92.178.198:63002/platform/admin/getdata",method:"post"})}function V(s){return d.service({url:"http://222.92.178.198:63002/platform/createdata",method:"post",data:s})}function j(s){return d.service({url:"http://222.92.178.198:63002/platform/updatedata",method:"post",data:s})}function R(s){return d.service({url:"http://222.92.178.198:63002/platform/deletedata",method:"post",data:s})}const k="YYYY-MM-DD HH:mm",z="superAdmin",J=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],m=s=>s?g.dayjs(s).format(k):"",O=()=>{const s=c.useLoginState(),a=c.useMenuState(c.pinia),I=F.computed(()=>"http://222.92.178.198:62001"),w=t=>{const e=s.loginUserInfo,{user_name:n,password:o}=e||{};let r={platId:"",platName:"",platNameEN:"",logo:"",platType:"",platVersion:"",userName:n,password:o,platCreator:n,platCreatedAt:m(Date.now())};if(t){const l=q(t);r={...r,...l}}return r},_=t=>{const e=s.loginUserInfo,{user_name:n,password:o}=e||{},{user_name:r,password:l}=t;return n===r&&o===l},h=()=>{const t=s.loginUserInfo,{layer:e}=t||{};return e===z},L=t=>{const e=c.cloneDeep(t),{plat_id:n}=e;sessionStorage.setItem("systemKey",n),s.setSystemKey(n),s.setLoginUserInfo(e),G.verifyStructureDataToStore()},M=t=>{const{plat_name:e,plat_type:n}=t;a.setPlatform(n),a.setPlatName(e)},U=t=>{a.setImportLoading(!0),L(t),M(t),a.setImportLoading(!1)},S=async()=>await K(),v=async()=>{var e;a.setImportLoading(!0);const t=await S().finally(()=>{a.setImportLoading(!1)});return(e=t==null?void 0:t.data)==null?void 0:e.result},N=async()=>{const t=s.loginUserInfo,{user_name:e,password:n}=t||{};return await y({userName:e,password:n})},D=async()=>{var e;a.setImportLoading(!0);const t=await N().finally(()=>{a.setImportLoading(!1)});return(e=t==null?void 0:t.data)==null?void 0:e.result},A=t=>{const e={myModelList:[],otherList:[]};if(!t||!t.length)return e;const n=c.cloneDeep(t),o=s.loginUserInfo,{user_name:r,password:l}=o||{};return n.forEach(i=>{const{user_name:u,password:p}=i;r===u&&l===p?e.myModelList.push(i):e.otherList.push(i)}),e},C=async t=>{await H.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-model-message-modal",cancelButtonClass:"delete-model-cancel",confirmButtonClass:"delete-model-confirm"});const{plat_id:e,user_name:n,password:o}=t;await R({userName:n,password:o,platId:e})},x=async t=>{a.setImportLoading(!0),await C(t).finally(()=>{a.setImportLoading(!1)})},q=t=>{const{plat_id:e,plat_name:n,plat_name_en:o,logo:r,plat_type:l,plat_version:i,user_name:u,password:p}=t;return{platId:e,platName:n,platNameEN:o,logo:r,platType:l,platVersion:i,platCreator:u,platCreatedAt:m(Date.now()),userName:u,password:p}},P=async t=>{await j(t)},T=async t=>{a.setImportLoading(!0),await P(t).finally(()=>{a.setImportLoading(!1)})},B=async t=>{t.platCreatedAt=m(Date.now()),await V(t)},E=async t=>{a.setImportLoading(!0),await B(t).finally(()=>{a.setImportLoading(!1)})},Y=async t=>{var o,r,l;const e=await g.uploadFile(t);let n=null;return((o=e==null?void 0:e.data)==null?void 0:o.code)===200&&(n=I.value+"/"+((l=(r=e.data)==null?void 0:r.result)==null?void 0:l.url)),n},b=async t=>(a.setImportLoading(!0),await Y(t).finally(()=>{a.setImportLoading(!1)})),$=async t=>y({platId:t}),f=async t=>{var n,o;const e=await $(t).finally(()=>{a.setImportLoading(!1)});return(o=(n=e==null?void 0:e.data)==null?void 0:n.result)==null?void 0:o[0]};return{initAllModelList:v,initModelInfo:U,initModelItem:w,initModelList:D,classifyModelByAccount:A,initCreate:E,initUpdate:T,initDelete:x,initUpload:b,initPlatformInfo:f,initSystemInfo:async t=>{const e=await f(t),{plat_name:n,plat_name_en:o,logo:r}=e,l={EnglishName:o,chineseName:n,logo:r};s.setSystemInfo(l)},isMe:_,isSuperAdmin:h}};exports.operateList=J;exports.useModelManagement=O;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),E=require("./index-kutaq0AT.cjs"),A=require("./index-rbS2iECn.cjs"),$=require("./index-Dc6Q0f3F.cjs"),K=require("vue-router"),I=require("./index-DJoiySWn.cjs"),F=require("./index-H7e3Aze4.cjs"),M={},q={class:"left-wrap"},O={class:"left-bg"};function U(h,g){return e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",O,[e.renderSlot(h.$slots,"img",{},void 0,!0)])])}const D=S._export_sfc(M,[["render",U],["__scopeId","data-v-9b7ee6c9"]]),k={ACCOUNT:"account",FACE:"face"},j={class:"right-wrap"},H={class:"tab-content"},P={class:"tab-tips"},W={class:"tab-content"},z={class:"tab-tips"},G=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(h,{emit:g}){const o=e.ref(k.ACCOUNT),t=g,u=()=>{t("clickLogin",o.value)},b=a=>{t("handleTabChange",a)};return(a,c)=>{const s=e.resolveComponent("el-button"),m=e.resolveComponent("el-tab-pane"),r=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",j,[e.createVNode(r,{modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=d=>o.value=d),class:"right-tabs",onTabChange:b},{default:e.withCtx(()=>[e.createVNode(m,{name:e.unref(k).ACCOUNT},{label:e.withCtx(()=>[e.renderSlot(a.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",H,[e.renderSlot(a.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:u},[e.createVNode(s,{loading:h.loading},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",P,[e.renderSlot(a.$slots,"tabTips1",{},void 0,!0)])]),_:3},8,["name"]),e.createVNode(m,{name:e.unref(k).FACE},{label:e.withCtx(()=>[e.renderSlot(a.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",W,[e.renderSlot(a.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",z,[e.renderSlot(a.$slots,"tabTips2",{},void 0,!0)])]),_:3},8,["name"])]),_:3},8,["modelValue"])])}}}),J=S._export_sfc(G,[["__scopeId","data-v-8b1962f0"]]),Q={class:"account-wrap"},X=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(h,{emit:g}){const o=h,t=e.reactive({account:"",password:""}),u=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),b=e.ref(null),a=g;return e.watch(()=>o.isClickLogin,c=>{var s;c&&(o==null?void 0:o.activeTabName)==="account"&&((s=b.value)==null||s.validate(m=>{var r;for(let d in t)t.hasOwnProperty(d)&&(t[d]=(r=t[d])==null?void 0:r.trim());a("handleLoginFormChange",m,m?t:null)}))},{immediate:!0}),e.watch(()=>o.activeTabName,c=>{var s;c==="account"&&((s=b.value)==null||s.resetFields())}),(c,s)=>{const m=e.resolveComponent("svg-icon"),r=e.resolveComponent("el-input"),d=e.resolveComponent("el-form-item"),N=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",Q,[e.createVNode(N,{model:t,rules:u,ref_key:"formRef",ref:b},{default:e.withCtx(()=>[e.createVNode(d,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(r,{class:"account-input",modelValue:t.account,"onUpdate:modelValue":s[0]||(s[0]=n=>t.account=n),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(m,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(r,{class:"account-input",modelValue:t.password,"onUpdate:modelValue":s[1]||(s[1]=n=>t.password=n),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(m,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),Y=S._export_sfc(X,[["__scopeId","data-v-48037c0f"]]),Z={class:"account-wrap"},ee={class:"video-wrap"},te=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(h,{emit:g}){const o=h,t=g;E.useLoginState(E.pinia);const u=e.ref(null),b=e.ref(null);let a=!1,c=null;const s=async n=>{if(!n)return;const i=new FormData;i.set("file",n),o.systemKey&&i.set("systemKey",o.systemKey),console.log("Face Recognition",o.systemKey);const C=await A.verifyFaceImage(i),{data:_}=C||{},{user_name:y,password:w,layer:l}=(_==null?void 0:_.data)||{},f=_==null?void 0:_.msg;if(!y){$.ElMessage.warning(f||"识别失败,请重新识别!");return}t("handleLoginFormChange",!0,{account:y,password:w})},m=()=>{if(!b.value||!u.value)return;const n=b.value,i=n.getContext("2d"),C=u.value;n.width=200,n.height=200;const _=C.videoWidth||640,y=C.videoHeight||480,w=Math.min(200/_,200/y),l=_*w,f=y*w,v=(200-l)/2,p=(200-f)/2;i==null||i.drawImage(C,0,0,_,y,v,p,l,f),n.toBlob(V=>{if(V){const x=new File([V],"face.png",{type:"image/png"});s(x)}},"image/png")},r=async()=>{if(!u.value||a)return;const n=u.value;try{if(c=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1}),n){const i=n;i.srcObject=c,a=!0}}catch{$.ElMessage.warning("摄像头启动失败")}};function d(n){if(n&&(n.getTracks().forEach(i=>i.stop()),u.value)){const i=u.value;i.srcObject=null}}const N=()=>{d(c),a=!1};return e.watch(()=>o.activeTabName,n=>{if(n!==k.FACE){N();return}if(n===k.FACE&&!a){r();return}}),e.onBeforeUnmount(()=>{N()}),(n,i)=>(e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("div",ee,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:u,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("button",{class:"face-screenshot",onClick:m},"人脸识别"),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:b,id:"canvas"},null,512)]))}}),oe=S._export_sfc(te,[["__scopeId","data-v-0efc65bd"]]),B=E.useLoginState(E.pinia),ne=async(h,g)=>{var u,b,a,c,s,m,r,d,N,n,i,C,_,y,w,l,f,v;let o=Object.values(h),t=await F.loginPlatFormDataApi({userName:(u=o==null?void 0:o[0])==null?void 0:u.trim(),password:(b=o==null?void 0:o[1])==null?void 0:b.trim()});if(((a=t==null?void 0:t.data)==null?void 0:a.status)===200&&((s=(c=t==null?void 0:t.data)==null?void 0:c.result)==null?void 0:s.length)<=0&&(t=await F.loginCommonAccount({userName:(m=o==null?void 0:o[0])==null?void 0:m.trim(),password:(r=o==null?void 0:o[1])==null?void 0:r.trim(),path:"系统管理/用户管理",platId:g})),((d=t==null?void 0:t.data)==null?void 0:d.status)===200&&((n=(N=t==null?void 0:t.data)==null?void 0:N.result)==null?void 0:n.length)>0){sessionStorage.setItem("systemKey",g&&g!==""?g:(_=(C=(i=t==null?void 0:t.data)==null?void 0:i.result)==null?void 0:C[0])==null?void 0:_.plat_id);let p=(w=(y=t==null?void 0:t.data)==null?void 0:y.result)==null?void 0:w[0];return p.plat_id=p.plat_id??g,B.setLoginUserInfo(p),B.setSystemKey(g&&g!==""?g:(v=(f=(l=t==null?void 0:t.data)==null?void 0:l.result)==null?void 0:f[0])==null?void 0:v.plat_id),!0}else return $.ElMessage.error("输入的密码错误,请重新输入"),!1},ae={class:"login-wrap"},se={class:"login-body"},ie={class:"login-body-item left"},ce={class:"title"},le={class:"first-level"},re={key:0,class:"logo"},de=["src"],ue={class:"english-name"},me={class:"login-body-item right"},fe=e.defineComponent({__name:"index",props:{oldSystemKey:{}},emits:["change"],setup(h,{emit:g}){const o=h,t=K.useRouter(),u=E.useLoginState(E.pinia),{systemKey:b,systemInfo:a,loginUserInfo:c}=E.storeToRefs(u),s=e.ref({sysCTitle:"",sysETitle:"",loginTitle:"账户密码登录",tabs:[{name:"密码登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"人脸识别",btnLabel:"人脸识别",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"刷卡登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"}]}),m=e.ref("account"),r=e.ref(!1),d=e.ref(!1),N=()=>{r.value=!0},n=(l,f)=>{r.value=!1,l&&_(f)},i=async()=>(sessionStorage.setItem("loginToken","111"),!0),C=async()=>{var l,f,v;try{const p=await $.axios.post("http://139.196.154.85:20024/api/sysAuth/login",{account:"superadmin",password:"9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",codeId:0,code:""});return((l=p==null?void 0:p.data)==null?void 0:l.code)===200&&sessionStorage.setItem("magicToken",(v=(f=p.data)==null?void 0:f.result)==null?void 0:v.accessToken),!0}catch{return!0}};e.onMounted(async()=>{await i()});const _=async l=>{var V,x,L,T;d.value=!0;let f=[ne(l,o.oldSystemKey),i(),C()];const v=await Promise.all(f);(v==null?void 0:v.every(R=>R))?(await I.verifyStructureDataToStore(),t.push("/"),u.setLogRecordAsync({type:"登录",data:{account:((V=c.value)==null?void 0:V.account)??((x=c.value)==null?void 0:x.账号),userName:((L=c.value)==null?void 0:L.姓名)||((T=c.value)==null?void 0:T.userName)||"未知"}},"/login","login")):d.value=!1},y=l=>{m.value=l,r.value=!1,d.value=!1},w=l=>/^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(l);return(l,f)=>(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",se,[e.createElementVNode("div",ie,[e.createVNode(D,{class:"login-left-bg"},{img:e.withCtx(()=>{var v,p,V,x,L,T;return[e.createElementVNode("div",ce,[e.createElementVNode("div",le,[(v=e.unref(a))!=null&&v.logo?(e.openBlock(),e.createElementBlock("div",re,[e.createElementVNode("img",{src:(p=e.unref(a))==null?void 0:p.logo,alt:""},null,8,de)])):e.createCommentVNode("",!0),e.createElementVNode("div",ue,e.toDisplayString(((V=e.unref(a))==null?void 0:V.EnglishName)||"INSOFWORKS"),1)]),e.createElementVNode("div",null,e.toDisplayString((x=e.unref(a))!=null&&x.chineseName&&w((L=e.unref(a))==null?void 0:L.chineseName)?(T=e.unref(a))==null?void 0:T.chineseName:"工业软件集成开发平台"),1)]),f[0]||(f[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",me,[e.createVNode(J,{loading:d.value,onClickLogin:N,onHandleTabChange:y},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(Y,{activeTabName:m.value,isClickLogin:r.value,onHandleLoginFormChange:n},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(oe,{systemKey:l.oldSystemKey,activeTabName:m.value,isClickLogin:r.value,onHandleLoginFormChange:n},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),ge=S._export_sfc(fe,[["__scopeId","data-v-d34b3da5"]]);exports.default=ge;
@@ -1,36 +0,0 @@
1
- "use strict";const y=require("vue"),A=require("./index-Dc6Q0f3F.cjs");var Ye=A.getNative(A.root,"WeakMap"),qr=Object.create,wo=function(){function t(){}return function(e){if(!A.isObject(e))return{};if(qr)return qr(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),Ze=function(){try{var t=A.getNative(Object,"defineProperty");return t({},"",{}),t}catch{}}();function Oo(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var Do=9007199254740991,Io=/^(?:0|[1-9]\d*)$/;function Ms(t,e){var r=typeof t;return e=e??Do,!!e&&(r=="number"||r!="symbol"&&Io.test(t))&&t>-1&&t%1==0&&t<e}function Fs(t,e,r){e=="__proto__"&&Ze?Ze(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Co=Object.prototype,Ro=Co.hasOwnProperty;function Ls(t,e,r){var n=t[e];(!(Ro.call(t,e)&&A.eq(n,r))||r===void 0&&!(e in t))&&Fs(t,e,r)}var xo=9007199254740991;function Er(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=xo}function Us(t){return t!=null&&Er(t.length)&&!A.isFunction(t)}var Po=Object.prototype;function mr(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Po;return t===r}function ko(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var No="[object Arguments]";function Gr(t){return A.isObjectLike(t)&&A.baseGetTag(t)==No}var js=Object.prototype,Vo=js.hasOwnProperty,Bo=js.propertyIsEnumerable,$s=Gr(function(){return arguments}())?Gr:function(t){return A.isObjectLike(t)&&Vo.call(t,"callee")&&!Bo.call(t,"callee")};function Mo(){return!1}var Ks=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wr=Ks&&typeof module=="object"&&module&&!module.nodeType&&module,Fo=Wr&&Wr.exports===Ks,Yr=Fo?A.root.Buffer:void 0,Lo=Yr?Yr.isBuffer:void 0,br=Lo||Mo,Uo="[object Arguments]",jo="[object Array]",$o="[object Boolean]",Ko="[object Date]",Ho="[object Error]",zo="[object Function]",qo="[object Map]",Go="[object Number]",Wo="[object Object]",Yo="[object RegExp]",Zo="[object Set]",Jo="[object String]",Xo="[object WeakMap]",Qo="[object ArrayBuffer]",tu="[object DataView]",eu="[object Float32Array]",ru="[object Float64Array]",nu="[object Int8Array]",su="[object Int16Array]",iu="[object Int32Array]",ou="[object Uint8Array]",uu="[object Uint8ClampedArray]",au="[object Uint16Array]",cu="[object Uint32Array]",V={};V[eu]=V[ru]=V[nu]=V[su]=V[iu]=V[ou]=V[uu]=V[au]=V[cu]=!0;V[Uo]=V[jo]=V[Qo]=V[$o]=V[tu]=V[Ko]=V[Ho]=V[zo]=V[qo]=V[Go]=V[Wo]=V[Yo]=V[Zo]=V[Jo]=V[Xo]=!1;function lu(t){return A.isObjectLike(t)&&Er(t.length)&&!!V[A.baseGetTag(t)]}function xe(t){return function(e){return t(e)}}var Hs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qt=Hs&&typeof module=="object"&&module&&!module.nodeType&&module,fu=Qt&&Qt.exports===Hs,Le=fu&&A.freeGlobal.process,Tt=function(){try{var t=Qt&&Qt.require&&Qt.require("util").types;return t||Le&&Le.binding&&Le.binding("util")}catch{}}(),Zr=Tt&&Tt.isTypedArray,zs=Zr?xe(Zr):lu,hu=Object.prototype,du=hu.hasOwnProperty;function qs(t,e){var r=A.isArray(t),n=!r&&$s(t),s=!r&&!n&&br(t),i=!r&&!n&&!s&&zs(t),o=r||n||s||i,u=o?ko(t.length,String):[],a=u.length;for(var c in t)(e||du.call(t,c))&&!(o&&(c=="length"||s&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ms(c,a)))&&u.push(c);return u}function Gs(t,e){return function(r){return t(e(r))}}var pu=Gs(Object.keys,Object),gu=Object.prototype,vu=gu.hasOwnProperty;function yu(t){if(!mr(t))return pu(t);var e=[];for(var r in Object(t))vu.call(t,r)&&r!="constructor"&&e.push(r);return e}function _u(t){return Us(t)?qs(t):yu(t)}function Ws(t,e){for(var r=-1,n=e.length,s=t.length;++r<n;)t[s+r]=e[r];return t}var Ys=Gs(Object.getPrototypeOf,Object);function Eu(){this.__data__=new A.ListCache,this.size=0}function mu(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function bu(t){return this.__data__.get(t)}function Tu(t){return this.__data__.has(t)}var Su=200;function Au(t,e){var r=this.__data__;if(r instanceof A.ListCache){var n=r.__data__;if(!A.Map||n.length<Su-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new A.MapCache(n)}return r.set(t,e),this.size=r.size,this}function Ot(t){var e=this.__data__=new A.ListCache(t);this.size=e.size}Ot.prototype.clear=Eu;Ot.prototype.delete=mu;Ot.prototype.get=bu;Ot.prototype.has=Tu;Ot.prototype.set=Au;var Zs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jr=Zs&&typeof module=="object"&&module&&!module.nodeType&&module,wu=Jr&&Jr.exports===Zs,Xr=wu?A.root.Buffer:void 0,Qr=Xr?Xr.allocUnsafe:void 0;function Js(t,e){if(e)return t.slice();var r=t.length,n=Qr?Qr(r):new t.constructor(r);return t.copy(n),n}function Ou(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 Du(){return[]}var Iu=Object.prototype,Cu=Iu.propertyIsEnumerable,tn=Object.getOwnPropertySymbols,Ru=tn?function(t){return t==null?[]:(t=Object(t),Ou(tn(t),function(e){return Cu.call(t,e)}))}:Du;function xu(t,e,r){var n=e(t);return A.isArray(t)?n:Ws(n,r(t))}function Xs(t){return xu(t,_u,Ru)}var Je=A.getNative(A.root,"DataView"),Xe=A.getNative(A.root,"Promise"),Qe=A.getNative(A.root,"Set"),en="[object Map]",Pu="[object Object]",rn="[object Promise]",nn="[object Set]",sn="[object WeakMap]",on="[object DataView]",ku=A.toSource(Je),Nu=A.toSource(A.Map),Vu=A.toSource(Xe),Bu=A.toSource(Qe),Mu=A.toSource(Ye);exports.getTag=A.baseGetTag;(Je&&exports.getTag(new Je(new ArrayBuffer(1)))!=on||A.Map&&exports.getTag(new A.Map)!=en||Xe&&exports.getTag(Xe.resolve())!=rn||Qe&&exports.getTag(new Qe)!=nn||Ye&&exports.getTag(new Ye)!=sn)&&(exports.getTag=function(t){var e=A.baseGetTag(t),r=e==Pu?t.constructor:void 0,n=r?A.toSource(r):"";if(n)switch(n){case ku:return on;case Nu:return en;case Vu:return rn;case Bu:return nn;case Mu:return sn}return e});var Fu=Object.prototype,Lu=Fu.hasOwnProperty;function Uu(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Lu.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var tr=A.root.Uint8Array;function Tr(t){var e=new t.constructor(t.byteLength);return new tr(e).set(new tr(t)),e}function ju(t,e){var r=Tr(t.buffer);return new t.constructor(r,t.byteOffset,t.byteLength)}var $u=/\w*$/;function Ku(t){var e=new t.constructor(t.source,$u.exec(t));return e.lastIndex=t.lastIndex,e}var un=A.Symbol?A.Symbol.prototype:void 0,an=un?un.valueOf:void 0;function Hu(t){return an?Object(an.call(t)):{}}function Qs(t,e){var r=e?Tr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var zu="[object Boolean]",qu="[object Date]",Gu="[object Map]",Wu="[object Number]",Yu="[object RegExp]",Zu="[object Set]",Ju="[object String]",Xu="[object Symbol]",Qu="[object ArrayBuffer]",ta="[object DataView]",ea="[object Float32Array]",ra="[object Float64Array]",na="[object Int8Array]",sa="[object Int16Array]",ia="[object Int32Array]",oa="[object Uint8Array]",ua="[object Uint8ClampedArray]",aa="[object Uint16Array]",ca="[object Uint32Array]";function la(t,e,r){var n=t.constructor;switch(e){case Qu:return Tr(t);case zu:case qu:return new n(+t);case ta:return ju(t);case ea:case ra:case na:case sa:case ia:case oa:case ua:case aa:case ca:return Qs(t,r);case Gu:return new n;case Wu:case Ju:return new n(t);case Yu:return Ku(t);case Zu:return new n;case Xu:return Hu(t)}}function ti(t){return typeof t.constructor=="function"&&!mr(t)?wo(Ys(t)):{}}var fa="[object Map]";function ha(t){return A.isObjectLike(t)&&exports.getTag(t)==fa}var cn=Tt&&Tt.isMap,da=cn?xe(cn):ha,pa="[object Set]";function ga(t){return A.isObjectLike(t)&&exports.getTag(t)==pa}var ln=Tt&&Tt.isSet,va=ln?xe(ln):ga,ya=1,ei="[object Arguments]",_a="[object Array]",Ea="[object Boolean]",ma="[object Date]",ba="[object Error]",ri="[object Function]",Ta="[object GeneratorFunction]",Sa="[object Map]",Aa="[object Number]",ni="[object Object]",wa="[object RegExp]",Oa="[object Set]",Da="[object String]",Ia="[object Symbol]",Ca="[object WeakMap]",Ra="[object ArrayBuffer]",xa="[object DataView]",Pa="[object Float32Array]",ka="[object Float64Array]",Na="[object Int8Array]",Va="[object Int16Array]",Ba="[object Int32Array]",Ma="[object Uint8Array]",Fa="[object Uint8ClampedArray]",La="[object Uint16Array]",Ua="[object Uint32Array]",k={};k[ei]=k[_a]=k[Ra]=k[xa]=k[Ea]=k[ma]=k[Pa]=k[ka]=k[Na]=k[Va]=k[Ba]=k[Sa]=k[Aa]=k[ni]=k[wa]=k[Oa]=k[Da]=k[Ia]=k[Ma]=k[Fa]=k[La]=k[Ua]=!0;k[ba]=k[ri]=k[Ca]=!1;function ve(t,e,r,n,s,i){var o,u=e&ya;if(o!==void 0)return o;if(!A.isObject(t))return t;var a=A.isArray(t);if(a)o=Uu(t);else{var c=exports.getTag(t),l=c==ri||c==Ta;if(br(t))return Js(t,u);if(c==ni||c==ei||l&&!s)o=l?{}:ti(t);else{if(!k[c])return s?t:{};o=la(t,c,u)}}i||(i=new Ot);var f=i.get(t);if(f)return f;i.set(t,o),va(t)?t.forEach(function(p){o.add(ve(p,e,r,p,t,i))}):da(t)&&t.forEach(function(p,_){o.set(_,ve(p,e,r,_,t,i))});var d=Xs,h=a?void 0:d(t);return Oo(h||t,function(p,_){h&&(_=p,p=t[_]),Ls(o,_,ve(p,e,r,_,t,i))}),o}var ja=1,$a=4;function vt(t){return ve(t,ja|$a)}var Ka=Object.create,si=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,Sr=Object.getOwnPropertyNames,za=Object.getPrototypeOf,qa=Object.prototype.hasOwnProperty,Ga=(t,e)=>function(){return t&&(e=(0,t[Sr(t)[0]])(t=0)),e},Wa=(t,e)=>function(){return e||(0,t[Sr(t)[0]])((e={exports:{}}).exports,e),e.exports},Ya=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Sr(e))!qa.call(t,s)&&s!==r&&si(t,s,{get:()=>e[s],enumerable:!(n=Ha(e,s))||n.enumerable});return t},Za=(t,e,r)=>(r=t!=null?Ka(za(t)):{},Ya(si(r,"default",{value:t,enumerable:!0}),t)),ae=Ga({"../../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"(){}}),Ja=Wa({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(t,e){ae(),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,f=>new Date(f)),o.set(Map,(f,d)=>new Map(a(Array.from(f),d))),o.set(Set,(f,d)=>new Set(a(Array.from(f),d))),i.constructorHandlers)for(const f of i.constructorHandlers)o.set(f[0],f[1]);let u=null;return i.proto?l:c;function a(f,d){const h=Object.keys(f),p=new Array(h.length);for(let _=0;_<h.length;_++){const E=h[_],b=f[E];typeof b!="object"||b===null?p[E]=b:b.constructor!==Object&&(u=o.get(b.constructor))?p[E]=u(b,d):ArrayBuffer.isView(b)?p[E]=r(b):p[E]=d(b)}return p}function c(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return a(f,c);if(f.constructor!==Object&&(u=o.get(f.constructor)))return u(f,c);const d={};for(const h in f){if(Object.hasOwnProperty.call(f,h)===!1)continue;const p=f[h];typeof p!="object"||p===null?d[h]=p:p.constructor!==Object&&(u=o.get(p.constructor))?d[h]=u(p,c):ArrayBuffer.isView(p)?d[h]=r(p):d[h]=c(p)}return d}function l(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return a(f,l);if(f.constructor!==Object&&(u=o.get(f.constructor)))return u(f,l);const d={};for(const h in f){const p=f[h];typeof p!="object"||p===null?d[h]=p:p.constructor!==Object&&(u=o.get(p.constructor))?d[h]=u(p,l):ArrayBuffer.isView(p)?d[h]=r(p):d[h]=l(p)}return d}}function s(i){const o=[],u=[],a=new Map;if(a.set(Date,h=>new Date(h)),a.set(Map,(h,p)=>new Map(l(Array.from(h),p))),a.set(Set,(h,p)=>new Set(l(Array.from(h),p))),i.constructorHandlers)for(const h of i.constructorHandlers)a.set(h[0],h[1]);let c=null;return i.proto?d:f;function l(h,p){const _=Object.keys(h),E=new Array(_.length);for(let b=0;b<_.length;b++){const I=_[b],C=h[I];if(typeof C!="object"||C===null)E[I]=C;else if(C.constructor!==Object&&(c=a.get(C.constructor)))E[I]=c(C,p);else if(ArrayBuffer.isView(C))E[I]=r(C);else{const j=o.indexOf(C);j!==-1?E[I]=u[j]:E[I]=p(C)}}return E}function f(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return l(h,f);if(h.constructor!==Object&&(c=a.get(h.constructor)))return c(h,f);const p={};o.push(h),u.push(p);for(const _ in h){if(Object.hasOwnProperty.call(h,_)===!1)continue;const E=h[_];if(typeof E!="object"||E===null)p[_]=E;else if(E.constructor!==Object&&(c=a.get(E.constructor)))p[_]=c(E,f);else if(ArrayBuffer.isView(E))p[_]=r(E);else{const b=o.indexOf(E);b!==-1?p[_]=u[b]:p[_]=f(E)}}return o.pop(),u.pop(),p}function d(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return l(h,d);if(h.constructor!==Object&&(c=a.get(h.constructor)))return c(h,d);const p={};o.push(h),u.push(p);for(const _ in h){const E=h[_];if(typeof E!="object"||E===null)p[_]=E;else if(E.constructor!==Object&&(c=a.get(E.constructor)))p[_]=c(E,d);else if(ArrayBuffer.isView(E))p[_]=r(E);else{const b=o.indexOf(E);b!==-1?p[_]=u[b]:p[_]=d(E)}}return o.pop(),u.pop(),p}}}});ae();ae();ae();var ii=typeof navigator<"u",T=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof T.chrome<"u"&&T.chrome.devtools;ii&&(T.self,T.top);var fn;typeof navigator<"u"&&((fn=navigator.userAgent)==null||fn.toLowerCase().includes("electron"));ae();var Xa=Za(Ja()),Qa=/(?:^|[-_/])(\w)/g;function tc(t,e){return e?e.toUpperCase():""}function ec(t){return t&&`${t}`.replace(Qa,tc)}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 hn=(0,Xa.default)({circles:!0});const nc={trailing:!0};function Lt(t,e=25,r={}){if(r={...nc,...r},!Number.isFinite(e))throw new TypeError("Expected `wait` to be a finite number");let n,s,i=[],o,u;const a=(c,l)=>(o=sc(t,c,l),o.finally(()=>{if(o=null,r.trailing&&u&&!s){const f=a(c,u);return u=null,f}}),o);return function(...c){return o?(r.trailing&&(u=c),o):new Promise(l=>{const f=!s&&r.leading;clearTimeout(s),s=setTimeout(()=>{s=null;const d=r.leading?n:a(this,c);for(const h of i)h(d);i=[]},e),f?(n=a(this,c),l(n)):i.push(l)})}}async function sc(t,e,r){return await t.apply(e,r)}function er(t,e={},r){for(const n in t){const s=t[n],i=r?`${r}:${n}`:n;typeof s=="object"&&s!==null?er(s,e,i):typeof s=="function"&&(e[i]=s)}return e}const ic={run:t=>t()},oc=()=>ic,oi=typeof console.createTask<"u"?console.createTask:oc;function uc(t,e){const r=e.shift(),n=oi(r);return t.reduce((s,i)=>s.then(()=>n.run(()=>i(...e))),Promise.resolve())}function ac(t,e){const r=e.shift(),n=oi(r);return Promise.all(t.map(s=>n.run(()=>s(...e))))}function Ue(t,e){for(const r of[...t])r(e)}class cc{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=er(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=er(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(uc,e,...r)}callHookParallel(e,...r){return r.unshift(e),this.callHookWith(ac,e,...r)}callHookWith(e,r,...n){const s=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&Ue(this._before,s);const i=e(r in this._hooks?[...this._hooks[r]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&s&&Ue(this._after,s)}):(this._after&&s&&Ue(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 ui(){return new cc}var lc=Object.create,ai=Object.defineProperty,fc=Object.getOwnPropertyDescriptor,Ar=Object.getOwnPropertyNames,hc=Object.getPrototypeOf,dc=Object.prototype.hasOwnProperty,pc=(t,e)=>function(){return t&&(e=(0,t[Ar(t)[0]])(t=0)),e},ci=(t,e)=>function(){return e||(0,t[Ar(t)[0]])((e={exports:{}}).exports,e),e.exports},gc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ar(e))!dc.call(t,s)&&s!==r&&ai(t,s,{get:()=>e[s],enumerable:!(n=fc(e,s))||n.enumerable});return t},vc=(t,e,r)=>(r=t!=null?lc(hc(t)):{},gc(ai(r,"default",{value:t,enumerable:!0}),t)),v=pc({"../../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"(){}}),yc=ci({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(t,e){v(),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(""),l=[".","!","~","*","'","(",")"].join(""),f=function(E,b){var I="-",C="",j="",Q=!0,w={},O,tt,F,S,m,P,B,W,Dt,et,R,it,M,It,lt="";if(typeof E!="string")return"";if(typeof b=="string"&&(I=b),B=u.en,W=o.en,typeof b=="object"){O=b.maintainCase||!1,w=b.custom&&typeof b.custom=="object"?b.custom:w,F=+b.truncate>1&&b.truncate||!1,S=b.uric||!1,m=b.uricNoSlash||!1,P=b.mark||!1,Q=!(b.symbols===!1||b.lang===!1),I=b.separator||I,S&&(lt+=a),m&&(lt+=c),P&&(lt+=l),B=b.lang&&u[b.lang]&&Q?u[b.lang]:Q?u.en:{},W=b.lang&&o[b.lang]?o[b.lang]:b.lang===!1||b.lang===!0?{}:o.en,b.titleCase&&typeof b.titleCase.length=="number"&&Array.prototype.toString.call(b.titleCase)?(b.titleCase.forEach(function(rt){w[rt+""]=rt+""}),tt=!0):tt=!!b.titleCase,b.custom&&typeof b.custom.length=="number"&&Array.prototype.toString.call(b.custom)&&b.custom.forEach(function(rt){w[rt+""]=rt+""}),Object.keys(w).forEach(function(rt){var Gt;rt.length>1?Gt=new RegExp("\\b"+h(rt)+"\\b","gi"):Gt=new RegExp(h(rt),"gi"),E=E.replace(Gt,w[rt])});for(R in w)lt+=R}for(lt+=I,lt=h(lt),E=E.replace(/(^\s+|\s+$)/g,""),M=!1,It=!1,et=0,it=E.length;et<it;et++)R=E[et],p(R,w)?M=!1:W[R]?(R=M&&W[R].match(/[A-Za-z0-9]/)?" "+W[R]:W[R],M=!1):R in n?(et+1<it&&s.indexOf(E[et+1])>=0?(j+=R,R=""):It===!0?(R=i[j]+n[R],j=""):R=M&&n[R].match(/[A-Za-z0-9]/)?" "+n[R]:n[R],M=!1,It=!1):R in i?(j+=R,R="",et===it-1&&(R=i[j]),It=!0):B[R]&&!(S&&a.indexOf(R)!==-1)&&!(m&&c.indexOf(R)!==-1)?(R=M||C.substr(-1).match(/[A-Za-z0-9]/)?I+B[R]:B[R],R+=E[et+1]!==void 0&&E[et+1].match(/[A-Za-z0-9]/)?I:"",M=!0):(It===!0?(R=i[j]+R,j="",It=!1):M&&(/[A-Za-z0-9]/.test(R)||C.substr(-1).match(/A-Za-z0-9]/))&&(R=" "+R),M=!1),C+=R.replace(new RegExp("[^\\w\\s"+lt+"_-]","g"),I);return tt&&(C=C.replace(/(\w)(\S*)/g,function(rt,Gt,zr){var Fe=Gt.toUpperCase()+(zr!==null?zr:"");return Object.keys(w).indexOf(Fe.toLowerCase())<0?Fe:Fe.toLowerCase()})),C=C.replace(/\s+/g,I).replace(new RegExp("\\"+I+"+","g"),I).replace(new RegExp("(^\\"+I+"+|\\"+I+"+$)","g"),""),F&&C.length>F&&(Dt=C.charAt(F)===I,C=C.slice(0,F),Dt||(C=C.slice(0,C.lastIndexOf(I)))),!O&&!tt&&(C=C.toLowerCase()),C},d=function(E){return function(I){return f(I,E)}},h=function(E){return E.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},p=function(_,E){for(var b in E)if(E[b]===_)return!0};if(typeof e<"u"&&e.exports)e.exports=f,e.exports.createSlug=d;else if(typeof define<"u"&&define.amd)define([],function(){return f});else try{if(r.getSlug||r.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";r.getSlug=f,r.createSlug=d}catch{}}(t)}}),_c=ci({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(t,e){v(),e.exports=yc()}});v();v();v();v();v();v();v();v();function Ec(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 mc(t){const e=t.__file;if(e)return ec(rc(e,".vue"))}function dn(t,e){return t.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=e,e}function wr(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 li(t){var e,r;const n=(e=t.subTree)==null?void 0:e.type,s=wr(t);return s?((r=s==null?void 0:s.types)==null?void 0:r.Fragment)===n:!1}function Pe(t){var e,r,n;const s=Ec((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 dn(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 dn(t,o);const i=mc((t==null?void 0:t.type)||{});return i||"Anonymous Component"}function bc(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 rr(t,e){return e=e||`${t.id}:root`,t.instanceMap.get(e)||t.instanceMap.get(":root")}function Tc(){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 ce;function Sc(t){return ce||(ce=document.createRange()),ce.selectNode(t),ce.getBoundingClientRect()}function Ac(t){const e=Tc();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=St(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=Sc(o))}i&&wc(e,i)}return e}function wc(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 pn={top:0,left:0,right:0,bottom:0,width:0,height:0};function St(t){const e=t.subTree.el;return typeof window>"u"?pn:li(t)?Ac(t.subTree):(e==null?void 0:e.nodeType)===1?e==null?void 0:e.getBoundingClientRect():t.subTree.component?St(t.subTree.component):pn}v();function Or(t){return li(t)?Oc(t.subTree):t.subTree?[t.subTree.el]:[]}function Oc(t){if(!t.children)return[];const e=[];return t.children.forEach(r=>{r.component?e.push(...Or(r.component)):r!=null&&r.el&&e.push(r.el)}),e}var fi="__vue-devtools-component-inspector__",hi="__vue-devtools-component-inspector__card__",di="__vue-devtools-component-inspector__name__",pi="__vue-devtools-component-inspector__indicator__",gi={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},Dc={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)"},Ic={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function Kt(){return document.getElementById(fi)}function Cc(){return document.getElementById(hi)}function Rc(){return document.getElementById(pi)}function xc(){return document.getElementById(di)}function Dr(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 Ir(t){var e;const r=document.createElement("div");r.id=(e=t.elementId)!=null?e:fi,Object.assign(r.style,{...gi,...Dr(t.bounds),...t.style});const n=document.createElement("span");n.id=hi,Object.assign(n.style,{...Dc,top:t.bounds.top<35?0:"-35px"});const s=document.createElement("span");s.id=di,s.innerHTML=`&lt;${t.name}&gt;&nbsp;&nbsp;`;const i=document.createElement("i");return i.id=pi,i.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`,Object.assign(i.style,Ic),n.appendChild(s),n.appendChild(i),r.appendChild(n),document.body.appendChild(r),r}function Cr(t){const e=Kt(),r=Cc(),n=xc(),s=Rc();e&&(Object.assign(e.style,{...gi,...Dr(t.bounds)}),Object.assign(r.style,{top:t.bounds.top<35?0:"-35px"}),n.innerHTML=`&lt;${t.name}&gt;&nbsp;&nbsp;`,s.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`)}function Pc(t){const e=St(t);if(!e.width&&!e.height)return;const r=Pe(t);Kt()?Cr({bounds:e,name:r}):Ir({bounds:e,name:r})}function vi(){const t=Kt();t&&(t.style.display="none")}var nr=null;function sr(t){const e=t.target;if(e){const r=e.__vueParentComponent;if(r&&(nr=r,r.vnode.el)){const s=St(r),i=Pe(r);Kt()?Cr({bounds:s,name:i}):Ir({bounds:s,name:i})}}}function kc(t,e){if(t.preventDefault(),t.stopPropagation(),nr){const r=bc(nr);e(r)}}var Oe=null;function Nc(){vi(),window.removeEventListener("mouseover",sr),window.removeEventListener("click",Oe,!0),Oe=null}function Vc(){return window.addEventListener("mouseover",sr),new Promise(t=>{function e(r){r.preventDefault(),r.stopPropagation(),kc(r,n=>{window.removeEventListener("click",e,!0),Oe=null,window.removeEventListener("mouseover",sr);const s=Kt();s&&(s.style.display="none"),t(JSON.stringify({id:n}))})}Oe=e,window.addEventListener("click",e,!0)})}function Bc(t){const e=rr(q.value,t.id);if(e){const[r]=Or(e);if(typeof r.scrollIntoView=="function")r.scrollIntoView({behavior:"smooth"});else{const n=St(e),s=document.createElement("div"),i={...Dr(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=St(e);if(n.width||n.height){const s=Pe(e),i=Kt();i?Cr({...t,name:s,bounds:n}):Ir({...t,name:s,bounds:n}),setTimeout(()=>{i&&(i.style.display="none")},1500)}},1200)}}v();var gn,vn;(vn=(gn=T).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(gn.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function Mc(t){let e=0;const r=setInterval(()=>{T.__VUE_INSPECTOR__&&(clearInterval(r),e+=30,t()),e>=5e3&&clearInterval(r)},30)}function Fc(){const t=T.__VUE_INSPECTOR__,e=t.openInEditor;t.openInEditor=async(...r)=>{t.disable(),e(...r)}}function Lc(){return new Promise(t=>{function e(){Fc(),t(T.__VUE_INSPECTOR__)}T.__VUE_INSPECTOR__?e():Mc(()=>{e()})})}v();v();function Uc(t){return!!(t&&t.__v_isReadonly)}function yi(t){return Uc(t)?yi(t.__v_raw):!!(t&&t.__v_isReactive)}function je(t){return!!(t&&t.__v_isRef===!0)}function Wt(t){const e=t&&t.__v_raw;return e?Wt(e):t}var jc=class{constructor(){this.refEditor=new $c}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):Wt(e)instanceof Map?e.delete(r):Wt(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):Wt(e)instanceof Map?e.set(t.newKey||r,n):Wt(e)instanceof Set?e.add(n):e[t.newKey||r]=n}}}},$c=class{set(t,e){if(je(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 je(t)?t.value:t}isRef(t){return je(t)||yi(t)}};v();v();v();var Kc="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Hc(){if(!ii||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const t=localStorage.getItem(Kc);return t?JSON.parse(t):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}v();v();v();var yn,_n;(_n=(yn=T).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(yn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var zc=new Proxy(T.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(t,e,r){return Reflect.get(t,e,r)}});function qc(t,e){$.timelineLayersState[e.id]=!1,zc.push({...t,descriptorId:e.id,appRecord:wr(e.app)})}var En,mn;(mn=(En=T).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(En.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Rr=new Proxy(T.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(t,e,r){return Reflect.get(t,e,r)}}),_i=Lt(()=>{Ht.hooks.callHook("sendInspectorToClient",Ei())});function Gc(t,e){var r,n;Rr.push({options:t,descriptor:e,treeFilterPlaceholder:(r=t.treeFilterPlaceholder)!=null?r:"Search tree...",stateFilterPlaceholder:(n=t.stateFilterPlaceholder)!=null?n:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:wr(e.app)}),_i()}function Ei(){return Rr.filter(t=>t.descriptor.app===q.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 ye(t,e){return Rr.find(r=>r.options.id===t&&(e?r.descriptor.app===e:!0))}function Wc(){const t=ui();t.hook("addInspector",({inspector:n,plugin:s})=>{Gc(n,s.descriptor)});const e=Lt(async({inspectorId:n,plugin:s})=>{var i;if(!n||!((i=s==null?void 0:s.descriptor)!=null&&i.app)||$.highPerfModeEnabled)return;const o=ye(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(l=>l(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=Lt(async({inspectorId:n,plugin:s})=>{var i;if(!n||!((i=s==null?void 0:s.descriptor)!=null&&i.app)||$.highPerfModeEnabled)return;const o=ye(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 l=>{await Promise.all(l.map(f=>f(u,a))),c()},"getInspectorState")}),t.callHookWith(async c=>{await Promise.all(c.map(l=>l({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=ye(n,i.descriptor.app);o&&(o.selectedNodeId=s)}),t.hook("timelineLayerAdded",({options:n,plugin:s})=>{qc(n,s.descriptor)}),t.hook("timelineEventAdded",({options:n,plugin:s})=>{var i;const o=["performance","component-event","keyboard","mouse"];$.highPerfModeEnabled||!((i=$.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})=>St(n)),t.hook("getComponentName",({instance:n})=>Pe(n)),t.hook("componentHighlight",({uid:n})=>{const s=q.value.instanceMap.get(n);s&&Pc(s)}),t.hook("componentUnhighlight",()=>{vi()}),t}var bn,Tn;(Tn=(bn=T).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(bn.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var Sn,An;(An=(Sn=T).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(Sn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var wn,On;(On=(wn=T).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(wn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var Dn,In;(In=(Dn=T).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(Dn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var Cn,Rn;(Rn=(Cn=T).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(Cn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var bt="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Yc(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Hc()}}var xn,Pn;(Pn=(xn=T)[bt])!=null||(xn[bt]=Yc());var Zc=Lt(t=>{Ht.hooks.callHook("devtoolsStateUpdated",{state:t})});Lt((t,e)=>{Ht.hooks.callHook("devtoolsConnectedUpdated",{state:t,oldState:e})});var ke=new Proxy(T.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(t,e,r){return e==="value"?T.__VUE_DEVTOOLS_KIT_APP_RECORDS__:T.__VUE_DEVTOOLS_KIT_APP_RECORDS__[e]}}),q=new Proxy(T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(t,e,r){return e==="value"?T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:e==="id"?T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[e]}});function mi(){Zc({...T[bt],appRecords:ke.value,activeAppRecordId:q.id,tabs:T.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:T.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Jc(t){T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=t,mi()}function Xc(t){T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=t,mi()}var $=new Proxy(T[bt],{get(t,e){return e==="appRecords"?ke:e==="activeAppRecordId"?q.id:e==="tabs"?T.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:e==="commands"?T.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:T[bt][e]},deleteProperty(t,e){return delete t[e],!0},set(t,e,r){return{...T[bt]},t[e]=r,T[bt][e]=r,!0}});function Qc(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,"\\\\"),l=(r=(e=window.VUE_DEVTOOLS_CONFIG)==null?void 0:e.openInEditorHost)!=null?r:"/";fetch(`${l}__open-in-editor?file=${encodeURI(s)}`).then(f=>{if(!f.ok){const d=`Opening component ${c} failed`;console.log(`%c${d}`,"color:red")}})}else if($.vitePluginDetected){const c=(n=T.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?n:o;T.__VUE_INSPECTOR__.openInEditor(c,s,u,a)}}}v();v();v();v();v();var kn,Nn;(Nn=(kn=T).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(kn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var xr=new Proxy(T.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(t,e,r){return Reflect.get(t,e,r)}});function ir(t){const e={};return Object.keys(t).forEach(r=>{e[r]=t[r].defaultValue}),e}function Pr(t){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${t}__`}function tl(t){var e,r,n;const s=(r=(e=xr.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 bi(t,e){var r,n,s;const i=Pr(t);if(i){const o=localStorage.getItem(i);if(o)return JSON.parse(o)}if(t){const o=(n=(r=xr.find(u=>u[0].id===t))==null?void 0:r[0])!=null?n:null;return ir((s=o==null?void 0:o.settings)!=null?s:{})}return ir(e)}function el(t,e){const r=Pr(t);localStorage.getItem(r)||localStorage.setItem(r,JSON.stringify(ir(e)))}function rl(t,e,r){const n=Pr(t),s=localStorage.getItem(n),i=JSON.parse(s||"{}"),o={...i,[e]:r};localStorage.setItem(n,JSON.stringify(o)),Ht.hooks.callHookWith(u=>{u.forEach(a=>a({pluginId:t,key:e,oldValue:i[e],newValue:r,settings:o}))},"setPluginSettings")}v();v();v();v();v();v();v();v();v();v();v();var Vn,Bn,G=(Bn=(Vn=T).__VUE_DEVTOOLS_HOOK)!=null?Bn:Vn.__VUE_DEVTOOLS_HOOK=ui(),nl={vueAppInit(t){G.hook("app:init",t)},vueAppUnmount(t){G.hook("app:unmount",t)},vueAppConnected(t){G.hook("app:connected",t)},componentAdded(t){return G.hook("component:added",t)},componentEmit(t){return G.hook("component:emit",t)},componentUpdated(t){return G.hook("component:updated",t)},componentRemoved(t){return G.hook("component:removed",t)},setupDevtoolsPlugin(t){G.hook("devtools-plugin:setup",t)},perfStart(t){return G.hook("perf:start",t)},perfEnd(t){return G.hook("perf:end",t)}},Ti={on:nl,setupDevToolsPlugin(t,e){return G.callHook("devtools-plugin:setup",t,e)}},sl=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($.highPerfModeEnabled)return;const r=Ei().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];G.callHook("component:updated",...n)}else G.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&&el(t.id,this.plugin.descriptor.settings)}sendInspectorTree(t){$.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:t,plugin:this.plugin})}sendInspectorState(t){$.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 $.highPerfModeEnabled?0:Date.now()}addTimelineLayer(t){this.hooks.callHook("timelineLayerAdded",{options:t,plugin:this.plugin})}addTimelineEvent(t){$.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:t,plugin:this.plugin})}getSettings(t){return bi(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")}},il=sl;v();v();v();v();var ol="__vue_devtool_undefined__",ul="__vue_devtool_infinity__",al="__vue_devtool_negative_infinity__",cl="__vue_devtool_nan__";v();v();var ll={[ol]:"undefined",[cl]:"NaN",[ul]:"Infinity",[al]:"-Infinity"};Object.entries(ll).reduce((t,[e,r])=>(t[r]=e,t),{});v();v();v();v();v();var Mn,Fn;(Fn=(Mn=T).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(Mn.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function Si(t,e){return Ti.setupDevToolsPlugin(t,e)}function fl(t,e){const[r,n]=t;if(r.app!==e)return;const s=new il({plugin:{setupFn:n,descriptor:r},ctx:Ht});r.packageName==="vuex"&&s.on.editInspectorState(i=>{s.sendInspectorState(i.inspectorId)}),n(s)}function Ai(t,e){T.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(t)||$.highPerfModeEnabled&&!(e!=null&&e.inspectingComponent)||(T.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(t),xr.forEach(r=>{fl(r,t)}))}v();v();var ee="__VUE_DEVTOOLS_ROUTER__",Ut="__VUE_DEVTOOLS_ROUTER_INFO__",Ln,Un;(Un=(Ln=T)[Ut])!=null||(Ln[Ut]={currentRoute:null,routes:[]});var jn,$n;($n=(jn=T)[ee])!=null||(jn[ee]={});new Proxy(T[Ut],{get(t,e){return T[Ut][e]}});new Proxy(T[ee],{get(t,e){if(e==="value")return T[ee]}});function hl(t){const e=new Map;return((t==null?void 0:t.getRoutes())||[]).filter(r=>!e.has(r.path)&&e.set(r.path,1))}function kr(t){return t.map(e=>{let{path:r,name:n,children:s,meta:i}=e;return s!=null&&s.length&&(s=kr(s)),{path:r,name:n,children:s,meta:i}})}function dl(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:kr(o)}}return t}function pl(t,e){function r(){var n;const s=(n=t.app)==null?void 0:n.config.globalProperties.$router,i=dl(s==null?void 0:s.currentRoute.value),o=kr(hl(s)),u=console.warn;console.warn=()=>{},T[Ut]={currentRoute:i?hn(i):{},routes:hn(o)},T[ee]=s,console.warn=u}r(),Ti.on.componentUpdated(Lt(()=>{var n;((n=e.value)==null?void 0:n.app)===t.app&&(r(),!$.highPerfModeEnabled&&Ht.hooks.callHook("routerInfoUpdated",{state:T[Ut]}))},200))}function gl(t){return{async getInspectorTree(e){const r={...e,app:q.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:q.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 jc,n={...e,app:q.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=ye(e);t.callHook("sendInspectorState",{inspectorId:e,plugin:{descriptor:r.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Vc()},cancelInspectComponentInspector(){return Nc()},getComponentRenderCode(e){const r=rr(q.value,e);if(r)return typeof(r==null?void 0:r.type)!="function"?r.render.toString():r.type.toString()},scrollToComponent(e){return Bc({id:e})},openInEditor:Qc,getVueInspector:Lc,toggleApp(e,r){const n=ke.value.find(s=>s.id===e);n&&(Xc(e),Jc(n),pl(n,q),_i(),Ai(n.app,r))},inspectDOM(e){const r=rr(q.value,e);if(r){const[n]=Or(r);n&&(T.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=n)}},updatePluginSettings(e,r,n){rl(e,r,n)},getPluginSettings(e){return{options:tl(e),values:bi(e)}}}}v();var Kn,Hn;(Hn=(Kn=T).__VUE_DEVTOOLS_ENV__)!=null||(Kn.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var zn=Wc(),qn,Gn;(Gn=(qn=T).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(qn.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:zn,get state(){return{...$,activeAppRecordId:q.id,activeAppRecord:q.value,appRecords:ke.value}},api:gl(zn)});var Ht=T.__VUE_DEVTOOLS_KIT_CONTEXT__;v();vc(_c());var Wn,Yn;(Yn=(Wn=T).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null||(Wn.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set});v();v();function vl(t){$.highPerfModeEnabled=t??!$.highPerfModeEnabled,!t&&q.value&&Ai(q.value.app)}v();v();v();function yl(t){$.devtoolsClientDetected={...$.devtoolsClientDetected,...t};const e=Object.values($.devtoolsClientDetected).some(Boolean);vl(!e)}var Zn,Jn;(Jn=(Zn=T).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(Zn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=yl);v();v();v();v();v();v();v();var _l=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()}},wi=class{constructor(t){this.generateIdentifier=t,this.kv=new _l}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)}},El=class extends wi{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)}};v();v();function ml(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 bl(t,e){const r=ml(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 jt(t,e){Object.entries(t).forEach(([r,n])=>e(n,r))}function _e(t,e){return t.indexOf(e)!==-1}function Xn(t,e){for(let r=0;r<t.length;r++){const n=t[r];if(e(n))return n}}var Tl=class{constructor(){this.transfomers={}}register(t){this.transfomers[t.name]=t}findApplicable(t){return bl(this.transfomers,e=>e.isApplicable(t))}findByName(t){return this.transfomers[t]}};v();v();var Sl=t=>Object.prototype.toString.call(t).slice(8,-1),Oi=t=>typeof t>"u",Al=t=>t===null,re=t=>typeof t!="object"||t===null||t===Object.prototype?!1:Object.getPrototypeOf(t)===null?!0:Object.getPrototypeOf(t)===Object.prototype,or=t=>re(t)&&Object.keys(t).length===0,yt=t=>Array.isArray(t),wl=t=>typeof t=="string",Ol=t=>typeof t=="number"&&!isNaN(t),Dl=t=>typeof t=="boolean",Il=t=>t instanceof RegExp,ne=t=>t instanceof Map,se=t=>t instanceof Set,Di=t=>Sl(t)==="Symbol",Cl=t=>t instanceof Date&&!isNaN(t.valueOf()),Rl=t=>t instanceof Error,Qn=t=>typeof t=="number"&&isNaN(t),xl=t=>Dl(t)||Al(t)||Oi(t)||Ol(t)||wl(t)||Di(t),Pl=t=>typeof t=="bigint",kl=t=>t===1/0||t===-1/0,Nl=t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),Vl=t=>t instanceof URL;v();var Ii=t=>t.replace(/\./g,"\\."),$e=t=>t.map(String).map(Ii).join("."),te=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};v();function ot(t,e,r,n){return{isApplicable:t,annotation:e,transform:r,untransform:n}}var Ci=[ot(Oi,"undefined",()=>null,()=>{}),ot(Pl,"bigint",t=>t.toString(),t=>typeof BigInt<"u"?BigInt(t):(console.error("Please add a BigInt polyfill."),t)),ot(Cl,"Date",t=>t.toISOString(),t=>new Date(t)),ot(Rl,"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}),ot(Il,"regexp",t=>""+t,t=>{const e=t.slice(1,t.lastIndexOf("/")),r=t.slice(t.lastIndexOf("/")+1);return new RegExp(e,r)}),ot(se,"set",t=>[...t.values()],t=>new Set(t)),ot(ne,"map",t=>[...t.entries()],t=>new Map(t)),ot(t=>Qn(t)||kl(t),"number",t=>Qn(t)?"NaN":t>0?"Infinity":"-Infinity",Number),ot(t=>t===0&&1/t===-1/0,"number",()=>"-0",Number),ot(Vl,"URL",t=>t.toString(),t=>new URL(t))];function Ne(t,e,r,n){return{isApplicable:t,annotation:e,transform:r,untransform:n}}var Ri=Ne((t,e)=>Di(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}),Bl=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((t,e)=>(t[e.name]=e,t),{}),xi=Ne(Nl,t=>["typed-array",t.constructor.name],t=>[...t],(t,e)=>{const r=Bl[e[1]];if(!r)throw new Error("Trying to deserialize unknown typed array");return new r(t)});function Pi(t,e){return t!=null&&t.constructor?!!e.classRegistry.getIdentifier(t.constructor):!1}var ki=Ne(Pi,(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)}),Ni=Ne((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)}),Ml=[ki,Ri,Ni,xi],ts=(t,e)=>{const r=Xn(Ml,s=>s.isApplicable(t,e));if(r)return{value:r.transform(t,e),type:r.annotation(t,e)};const n=Xn(Ci,s=>s.isApplicable(t,e));if(n)return{value:n.transform(t,e),type:n.annotation}},Vi={};Ci.forEach(t=>{Vi[t.annotation]=t});var Fl=(t,e,r)=>{if(yt(e))switch(e[0]){case"symbol":return Ri.untransform(t,e,r);case"class":return ki.untransform(t,e,r);case"custom":return Ni.untransform(t,e,r);case"typed-array":return xi.untransform(t,e,r);default:throw new Error("Unknown transformation: "+e)}else{const n=Vi[e];if(!n)throw new Error("Unknown transformation: "+e);return n.untransform(t,r)}};v();var kt=(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 Bi(t){if(_e(t,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(_e(t,"prototype"))throw new Error("prototype is not allowed as a property");if(_e(t,"constructor"))throw new Error("constructor is not allowed as a property")}var Ll=(t,e)=>{Bi(e);for(let r=0;r<e.length;r++){const n=e[r];if(se(t))t=kt(t,+n);else if(ne(t)){const s=+n,i=+e[++r]==0?"key":"value",o=kt(t,s);switch(i){case"key":t=o;break;case"value":t=t.get(o);break}}else t=t[n]}return t},ur=(t,e,r)=>{if(Bi(e),e.length===0)return r(t);let n=t;for(let i=0;i<e.length-1;i++){const o=e[i];if(yt(n)){const u=+o;n=n[u]}else if(re(n))n=n[o];else if(se(n)){const u=+o;n=kt(n,u)}else if(ne(n)){if(i===e.length-2)break;const a=+o,c=+e[++i]==0?"key":"value",l=kt(n,a);switch(c){case"key":n=l;break;case"value":n=n.get(l);break}}}const s=e[e.length-1];if(yt(n)?n[+s]=r(n[+s]):re(n)&&(n[s]=r(n[s])),se(n)){const i=kt(n,+s),o=r(i);i!==o&&(n.delete(i),n.add(o))}if(ne(n)){const i=+e[e.length-2],o=kt(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 ar(t,e,r=[]){if(!t)return;if(!yt(t)){jt(t,(i,o)=>ar(i,e,[...r,...te(o)]));return}const[n,s]=t;s&&jt(s,(i,o)=>{ar(i,e,[...r,...te(o)])}),e(n,r)}function Ul(t,e,r){return ar(e,(n,s)=>{t=ur(t,s,i=>Fl(i,n,r))}),t}function jl(t,e){function r(n,s){const i=Ll(t,te(s));n.map(te).forEach(o=>{t=ur(t,o,()=>i)})}if(yt(e)){const[n,s]=e;n.forEach(i=>{t=ur(t,te(i),()=>t)}),s&&jt(s,r)}else jt(e,r);return t}var $l=(t,e)=>re(t)||yt(t)||ne(t)||se(t)||Pi(t,e);function Kl(t,e,r){const n=r.get(t);n?n.push(e):r.set(t,[e])}function Hl(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($e):r[$e(i)]=o.map($e)}),n?or(r)?[n]:[n,r]:or(r)?void 0:r}var Mi=(t,e,r,n,s=[],i=[],o=new Map)=>{var u;const a=xl(t);if(!a){Kl(t,s,e);const p=o.get(t);if(p)return n?{transformedValue:null}:p}if(!$l(t,r)){const p=ts(t,r),_=p?{transformedValue:p.value,annotations:[p.type]}:{transformedValue:t};return a||o.set(t,_),_}if(_e(i,t))return{transformedValue:null};const c=ts(t,r),l=(u=c==null?void 0:c.value)!=null?u:t,f=yt(l)?[]:{},d={};jt(l,(p,_)=>{if(_==="__proto__"||_==="constructor"||_==="prototype")throw new Error(`Detected property ${_}. This is a prototype pollution risk, please remove it from your object.`);const E=Mi(p,e,r,n,[...s,_],[...i,t],o);f[_]=E.transformedValue,yt(E.annotations)?d[_]=E.annotations:re(E.annotations)&&jt(E.annotations,(b,I)=>{d[Ii(_)+"."+I]=b})});const h=or(d)?{transformedValue:f,annotations:c?[c.type]:void 0}:{transformedValue:f,annotations:c?[c.type,d]:d};return a||o.set(t,h),h};v();v();function Fi(t){return Object.prototype.toString.call(t).slice(8,-1)}function es(t){return Fi(t)==="Array"}function zl(t){if(Fi(t)!=="Object")return!1;const e=Object.getPrototypeOf(t);return!!e&&e.constructor===Object&&e===Object.prototype}function ql(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 cr(t,e={}){if(es(t))return t.map(s=>cr(s,e));if(!zl(t))return t;const r=Object.getOwnPropertyNames(t),n=Object.getOwnPropertySymbols(t);return[...r,...n].reduce((s,i)=>{if(es(e.props)&&!e.props.includes(i))return s;const o=t[i],u=cr(o,e);return ql(s,i,u,t,e.nonenumerable),s},{})}var N=class{constructor({dedupe:t=!1}={}){this.classRegistry=new El,this.symbolRegistry=new wi(e=>{var r;return(r=e.description)!=null?r:""}),this.customTransformerRegistry=new Tl,this.allowedErrorProps=[],this.dedupe=t}serialize(t){const e=new Map,r=Mi(t,e,this,this.dedupe),n={json:r.transformedValue};r.annotations&&(n.meta={...n.meta,values:r.annotations});const s=Hl(e,this.dedupe);return s&&(n.meta={...n.meta,referentialEqualities:s}),n}deserialize(t){const{json:e,meta:r}=t;let n=cr(e);return r!=null&&r.values&&(n=Ul(n,r.values,this)),r!=null&&r.referentialEqualities&&(n=jl(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)}};N.defaultInstance=new N;N.serialize=N.defaultInstance.serialize.bind(N.defaultInstance);N.deserialize=N.defaultInstance.deserialize.bind(N.defaultInstance);N.stringify=N.defaultInstance.stringify.bind(N.defaultInstance);N.parse=N.defaultInstance.parse.bind(N.defaultInstance);N.registerClass=N.defaultInstance.registerClass.bind(N.defaultInstance);N.registerSymbol=N.defaultInstance.registerSymbol.bind(N.defaultInstance);N.registerCustom=N.defaultInstance.registerCustom.bind(N.defaultInstance);N.allowErrorProps=N.defaultInstance.allowErrorProps.bind(N.defaultInstance);v();v();v();v();v();v();v();v();v();v();v();v();v();v();v();v();v();v();v();v();v();v();v();var rs,ns;(ns=(rs=T).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(rs.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var ss,is;(is=(ss=T).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(ss.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var os,us;(us=(os=T).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(os.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var as,cs;(cs=(as=T).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(as.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var ls,fs;(fs=(ls=T).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||(ls.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var hs,ds;(ds=(hs=T).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(hs.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null);v();v();v();v();v();v();v();/*!
2
- * pinia v3.0.3
3
- * (c) 2025 Eduardo San Martin Morote
4
- * @license MIT
5
- */let Yt;const ie=t=>Yt=t,Li=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function At(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ut;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ut||(ut={}));const ht=typeof window<"u",ps=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 Gl(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 Nr(t,e,r){const n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){$i(n.response,e,r)},n.onerror=function(){console.error("could not download file")},n.send()}function Ui(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Ee(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 me=typeof navigator=="object"?navigator:{userAgent:""},ji=/Macintosh/.test(me.userAgent)&&/AppleWebKit/.test(me.userAgent)&&!/Safari/.test(me.userAgent),$i=ht?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!ji?Wl:"msSaveOrOpenBlob"in me?Yl:Zl:()=>{};function Wl(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?Ui(n.href)?Nr(t,e,r):(n.target="_blank",Ee(n)):Ee(n)):(n.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(n.href)},4e4),setTimeout(function(){Ee(n)},0))}function Yl(t,e="download",r){if(typeof t=="string")if(Ui(t))Nr(t,e,r);else{const n=document.createElement("a");n.href=t,n.target="_blank",setTimeout(function(){Ee(n)})}else navigator.msSaveOrOpenBlob(Gl(t,r),e)}function Zl(t,e,r,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),typeof t=="string")return Nr(t,e,r);const s=t.type==="application/octet-stream",i=/constructor/i.test(String(ps.HTMLElement))||"safari"in ps,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||s&&i||ji)&&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 K(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 Vr(t){return"_a"in t&&"install"in t}function Ki(){if(!("clipboard"in navigator))return K("Your browser doesn't support the Clipboard API","error"),!0}function Hi(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(K('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Jl(t){if(!Ki())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),K("Global state copied to clipboard.")}catch(e){if(Hi(e))return;K("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function Xl(t){if(!Ki())try{zi(t,JSON.parse(await navigator.clipboard.readText())),K("Global state pasted from clipboard.")}catch(e){if(Hi(e))return;K("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function Ql(t){try{$i(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){K("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let at;function tf(){at||(at=document.createElement("input"),at.type="file",at.accept=".json");function t(){return new Promise((e,r)=>{at.onchange=async()=>{const n=at.files;if(!n)return e(null);const s=n.item(0);return e(s?{text:await s.text(),file:s}:null)},at.oncancel=()=>e(null),at.onerror=r,at.click()})}return t}async function ef(t){try{const r=await tf()();if(!r)return;const{text:n,file:s}=r;zi(t,JSON.parse(n)),K(`Global state imported from "${s.name}".`)}catch(e){K("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function zi(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 nt(t){return{_custom:{display:t}}}const qi="🍍 Pinia (root)",be="_root";function rf(t){return Vr(t)?{id:be,label:qi}:{id:t.$id,label:t.$id}}function nf(t){if(Vr(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 sf(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:nt(t.type),key:nt(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function of(t){switch(t){case ut.direct:return"mutation";case ut.patchFunction:return"$patch";case ut.patchObject:return"$patch";default:return"unknown"}}let Nt=!0;const Te=[],mt="pinia:mutations",H="pinia",{assign:uf}=Object,De=t=>"🍍 "+t;function af(t,e){Si({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Te,app:t},r=>{typeof r.now!="function"&&K("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:mt,label:"Pinia 🍍",color:15064968}),r.addInspector({id:H,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Jl(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Xl(e),r.sendInspectorTree(H),r.sendInspectorState(H)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Ql(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await ef(e),r.sendInspectorTree(H),r.sendInspectorState(H)},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"?K(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),K(`Store "${n}" reset.`)):K(`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:De(o.$id),key:"state",editable:!0,value:o._isOptionsAPI?{_custom:{value:y.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:De(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===H){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()):qi.toLowerCase().includes(n.filter.toLowerCase())):s).map(rf)}}),globalThis.$pinia=e,r.on.getInspectorState(n=>{if(n.app===t&&n.inspectorId===H){const s=n.nodeId===be?e:e._s.get(n.nodeId);if(!s)return;s&&(n.nodeId!==be&&(globalThis.$store=y.toRaw(s)),n.state=nf(s))}}),r.on.editInspectorState(n=>{if(n.app===t&&n.inspectorId===H){const s=n.nodeId===be?e:e._s.get(n.nodeId);if(!s)return K(`store "${n.nodeId}" not found`,"error");const{path:i}=n;Vr(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),Nt=!1,n.set(s,i,n.state.value),Nt=!0}}),r.on.editComponentState(n=>{if(n.type.startsWith("🍍")){const s=n.type.replace(/^🍍\s*/,""),i=e._s.get(s);if(!i)return K(`store "${s}" not found`,"error");const{path:o}=n;if(o[0]!=="state")return K(`Invalid path for store "${s}":
6
- ${o}
7
- Only state can be modified.`);o[0]="$state",Nt=!1,n.set(i,o,n.state.value),Nt=!0}})})}function cf(t,e){Te.includes(De(e.$id))||Te.push(De(e.$id)),Si({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Te,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 l=Gi++;r.addTimelineEvent({layerId:mt,event:{time:n(),title:"🛫 "+a,subtitle:"start",data:{store:nt(e.$id),action:nt(a),args:c},groupId:l}}),o(f=>{dt=void 0,r.addTimelineEvent({layerId:mt,event:{time:n(),title:"🛬 "+a,subtitle:"end",data:{store:nt(e.$id),action:nt(a),args:c,result:f},groupId:l}})}),u(f=>{dt=void 0,r.addTimelineEvent({layerId:mt,event:{time:n(),logType:"error",title:"💥 "+a,subtitle:"end",data:{store:nt(e.$id),action:nt(a),args:c,error:f},groupId:l}})})},!0),e._customProperties.forEach(o=>{y.watch(()=>y.unref(e[o]),(u,a)=>{r.notifyComponentUpdate(),r.sendInspectorState(H),Nt&&r.addTimelineEvent({layerId:mt,event:{time:n(),title:"Change",subtitle:o,data:{newValue:u,oldValue:a},groupId:dt}})},{deep:!0})}),e.$subscribe(({events:o,type:u},a)=>{if(r.notifyComponentUpdate(),r.sendInspectorState(H),!Nt)return;const c={time:n(),title:of(u),data:uf({store:nt(e.$id)},sf(o)),groupId:dt};u===ut.patchFunction?c.subtitle="⤵️":u===ut.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:mt,event:c})},{detached:!0,flush:"sync"});const s=e._hotUpdate;e._hotUpdate=y.markRaw(o=>{s(o),r.addTimelineEvent({layerId:mt,event:{time:n(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:nt(e.$id),info:nt("HMR update")}}}),r.notifyComponentUpdate(),r.sendInspectorTree(H),r.sendInspectorState(H)});const{$dispose:i}=e;e.$dispose=()=>{i(),r.notifyComponentUpdate(),r.sendInspectorTree(H),r.sendInspectorState(H),r.getSettings().logStoreChanges&&K(`Disposed "${e.$id}" store 🗑`)},r.notifyComponentUpdate(),r.sendInspectorTree(H),r.sendInspectorState(H),r.getSettings().logStoreChanges&&K(`"${e.$id}" store installed 🆕`)})}let Gi=0,dt;function gs(t,e,r){const n=e.reduce((s,i)=>(s[i]=y.toRaw(t)[i],s),{});for(const s in n)t[s]=function(){const i=Gi,o=r?new Proxy(t,{get(...a){return dt=i,Reflect.get(...a)},set(...a){return dt=i,Reflect.set(...a)}}):t;dt=i;const u=n[s].apply(o,arguments);return dt=void 0,u}}function lf({app:t,store:e,options:r}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!r.state,!e._p._testing){gs(e,Object.keys(r.actions),e._isOptionsAPI);const n=e._hotUpdate;y.toRaw(e)._hotUpdate=function(s){n.apply(this,arguments),gs(e,Object.keys(s._hmrPayload.actions),!!e._isOptionsAPI)}}cf(t,e)}}function ff(){const t=y.effectScope(!0),e=t.run(()=>y.ref({}));let r=[],n=[];const s=y.markRaw({install(i){ie(s),s._a=i,i.provide(Li,s),i.config.globalProperties.$pinia=s,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ht&&af(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"&&ht&&typeof Proxy<"u"&&s.use(lf),s}function Wi(t,e){for(const r in e){const n=e[r];if(!(r in t))continue;const s=t[r];At(s)&&At(n)&&!y.isRef(n)&&!y.isReactive(n)?t[r]=Wi(s,n):t[r]=n}return t}const Yi=()=>{};function vs(t,e,r,n=Yi){t.push(e);const s=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),n())};return!r&&y.getCurrentScope()&&y.onScopeDispose(s),s}function Ct(t,...e){t.slice().forEach(r=>{r(...e)})}const hf=t=>t(),ys=Symbol(),Ke=Symbol();function lr(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];At(s)&&At(n)&&t.hasOwnProperty(r)&&!y.isRef(n)&&!y.isReactive(n)?t[r]=lr(s,n):t[r]=n}return t}const df=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function pf(t){return!At(t)||!Object.prototype.hasOwnProperty.call(t,df)}const{assign:Z}=Object;function _s(t){return!!(y.isRef(t)&&t.effect)}function Es(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 l=process.env.NODE_ENV!=="production"&&n?y.toRefs(y.ref(s?s():{}).value):y.toRefs(r.state.value[t]);return Z(l,i,Object.keys(o||{}).reduce((f,d)=>(process.env.NODE_ENV!=="production"&&d in l&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${d}" in store "${t}".`),f[d]=y.markRaw(y.computed(()=>{ie(r);const h=r._s.get(t);return o[d].call(h,h)})),f),{}))}return a=fr(t,c,e,r,n,!0),a}function fr(t,e,r={},n,s,i){let o;const u=Z({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=S=>{c?h=S:c==!1&&!O._hotUpdating&&(Array.isArray(h)?h.push(S):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,l,f=[],d=[],h;const p=n.state.value[t];!i&&!p&&(process.env.NODE_ENV==="production"||!s)&&(n.state.value[t]={});const _=y.ref({});let E;function b(S){let m;c=l=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof S=="function"?(S(n.state.value[t]),m={type:ut.patchFunction,storeId:t,events:h}):(lr(n.state.value[t],S),m={type:ut.patchObject,payload:S,storeId:t,events:h});const P=E=Symbol();y.nextTick().then(()=>{E===P&&(c=!0)}),l=!0,Ct(f,m,n.state.value[t])}const I=i?function(){const{state:m}=r,P=m?m():{};this.$patch(B=>{Z(B,P)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:Yi;function C(){o.stop(),f=[],d=[],n._s.delete(t)}const j=(S,m="")=>{if(ys in S)return S[Ke]=m,S;const P=function(){ie(n);const B=Array.from(arguments),W=[],Dt=[];function et(M){W.push(M)}function R(M){Dt.push(M)}Ct(d,{args:B,name:P[Ke],store:O,after:et,onError:R});let it;try{it=S.apply(this&&this.$id===t?this:O,B)}catch(M){throw Ct(Dt,M),M}return it instanceof Promise?it.then(M=>(Ct(W,M),M)).catch(M=>(Ct(Dt,M),Promise.reject(M))):(Ct(W,it),it)};return P[ys]=!0,P[Ke]=m,P},Q=y.markRaw({actions:{},getters:{},state:[],hotState:_}),w={_p:n,$id:t,$onAction:vs.bind(null,d),$patch:b,$reset:I,$subscribe(S,m={}){const P=vs(f,S,m.detached,()=>B()),B=o.run(()=>y.watch(()=>n.state.value[t],W=>{(m.flush==="sync"?l:c)&&S({storeId:t,type:ut.direct,events:h},W)},Z({},a,m)));return P},$dispose:C},O=y.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ht?Z({_hmrPayload:Q,_customProperties:y.markRaw(new Set)},w):w);n._s.set(t,O);const F=(n._a&&n._a.runWithContext||hf)(()=>n._e.run(()=>(o=y.effectScope()).run(()=>e({action:j}))));for(const S in F){const m=F[S];if(y.isRef(m)&&!_s(m)||y.isReactive(m))process.env.NODE_ENV!=="production"&&s?_.value[S]=y.toRef(F,S):i||(p&&pf(m)&&(y.isRef(m)?m.value=p[S]:lr(m,p[S])),n.state.value[t][S]=m),process.env.NODE_ENV!=="production"&&Q.state.push(S);else if(typeof m=="function"){const P=process.env.NODE_ENV!=="production"&&s?m:j(m,S);F[S]=P,process.env.NODE_ENV!=="production"&&(Q.actions[S]=m),u.actions[S]=m}else process.env.NODE_ENV!=="production"&&_s(m)&&(Q.getters[S]=i?r.getters[S]:m,ht&&(F._getters||(F._getters=y.markRaw([]))).push(S))}if(Z(O,F),Z(y.toRaw(O),F),Object.defineProperty(O,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?_.value:n.state.value[t],set:S=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");b(m=>{Z(m,S)})}}),process.env.NODE_ENV!=="production"&&(O._hotUpdate=y.markRaw(S=>{O._hotUpdating=!0,S._hmrPayload.state.forEach(m=>{if(m in O.$state){const P=S.$state[m],B=O.$state[m];typeof P=="object"&&At(P)&&At(B)?Wi(P,B):S.$state[m]=B}O[m]=y.toRef(S.$state,m)}),Object.keys(O.$state).forEach(m=>{m in S.$state||delete O[m]}),c=!1,l=!1,n.state.value[t]=y.toRef(S._hmrPayload,"hotState"),l=!0,y.nextTick().then(()=>{c=!0});for(const m in S._hmrPayload.actions){const P=S[m];O[m]=j(P,m)}for(const m in S._hmrPayload.getters){const P=S._hmrPayload.getters[m],B=i?y.computed(()=>(ie(n),P.call(O,O))):P;O[m]=B}Object.keys(O._hmrPayload.getters).forEach(m=>{m in S._hmrPayload.getters||delete O[m]}),Object.keys(O._hmrPayload.actions).forEach(m=>{m in S._hmrPayload.actions||delete O[m]}),O._hmrPayload=S._hmrPayload,O._getters=S._getters,O._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ht){const S={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(m=>{Object.defineProperty(O,m,Z({value:O[m]},S))})}return n._p.forEach(S=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ht){const m=o.run(()=>S({store:O,app:n._a,pinia:n,options:u}));Object.keys(m||{}).forEach(P=>O._customProperties.add(P)),Z(O,m)}else Z(O,o.run(()=>S({store:O,app:n._a,pinia:n,options:u})))}),process.env.NODE_ENV!=="production"&&O.$state&&typeof O.$state=="object"&&typeof O.$state.constructor=="function"&&!O.$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 "${O.$id}".`),p&&i&&r.hydrate&&r.hydrate(O.$state,p),c=!0,l=!0,O}/*! #__NO_SIDE_EFFECTS__ */function zt(t,e,r){let n;const s=typeof e=="function";n=s?r:e;function i(o,u){const a=y.hasInjectionContext();if(o=(process.env.NODE_ENV==="test"&&Yt&&Yt._testing?null:o)||(a?y.inject(Li,null):null),o&&ie(o),process.env.NODE_ENV!=="production"&&!Yt)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=Yt,o._s.has(t)||(s?fr(t,e,n,o):Es(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 l="__hot:"+t,f=s?fr(l,e,n,o,!0):Es(l,Z({},n),o,!0);u._hotUpdate(f),delete o.state.value[l],o._s.delete(l)}if(process.env.NODE_ENV!=="production"&&ht){const l=y.getCurrentInstance();if(l&&l.proxy&&!u){const f=l.proxy,d="_pStores"in f?f._pStores:f._pStores={};d[t]=c}}return c}return i.$id=t,i}function _t(t){const e=y.toRaw(t),r={};for(const n in e){const s=e[n];s.effect?r[n]=y.computed({get:()=>t[n],set(i){t[n]=i}}):(y.isRef(s)||y.isReactive(s))&&(r[n]=y.toRef(t,n))}return r}const gf=/"(?:_|\\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*:/,vf=/"(?: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*:/,yf=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function _f(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){Ef(t);return}return e}function Ef(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function mf(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(!yf.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(gf.test(t)||vf.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,_f)}return JSON.parse(t)}catch(n){if(e.strict)throw n;return t}}function bf(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 Br(t,e,r){if(r.length===0)return e;const n=r[0];return r.length>1&&(e=Br(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 Zi(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 Br(t,Zi(t[e[0]],Array.prototype.slice.call(e,1)),[e[0]])}function Ji(t,e){return e.map(r=>r.split(".")).map(r=>[r,bf(t,r)]).filter(r=>r[1]!==void 0).reduce((r,n)=>Br(r,n[1],n[0]),{})}function Xi(t,e){return e.map(r=>r.split(".")).reduce((r,n)=>Zi(r,n),t)}function ms(t,{storage:e,serializer:r,key:n,debug:s,pick:i,omit:o,beforeHydrate:u,afterHydrate:a},c,l=!0){try{l&&(u==null||u(c));const f=e.getItem(n);if(f){const d=r.deserialize(f),h=i?Ji(d,i):d,p=o?Xi(h,o):h;t.$patch(p)}l&&(a==null||a(c))}catch(f){s&&console.error("[pinia-plugin-persistedstate]",f)}}function bs(t,{storage:e,serializer:r,key:n,debug:s,pick:i,omit:o}){try{const u=i?Ji(t,i):t,a=o?Xi(u,o):u,c=r.serialize(a);e.setItem(n,c)}catch(u){s&&console.error("[pinia-plugin-persistedstate]",u)}}function Tf(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=>{ms(s,c,t,a)})},s.$persist=()=>{u.forEach(a=>{bs(s.$state,a)})},u.forEach(a=>{ms(s,a,t),s.$subscribe((c,l)=>bs(l,a),{detached:!0})})}function Sf(t={}){return function(e){Tf(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=>mf(n)},storage:r.storage??t.storage??window.localStorage,beforeHydrate:r.beforeHydrate,afterHydrate:r.afterHydrate,pick:r.pick,omit:r.omit}),t.auto??!1)}}var Af=Sf();const X=ff();X.use(Af);const Mr=zt("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"){}}}),Qi=zt("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}}}),Ve=zt("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}}}),wf=Ve(X),hr=Qi(X),{selectTitle:Ts}=_t(hr),Of=[],Fr=zt("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=vt(this.activeMenuPath);let e=(s=(n=Ts.value)==null?void 0:n.filter(l=>(l==null?void 0:l.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(l=>(l==null?void 0:l.value)===r)){t=(a=(u=t==null?void 0:t.split("/"))==null?void 0:u.filter((d,h)=>{var p;return h!==((p=t==null?void 0:t.split("/"))==null?void 0:p.length)-1}))==null?void 0:a.join("/");let l=(c=Ts.value)==null?void 0:c.map(d=>((d==null?void 0:d.condition)==="child"&&(d.value=r),d)),f=l==null?void 0:l.filter(d=>(d==null?void 0:d.condition)==="child");hr.setChooseTitle(f),hr.setSelectTitle(l),wf.setFreshContent(!0)}this.activeMenuPath=t},setActiveMenuOpenPaths(t){this.activeMenuOpenPaths=t},setRawMenus(t){this.rawMenus=t,this.permissionSideMenus=Of}}}),Lr=zt("authorityState",{state:()=>({routerPageStructures:[]}),actions:{setRouterPageStructure(t){this.routerPageStructures=t}}}),Df=Fr(X),{activeMenuPath:Se}=_t(Df),to=Mr(X),{structureData:If,loginUserInfo:He}=_t(to),Cf=Lr(X),{routerPageStructures:Rf}=_t(Cf),Ie=Ve(X),xf=y.ref([{label:"角色名称",value:"",name:"roleName"}]),Pf=y.ref([{label:"查询"},{label:"重置"}]),Ss=y.reactive({isFilter:!1,filterForm:{}}),kf=y.ref(!1),Nf=t=>{Ss.isFilter=!0,Ss.filterForm=t},eo=y.ref([]),dr=y.ref([]),ro=y.ref(""),Vf=y.computed(()=>{var e,r,n,s,i;const t=(e=Rf.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){ro.value=t.name,dr.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 Xt.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 l,f;return{...c,isTableColHidden:(l=c==null?void 0:c.prop)==null?void 0:l.includes("授权"),isFormColHidden:(f=c==null?void 0:c.prop)==null?void 0:f.includes("授权")}})}:u});return fo(o),o}return[]}),Bf=t=>{Ie.setRefreshCurStructure(!1),$r(t.singleContent,t.buttonName,Be.value,t==null?void 0:t.selectItems)},Vt=y.ref({}),Ur=y.ref(),oe=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 to.setLogRecordAsync({type:r,data:e},Se.value),A.ElMessage.success("保存成功"),Ie.setRefreshCurStructure(!0),i.data.result||((s=i==null?void 0:i.data)==null?void 0:s.code)===200):null}catch(i){A.ElMessage.error(i)}finally{Ie.setCacheUpdatingData(null)}},no=(t,e)=>{const r=[];for(const n of t)e!=null&&e.has(n.path)&&r.push(n),n.children&&r.push(...no(n.children,e));return r},Mf=(t,e)=>{var r,n;try{const s=new Map(t==null?void 0:t.map(u=>[u.path,u.checkedButtons])),i=no(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=Ur.value)==null||n.setCheckedKeys(o)}catch{throw new Error("数据显示处理失败")}},Ff=(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)},so=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=so(r.children)),r}),io=t=>{for(const e in t)if(Array.isArray(t[e]))return e;return""},oo=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=oo(t[r+1]),r+=2):r+=1,e.push(n)}return e},uo=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=oo(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}),ao=(t,e)=>t.reduce((r,n)=>{const s=n[e];return r[s]||(r[s]=[]),r[s].push(n),r},{}),co=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},lo=t=>Object.entries(t).map(([r,n])=>({path:r,checkedButtons:n==null?void 0:n.map(s=>s==null?void 0:s.path)})),Lf=t=>Object.prototype.toString.call(t)==="[object Object]"&&t!==null,Uf=(t,e)=>{const r={},n=Array.isArray(t)?t==null?void 0:t.filter(s=>{var i;return!(Lf(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},Bt=y.ref(""),fo=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=Uf(n,r==null?void 0:r.contents);Bt.value=io(s)},jf=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},$f=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(l=>{let f=u.find(d=>d.title===l);f||(f={title:l,path:s.path,children:[]},u.push(f)),u=f.children})});return e},Kf=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},ho=t=>{let e=[];for(const r of t){let n=[r.title];if(r.children&&Array.isArray(r.children)){let s=ho(r.children);s.length>0&&n.push(s)}e.push(n)}return e},Hf=t=>{const e=[];for(const r of t){if(!Array.isArray(r)||r.length!==2)continue;const[n,s]=r,i=po(s),o=e.indexOf(n);o===-1?e.push(n,i):e[o+1]=go(e[o+1],i)}return e},po=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,po(s))}}return e},go=(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]=go(r[i+1],e[n+1]),n+=2}else r.push(s),n+=1}return r},zf=async(t,e)=>{var r;if(Vt.value=vt(e),Ie.setRefreshCurStructure(!1),(r=Mt.value)==null||r.splice(0),t==="授权"){if(!Bt.value){A.ElMessage.error("请正确定义角色权限");return}const n=jf(Vt.value[Bt.value]);let s;if(n)s=Vt.value[Bt.value];else{const i=uo(Vt.value[Bt.value]),o=jr(i),u=co(o),a=ao(u,"parentPath");s=lo(a)}if(!s||!Array.isArray(s)){A.ElMessage.error("权限数据处理出错了,请联系管理员");return}wt.title=`【${e.角色名称}】授权`,wt.show=!0,await y.nextTick(),Ff($t.value,s),Mf(s,$t.value)}},qf=()=>{wt.show=!1},pr=y.ref(),Gf=async t=>{const e=await oe(A.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}})},ue=(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},Wf=async(t,e)=>{var i,o;let r=[];Array.isArray(t)?r=vt(t):r=[vt(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,l,f,d;return{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:(a=Se.value)!=null&&a.startsWith("/")?(c=Se.value)==null?void 0:c.substring(1):Se.value,tableId:e,createUserId:(l=He.value)==null?void 0:l.id,createUserOrg:((f=He.value)==null?void 0:f.dept)||((d=He.value)==null?void 0:d.部门名称)},value:{tableData:ue(u,dr.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:ue(u,dr.value)}}));n.length>0&&await oe(A.batchAddInsofDataApi,{dataList:n},"新增"),s.length>0&&(await oe(A.batchUpdateInsofDataApi,{dataList:s},"编辑"),wt.show=!1)},$r=async(t,e,r,n)=>{if(!(e!=null&&e.includes("删除")))await Wf(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 oe(A.batchDeleteInsofDataApi,{ids:s},"编辑")}},vo=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(vo(r.children)))}),e},Yf=()=>{const t=vo($t.value),e=Kf(t),r=$f(e),n=ho(r),s=Hf(n);pr.value={...Vt.value,[Bt.value]:s},y.nextTick(()=>{$r(pr.value,"编辑",Be.value)})},wt=y.reactive({show:!1,title:"角色授权",width:"30%",draggable:!0}),Zf=({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":""},Be=y.ref(0),yo=async t=>{var n,s,i,o,u;let e;const r=await A.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,Be.value=e),e},$t=y.ref([]),Jf=y.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),Xf=(t,e)=>{var r;t.checkedButtons=e?(r=t.renderButtons)==null?void 0:r.map(n=>n.path):[]},Mt=y.ref([]),Qf=(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)?Mt.value.push(e.path):(t==null?void 0:t.length)===0&&(Mt.value=(s=Mt.value)==null?void 0:s.filter(i=>i!==e.path))};y.watch(()=>Mt.value.length,()=>{var t;(t=Ur.value)==null||t.setCheckedKeys([...Mt.value])});y.watch(()=>wt.show,t=>{t||($t.value=so($t.value))});const _o=y.computed(()=>{var r;const t=(r=vt(If.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,l,f,d,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(p=>s.test(p==null?void 0:p.key));return i=Array.from(new Set(i==null?void 0:i.flatMap(p=>p.contents.map(_=>_.label)))),{path:(l=(c=n==null?void 0:n.key)==null?void 0:c.pageKey)!=null&&l.startsWith("/")?(d=(f=n==null?void 0:n.key)==null?void 0:f.pageKey)==null?void 0:d.substring(1):(h=n==null?void 0:n.key)==null?void 0:h.pageKey,buttons:i}}),...Eo.value]}),Eo=y.ref([]),th=(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}})},As=(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[]},mo=(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:As(r,s),checkedButtons:[],children:mo(r.children,_o.value)}:{...r,renderButtons:As(r,s),checkedButtons:[]}})},eh={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:eo.value,name:""}]}]},rh=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:mo,addPathToTree:jr,authorizeDialog:wt,buttonValue:Pf,changedRow:pr,clickRow:Vt,clickRowButton:zf,clickSubmitAuthority:Yf,closeAuthorizeDialog:qf,compName:ro,convertArrayToTree:uo,convertIndexToLabel:ue,customNodeClass:Zf,getActivePageStructureId:yo,getAuthorityKey:fo,getFirstArrayProperty:io,getLeafNodesRecursive:co,getPageDataAsync:Gf,groupByField:ao,handleAddSysMenusButtons:th,handleItemDataChange:Bf,handleNodeBtnChange:Qf,handleNodeCheckChange:Xf,handleQueryChange:Nf,handleRowAuthorityRender:lo,handleSubmitAsync:oe,isPageDataExist:kf,menuData:$t,menusButtons:Jf,pageData:eo,pageDataFiltered:Vf,queryFormData:xf,structureButtons:_o,structureId:Be,submitTableAsyncByVerify:$r,tempRolePageData:eh,tempSysMenus:Eo,treeRef:Ur},Symbol.toStringTag,{value:"Module"}));var nh="0123456789abcdefghijklmnopqrstuvwxyz";function ct(t){return nh.charAt(t)}function sh(t,e){return t&e}function le(t,e){return t|e}function ws(t,e){return t^e}function Os(t,e){return t&~e}function ih(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 oh(t){for(var e=0;t!=0;)t&=t-1,++e;return e}var Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bo="=";function Ce(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=Pt.charAt(r>>6)+Pt.charAt(r&63);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=Pt.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=Pt.charAt(r>>2)+Pt.charAt((r&3)<<4));(n.length&3)>0;)n+=bo;return n}function Ds(t){var e="",r,n=0,s=0;for(r=0;r<t.length&&t.charAt(r)!=bo;++r){var i=Pt.indexOf(t.charAt(r));i<0||(n==0?(e+=ct(i>>2),s=i&3,n=1):n==1?(e+=ct(s<<2|i>>4),s=i&15,n=2):n==2?(e+=ct(s),e+=ct(i>>2),s=i&3,n=3):(e+=ct(s<<2|i>>4),e+=ct(i&15),n=0))}return n==1&&(e+=ct(s<<2)),e}var Rt,uh={decode:function(t){var e;if(Rt===void 0){var r="0123456789ABCDEF",n=` \f
12
- \r  \u2028\u2029`;for(Rt={},e=0;e<16;++e)Rt[r.charAt(e)]=e;for(r=r.toLowerCase(),e=10;e<16;++e)Rt[r.charAt(e)]=e;for(e=0;e<n.length;++e)Rt[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=Rt[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}},Et,gr={decode:function(t){var e;if(Et===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
13
- \r  \u2028\u2029`;for(Et=Object.create(null),e=0;e<64;++e)Et[r.charAt(e)]=e;for(Et["-"]=62,Et._=63,e=0;e<n.length;++e)Et[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=Et[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=gr.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 gr.decode(t)}},xt=1e13,Zt=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<xt?r=0:(r=0|o/xt,o-=r*xt),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+=xt,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+=(xt+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*xt+e[n];return r},t.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},t}(),To="…",ah=/^(\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)?)?$/,ch=/^(\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 Ft(t,e){return t.length>e&&(t=t.substring(0,e)+To),t}var ze=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?ah:ch).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 Zt(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),l=a==r-1?s:0,f=7;f>=l;--f)u+=c>>f&1?"1":"0";if(u.length>n)return o+Ft(u,n)}return o+u},t.prototype.parseOctetString=function(e,r,n){if(this.isASCII(e,r))return Ft(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+=To),i},t.prototype.parseOID=function(e,r,n){for(var s="",i=new Zt,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 Zt)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 Ft(s,n);i=new Zt,o=0}}return o>0&&(s+=".incomplete"),s},t}(),lh=function(){function t(e,r,n,s,i){if(!(s instanceof Is))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 Ft(this.stream.parseStringUTF(r,r+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return Ft(this.stream.parseStringISO(r,r+n),e);case 30:return Ft(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 ze?r=e:r=new ze(e,0);var n=new ze(r),s=new Is(r),i=t.decodeLength(r),o=r.pos,u=o-n.pos,a=null,c=function(){var f=[];if(i!==null){for(var d=o+i;r.pos<d;)f[f.length]=t.decode(r);if(r.pos!=d)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;f[f.length]=h}i=o-r.pos}catch(p){throw new Error("Exception while decoding undefined length content: "+p)}return f};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 l=0;l<a.length;++l)if(a[l].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}(),Is=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 Zt;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}(),gt,fh=0xdeadbeefcafe,Cs=(fh&16777215)==15715070,z=[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],hh=(1<<26)/z[z.length-1],D=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=ct(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+=ct(s));return i?o:"0"},t.prototype.negate=function(){var e=x();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)+fe(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var r=x();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 Rs(r):n=new xs(r),this.exp(e,n)},t.prototype.clone=function(){var e=x();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=x();return this.bitwiseTo(e,sh,r),r},t.prototype.or=function(e){var r=x();return this.bitwiseTo(e,le,r),r},t.prototype.xor=function(e){var r=x();return this.bitwiseTo(e,ws,r),r},t.prototype.andNot=function(e){var r=x();return this.bitwiseTo(e,Os,r),r},t.prototype.not=function(){for(var e=x(),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=x();return e<0?this.rShiftTo(-e,r):this.lShiftTo(e,r),r},t.prototype.shiftRight=function(e){var r=x();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+ih(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+=oh(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,le)},t.prototype.clearBit=function(e){return this.changeBit(e,Os)},t.prototype.flipBit=function(e){return this.changeBit(e,ws)},t.prototype.add=function(e){var r=x();return this.addTo(e,r),r},t.prototype.subtract=function(e){var r=x();return this.subTo(e,r),r},t.prototype.multiply=function(e){var r=x();return this.multiplyTo(e,r),r},t.prototype.divide=function(e){var r=x();return this.divRemTo(e,r,null),r},t.prototype.remainder=function(e){var r=x();return this.divRemTo(e,null,r),r},t.prototype.divideAndRemainder=function(e){var r=x(),n=x();return this.divRemTo(e,r,n),[r,n]},t.prototype.modPow=function(e,r){var n=e.bitLength(),s,i=ft(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 Rs(r):r.isEven()?o=new ph(r):o=new xs(r);var u=[],a=3,c=s-1,l=(1<<s)-1;if(u[1]=o.convert(this),s>1){var f=x();for(o.sqrTo(u[1],f);a<=l;)u[a]=x(),o.mulTo(f,u[a-2],u[a]),a+=2}var d=e.t-1,h,p=!0,_=x(),E;for(n=fe(e[d])-1;d>=0;){for(n>=c?h=e[d]>>n-c&l:(h=(e[d]&(1<<n+1)-1)<<c-n,d>0&&(h|=e[d-1]>>this.DB+n-c)),a=s;(h&1)==0;)h>>=1,--a;if((n-=a)<0&&(n+=this.DB,--d),p)u[h].copyTo(i),p=!1;else{for(;a>1;)o.sqrTo(i,_),o.sqrTo(_,i),a-=2;a>0?o.sqrTo(i,_):(E=i,i=_,_=E),o.mulTo(_,u[h],i)}for(;d>=0&&(e[d]&1<<n)==0;)o.sqrTo(i,_),E=i,i=_,_=E,--n<0&&(n=this.DB-1,--d)}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=ft(1),o=ft(0),u=ft(0),a=ft(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 dh)},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]<=z[z.length-1]){for(r=0;r<z.length;++r)if(n[0]==z[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<z.length;){for(var s=z[r],i=r+1;i<z.length&&s<hh;)s*=z[i++];for(s=n.modInt(s);r<i;)if(s%z[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=x());var o=x(),u=this.s,a=e.s,c=this.DB-fe(s[s.t-1]);c>0?(s.lShiftTo(c,o),i.lShiftTo(c,n)):(s.copyTo(o),i.copyTo(n));var l=o.t,f=o[l-1];if(f!=0){var d=f*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),h=this.FV/d,p=(1<<this.F1)/d,_=1<<this.F2,E=n.t,b=E-l,I=r??x();for(o.dlShiftTo(b,I),n.compareTo(I)>=0&&(n[n.t++]=1,n.subTo(I,n)),t.ONE.dlShiftTo(l,I),I.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--b>=0;){var C=n[--E]==f?this.DM:Math.floor(n[E]*h+(n[E-1]+_)*p);if((n[E]+=o.am(0,C,n,b,0,l))<C)for(o.dlShiftTo(b,I),n.subTo(I,n);n[E]<--C;)n.subTo(I,n)}r!=null&&(n.drShiftTo(l,r),u!=a&&t.ZERO.subTo(r,r)),n.t=l,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=x(),s=x(),i=r.convert(this),o=fe(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=ft(n),i=x(),o=x(),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),le,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>z.length&&(e=z.length);for(var i=x(),o=0;o<e;++o){i.fromInt(z[Math.floor(Math.random()*z.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=x();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),le,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}(),dh=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}(),Rs=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}(),xs=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=x();return e.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),e.s<0&&r.compareTo(D.ZERO)>0&&this.m.subTo(r,r),r},t.prototype.revert=function(e){var r=x();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}(),ph=function(){function t(e){this.m=e,this.r2=x(),this.q3=x(),D.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=x();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 x(){return new D(null)}function L(t,e){return new D(t,e)}var Ps=typeof navigator<"u";Ps&&Cs&&navigator.appName=="Microsoft Internet Explorer"?(D.prototype.am=function(e,r,n,s,i,o){for(var u=r&32767,a=r>>15;--o>=0;){var c=this[e]&32767,l=this[e++]>>15,f=a*c+l*u;c=u*c+((f&32767)<<15)+n[s]+(i&1073741823),i=(c>>>30)+(f>>>15)+a*l+(i>>>30),n[s++]=c&1073741823}return i},gt=30):Ps&&Cs&&navigator.appName!="Netscape"?(D.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},gt=26):(D.prototype.am=function(e,r,n,s,i,o){for(var u=r&16383,a=r>>14;--o>=0;){var c=this[e]&16383,l=this[e++]>>14,f=a*c+l*u;c=u*c+((f&16383)<<14)+n[s]+i,i=(c>>28)+(f>>14)+a*l,n[s++]=c&268435455}return i},gt=28);D.prototype.DB=gt;D.prototype.DM=(1<<gt)-1;D.prototype.DV=1<<gt;var Kr=52;D.prototype.FV=Math.pow(2,Kr);D.prototype.F1=Kr-gt;D.prototype.F2=2*gt-Kr;var Me=[],qt,J;qt=48;for(J=0;J<=9;++J)Me[qt++]=J;qt=97;for(J=10;J<36;++J)Me[qt++]=J;qt=65;for(J=10;J<36;++J)Me[qt++]=J;function ks(t,e){var r=Me[t.charCodeAt(e)];return r??-1}function ft(t){var e=x();return e.fromInt(t),e}function fe(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}D.ZERO=ft(0);D.ONE=ft(1);var gh=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 vh(){return new gh}var So=256,he,pt=null,st;if(pt==null){pt=[],st=0;var de=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var qe=new Uint32Array(256);for(window.crypto.getRandomValues(qe),de=0;de<qe.length;++de)pt[st++]=qe[de]&255}var pe=0,ge=function(t){if(pe=pe||0,pe>=256||st>=So){window.removeEventListener?window.removeEventListener("mousemove",ge,!1):window.detachEvent&&window.detachEvent("onmousemove",ge);return}try{var e=t.x+t.y;pt[st++]=e&255,pe+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",ge,!1):window.attachEvent&&window.attachEvent("onmousemove",ge))}function yh(){if(he==null){for(he=vh();st<So;){var t=Math.floor(65536*Math.random());pt[st++]=t&255}for(he.init(pt),st=0;st<pt.length;++st)pt[st]=0;st=0}return he.next()}var vr=function(){function t(){}return t.prototype.nextBytes=function(e){for(var r=0;r<e.length;++r)e[r]=yh()},t}();function _h(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 L(i,16)}function Eh(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 vr,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 D(r)}var mh=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=L(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=Eh(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=L(e,16),this.e=parseInt(r,16),this.d=L(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=L(e,16),this.e=parseInt(r,16),this.d=L(n,16),this.p=L(s,16),this.q=L(i,16),this.dmp1=L(o,16),this.dmq1=L(u,16),this.coeff=L(a,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(e,r){var n=new vr,s=e>>1;this.e=parseInt(r,16);for(var i=new D(r,16);;){for(;this.p=new D(e-s,1,n),!(this.p.subtract(D.ONE).gcd(i).compareTo(D.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new D(s,1,n),!(this.q.subtract(D.ONE).gcd(i).compareTo(D.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(D.ONE),a=this.q.subtract(D.ONE),c=u.multiply(a);if(c.gcd(i).compareTo(D.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=L(e,16),n=this.doPrivate(r);return n==null?null:bh(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(e,r,n){var s=new vr,i=e>>1;this.e=parseInt(r,16);var o=new D(r,16),u=this,a=function(){var c=function(){if(u.p.compareTo(u.q)<=0){var d=u.p;u.p=u.q,u.q=d}var h=u.p.subtract(D.ONE),p=u.q.subtract(D.ONE),_=h.multiply(p);_.gcd(o).compareTo(D.ONE)==0?(u.n=u.p.multiply(u.q),u.d=o.modInverse(_),u.dmp1=u.d.mod(h),u.dmq1=u.d.mod(p),u.coeff=u.q.modInverse(u.p),setTimeout(function(){n()},0)):setTimeout(a,0)},l=function(){u.q=x(),u.q.fromNumberAsync(i,1,s,function(){u.q.subtract(D.ONE).gcda(o,function(d){d.compareTo(D.ONE)==0&&u.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(l,0)})})},f=function(){u.p=x(),u.p.fromNumberAsync(e-i,1,s,function(){u.p.subtract(D.ONE).gcda(o,function(d){d.compareTo(D.ONE)==0&&u.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(a,0)},t.prototype.sign=function(e,r,n){var s=Th(n),i=s+r(e).toString(),o=_h(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=L(r,16),i=this.doPublic(s);if(i==null)return null;var o=i.toString(16).replace(/^1f+00/,""),u=Sh(o);return u==n(e).toString()},t}();function bh(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 Ae={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Th(t){return Ae[t]||""}function Sh(t){for(var e in Ae)if(Ae.hasOwnProperty(e)){var r=Ae[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 U={};U.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],l=a[c];typeof l=="function"&&l!=Object.prototype[c]&&(u[c]=l)}})}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 D(s,16),u=o.xor(t).add(D.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,l=r.DERUTF8String,f=r.DERNumericString,d=r.DERPrintableString,h=r.DERTeletexString,p=r.DERIA5String,_=r.DERUTCTime,E=r.DERGeneralizedTime,b=r.DERSequence,I=r.DERSet,C=r.DERTaggedObject,j=r.ASN1Util.newObject,Q=Object.keys(t);if(Q.length!=1)throw"key of param shall be only one.";var w=Q[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":")==-1)throw"undefined key: "+w;if(w=="bool")return new n(t[w]);if(w=="int")return new s(t[w]);if(w=="bitstr")return new i(t[w]);if(w=="octstr")return new o(t[w]);if(w=="null")return new u(t[w]);if(w=="oid")return new a(t[w]);if(w=="enum")return new c(t[w]);if(w=="utf8str")return new l(t[w]);if(w=="numstr")return new f(t[w]);if(w=="prnstr")return new d(t[w]);if(w=="telstr")return new h(t[w]);if(w=="ia5str")return new p(t[w]);if(w=="utctime")return new _(t[w]);if(w=="gentime")return new E(t[w]);if(w=="seq"){for(var O=t[w],tt=[],F=0;F<O.length;F++){var S=j(O[F]);tt.push(S)}return new b({array:tt})}if(w=="set"){for(var O=t[w],tt=[],F=0;F<O.length;F++){var S=j(O[F]);tt.push(S)}return new I({array:tt})}if(w=="tag"){var m=t[w];if(Object.prototype.toString.call(m)==="[object Array]"&&m.length==3){var P=j(m[2]);return new C({tag:m[0],explicit:m[1],obj:P})}else{var B={};if(m.explicit!==void 0&&(B.explicit=m.explicit),m.tag!==void 0&&(B.tag=m.tag),m.obj===void 0)throw"obj shall be specified for 'tag'.";return B.obj=j(m.obj),new C(B)}}},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 D(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 D(u,10),l=c.toString(2),f=7-l.length%7;f==7&&(f=0);for(var d="",h=0;h<f;h++)d+="0";l=d+l;for(var h=0;h<l.length-1;h+=7){var p=l.substr(h,7);h!=l.length-7&&(p="1"+p),a+=e(parseInt(p,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))};U.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),l=s(String(i.getMinutes()),2),f=s(String(i.getSeconds()),2),d=o+u+a+c+l+f;if(n===!0){var h=i.getMilliseconds();if(h!=0){var p=s(String(h),3);p=p.replace(/[0]+$/,""),d=d+"."+p}}return d+"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}};U.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)};U.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"};U.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 D(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))};U.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))};U.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"};U.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"};U.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 D(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 l=o.substr(c,7);c!=o.length-7&&(l="1"+l),s+=e(parseInt(l,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))};U.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 D(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))};U.lang.extend(g.asn1.DEREnumerated,g.asn1.ASN1Object);g.asn1.DERUTF8String=function(t){g.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"};U.lang.extend(g.asn1.DERUTF8String,g.asn1.DERAbstractString);g.asn1.DERNumericString=function(t){g.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"};U.lang.extend(g.asn1.DERNumericString,g.asn1.DERAbstractString);g.asn1.DERPrintableString=function(t){g.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"};U.lang.extend(g.asn1.DERPrintableString,g.asn1.DERAbstractString);g.asn1.DERTeletexString=function(t){g.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"};U.lang.extend(g.asn1.DERTeletexString,g.asn1.DERAbstractString);g.asn1.DERIA5String=function(t){g.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"};U.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))};U.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))};U.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}};U.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)};U.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)))};U.lang.extend(g.asn1.DERTaggedObject,g.asn1.ASN1Object);var Ah=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)}}(),Ns=function(t){Ah(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)?uh.decode(r):gr.unarmor(r),u=lh.decode(o);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=L(n,16),s=u.sub[2].getHexStringValue(),this.e=parseInt(s,16);var a=u.sub[3].getHexStringValue();this.d=L(a,16);var c=u.sub[4].getHexStringValue();this.p=L(c,16);var l=u.sub[5].getHexStringValue();this.q=L(l,16);var f=u.sub[6].getHexStringValue();this.dmp1=L(f,16);var d=u.sub[7].getHexStringValue();this.dmq1=L(d,16);var h=u.sub[8].getHexStringValue();this.coeff=L(h,16)}else if(u.sub.length===2)if(u.sub[0].sub){var p=u.sub[1],_=p.sub[0];n=_.sub[0].getHexStringValue(),this.n=L(n,16),s=_.sub[1].getHexStringValue(),this.e=parseInt(s,16)}else n=u.sub[0].getHexStringValue(),this.n=L(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 Ce(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 Ce(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}(mh),Ge,wh=typeof process<"u"?(Ge=process.env)===null||Ge===void 0?void 0:Ge.npm_package_version:void 0,Hr=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 Ns(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(Ds(e))}catch{return!1}},t.prototype.encrypt=function(e){try{return Ce(this.getKey().encrypt(e))}catch{return!1}},t.prototype.sign=function(e,r,n){try{return Ce(this.getKey().sign(e,r,n))}catch{return!1}},t.prototype.verify=function(e,r,n){try{return this.getKey().verify(e,Ds(r),n)}catch{return!1}},t.prototype.getKey=function(e){if(!this.key){if(this.key=new Ns,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=wh,t}();function Jt(t,e){const r=new Hr;return r.setPublicKey(e),r.encrypt(t)||""}function Oh(t,e){const r=new Hr;return r.setPrivateKey(e),r.decrypt(t)||""}function Vs(){return typeof new Hr().encrypt=="function"}const Ao=Mr(X),{superAdminInfo:Nh,cryptoInfo:Y,loginUserInfo:We}=_t(Ao),Dh=Fr(X),{activeMenuPath:we}=_t(Dh),Bs=Ve(X),yr="123456",Ih=Lr(X),{routerPageStructures:Ch}=_t(Ih);y.ref(0);y.ref([{label:"用户名称",value:"",name:"userName"}]);const Xt=y.computed(()=>{const t=sessionStorage.getItem("isSuperAdmin");return t?JSON.parse(t):!1}),_r=y.ref([]),Rh=y.ref(""),xh=y.computed(()=>{var e,r,n,s,i;const t=(e=Ch.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?(Rh.value=t.name,_r.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 l,f,d,h;return{...c,isTableColHidden:((l=c==null?void 0:c.prop)==null?void 0:l.includes("头像"))||((f=c==null?void 0:c.prop)==null?void 0:f.includes("签名")),isFormColHidden:((d=c==null?void 0:c.prop)==null?void 0:d.includes("头像"))||((h=c==null?void 0:c.prop)==null?void 0:h.includes("签名"))}})}:u})):[]});y.ref();const Re=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 Ao.setLogRecordAsync({type:r,data:e},we.value),A.ElMessage.success("保存成功"),Bs.setRefreshCurStructure(!0),i.data.result||((s=i==null?void 0:i.data)==null?void 0:s.code)===200):null}catch(i){A.ElMessage.error(i)}finally{Bs.setCacheUpdatingData(null)}},Ph=async(t,e)=>{var i,o;let r=[];Array.isArray(t)?r=vt(t):r=[vt(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,l,f,d,h,p,_;const a=ue(u,_r.value);return Vs()&&a&&(!a.password&&Xt.value?a.password=Jt(yr,(c=Y==null?void 0:Y.value)==null?void 0:c.publicKey):a.password&&Xt.value&&(a.password=Jt(a==null?void 0:a.password,(l=Y==null?void 0:Y.value)==null?void 0:l.publicKey))),{key:{type:"data",layer:u==null?void 0:u.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(f=we.value)!=null&&f.startsWith("/")?(d=we.value)==null?void 0:d.substring(1):we.value,tableId:e,createUserId:(h=We.value)==null?void 0:h.id,createUserOrg:((p=We.value)==null?void 0:p.dept)||((_=We.value)==null?void 0:_.部门名称)},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,l;const a=ue(u,_r.value);return Vs()&&a&&(!a.password&&Xt.value?a.password=Jt(yr,(c=Y==null?void 0:Y.value)==null?void 0:c.publicKey):a.password&&Xt.value&&(a.password=Jt(a==null?void 0:a.password,(l=Y==null?void 0:Y.value)==null?void 0:l.publicKey))),{id:u==null?void 0:u.id,value:{tableData:a}}});n.length>0&&await Re(A.batchAddInsofDataApi,{dataList:n},"新增"),s.length>0&&(await Re(A.batchUpdateInsofDataApi,{dataList:s},"编辑"),wt.show=!1)},kh=async(t,e,r,n)=>{if(!(e!=null&&e.includes("删除")))await Ph(t,r);else{let s=[];e!=null&&e.includes("批量")?s=[]:s=[t==null?void 0:t.id],await Re(A.batchDeleteInsofDataApi,{ids:s},"编辑")}};xh.value;exports.Stack=Ot;exports.State=rh;exports.Uint8Array=tr;exports.arrayLikeKeys=qs;exports.arrayPush=Ws;exports.assignValue=Ls;exports.baseAssignValue=Fs;exports.baseUnary=xe;exports.cloneBuffer=Js;exports.cloneDeep=vt;exports.cloneTypedArray=Qs;exports.decryptData=Oh;exports.defineProperty=Ze;exports.defineStore=zt;exports.encryptData=Jt;exports.getActivePageStructureId=yo;exports.getAllKeys=Xs;exports.getPrototype=Ys;exports.handleSubmitAsync=Re;exports.initCloneObject=ti;exports.isArguments=$s;exports.isArrayLike=Us;exports.isBuffer=br;exports.isIndex=Ms;exports.isLength=Er;exports.isPrototype=mr;exports.isTypedArray=zs;exports.nodeUtil=Tt;exports.pinia=X;exports.resetPassword=yr;exports.storeToRefs=_t;exports.submitTableAsyncByVerify=kh;exports.useAuthorityState=Lr;exports.useLoginState=Mr;exports.useMenuState=Fr;exports.useModelComp=Ve;exports.useUnit=Qi;