@profoundlogic/coderflow-server 0.3.1 → 0.4.0

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 (154) hide show
  1. package/dist/base-image/agent-wrapper.sh +49 -9
  2. package/dist/base-image/entrypoint.sh +12 -1
  3. package/dist/coder-server.js +1 -1
  4. package/dist/config/cli-models.json +5 -3
  5. package/dist/config.js +1 -1
  6. package/dist/lib/agent-keepalive.js +1 -1
  7. package/dist/lib/agent-models.js +1 -0
  8. package/dist/lib/api-keys.js +1 -1
  9. package/dist/lib/apiKeys.js +1 -1
  10. package/dist/lib/app-server-ports.js +1 -1
  11. package/dist/lib/auto-judge.js +1 -1
  12. package/dist/lib/basic-auth.js +1 -1
  13. package/dist/lib/build-history.js +1 -1
  14. package/dist/lib/build-output-service.js +1 -1
  15. package/dist/lib/build-scheduler.js +1 -1
  16. package/dist/lib/build-service.js +1 -1
  17. package/dist/lib/ca-certificates.js +1 -1
  18. package/dist/lib/claude-oauth-refresh.js +1 -1
  19. package/dist/lib/cli/build.js +1 -1
  20. package/dist/lib/cli/config-command.js +1 -1
  21. package/dist/lib/cli/config.js +1 -1
  22. package/dist/lib/cli/create-user.js +1 -1
  23. package/dist/lib/cli/init.js +1 -1
  24. package/dist/lib/cli/jira.js +1 -1
  25. package/dist/lib/cli/license.js +1 -1
  26. package/dist/lib/cli/server-manager.js +1 -1
  27. package/dist/lib/config-migration.js +1 -0
  28. package/dist/lib/container-credential-sync.js +1 -1
  29. package/dist/lib/container-tokens.js +1 -1
  30. package/dist/lib/data-dir.js +1 -1
  31. package/dist/lib/deployment-history.js +1 -1
  32. package/dist/lib/deployment-service.js +1 -1
  33. package/dist/lib/docker-utils.js +1 -1
  34. package/dist/lib/email.js +1 -1
  35. package/dist/lib/emailTemplates.js +1 -1
  36. package/dist/lib/entitlement.js +1 -1
  37. package/dist/lib/fetch-utils.js +1 -1
  38. package/dist/lib/git-commit-details-route.js +1 -1
  39. package/dist/lib/git-history-diff-guardrails.js +1 -1
  40. package/dist/lib/git-provider-service.js +1 -1
  41. package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
  42. package/dist/lib/git-provider-setup/index.js +1 -1
  43. package/dist/lib/git-provider-setup/setup-factory.js +1 -1
  44. package/dist/lib/git-provider-setup/setup-interface.js +1 -1
  45. package/dist/lib/git-providers/azure-devops-provider.js +1 -1
  46. package/dist/lib/git-providers/github-app-provider.js +1 -1
  47. package/dist/lib/git-providers/index.js +1 -1
  48. package/dist/lib/git-providers/provider-factory.js +1 -1
  49. package/dist/lib/git-providers/provider-interface.js +1 -1
  50. package/dist/lib/github-urls.js +1 -1
  51. package/dist/lib/group-objective-linking.js +1 -1
  52. package/dist/lib/jira-client.js +1 -1
  53. package/dist/lib/judge-blinding.js +1 -1
  54. package/dist/lib/logger.js +1 -1
  55. package/dist/lib/model-fetcher.js +1 -1
  56. package/dist/lib/notifications.js +1 -1
  57. package/dist/lib/oidc-auth.js +1 -1
  58. package/dist/lib/oidc-device-flow.js +1 -1
  59. package/dist/lib/passwordTokens.js +1 -1
  60. package/dist/lib/pin-cascade.js +1 -1
  61. package/dist/lib/provider-accounts.js +1 -1
  62. package/dist/lib/provider-oauth.js +1 -1
  63. package/dist/lib/provider-profile.js +1 -1
  64. package/dist/lib/provider-token-refresh.js +1 -1
  65. package/dist/lib/request-url.js +1 -1
  66. package/dist/lib/rewind.js +1 -1
  67. package/dist/lib/roles.js +1 -1
  68. package/dist/lib/secrets.js +1 -1
  69. package/dist/lib/setup-repo-git-auth.js +1 -1
  70. package/dist/lib/state-capture.js +1 -1
  71. package/dist/lib/static-files.js +1 -1
  72. package/dist/lib/task-name-format.js +1 -0
  73. package/dist/lib/task-name-generator.js +1 -1
  74. package/dist/lib/user-git-oauth.js +1 -1
  75. package/dist/lib/user-git-tokens.js +1 -1
  76. package/dist/lib/users.js +1 -1
  77. package/dist/middleware/requireAuth.js +1 -1
  78. package/dist/middleware/requireInit.js +1 -1
  79. package/dist/middleware/requirePermission.js +1 -1
  80. package/dist/package.json +1 -1
  81. package/dist/routes/apiKeys.js +1 -1
  82. package/dist/routes/auth-oidc.js +1 -1
  83. package/dist/routes/auth.js +1 -1
  84. package/dist/routes/build.js +1 -1
  85. package/dist/routes/containers.js +1 -1
  86. package/dist/routes/deploy-task.js +1 -1
  87. package/dist/routes/environment-management.js +1 -1
  88. package/dist/routes/environments.js +1 -1
  89. package/dist/routes/external-skills.js +1 -1
  90. package/dist/routes/git-credentials.js +1 -1
  91. package/dist/routes/git-oauth.js +1 -1
  92. package/dist/routes/git-provider-setup.js +1 -1
  93. package/dist/routes/health.js +1 -1
  94. package/dist/routes/jira.js +1 -1
  95. package/dist/routes/objective-management.js +1 -1
  96. package/dist/routes/password.js +1 -1
  97. package/dist/routes/prompt.js +1 -1
  98. package/dist/routes/provider-auth.js +1 -1
  99. package/dist/routes/qa.js +1 -1
  100. package/dist/routes/settings.js +1 -1
  101. package/dist/routes/skill-management.js +1 -1
  102. package/dist/routes/skills.js +1 -1
  103. package/dist/routes/tasks.js +1 -1
  104. package/dist/routes/templates.js +1 -1
  105. package/dist/routes/test-task.js +1 -1
  106. package/dist/routes/test.js +1 -1
  107. package/dist/routes/users.js +1 -1
  108. package/dist/routes/visualizations.js +1 -1
  109. package/dist/scripts/create-user.js +1 -1
  110. package/dist/scripts/migrate-config-to-data-dir.js +2 -0
  111. package/dist/start.js +1 -1
  112. package/dist/web-ui/public/activity-detail-modal.js +1 -1
  113. package/dist/web-ui/public/activity-feed.js +1 -1
  114. package/dist/web-ui/public/activity-formatters.js +1 -1
  115. package/dist/web-ui/public/agent-event-parser.js +1 -1
  116. package/dist/web-ui/public/app.js +1 -1
  117. package/dist/web-ui/public/approve-dialog.js +1 -1
  118. package/dist/web-ui/public/comments-widget.js +1 -1
  119. package/dist/web-ui/public/diff-utils.js +1 -1
  120. package/dist/web-ui/public/docs/README.md +1 -1
  121. package/dist/web-ui/public/docs/_sidebar.md +1 -0
  122. package/dist/web-ui/public/docs/admin/environments.md +1 -1
  123. package/dist/web-ui/public/docs/admin/jira.md +156 -0
  124. package/dist/web-ui/public/docs/integrations/ibmi/overview.md +3 -3
  125. package/dist/web-ui/public/docs/integrations/overview.md +1 -1
  126. package/dist/web-ui/public/docs/tasks/approval-and-deployment.md +38 -0
  127. package/dist/web-ui/public/docs/tasks/creating-tasks.md +14 -0
  128. package/dist/web-ui/public/environments.js +1 -1
  129. package/dist/web-ui/public/feedback-widget.js +1 -1
  130. package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
  131. package/dist/web-ui/public/git-history.js +1 -1
  132. package/dist/web-ui/public/git-status.js +1 -1
  133. package/dist/web-ui/public/index.html +1 -0
  134. package/dist/web-ui/public/index.js +1 -1
  135. package/dist/web-ui/public/login.js +1 -1
  136. package/dist/web-ui/public/markdown-editor.js +1 -1
  137. package/dist/web-ui/public/markdown-file-editor.js +1 -1
  138. package/dist/web-ui/public/modal-maximize.js +1 -1
  139. package/dist/web-ui/public/notifications.js +1 -1
  140. package/dist/web-ui/public/pr-dialog.js +1 -0
  141. package/dist/web-ui/public/server-health.js +1 -1
  142. package/dist/web-ui/public/settings.js +1 -1
  143. package/dist/web-ui/public/setup-password.js +1 -1
  144. package/dist/web-ui/public/skills.js +1 -1
  145. package/dist/web-ui/public/sse-client.js +1 -1
  146. package/dist/web-ui/public/sse-shared-worker.js +1 -1
  147. package/dist/web-ui/public/styles.css +187 -0
  148. package/dist/web-ui/public/task.html +37 -3
  149. package/dist/web-ui/public/task.js +1 -1
  150. package/dist/web-ui/public/terminal.js +1 -1
  151. package/dist/web-ui/public/theme.js +1 -1
  152. package/dist/web-ui/public/users.js +1 -1
  153. package/dist/web-ui/public/variant-grouping.js +1 -1
  154. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4f3946,_0x1e0873){const _0x277105={_0x35d29c:0x251,_0x28ce9a:0x238,_0x5a45c0:0x428,_0x5b3778:0x456,_0x489595:0x42f,_0x551e53:0x41e,_0x3f9bf1:0x41d,_0x555ccd:0x409,_0x2dfa67:0x413,_0x5022e0:0x45c,_0xc066e4:0x229,_0x23670f:0x252,_0x48dc55:0x247,_0x591316:0x278,_0x1bface:0x3da,_0x5bf3ad:0x406,_0x3ad146:0x42e,_0x4b9d53:0x3de,_0x3fdff5:0x244,_0x54a392:0x22c,_0x19977a:0x437,_0x4a13fc:0x42c},_0x382fb4={_0x4c04a5:0x2da},_0x13a488={_0x32a1ad:0x390},_0x17c779=_0x4f3946();function _0x406cb7(_0x586b46,_0x313b0c,_0x45c9b7,_0x24eda2){return _0x47b9(_0x313b0c-_0x13a488._0x32a1ad,_0x45c9b7);}function _0x40da58(_0x407187,_0x51a3f7,_0x49736a,_0x8dd262){return _0x47b9(_0x51a3f7- -_0x382fb4._0x4c04a5,_0x49736a);}while(!![]){try{const _0x284c79=-parseInt(_0x40da58(-0x275,-_0x277105._0x35d29c,-_0x277105._0x28ce9a,-0x23b))/(-0x729+0xb3e*0x1+-0x414)*(-parseInt(_0x406cb7(_0x277105._0x5a45c0,_0x277105._0x5b3778,0x479,_0x277105._0x489595))/(0x19*-0x4e+-0x429+0xbc9))+parseInt(_0x406cb7(0x415,_0x277105._0x551e53,_0x277105._0x3f9bf1,_0x277105._0x555ccd))/(-0x15b9+0x1*-0x14d+0x1709)*(-parseInt(_0x406cb7(_0x277105._0x2dfa67,0x437,0x42f,_0x277105._0x5022e0))/(0x272*0xc+-0x33*0x4f+-0xd97))+-parseInt(_0x40da58(-0x243,-0x22d,-0x233,-_0x277105._0xc066e4))/(-0x1117+-0x26b*-0xa+-0x712)*(-parseInt(_0x40da58(-0x280,-_0x277105._0x23670f,-_0x277105._0x48dc55,-_0x277105._0x591316))/(0x93+0x1*-0x1619+0x158c))+-parseInt(_0x406cb7(_0x277105._0x1bface,_0x277105._0x5bf3ad,_0x277105._0x3ad146,_0x277105._0x4b9d53))/(-0x1*0x1ff3+0x219d+-0x1a3)+-parseInt(_0x40da58(-0x230,-_0x277105._0x3fdff5,-0x21f,-0x22f))/(-0x24b*-0x1+0x9*0x319+-0x1e24)+parseInt(_0x40da58(-0x258,-_0x277105._0x48dc55,-_0x277105._0x54a392,-0x240))/(0x32b*-0x1+0x13cd*-0x1+-0x97*-0x27)+parseInt(_0x406cb7(_0x277105._0x19977a,0x413,0x405,_0x277105._0x4a13fc))/(-0x69*-0x3+-0x3a*-0x8+-0x301*0x1);if(_0x284c79===_0x1e0873)break;else _0x17c779['push'](_0x17c779['shift']());}catch(_0x2d6d4c){_0x17c779['push'](_0x17c779['shift']());}}}(_0x4144,-0x2005d+-0xa68f+-0x5e52*-0xe));import{logger}from'../lib/logger.js';function _0x4144(){const _0x369f75=['mtHjweHfseu','DgLVBIbYzxf1Aq','ssbRzxK','y2nLC3mGyxr0zq','BwvZC2fNzq','t2rLsLe','ANnVBG','CMvK','y2v5C1u','Bxb0','D2fYBG','wMveEgG','zwqGywrTAw4Gyq','mtm0nda5ohHwzMveua','BIb0BYbHy2nLCW','turAD0K','yxv0AgvUDgLJyq','Cgf0Aa','ww91igrVig5VDa','vejWAMW','BguUy29T','Bwv0Ag9K','DxnLCM5HBwu','sxfRzwW','C3rHCNrZv2L0Aa','zwqGqvbjigTLEq','mJmYmJiWmeDiB2zwAG','vgvZDcbvC2vY','Au1dzNa','ywrTAw4','igLZigLUDMfSAq','mtjss2fOze8','mtu2odDkEejyEeO','zw52','zsbSB2DNzwqGAq','qvbjigTLEsbHDq','yxv0Ag9YAxPHDa','nJncEez5wfq','qxv0AgvUDgLJyq','DxnLCG','ww91ig11C3qGyG','u2vZC2LVBIbHDq','mJeXnJe3ouHQu0Hjrq','zwqGywnJzxnZia','y1Dmvvu','nZCYnZi4z2LpDNj0','AKjuAKi','Aw9U','AxnZAw9UihrVia','C3vIC3rYAw5N','rKrsB3a','B2rbrNK','EKHYEKq','reLtqujmrv9bvq','zw1HAwW','zcbYzxf1zxn0','DgvZDc11C2vY','DgvZDebLEgfTCa','CYbYzxnVDxjJzq','A1PsCw0','zcbVCIbLEhbPCG','ssbRzxKGyxr0zq','ndy0ndrYrvv1zeW','igHHDMuGCgvYBq','s3HrEum','yxbPx2TLEq','vw5HDxrOB3jPEG','BMfTzq','mJiWmZu1wvzAA1DA','C2vZC2LVBG','DxnLCKLK','zgvIDwC','ueXZu0i','sw52ywXPzcbbua','C3nOx3vZzxjUyq','CYb0AgLZihjLCW','B3vYy2u','vgHLihbYB3zPza','uMrbueS','BIbVCIbWCM92Aq','Dhj1zq','zxjYB3i','C3rHDhvZ','DgHLBNrPy2f0zq','zguGysb2ywXPza','ywnJzxnZihrOAq','sNrgEgC','rM9YyMLKzgvU','tMvdsNy','iefqssbRzxK','yxr0zw1WDa','DgvKvMLH','txHxDfO'];_0x4144=function(){return _0x369f75;};return _0x4144();}import{validateApiKey}from'../lib/apiKeys.js';function _0x47b9(_0x2b21ee,_0x1caa9f){_0x2b21ee=_0x2b21ee-(0x1a93*-0x1+-0x1ce9+-0x1*-0x37ea);const _0x4d58e9=_0x4144();let _0x54ee67=_0x4d58e9[_0x2b21ee];if(_0x47b9['Bncazj']===undefined){var _0x140cf7=function(_0x43d193){const _0x4e1178='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4fd07b='',_0x636fe4='';for(let _0x2fb977=0x3*-0x38b+-0x804+0x12a5*0x1,_0x4c765b,_0x433b70,_0x4ca772=-0x2*0x1b1+-0x1a7e+0x2*0xef0;_0x433b70=_0x43d193['charAt'](_0x4ca772++);~_0x433b70&&(_0x4c765b=_0x2fb977%(0x6e7*0x5+-0x32f*-0x5+-0x326a)?_0x4c765b*(-0x1a*0xe9+-0x142e+0xb06*0x4)+_0x433b70:_0x433b70,_0x2fb977++%(-0x1be2+0x26*0x4f+0x114*0xf))?_0x4fd07b+=String['fromCharCode'](-0x2*-0x614+-0x51b+0x32*-0x1f&_0x4c765b>>(-(0x1*-0x24ab+-0x221d+0x46ca)*_0x2fb977&0xe55+-0x1f7b+0x112c)):0xfe*-0x20+-0x560+-0x129*-0x20){_0x433b70=_0x4e1178['indexOf'](_0x433b70);}for(let _0x4c3230=0x1055+-0x166c+0x617,_0x3cfc47=_0x4fd07b['length'];_0x4c3230<_0x3cfc47;_0x4c3230++){_0x636fe4+='%'+('00'+_0x4fd07b['charCodeAt'](_0x4c3230)['toString'](0x1c42+-0x2da+-0x1958))['slice'](-(-0x3d5+0x175e+-0x1387));}return decodeURIComponent(_0x636fe4);};_0x47b9['XCakTo']=_0x140cf7,_0x47b9['PAANFx']={},_0x47b9['Bncazj']=!![];}const _0x3cab5e=_0x4d58e9[-0x3f*-0x9d+-0x167d+-0x2b1*0x6],_0x1df132=_0x2b21ee+_0x3cab5e,_0x3a4558=_0x47b9['PAANFx'][_0x1df132];return!_0x3a4558?(_0x54ee67=_0x47b9['XCakTo'](_0x54ee67),_0x47b9['PAANFx'][_0x1df132]=_0x54ee67):_0x54ee67=_0x3a4558,_0x54ee67;}export async function requireAuth(_0x480af8,_0x15327d,_0x29f0af){const _0x1628ed={_0xfaec41:0x130,_0x321723:0x153,_0x26ff38:0x251,_0x3a32da:0x253,_0x31939c:0x28c,_0x563c1d:0x297,_0x3c36b2:0x254,_0x30bfdf:0x257,_0x5ecd01:0x120,_0x23c74c:0x161,_0xfe7e11:0x12a,_0x560961:0x141,_0x37de4c:0x26f,_0x20a567:0x262,_0x5bad66:0x272,_0x14e5ae:0x291,_0x924e53:0x27f,_0x4927d9:0x26b,_0x3f8c06:0x114,_0x3b57cd:0x127,_0x159588:0x285,_0x1b6cf4:0x2a9,_0x441dea:0x282,_0x4f7b2e:0x271,_0x35cc43:0x283,_0x786ba8:0x284,_0xc29d46:0x2ac,_0x1e092e:0x2a1,_0xd30cfa:0x287,_0x5b24d3:0x2d4,_0x2c9b18:0x2bb,_0x527d3c:0x268,_0x526bd5:0x27f,_0xc5f663:0xfe,_0x473b9f:0xe8,_0x594346:0x129,_0x592f40:0x12b,_0x355f7a:0x151,_0xa41ab3:0xfa,_0x339f24:0xdc,_0x5c54c4:0x100,_0x40c14a:0x29c,_0xa93b27:0x163,_0x23361a:0xe6,_0x2fde97:0x107,_0x131af3:0x10c,_0x542185:0xf0,_0x17578f:0xf1,_0x7175e8:0xfd,_0x336468:0x104,_0x2512dd:0x298,_0x27d2bb:0x15a,_0x3af8a7:0x125,_0x394873:0x120,_0x3e6910:0x164,_0x46cfc6:0x134,_0x73abbd:0x2a3,_0x497e90:0x2b1,_0xcb5fc7:0x27e,_0x1290e5:0x28f,_0xf20a88:0x141,_0x4802a1:0x112,_0x51c1f5:0x13a,_0x5879f3:0x2ba,_0x22fce3:0x2ab,_0x3c234e:0x2ae,_0x303b61:0x2ba,_0x1728bf:0x2af,_0x459481:0x115,_0x1db511:0x144,_0x5cdeaa:0xfb,_0x53156d:0x128,_0x343c0b:0x2ad,_0x29a2c8:0x28b,_0x3614f1:0x281,_0x264aea:0x155,_0x20234c:0x172,_0x424a5c:0x12b,_0x5ef0bb:0x13e,_0x395134:0x116,_0x4cba37:0x113,_0x10f201:0x2bd,_0x4f575a:0x277,_0x3748f8:0x149,_0x40defe:0x146,_0x83d3e7:0x119,_0x32bc48:0x136,_0x52cde0:0x131,_0x3f974e:0x2c5,_0x3516fb:0x127,_0x591ed7:0x129,_0x36b153:0x16a,_0x1a49e1:0x14a,_0x16b412:0x27a,_0x7c3e78:0x2b1,_0x3e48bb:0x2b5,_0x33bd1f:0x118,_0x1ef0d4:0x13f,_0x48599d:0x14e,_0x40b44b:0x10a,_0x25f455:0xfb,_0x35b648:0xf3,_0x428ad3:0x14d,_0x20bb50:0x2dc,_0x4716e6:0x29e,_0x229fcc:0x162,_0x3133ca:0x14c,_0x5897dc:0xf1,_0x59a97b:0xf3,_0x53cfc6:0x2ac,_0x5233f7:0x288,_0x5a5131:0x29d,_0x33f43c:0x273,_0x2b68aa:0x2b6,_0x5e8496:0x25f,_0x140e28:0x289,_0x529b94:0x11c,_0x59b1a6:0x2a5,_0x2286c2:0x2c3,_0x39804e:0x27d,_0x22e424:0x2ba,_0x259bea:0x263,_0x5dc333:0x259,_0x4eeb0c:0x279,_0x3d001f:0x282,_0x28a5a5:0x278,_0x2df98f:0x2b0,_0x14b6a5:0x2be,_0x197d39:0x125,_0x4999ca:0x11e,_0x1d9737:0x139,_0x199c7a:0x27e,_0x277d6a:0x2c0,_0x49f457:0x2c1,_0x26373c:0x29d,_0x399ffd:0x145,_0x4a753f:0x140,_0x5b6491:0x166,_0x373768:0x136,_0x5953f6:0x2a1,_0x5b3cd8:0x27d,_0x19113b:0x25a,_0x38e981:0x177,_0xb76688:0x16b,_0x46b580:0x280,_0x37d854:0x24e,_0x1152c5:0x2d7,_0x2d85d8:0x2df,_0x3820ed:0x2c4,_0x487224:0x16a,_0xcc9ec5:0x2c8,_0x26bbcf:0x2a5,_0x45b214:0x2e8,_0x173349:0x24c,_0x1b8f7a:0x28b,_0x20160d:0x118,_0x59ee77:0x10d,_0x2bf25a:0x123,_0x241a02:0x25b,_0x4ff9f2:0x265,_0x3e83d5:0xe9,_0x2be5e2:0x106,_0x4c9cd0:0x293,_0x1bbb68:0x29e,_0x28c7de:0x2bc,_0xc46e98:0x285,_0x3ae4e8:0x2a6,_0x477a6b:0x258,_0x7eb54a:0x251,_0x784606:0x122,_0x296ea0:0x133,_0x55253f:0x10c,_0x58064d:0x281,_0xd505ee:0x2c7,_0x2b3c95:0x286,_0x1a7bdd:0xfe,_0x2da86b:0x12f,_0x358136:0x286,_0x720c8b:0x130,_0xd94109:0x140,_0xf0a24d:0x2b3,_0x39b1a4:0x2a5,_0xaf0a40:0x28e,_0x5726e6:0x281,_0x46a4c4:0x136,_0x28456d:0x104,_0x1e5c9f:0x25c,_0x498d55:0x261,_0x46cd15:0x269,_0x1c2007:0x2a8,_0x14e4ef:0x2cb,_0xae4573:0x286,_0x445ee7:0x29e,_0x5aba00:0x2e0,_0x2fb417:0x10f,_0x47e1e2:0x29b,_0x577b58:0x103,_0x16835a:0x147,_0x40a648:0x11f,_0x2a24e2:0x12c,_0x5be4c6:0x293,_0x9d2b75:0x262,_0x13f132:0x126,_0x55dda9:0x291,_0x5b8de2:0x2b1,_0x5922b4:0x298,_0x44d90a:0x292,_0x38c72a:0x29b,_0x4a436d:0x2a0},_0x5331b9={_0x424285:0x1bf},_0x1582b4={'kZRqm':_0x2aa28b(-0x107,-0x11f,-_0x1628ed._0xfaec41,-_0x1628ed._0x321723)+_0x4710f3(-0x26d,-_0x1628ed._0x26ff38,-0x24a,-0x266)+'red','mgKNF':function(_0x41bc99,_0x52b38a){return _0x41bc99!==_0x52b38a;},'LUJKg':_0x4710f3(-_0x1628ed._0x3a32da,-_0x1628ed._0x31939c,-_0x1628ed._0x563c1d,-0x282)+'ed\x20admin\x20a'+_0x4710f3(-_0x1628ed._0x3c36b2,-_0x1628ed._0x30bfdf,-0x275,-0x264)+'mpt','PJsbu':'Forbidden','ceysU':_0x2aa28b(-_0x1628ed._0x5ecd01,-_0x1628ed._0x23c74c,-0x144,-0x16c)+_0x2aa28b(-_0x1628ed._0xfe7e11,-0x120,-0x117,-_0x1628ed._0x560961)+'ission\x20to\x20'+_0x4710f3(-0x260,-0x260,-0x264,-_0x1628ed._0x37de4c)+'s\x20resource','Iqkel':function(_0xffe9c9){return _0xffe9c9();},'cWLUU':function(_0x575682,_0x364bdd){return _0x575682===_0x364bdd;},'TBpjl':'test','zHrzD':_0x4710f3(-0x24e,-_0x1628ed._0x20a567,-_0x1628ed._0x5bad66,-0x274),'iMCfp':_0x4710f3(-0x26b,-_0x1628ed._0x14e5ae,-_0x1628ed._0x924e53,-0x28c),'jBTjB':_0x4710f3(-0x297,-0x2ab,-_0x1628ed._0x4927d9,-0x28b)+_0x2aa28b(-_0x1628ed._0x3f8c06,-0x123,-0x142,-_0x1628ed._0x3b57cd),'ZeDxh':_0x4710f3(-_0x1628ed._0x159588,-0x288,-0x27e,-_0x1628ed._0x1b6cf4),'KxQyC':_0x4710f3(-0x2a1,-0x2bb,-0x294,-0x2a7),'MDZwI':_0x4710f3(-_0x1628ed._0x441dea,-_0x1628ed._0x4f7b2e,-0x279,-0x276),'zcABg':_0x4710f3(-0x2ab,-0x256,-0x267,-_0x1628ed._0x35cc43),'ARtil':_0x4710f3(-_0x1628ed._0x786ba8,-_0x1628ed._0xc29d46,-0x28b,-_0x1628ed._0x1e092e)+'thenticate'+'d\x20request','JtFxg':'Invalid\x20AP'+_0x4710f3(-_0x1628ed._0x5bad66,-0x2b2,-0x291,-_0x1628ed._0xd30cfa)+_0x4710f3(-_0x1628ed._0x5b24d3,-0x2ad,-0x2cd,-_0x1628ed._0x2c9b18),'CNiAA':_0x4710f3(-_0x1628ed._0x527d3c,-0x27f,-0x2a1,-_0x1628ed._0x526bd5),'OdeJQ':_0x2aa28b(-_0x1628ed._0xc5f663,-_0x1628ed._0x473b9f,-0x114,-0x107)+_0x2aa28b(-_0x1628ed._0x594346,-0x143,-_0x1628ed._0x592f40,-_0x1628ed._0x355f7a)+_0x2aa28b(-_0x1628ed._0xa41ab3,-_0x1628ed._0x339f24,-0xfc,-_0x1628ed._0x5c54c4),'FDRop':_0x4710f3(-0x27e,-0x295,-0x2bf,-_0x1628ed._0x40c14a)+_0x2aa28b(-0x129,-_0x1628ed._0xa93b27,-0x134,-0x144)+_0x2aa28b(-_0x1628ed._0x23361a,-0x12d,-_0x1628ed._0x2fde97,-0xe5)+_0x2aa28b(-_0x1628ed._0x131af3,-0x124,-0x102,-_0x1628ed._0x542185)+_0x2aa28b(-0x10f,-_0x1628ed._0x17578f,-_0x1628ed._0x7175e8,-_0x1628ed._0x336468)};if(_0x1582b4[_0x4710f3(-0x2bd,-0x2b4,-0x26f,-_0x1628ed._0x2512dd)](process[_0x2aa28b(-_0x1628ed._0x27d2bb,-_0x1628ed._0x3af8a7,-0x135,-0x10d)]['NODE_ENV'],_0x1582b4[_0x2aa28b(-_0x1628ed._0x394873,-_0x1628ed._0x3e6910,-0x143,-_0x1628ed._0x46cfc6)])||process[_0x4710f3(-_0x1628ed._0x786ba8,-0x2cf,-0x2ae,-_0x1628ed._0x73abbd)][_0x4710f3(-_0x1628ed._0x497e90,-_0x1628ed._0xcb5fc7,-0x296,-_0x1628ed._0x1290e5)+'TH']===_0x1582b4[_0x4710f3(-0x284,-0x26e,-0x274,-0x290)]){const _0x46ce2d={};return _0x46ce2d['id']=_0x1582b4[_0x2aa28b(-_0x1628ed._0xf20a88,-_0x1628ed._0x4802a1,-_0x1628ed._0x51c1f5,-0x10e)],_0x46ce2d[_0x4710f3(-_0x1628ed._0x5879f3,-0x292,-_0x1628ed._0x22fce3,-_0x1628ed._0x3c234e)]=_0x1582b4[_0x4710f3(-_0x1628ed._0x303b61,-0x2a2,-_0x1628ed._0x1728bf,-0x2b1)],_0x46ce2d[_0x2aa28b(-_0x1628ed._0x592f40,-0x112,-_0x1628ed._0x394873,-_0x1628ed._0x459481)]=_0x1582b4[_0x2aa28b(-_0x1628ed._0x1db511,-_0x1628ed._0x5cdeaa,-_0x1628ed._0x53156d,-0x107)],_0x46ce2d[_0x4710f3(-0x284,-_0x1628ed._0x343c0b,-_0x1628ed._0x29a2c8,-_0x1628ed._0x3614f1)]=_0x1582b4[_0x2aa28b(-0x155,-_0x1628ed._0x264aea,-0x14b,-_0x1628ed._0x20234c)],_0x46ce2d['role']=_0x1582b4[_0x2aa28b(-_0x1628ed._0x424a5c,-_0x1628ed._0x5ef0bb,-_0x1628ed._0x395134,-_0x1628ed._0x4cba37)],_0x46ce2d[_0x4710f3(-0x29b,-0x26d,-0x273,-0x27a)+'me']=_0x1582b4[_0x4710f3(-0x299,-_0x1628ed._0x10f201,-0x2c7,-0x2b1)],_0x480af8[_0x4710f3(-_0x1628ed._0x4f575a,-_0x1628ed._0x563c1d,-0x29f,-0x29d)]=_0x46ce2d,_0x480af8[_0x2aa28b(-_0x1628ed._0x5ecd01,-_0x1628ed._0x3748f8,-_0x1628ed._0x40defe,-_0x1628ed._0x83d3e7)+'tedVia']=_0x1582b4['TBpjl'],_0x1582b4[_0x2aa28b(-_0x1628ed._0x32bc48,-0x133,-0x13f,-_0x1628ed._0x52cde0)](_0x29f0af);}const _0x157f63=_0x480af8['headers'][_0x4710f3(-_0x1628ed._0x3c234e,-0x2b8,-_0x1628ed._0x3f974e,-0x2a0)+_0x2aa28b(-0x135,-0x10e,-_0x1628ed._0x3516fb,-_0x1628ed._0x591ed7)];if(_0x157f63&&_0x157f63[_0x2aa28b(-0x124,-_0x1628ed._0x36b153,-_0x1628ed._0x5ef0bb,-_0x1628ed._0x1a49e1)]('Bearer\x20')){const _0xf4c203=_0x157f63[_0x4710f3(-_0x1628ed._0xcb5fc7,-_0x1628ed._0x16b412,-_0x1628ed._0x7c3e78,-0x293)](-0x1752+0x1*-0x889+0x6a*0x4d),_0x114773=await validateApiKey(_0xf4c203);if(_0x114773){if(_0x1582b4[_0x4710f3(-0x29f,-0x28a,-0x2df,-_0x1628ed._0x3e48bb)]===_0x1582b4['MDZwI']){_0x480af8[_0x2aa28b(-_0x1628ed._0x33bd1f,-_0x1628ed._0x1ef0d4,-0x12f,-_0x1628ed._0x48599d)]=_0x114773,_0x480af8['authentica'+_0x2aa28b(-0xef,-_0x1628ed._0x40b44b,-_0x1628ed._0x25f455,-_0x1628ed._0x35b648)]=_0x1582b4['zcABg'];const _0x43d667={};return _0x43d667[_0x2aa28b(-0x118,-0x123,-0x110,-0x12e)]=_0x114773['id'],_0x43d667[_0x2aa28b(-_0x1628ed._0x428ad3,-0x146,-0x140,-0x158)]=_0x114773[_0x4710f3(-_0x1628ed._0x20bb50,-_0x1628ed._0x4716e6,-0x2d4,-_0x1628ed._0x3c234e)],_0x43d667[_0x2aa28b(-_0x1628ed._0x229fcc,-0x127,-0x145,-_0x1628ed._0x3133ca)]=_0x480af8['path'],logger[_0x2aa28b(-_0x1628ed._0x5897dc,-_0x1628ed._0x459481,-0x10f,-_0x1628ed._0x59a97b)](_0x1582b4['ARtil'],_0x43d667),_0x29f0af();}else{if(!_0x439f17[_0x4710f3(-_0x1628ed._0x53cfc6,-_0x1628ed._0x5233f7,-0x297,-_0x1628ed._0x5a5131)]){const _0x4109ea={};return _0x4109ea[_0x4710f3(-0x264,-0x299,-0x272,-_0x1628ed._0x33f43c)]=_0x1582b4[_0x4710f3(-0x28e,-_0x1628ed._0x2b68aa,-_0x1628ed._0x5e8496,-_0x1628ed._0x140e28)],_0x4109ea[_0x2aa28b(-0xcf,-_0x1628ed._0x529b94,-0xf5,-0xfc)]=_0x4710f3(-_0x1628ed._0x343c0b,-_0x1628ed._0x59b1a6,-0x292,-_0x1628ed._0x40c14a)+_0x4710f3(-_0x1628ed._0x2286c2,-_0x1628ed._0x39804e,-_0x1628ed._0x22e424,-0x2a2)+_0x4710f3(-_0x1628ed._0x1290e5,-0x2cc,-0x2d9,-0x2b6)+_0x4710f3(-_0x1628ed._0x259bea,-0x294,-_0x1628ed._0x5dc333,-_0x1628ed._0x4eeb0c)+_0x4710f3(-_0x1628ed._0x3d001f,-_0x1628ed._0x16b412,-0x24e,-_0x1628ed._0x28a5a5),_0x138176['status'](0x1e7f+-0x2047*0x1+0x359)[_0x4710f3(-0x2a4,-0x2b7,-_0x1628ed._0x2df98f,-_0x1628ed._0x14b6a5)](_0x4109ea);}if(_0x1582b4['mgKNF'](_0x13beaf['user']['role'],_0x2aa28b(-_0x1628ed._0x197d39,-_0x1628ed._0x4999ca,-_0x1628ed._0x1d9737,-0x142))){const _0xbf740f={};_0xbf740f['userId']=_0x4c34e2[_0x4710f3(-_0x1628ed._0x199c7a,-_0x1628ed._0x277d6a,-0x2c2,-0x29d)]['id'],_0xbf740f[_0x4710f3(-0x2ad,-0x27f,-_0x1628ed._0x49f457,-0x2ae)]=_0x2adb1f[_0x4710f3(-0x275,-0x28a,-_0x1628ed._0x39804e,-_0x1628ed._0x26373c)][_0x2aa28b(-_0x1628ed._0x399ffd,-0x16c,-_0x1628ed._0x4a753f,-0x13c)],_0xbf740f['path']=_0x29f6bd['path'],_0x2b02fb[_0x2aa28b(-_0x1628ed._0x5b6491,-_0x1628ed._0x373768,-0x14c,-0x16f)](_0x1582b4['LUJKg'],_0xbf740f);const _0x336eda={};return _0x336eda[_0x4710f3(-_0x1628ed._0x5953f6,-0x245,-0x261,-0x273)]=_0x1582b4['PJsbu'],_0x336eda[_0x4710f3(-_0x1628ed._0x5b3cd8,-0x235,-_0x1628ed._0x19113b,-0x263)]=_0x1582b4[_0x2aa28b(-0x14a,-_0x1628ed._0x38e981,-_0x1628ed._0x48599d,-_0x1628ed._0xb76688)],_0x1ed8ca[_0x4710f3(-_0x1628ed._0x46b580,-0x27b,-_0x1628ed._0x37d854,-0x272)](0x124b*0x2+-0xe8d+-0x1476)[_0x4710f3(-_0x1628ed._0x1152c5,-0x2d7,-0x299,-0x2be)](_0x336eda);}_0x1582b4['Iqkel'](_0x27d685);}}const _0x42d783={};_0x42d783['path']=_0x480af8[_0x4710f3(-_0x1628ed._0x2d85d8,-_0x1628ed._0x3820ed,-_0x1628ed._0x2b68aa,-0x2b3)],_0x42d783[_0x2aa28b(-0x164,-_0x1628ed._0x487224,-0x141,-0x135)]=_0x480af8[_0x4710f3(-_0x1628ed._0x1b6cf4,-0x2ba,-_0x1628ed._0xcc9ec5,-0x2af)],logger[_0x4710f3(-_0x1628ed._0x26bbcf,-_0x1628ed._0x45b214,-0x2e3,-0x2ba)](_0x1582b4[_0x4710f3(-_0x1628ed._0x3c36b2,-_0x1628ed._0x3c36b2,-0x27e,-0x26e)],_0x42d783);const _0x36faf9={};return _0x36faf9[_0x4710f3(-_0x1628ed._0x173349,-_0x1628ed._0x1b8f7a,-0x2a1,-0x273)]=_0x2aa28b(-_0x1628ed._0x20160d,-0xde,-_0x1628ed._0x59ee77,-_0x1628ed._0x2bf25a)+_0x4710f3(-_0x1628ed._0x241a02,-0x26f,-_0x1628ed._0x173349,-_0x1628ed._0x4ff9f2),_0x36faf9[_0x2aa28b(-0xe6,-0xd3,-0xf5,-_0x1628ed._0x3e83d5)]=_0x2aa28b(-0x114,-0x10e,-0x109,-_0x1628ed._0x2be5e2)+_0x4710f3(-0x2d8,-_0x1628ed._0x4c9cd0,-_0x1628ed._0x1bbb68,-_0x1628ed._0x22fce3)+_0x4710f3(-_0x1628ed._0x29a2c8,-_0x1628ed._0x28c7de,-_0x1628ed._0xc46e98,-_0x1628ed._0x3ae4e8)+_0x4710f3(-0x29c,-0x2a7,-_0x1628ed._0x26bbcf,-_0x1628ed._0x5233f7)+'ed',_0x15327d[_0x4710f3(-_0x1628ed._0x477a6b,-_0x1628ed._0x7eb54a,-0x27b,-_0x1628ed._0x5bad66)](0x2632*-0x1+0x23*-0x116+-0x1cf*-0x2b)['json'](_0x36faf9);}function _0x2aa28b(_0xd236ad,_0x21edc7,_0xa1e1d4,_0xfe8164){return _0x47b9(_0xa1e1d4- -_0x5331b9._0x424285,_0x21edc7);}if(_0x480af8[_0x2aa28b(-_0x1628ed._0x784606,-_0x1628ed._0x296ea0,-0x111,-_0x1628ed._0x55253f)]?.['userId']){_0x480af8[_0x4710f3(-_0x1628ed._0x58064d,-_0x1628ed._0xd505ee,-_0x1628ed._0x2b3c95,-0x29d)]={'id':_0x480af8['session'][_0x2aa28b(-_0x1628ed._0x1a7bdd,-_0x1628ed._0x2da86b,-0x110,-0x12e)],'username':_0x480af8[_0x4710f3(-_0x1628ed._0x358136,-0x263,-0x274,-0x27f)][_0x2aa28b(-0x14e,-_0x1628ed._0x720c8b,-_0x1628ed._0xd94109,-_0x1628ed._0x1ef0d4)],'email':_0x480af8['session'][_0x4710f3(-0x276,-0x283,-_0x1628ed._0xf0a24d,-0x28e)],'name':_0x480af8[_0x4710f3(-0x27d,-_0x1628ed._0x39b1a4,-_0x1628ed._0xaf0a40,-0x27f)][_0x4710f3(-0x255,-0x261,-_0x1628ed._0xd30cfa,-_0x1628ed._0x5726e6)],'role':_0x480af8[_0x2aa28b(-0x131,-_0x1628ed._0xa41ab3,-0x111,-_0x1628ed._0x40b44b)]['role'],'ssh_username':_0x480af8[_0x2aa28b(-0xf0,-_0x1628ed._0x46a4c4,-0x111,-_0x1628ed._0x28456d)]['ssh_userna'+'me']},_0x480af8['authentica'+_0x4710f3(-_0x1628ed._0x1e5c9f,-_0x1628ed._0x498d55,-0x288,-_0x1628ed._0x46cd15)]=_0x1582b4['CNiAA'];const _0x140e2b={};return _0x140e2b[_0x2aa28b(-0x100,-0x10b,-0x110,-0x12f)]=_0x480af8[_0x4710f3(-0x2a2,-0x293,-_0x1628ed._0x5dc333,-_0x1628ed._0x924e53)]['userId'],_0x140e2b['username']=_0x480af8[_0x4710f3(-0x2ac,-_0x1628ed._0x1c2007,-0x2a2,-0x27f)][_0x4710f3(-_0x1628ed._0x14e4ef,-_0x1628ed._0xae4573,-0x29e,-_0x1628ed._0x3c234e)],_0x140e2b[_0x2aa28b(-0x145,-_0x1628ed._0xd94109,-_0x1628ed._0x399ffd,-0x117)]=_0x480af8[_0x4710f3(-_0x1628ed._0x445ee7,-0x293,-_0x1628ed._0x5aba00,-0x2b3)],logger[_0x2aa28b(-0x126,-_0x1628ed._0x131af3,-_0x1628ed._0x2fb417,-_0x1628ed._0x32bc48)](_0x4710f3(-0x2c3,-0x272,-0x2b2,-_0x1628ed._0x47e1e2)+_0x2aa28b(-0xe1,-0xf3,-_0x1628ed._0x577b58,-_0x1628ed._0x5c54c4)+_0x2aa28b(-_0x1628ed._0x16835a,-0x113,-_0x1628ed._0x40a648,-_0x1628ed._0x2a24e2),_0x140e2b),_0x29f0af();}const _0xa34862={};_0xa34862['path']=_0x480af8['path'],_0xa34862['method']=_0x480af8['method'],_0xa34862['ip']=_0x480af8['ip'],logger[_0x4710f3(-_0x1628ed._0x5be4c6,-_0x1628ed._0x9d2b75,-0x27f,-_0x1628ed._0x5b3cd8)](_0x1582b4[_0x4710f3(-0x2d8,-0x2cc,-0x2d1,-0x2bf)],_0xa34862);const _0x46880b={};_0x46880b[_0x2aa28b(-0x11c,-_0x1628ed._0x13f132,-0x105,-0x129)]=_0x1582b4['kZRqm'],_0x46880b[_0x4710f3(-_0x1628ed._0x55dda9,-0x27a,-0x26d,-0x263)]=_0x1582b4[_0x4710f3(-_0x1628ed._0x5b8de2,-_0x1628ed._0x5922b4,-_0x1628ed._0x47e1e2,-_0x1628ed._0x44d90a)];function _0x4710f3(_0x4b48d2,_0x4af6e8,_0x5f1ba1,_0x441a9c){return _0x47b9(_0x441a9c- -0x32d,_0x4b48d2);}return _0x15327d['status'](-0x49a+0x16f4+-0x10c9*0x1)[_0x4710f3(-_0x1628ed._0x38c72a,-_0x1628ed._0x4a436d,-0x2a3,-0x2be)](_0x46880b);}export function requireAdmin(_0x44cafc,_0x3791cb,_0x59c195){const _0x3fcebc={_0x4b10d2:0x35,_0x2ef490:0x44,_0x34f975:0x2f,_0x1e09db:0x22,_0x1c7ef7:0x23,_0x318222:0x223,_0x55fc49:0x20a,_0x224b31:0x217,_0x2eb0ce:0x268,_0xf1db3:0x25b,_0x509f32:0x208,_0x14ce4e:0x23e,_0x31c922:0x39,_0x3cbef2:0x258,_0x1940b4:0x25c,_0x5b4f75:0x24a,_0x109f63:0x16,_0x2a8237:0xd,_0x524c65:0xe,_0x4aa3cf:0x6b,_0x3c6277:0x7c,_0x82dbda:0x3e,_0x1e7910:0x231,_0x4df850:0x4c,_0xc1f132:0x48,_0x3d13d5:0x54,_0x1fd0ad:0x62,_0x42efb:0x38,_0x2743cc:0x6a,_0x11f9cb:0x223,_0x1d6738:0x5e,_0x108b9c:0x80,_0x50df66:0x33,_0x42ec99:0x4b,_0x120550:0x56,_0x232048:0x27f,_0x1701ba:0x241,_0x27b8bc:0x1df,_0x107666:0x203,_0x36dd91:0x254,_0x33c0b9:0x23b,_0x4b59bb:0x24d,_0x6fc44e:0x227,_0xd01d68:0x203,_0x13beb6:0x254,_0x1b5f68:0x258,_0x303397:0x281,_0x317a6c:0x275,_0x3e041e:0x249,_0x408237:0x26f,_0x447174:0x34,_0x11448c:0x1f,_0x546461:0x23,_0x18595d:0x214,_0x4226f6:0x1f7,_0x4f67d5:0x1fa,_0x417e9f:0x201,_0x332832:0x2e,_0xbf6e43:0x1e,_0x48d8d1:0x47,_0x2cae07:0x20a,_0x3c31d2:0x22c,_0x2fd581:0x20c,_0x2c79e6:0x6c,_0x447314:0x5d,_0x51ced7:0x35,_0x192b6d:0x5e,_0xec81bf:0x22f,_0x4c38bb:0x22b,_0x43a4f3:0x230,_0x353768:0x238,_0x10f11b:0x236,_0x3fa6ae:0x244},_0xb6eecf={_0x504639:0x193},_0x2c9d5d={_0x5eba29:0x5c};function _0x2df9ac(_0x2c3525,_0x40e309,_0x9e0de9,_0x645491){return _0x47b9(_0x2c3525- -_0x2c9d5d._0x5eba29,_0x40e309);}const _0xb4aa0a={'StSaf':_0x2df9ac(_0x3fcebc._0x4b10d2,0x1d,0x56,_0x3fcebc._0x2ef490)+_0x2df9ac(_0x3fcebc._0x34f975,_0x3fcebc._0x1e09db,_0x3fcebc._0x1c7ef7,0x5b)+_0x5461ac(_0x3fcebc._0x318222,_0x3fcebc._0x55fc49,_0x3fcebc._0x224b31,0x212)+_0x5461ac(_0x3fcebc._0x2eb0ce,0x247,_0x3fcebc._0xf1db3,0x21a)+'ource','rHQzb':function(_0x105f41,_0x1d1ea3){return _0x105f41!==_0x1d1ea3;},'MxWtZ':_0x5461ac(_0x3fcebc._0x509f32,0x219,0x20d,0x1f6),'NeCJv':_0x5461ac(0x211,_0x3fcebc._0x14ce4e,0x234,0x21f)+_0x2df9ac(0x19,0x5,-0x10,_0x3fcebc._0x31c922)+_0x5461ac(_0x3fcebc._0x3cbef2,_0x3fcebc._0x1940b4,0x272,_0x3fcebc._0x5b4f75)+_0x2df9ac(_0x3fcebc._0x109f63,-_0x3fcebc._0x2a8237,0x15,-_0x3fcebc._0x524c65),'odAFy':_0x2df9ac(0x64,_0x3fcebc._0x4aa3cf,_0x3fcebc._0x3c6277,_0x3fcebc._0x82dbda),'NuhWl':_0x5461ac(0x1e4,0x20e,_0x3fcebc._0x1e7910,0x219)+_0x2df9ac(_0x3fcebc._0x4df850,0x2a,0x41,0x2b)+_0x2df9ac(0x3d,0x57,_0x3fcebc._0xc1f132,_0x3fcebc._0x3d13d5)+_0x2df9ac(_0x3fcebc._0x1fd0ad,0x48,0x87,_0x3fcebc._0x42efb)+_0x2df9ac(0x47,0x31,_0x3fcebc._0x2743cc,0x20),'PLsSB':function(_0x3c12ce){return _0x3c12ce();}};if(!_0x44cafc[_0x5461ac(0x23d,_0x3fcebc._0x11f9cb,_0x3fcebc._0x14ce4e,0x20a)]){const _0x543959={};return _0x543959[_0x2df9ac(_0x3fcebc._0x1d6738,0x8d,_0x3fcebc._0x108b9c,0x7b)]=_0x2df9ac(_0x3fcebc._0x50df66,_0x3fcebc._0x42ec99,_0x3fcebc._0x120550,_0x3fcebc._0x1fd0ad)+_0x5461ac(_0x3fcebc._0x232048,0x25a,_0x3fcebc._0x1701ba,0x22f)+_0x5461ac(_0x3fcebc._0x27b8bc,_0x3fcebc._0x107666,0x1fe,0x1dd),_0x543959[_0x5461ac(0x231,0x25d,_0x3fcebc._0x36dd91,_0x3fcebc._0x33c0b9)]=_0xb4aa0a['StSaf'],_0x3791cb[_0x5461ac(_0x3fcebc._0x4b59bb,0x24e,0x26f,_0x3fcebc._0x6fc44e)](-0x7*-0xdb+0x1a75+-0x1ee1)[_0x5461ac(_0x3fcebc._0xd01d68,0x202,0x200,0x20a)](_0x543959);}if(_0xb4aa0a['rHQzb'](_0x44cafc['user']['role'],_0xb4aa0a[_0x5461ac(_0x3fcebc._0x13beb6,_0x3fcebc._0x1b5f68,_0x3fcebc._0x303397,_0x3fcebc._0x317a6c)])){const _0x46a963={};_0x46a963[_0x5461ac(_0x3fcebc._0x3e041e,0x242,0x255,_0x3fcebc._0x408237)]=_0x44cafc[_0x2df9ac(_0x3fcebc._0x447174,_0x3fcebc._0x11448c,_0x3fcebc._0x546461,0x61)]['id'],_0x46a963[_0x5461ac(0x1f2,0x212,_0x3fcebc._0x18595d,0x23d)]=_0x44cafc[_0x5461ac(_0x3fcebc._0x4226f6,0x223,_0x3fcebc._0x4f67d5,_0x3fcebc._0x417e9f)][_0x2df9ac(0x23,0x49,_0x3fcebc._0x332832,0x4f)],_0x46a963[_0x5461ac(_0x3fcebc._0x6fc44e,0x20d,0x208,0x237)]=_0x44cafc[_0x2df9ac(_0x3fcebc._0xbf6e43,_0x3fcebc._0x48d8d1,-0xc,0x15)],logger[_0x5461ac(_0x3fcebc._0x2cae07,0x206,_0x3fcebc._0x3c31d2,_0x3fcebc._0x2fd581)](_0xb4aa0a[_0x2df9ac(0x65,_0x3fcebc._0x2c79e6,0x41,_0x3fcebc._0x447314)],_0x46a963);const _0x482d2f={};return _0x482d2f[_0x2df9ac(0x5e,_0x3fcebc._0x51ced7,_0x3fcebc._0x2c79e6,_0x3fcebc._0x192b6d)]=_0xb4aa0a[_0x5461ac(0x22d,_0x3fcebc._0xec81bf,_0x3fcebc._0x55fc49,_0x3fcebc._0x4c38bb)],_0x482d2f[_0x5461ac(_0x3fcebc._0x43a4f3,0x25d,_0x3fcebc._0x353768,_0x3fcebc._0x10f11b)]=_0xb4aa0a['NuhWl'],_0x3791cb['status'](-0x178*-0x9+-0x1*-0x1716+0x20b*-0x11)['json'](_0x482d2f);}function _0x5461ac(_0x4c1692,_0x2481a6,_0x2783d0,_0x3eee7c){return _0x47b9(_0x2481a6-_0xb6eecf._0x504639,_0x2783d0);}_0xb4aa0a[_0x5461ac(0x23a,_0x3fcebc._0x3fa6ae,0x24b,0x21f)](_0x59c195);}
1
+ (function(_0x395b55,_0x1e0a55){const _0x152739={_0x2cfbaf:0xa9,_0x50d596:0x8e,_0x405b1b:0x7f,_0x2bf572:0x2b,_0x25d5c6:0x40,_0x1986eb:0x7b,_0x4746e8:0x9d,_0x4737a9:0x15,_0x144bb6:0x34,_0x16a4dd:0xa4,_0x460285:0x9a,_0x22f084:0xc6,_0x24db8f:0xb5,_0x558126:0x9c,_0x4374f3:0x8b,_0x5d1776:0x65,_0x4634a3:0x69,_0x53aec8:0x20,_0x19300c:0x4a,_0x3a9755:0x2c},_0x36dee8={_0x34c4ff:0x160};function _0x1f032e(_0x47b02c,_0x76d26b,_0x3a7a79,_0x34981a){return _0x33cf(_0x47b02c- -_0x36dee8._0x34c4ff,_0x76d26b);}function _0x471e7b(_0x293025,_0x5f4130,_0x200ba2,_0xeb31ff){return _0x33cf(_0x5f4130- -0x1ce,_0x293025);}const _0x18bd75=_0x395b55();while(!![]){try{const _0x3bc759=parseInt(_0x1f032e(_0x152739._0x2cfbaf,0xd1,_0x152739._0x50d596,_0x152739._0x405b1b))/(-0x6b9*0x3+0x80*0xb+0xeac)*(-parseInt(_0x471e7b(0x9,_0x152739._0x2bf572,0x3d,_0x152739._0x25d5c6))/(0x2*0x1335+0x1*-0xcbb+-0x19ad))+-parseInt(_0x1f032e(_0x152739._0x1986eb,0x99,_0x152739._0x4746e8,0x7a))/(0x17e*0xf+0x1467+-0x2ac6)+-parseInt(_0x471e7b(0x37,0x27,_0x152739._0x4737a9,_0x152739._0x144bb6))/(-0x1ec6+0x16*0x79+0x414*0x5)+-parseInt(_0x1f032e(_0x152739._0x16a4dd,0x7b,0x7c,0x8a))/(-0x1764+-0x12*0x182+-0x1*-0x328d)*(-parseInt(_0x1f032e(_0x152739._0x460285,_0x152739._0x22f084,_0x152739._0x24db8f,0xb5))/(-0xa*0x287+0x25e5*0x1+0xc99*-0x1))+-parseInt(_0x1f032e(_0x152739._0x558126,0x90,0x74,0x9e))/(0x1468+0x19f0+-0x47*0xa7)*(parseInt(_0x1f032e(0x78,_0x152739._0x4374f3,_0x152739._0x5d1776,_0x152739._0x4634a3))/(0xc06+0x155+-0xd53))+parseInt(_0x471e7b(0xc,_0x152739._0x53aec8,_0x152739._0x19300c,_0x152739._0x3a9755))/(0x5*-0x53+0xb*0x1a+0x8a)+parseInt(_0x471e7b(0x5e,0x31,0x1b,0x21))/(-0x129f+0x32+0xa3*0x1d);if(_0x3bc759===_0x1e0a55)break;else _0x18bd75['push'](_0x18bd75['shift']());}catch(_0x1c50c1){_0x18bd75['push'](_0x18bd75['shift']());}}}(_0x1c85,0x3f620+-0x9e*-0x2474+-0xe00bb));import{logger}from'../lib/logger.js';import{validateApiKey}from'../lib/apiKeys.js';function _0x33cf(_0x68352d,_0x5de0b7){_0x68352d=_0x68352d-(0x10d2+0x9*-0x7f+-0x5*0x220);const _0x48e21f=_0x1c85();let _0x50b1ff=_0x48e21f[_0x68352d];if(_0x33cf['EHwixx']===undefined){var _0xee9222=function(_0x2d4ff0){const _0x32134f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5dcd44='',_0x2b1dc0='';for(let _0x46977b=-0x2a1*0xb+-0x33*-0x16+0x1889,_0x2dbef8,_0xf9323a,_0x3b37e4=-0xbdb+0x9*0x176+-0x1*0x14b;_0xf9323a=_0x2d4ff0['charAt'](_0x3b37e4++);~_0xf9323a&&(_0x2dbef8=_0x46977b%(0x1aff+-0x2325+0x82a)?_0x2dbef8*(0x1810+-0x1*-0x431+0x43*-0x6b)+_0xf9323a:_0xf9323a,_0x46977b++%(0x1347+0x18c9+-0x2c0c))?_0x5dcd44+=String['fromCharCode'](0x83*0x29+0x1*0x757+-0x1b53&_0x2dbef8>>(-(-0x13d1+0x2b*0x1f+-0x1*-0xe9e)*_0x46977b&-0x22e1+-0x167*0x6+-0x1*-0x2b51)):-0x1bb1*-0x1+-0x20*0x17+-0x1*0x18d1){_0xf9323a=_0x32134f['indexOf'](_0xf9323a);}for(let _0x8c90fb=-0x1af1+-0x1*-0x5ab+0x1546,_0x38d14a=_0x5dcd44['length'];_0x8c90fb<_0x38d14a;_0x8c90fb++){_0x2b1dc0+='%'+('00'+_0x5dcd44['charCodeAt'](_0x8c90fb)['toString'](-0x8d0+-0x1dcb+0x209*0x13))['slice'](-(0xe91+-0x7*-0x349+-0x1*0x258e));}return decodeURIComponent(_0x2b1dc0);};_0x33cf['aXDlMS']=_0xee9222,_0x33cf['zMeacI']={},_0x33cf['EHwixx']=!![];}const _0x2787fb=_0x48e21f[0xb*0x295+0x43*-0x73+0x1b2],_0x2feb7a=_0x68352d+_0x2787fb,_0x41c10b=_0x33cf['zMeacI'][_0x2feb7a];return!_0x41c10b?(_0x50b1ff=_0x33cf['aXDlMS'](_0x50b1ff),_0x33cf['zMeacI'][_0x2feb7a]=_0x50b1ff):_0x50b1ff=_0x41c10b,_0x50b1ff;}export async function requireAuth(_0x3b7fd9,_0x37313d,_0x5e2275){const _0x3de283={_0x4e2559:0x4df,_0x55c398:0x4bb,_0x1d08c:0x4ab,_0x6e4af5:0x187,_0x2b3103:0x4d3,_0x5604d5:0x52b,_0x124d1c:0x4dd,_0x37564f:0x4dc,_0x3394b3:0x15e,_0xb665ae:0x184,_0x475a19:0x189,_0x239b8e:0x4f4,_0x469c84:0x4f3,_0x3f2810:0x504,_0x3e993e:0x51a,_0x241abc:0x4f2,_0x7b67df:0x504,_0x5b4d6a:0x4b7,_0x3b390b:0x49e,_0x5ef15d:0x4b2,_0x2e6d33:0x4f0,_0x494d04:0x1a3,_0x2a948d:0x178,_0xf5a714:0x4f7,_0x46b0ff:0x4e3,_0x3fd7fb:0x4c1,_0xd789c5:0x4fc,_0x3d7f19:0x495,_0x59c3ea:0x4d8,_0x340351:0x4d0,_0x5d8488:0x1cb,_0x4dc063:0x1c7,_0x387408:0x1f2,_0x426406:0x1c4,_0x47216c:0x19e,_0x32fa49:0x168,_0x1178d3:0x18e,_0xaa9820:0x1d6,_0x1cdeda:0x1b9,_0x3d62f9:0x1ba,_0x3f3723:0x1d5,_0x4b46be:0x1c1,_0x49b194:0x1a5,_0x139fec:0x1ac,_0x1ae295:0x4cc,_0xc65828:0x4dd,_0xeee08:0x4b4,_0x173d17:0x1e2,_0x166d2b:0x4b1,_0x13db61:0x4a4,_0x54309b:0x172,_0x231678:0x195,_0x4acda4:0x1af,_0x4d66b0:0x1a8,_0x3e266f:0x4d5,_0x392684:0x4ce,_0x5ac76b:0x4ba,_0x2215f0:0x4e8,_0x877d2e:0x179,_0x36b95c:0x17a,_0x1fd2b7:0x4d8,_0x1e8cc0:0x4de,_0x2da062:0x1de,_0x3b3e1c:0x511,_0x32c1cc:0x51f,_0x2bb879:0x509,_0x6427e4:0x4db,_0x1c05f3:0x4e2,_0x1446eb:0x1c9,_0x55141c:0x4ca,_0x1be7ec:0x4ae,_0x2c5efd:0x4e6,_0x47e775:0x4cd,_0x32010e:0x4b5,_0x2a242c:0x48f,_0x513507:0x191,_0x4f75ea:0x18b,_0x952239:0x1a9,_0x156d4d:0x19d,_0x353a85:0x4e4,_0x468c49:0x4ed,_0x4ddd7a:0x4f6,_0x40c889:0x4d9,_0x5770c0:0x4c3,_0x36182c:0x49a,_0x48fe2a:0x4b7,_0x4fe35c:0x4cb,_0x1830fc:0x4a7,_0x18c752:0x486,_0x161eb9:0x4f9,_0x558479:0x4b8,_0x5ba145:0x4f6,_0x3c5303:0x1f7,_0x3f7108:0x4a6,_0x6b8f37:0x4a9,_0x53e453:0x4bf,_0x5a3c78:0x4a9,_0x44cb16:0x4ed,_0x1f34dd:0x1b1,_0x3dd26a:0x1c9,_0xc4319:0x1b0,_0x2215cb:0x4f1,_0x226423:0x1bf,_0x558881:0x17e,_0x4f811e:0x1a6,_0x56687d:0x4e6,_0x14a2c8:0x501,_0x365acc:0x1c2,_0x5eb52f:0x484,_0x258365:0x4a9,_0x54d09b:0x4a5,_0x3a6e71:0x1ae,_0x22b16d:0x4ad,_0x5079ac:0x19d,_0x4f18f3:0x1ca,_0x529c7d:0x1e5,_0x1bec27:0x492,_0x3fdef1:0x1d0,_0xa756a1:0x1ab,_0x1107d9:0x506,_0x3b47ff:0x1e6,_0x5629ee:0x1da,_0x2005d3:0x4fc,_0x3a9e78:0x4d6,_0x1e5b46:0x194,_0x373e10:0x4d0,_0x4393a3:0x1a9,_0x4ee354:0x4e7,_0x451ba5:0x4f6,_0x13c4ea:0x1a0,_0x5a2b3b:0x1f0,_0x5806c1:0x50e,_0x28bd65:0x4ee,_0x1967d7:0x168,_0x246dcf:0x194,_0x441500:0x4b3,_0x5dca0c:0x4b3,_0x5c7791:0x4d7,_0x42b49d:0x4c8,_0x3e4374:0x4ba,_0x4bffa8:0x4f3,_0xeea7f8:0x50d,_0x44ae4f:0x19d,_0x5d56cc:0x194,_0x5f2ee4:0x1d3,_0x2826a7:0x1b0,_0x320e09:0x4a1,_0x338be8:0x4d1,_0x26bd59:0x4ee,_0x26c848:0x18a,_0x50cc40:0x175,_0x247232:0x4e2,_0x7828ef:0x1f3,_0x238e1f:0x1f6,_0x5c07c0:0x4ef,_0x4713ab:0x4cf,_0x4a9366:0x4eb,_0x1d6478:0x4eb,_0x15d0c7:0x1bf,_0x5d00b9:0x1a7,_0x33de63:0x1b4,_0x2bb3b2:0x1a9,_0x210940:0x4c5,_0x2e06db:0x4bd,_0x3a0a51:0x4ef,_0x433077:0x4e6,_0x995d50:0x186,_0x36982a:0x1ce,_0x53dc6b:0x18d,_0x21c662:0x1a2,_0x1ab920:0x18f,_0x365094:0x18a,_0x8bcdea:0x4c9,_0x8f82d2:0x52e,_0x49af5b:0x1bb,_0x19d65e:0x1b3,_0xce970d:0x4d6,_0x90388e:0x4e6},_0x3b5712={_0x2c6c31:0x34},_0x2e9dd7={'sSRIK':'session','GJUua':_0x4aa414(_0x3de283._0x4e2559,_0x3de283._0x55c398,0x4d8,_0x3de283._0x1d08c)+'thenticate'+_0x15fcba(0x197,0x19b,0x181,_0x3de283._0x6e4af5),'gWKFq':function(_0x370a6d){return _0x370a6d();},'YEfkU':function(_0x3a36f7,_0x41eb71){return _0x3a36f7===_0x41eb71;},'NIvVx':_0x4aa414(0x4d2,0x4c8,0x4cb,_0x3de283._0x2b3103),'uclUS':'true','hTdsx':_0x4aa414(_0x3de283._0x5604d5,0x4fe,_0x3de283._0x124d1c,_0x3de283._0x37564f),'yhbbW':'test@examp'+_0x15fcba(_0x3de283._0x3394b3,0x174,_0x3de283._0xb665ae,_0x3de283._0x475a19),'LyICz':_0x4aa414(_0x3de283._0x239b8e,_0x3de283._0x469c84,_0x3de283._0x3f2810,0x4ec),'vzIJs':_0x4aa414(_0x3de283._0x3e993e,_0x3de283._0x241abc,0x4cd,_0x3de283._0x7b67df),'tOiVH':'Bearer\x20','DyPjG':function(_0x319cd0,_0xd47019){return _0x319cd0(_0xd47019);},'vBpSf':_0x4aa414(0x49d,_0x3de283._0x5b4d6a,_0x3de283._0x3b390b,_0x3de283._0x5ef15d),'ABrsB':_0x4aa414(0x4f2,0x4da,0x4bc,_0x3de283._0x2e6d33)+'thenticate'+_0x15fcba(0x195,_0x3de283._0x494d04,_0x3de283._0x2a948d,0x187),'lKani':function(_0x3476ee){return _0x3476ee();},'ECaCW':_0x4aa414(_0x3de283._0xf5a714,_0x3de283._0x46b0ff,_0x3de283._0x3fd7fb,_0x3de283._0xd789c5)+_0x4aa414(_0x3de283._0x3d7f19,0x4b9,_0x3de283._0x59c3ea,_0x3de283._0x340351)+_0x15fcba(_0x3de283._0x5d8488,0x1c5,0x1a4,0x1b6),'SkyvM':_0x15fcba(_0x3de283._0x4dc063,0x1ee,_0x3de283._0x387408,_0x3de283._0x426406)+'I\x20key','szMtc':_0x15fcba(_0x3de283._0x47216c,_0x3de283._0x32fa49,0x164,_0x3de283._0x1178d3)+'ed\x20API\x20key'+'\x20is\x20invali'+_0x15fcba(0x1b8,_0x3de283._0xaa9820,0x1e2,0x1cc)+'ed','QyaYd':function(_0x2a683a,_0x53efa1){return _0x2a683a===_0x53efa1;},'SHrSD':'yBZxM','RbXew':_0x15fcba(_0x3de283._0x1cdeda,0x1b7,_0x3de283._0x3d62f9,0x1ca),'IMcZP':function(_0x9fd7cb){return _0x9fd7cb();},'oWoMi':_0x15fcba(_0x3de283._0x3f3723,_0x3de283._0x4b46be,_0x3de283._0x49b194,_0x3de283._0x139fec)+_0x4aa414(_0x3de283._0x1ae295,_0x3de283._0xc65828,_0x3de283._0xeee08,0x4dc)+_0x15fcba(0x20f,0x208,0x1db,_0x3de283._0x173d17),'zJWnv':_0x4aa414(_0x3de283._0x166d2b,0x4ab,0x487,_0x3de283._0x13db61)+_0x15fcba(_0x3de283._0x54309b,0x19b,0x177,_0x3de283._0x231678)+_0x15fcba(_0x3de283._0x4acda4,_0x3de283._0x4d66b0,_0x3de283._0x6e4af5,0x1a2)+'de\x20a\x20valid'+'\x20API\x20key'};if(_0x2e9dd7[_0x4aa414(0x4aa,0x4bd,0x4b4,_0x3de283._0x3e266f)](process['env'][_0x4aa414(_0x3de283._0x392684,_0x3de283._0x5ac76b,0x499,_0x3de283._0x2215f0)],_0x2e9dd7[_0x15fcba(0x165,_0x3de283._0x877d2e,_0x3de283._0x36b95c,0x18b)])||_0x2e9dd7[_0x4aa414(_0x3de283._0x1fd2b7,0x4bd,_0x3de283._0x1e8cc0,0x49c)](process['env'][_0x15fcba(0x1c9,_0x3de283._0x2da062,0x1e4,0x1bf)+'TH'],_0x2e9dd7[_0x4aa414(_0x3de283._0x3b3e1c,0x4ff,_0x3de283._0x32c1cc,_0x3de283._0x2bb879)])){const _0x5e0c33={};return _0x5e0c33['id']=_0x2e9dd7[_0x4aa414(_0x3de283._0x2b3103,0x4c2,0x4c1,_0x3de283._0xc65828)],_0x5e0c33[_0x4aa414(_0x3de283._0x6427e4,0x4cf,0x4bd,0x4aa)]=_0x2e9dd7['NIvVx'],_0x5e0c33[_0x4aa414(0x4e6,_0x3de283._0x1c05f3,0x4f9,0x510)]=_0x2e9dd7['yhbbW'],_0x5e0c33[_0x4aa414(0x4d2,0x4ee,0x4e5,0x4d4)]=_0x2e9dd7[_0x15fcba(_0x3de283._0x1446eb,0x1d7,0x18b,0x1aa)],_0x5e0c33['role']=_0x2e9dd7[_0x4aa414(0x4d1,_0x3de283._0x55141c,_0x3de283._0x1be7ec,_0x3de283._0x2c5efd)],_0x5e0c33[_0x4aa414(_0x3de283._0x47e775,_0x3de283._0x32010e,0x4c2,_0x3de283._0x2a242c)+'me']=_0x2e9dd7[_0x15fcba(_0x3de283._0x513507,0x195,0x186,_0x3de283._0x4f75ea)],_0x3b7fd9[_0x15fcba(_0x3de283._0x952239,_0x3de283._0x156d4d,0x1a5,0x1a0)]=_0x5e0c33,_0x3b7fd9[_0x4aa414(_0x3de283._0x353a85,_0x3de283._0x468c49,_0x3de283._0x4ddd7a,0x4e9)+_0x4aa414(_0x3de283._0x32010e,0x4dc,_0x3de283._0x40c889,_0x3de283._0x5770c0)]=_0x2e9dd7[_0x4aa414(0x4ae,0x4aa,_0x3de283._0x36182c,_0x3de283._0x48fe2a)],_0x5e2275();}const _0xb86e1f=_0x3b7fd9[_0x4aa414(_0x3de283._0x4fe35c,_0x3de283._0x1830fc,_0x3de283._0x18c752,_0x3de283._0x392684)][_0x4aa414(_0x3de283._0x161eb9,_0x3de283._0x392684,_0x3de283._0x558479,_0x3de283._0x5ba145)+'ion'];if(_0xb86e1f&&_0xb86e1f[_0x15fcba(_0x3de283._0x3c5303,0x1df,0x1d3,0x1d7)](_0x2e9dd7['tOiVH'])){const _0x2aad8d=_0xb86e1f[_0x4aa414(0x48a,0x4b1,_0x3de283._0x3d7f19,_0x3de283._0x3f7108)](-0x30*0xcc+0x1bc7+0xa80),_0x5c4f90=await _0x2e9dd7['DyPjG'](validateApiKey,_0x2aad8d);if(_0x5c4f90){_0x3b7fd9[_0x4aa414(_0x3de283._0x6b8f37,_0x3de283._0x53e453,0x4b1,_0x3de283._0x5a3c78)]=_0x5c4f90,_0x3b7fd9[_0x4aa414(0x502,_0x3de283._0x44cb16,_0x3de283._0xf5a714,0x51a)+'tedVia']=_0x2e9dd7['vBpSf'];const _0x2485d3={};return _0x2485d3[_0x15fcba(0x199,0x1c4,0x1c9,_0x3de283._0x1f34dd)]=_0x5c4f90['id'],_0x2485d3[_0x4aa414(0x4ab,0x4cf,0x4dc,0x4c0)]=_0x5c4f90[_0x15fcba(0x18e,_0x3de283._0x3dd26a,_0x3de283._0xb665ae,_0x3de283._0xc4319)],_0x2485d3['path']=_0x3b7fd9[_0x4aa414(0x4ec,0x4d3,0x4f3,_0x3de283._0x2215cb)],logger[_0x15fcba(0x199,_0x3de283._0x226423,_0x3de283._0x558881,_0x3de283._0x4f811e)](_0x2e9dd7['ABrsB'],_0x2485d3),_0x2e9dd7[_0x4aa414(0x4e3,_0x3de283._0x56687d,_0x3de283._0x14a2c8,0x4fc)](_0x5e2275);}const _0x3a35a6={};_0x3a35a6[_0x15fcba(0x1b3,0x1b8,_0x3de283._0x365acc,0x1b4)]=_0x3b7fd9[_0x4aa414(0x4d6,_0x3de283._0x2b3103,_0x3de283._0x2b3103,0x4ec)],_0x3a35a6[_0x4aa414(_0x3de283._0x5eb52f,_0x3de283._0x258365,0x4b4,_0x3de283._0x54d09b)]=_0x3b7fd9[_0x4aa414(_0x3de283._0x558479,_0x3de283._0x258365,0x491,_0x3de283._0x340351)],logger[_0x15fcba(0x199,0x1cf,0x1b3,_0x3de283._0x3a6e71)](_0x2e9dd7[_0x4aa414(_0x3de283._0x22b16d,0x4d4,0x4d9,0x4f3)],_0x3a35a6);const _0x1759fc={};return _0x1759fc['error']=_0x2e9dd7[_0x15fcba(_0x3de283._0x5079ac,0x18a,0x1b3,0x199)],_0x1759fc[_0x15fcba(_0x3de283._0x4f18f3,0x199,0x1ec,0x1c2)]=_0x2e9dd7[_0x15fcba(_0x3de283._0x529c7d,0x1f7,_0x3de283._0x173d17,0x1d8)],_0x37313d['status'](0x1e5c+-0x21df+0x514)[_0x4aa414(_0x3de283._0x1bec27,0x4be,_0x3de283._0x3f7108,0x49e)](_0x1759fc);}if(_0x3b7fd9[_0x15fcba(0x1b5,0x185,0x1a2,0x194)]?.[_0x15fcba(_0x3de283._0x3fdef1,_0x3de283._0xa756a1,0x1b0,0x1b1)]){if(_0x2e9dd7[_0x4aa414(0x503,0x4df,_0x3de283._0x1107d9,_0x3de283._0x3e266f)](_0x2e9dd7[_0x15fcba(_0x3de283._0x3b47ff,0x1be,_0x3de283._0x5d8488,_0x3de283._0x5629ee)],_0x2e9dd7[_0x4aa414(0x525,_0x3de283._0x2005d3,0x4ee,_0x3de283._0x3a9e78)])){const _0x288b17={};_0x288b17['id']=_0x360b07[_0x15fcba(0x188,_0x3de283._0x1e5b46,_0x3de283._0x3d62f9,_0x3de283._0x1e5b46)][_0x4aa414(0x4f6,_0x3de283._0x373e10,0x4ef,0x4e5)],_0x288b17['username']=_0x1ff5b9[_0x15fcba(0x17b,_0x3de283._0x4393a3,0x17c,0x194)][_0x4aa414(_0x3de283._0x4ee354,0x4cf,_0x3de283._0x451ba5,_0x3de283._0x241abc)],_0x288b17[_0x4aa414(0x4cd,_0x3de283._0x1c05f3,0x4c2,0x4d9)]=_0x59fee4['session'][_0x15fcba(_0x3de283._0x13c4ea,_0x3de283._0x5a2b3b,0x1b8,0x1c3)],_0x288b17[_0x4aa414(_0x3de283._0x5806c1,_0x3de283._0x28bd65,_0x3de283._0x451ba5,0x509)]=_0x47da28['session']['name'],_0x288b17[_0x15fcba(0x1ca,_0x3de283._0x4f75ea,0x1cf,0x1b8)]=_0x40c899[_0x15fcba(0x18b,_0x3de283._0x1967d7,0x18f,_0x3de283._0x246dcf)]['role'],_0x288b17[_0x4aa414(0x48d,0x4b5,0x4e3,0x48c)+'me']=_0x25a215[_0x4aa414(0x492,_0x3de283._0x441500,0x4a5,0x4de)][_0x4aa414(0x4af,_0x3de283._0x32010e,_0x3de283._0x5dca0c,0x488)+'me'],_0x178120[_0x4aa414(_0x3de283._0x13db61,0x4bf,_0x3de283._0x5c7791,_0x3de283._0x42b49d)]=_0x288b17,_0x51e04f['authentica'+'tedVia']=_0x2e9dd7[_0x4aa414(0x4ae,0x4af,0x498,_0x3de283._0x4fe35c)];const _0x596e0e={};return _0x596e0e[_0x4aa414(0x4be,_0x3de283._0x340351,0x4b7,_0x3de283._0x3e4374)]=_0x2e933f[_0x4aa414(0x4d6,0x4b3,0x491,0x4b3)][_0x4aa414(0x4fc,0x4d0,0x4a8,0x4e7)],_0x596e0e['username']=_0x351686['session']['username'],_0x596e0e['path']=_0x1490ce[_0x4aa414(0x4c4,0x4d3,_0x3de283._0x469c84,_0x3de283._0x4bffa8)],_0x256b16['debug'](_0x2e9dd7['GJUua'],_0x596e0e),_0x2e9dd7[_0x4aa414(0x504,0x4fd,0x507,_0x3de283._0xeea7f8)](_0x598fed);}else{_0x3b7fd9[_0x15fcba(0x19b,0x1a1,0x197,_0x3de283._0x13c4ea)]={'id':_0x3b7fd9[_0x15fcba(0x1c2,0x168,_0x3de283._0x44ae4f,_0x3de283._0x5d56cc)]['userId'],'username':_0x3b7fd9['session'][_0x15fcba(_0x3de283._0x5f2ee4,0x1bb,0x18f,_0x3de283._0x2826a7)],'email':_0x3b7fd9['session']['email'],'name':_0x3b7fd9[_0x4aa414(0x4a2,0x4b3,_0x3de283._0x320e09,0x493)][_0x4aa414(_0x3de283._0x338be8,_0x3de283._0x26bd59,0x4e3,0x516)],'role':_0x3b7fd9['session']['role'],'ssh_username':_0x3b7fd9[_0x15fcba(_0x3de283._0x26c848,0x171,_0x3de283._0x50cc40,0x194)][_0x4aa414(0x4df,0x4b5,_0x3de283._0x247232,0x48a)+'me']},_0x3b7fd9[_0x15fcba(_0x3de283._0x7828ef,0x1de,_0x3de283._0x238e1f,0x1ce)+_0x4aa414(_0x3de283._0x5c07c0,0x4dc,_0x3de283._0x2215f0,_0x3de283._0x1c05f3)]=_0x2e9dd7['sSRIK'];const _0x4a5912={};return _0x4a5912['userId']=_0x3b7fd9[_0x15fcba(0x184,0x19c,0x170,_0x3de283._0x1e5b46)]['userId'],_0x4a5912[_0x4aa414(_0x3de283._0x46b0ff,_0x3de283._0x4713ab,_0x3de283._0x4a9366,_0x3de283._0x1d6478)]=_0x3b7fd9['session']['username'],_0x4a5912[_0x15fcba(_0x3de283._0x15d0c7,0x1da,_0x3de283._0x5d00b9,_0x3de283._0x33de63)]=_0x3b7fd9[_0x15fcba(_0x3de283._0x2bb3b2,0x18d,0x1a7,_0x3de283._0x33de63)],logger[_0x4aa414(0x4f1,_0x3de283._0x210940,_0x3de283._0x2e06db,0x4af)](_0x2e9dd7[_0x4aa414(0x4a0,0x4b2,0x4dc,_0x3de283._0x2b3103)],_0x4a5912),_0x2e9dd7[_0x4aa414(_0x3de283._0x3a0a51,_0x3de283._0x2215f0,_0x3de283._0x433077,0x4ff)](_0x5e2275);}}const _0x37797c={};function _0x4aa414(_0x530054,_0x48e36a,_0x7e67,_0x58c20e){return _0x33cf(_0x48e36a-0x2eb,_0x58c20e);}_0x37797c[_0x15fcba(0x1a4,0x1b1,_0x3de283._0x995d50,_0x3de283._0x33de63)]=_0x3b7fd9[_0x15fcba(_0x3de283._0x36982a,0x194,_0x3de283._0x53dc6b,0x1b4)],_0x37797c[_0x15fcba(0x17c,_0x3de283._0x21c662,_0x3de283._0x1ab920,_0x3de283._0x365094)]=_0x3b7fd9[_0x4aa414(_0x3de283._0x53e453,_0x3de283._0x258365,_0x3de283._0x13db61,_0x3de283._0x2b3103)],_0x37797c['ip']=_0x3b7fd9['ip'];function _0x15fcba(_0x44aa9f,_0x384596,_0x395ec7,_0x22d7df){return _0x33cf(_0x22d7df- -_0x3b5712._0x2c6c31,_0x44aa9f);}logger[_0x4aa414(_0x3de283._0x8bcdea,0x4c5,0x4e9,_0x3de283._0x2b3103)](_0x2e9dd7['oWoMi'],_0x37797c);const _0x4176f4={};return _0x4176f4[_0x4aa414(0x4d4,0x500,_0x3de283._0x8f82d2,_0x3de283._0x1107d9)]=_0x15fcba(0x1b2,0x185,0x1c0,0x19d)+_0x15fcba(0x18e,0x1a9,_0x3de283._0x49af5b,_0x3de283._0x19d65e)+'red',_0x4176f4['message']=_0x2e9dd7[_0x4aa414(_0x3de283._0xce970d,0x4d6,0x4e6,0x4d1)],_0x37313d[_0x4aa414(_0x3de283._0x90388e,0x4c7,0x4bd,0x4ab)](-0x3d5+0x10b*0x9+-0x1*0x3fd)['json'](_0x4176f4);}export function requireAdmin(_0x555e10,_0x1339db,_0x35b1fd){const _0x5ae944={_0x4b7a5e:0x1c6,_0x50115c:0x19b,_0x234274:0x16d,_0x513be5:0x18e,_0x4288c1:0x1b3,_0x4721b2:0x1a6,_0x41bc3c:0x1e6,_0xffb13d:0x1fd,_0x3fd8f0:0x19f,_0x53a005:0x1ac,_0x513f38:0x1c3,_0x53eaec:0x196,_0x29f353:0x1ce,_0x19eac2:0x1c8,_0x57b1c4:0x1bd,_0x2eb8a8:0x1d4,_0x5e507c:0x1a4,_0x59b74a:0x1a0,_0x363576:0x1b7,_0x256dbd:0x16d,_0x37bda5:0x1ac,_0x17d8a6:0x1b1,_0x7884e2:0x1a7,_0x3dc49f:0x1c2,_0x2a4527:0x1b9,_0x3b20b5:0x1df,_0x4c2854:0x192,_0xcde064:0x1ca,_0x1effe1:0x1aa,_0x3c59e:0x181,_0x31e0a9:0x1a1,_0x493794:0x17e,_0x124004:0x1c6,_0x3fb8da:0x17e,_0x277692:0x1f9,_0x42e274:0x1e9,_0xeed61e:0x1e4,_0x59b4be:0x1ee,_0xd8b666:0x1ed,_0x1133ef:0x1de,_0x3587b8:0x1e0,_0x1248d7:0x1ed,_0x5a1890:0x192,_0x456cc3:0x1c9,_0x5e6272:0x1bf,_0x5add8f:0x1c1,_0x255eb4:0x1d8,_0x45beb5:0x1d1,_0x18b09d:0x1e1,_0x1a5849:0x1b2,_0xc34d9d:0x1e8,_0x2b1001:0x1be,_0x125597:0x215,_0x1571ac:0x1eb,_0x113035:0x1bc,_0x2d3686:0x1bb,_0x1c967f:0x19d,_0x4353ac:0x1fe,_0x13cecf:0x1f7,_0x2fcd54:0x1c4,_0x4da0e3:0x1da,_0x4cbd90:0x1e4,_0x371da6:0x1b8,_0x454987:0x1b2,_0x14d55d:0x1b6,_0x5882dd:0x1ae,_0x433f8f:0x1c2,_0x45fdca:0x1ba,_0x3bc360:0x1c5,_0x4c85b5:0x1c7,_0x2bbac3:0x195,_0x172161:0x1be,_0x39558b:0x1db,_0x36c20e:0x194,_0x57b204:0x200,_0x40be9f:0x1bc,_0x4b46f6:0x1c8,_0x3e9503:0x19c,_0x499af5:0x1f1,_0x4a49c9:0x1f3,_0x188e70:0x20e,_0x4fb2f1:0x20e,_0x1c0ab0:0x1e3,_0x32f2aa:0x1ad,_0x36c326:0x1e5,_0x4c7b38:0x1a9,_0x24b35d:0x1b3,_0x564927:0x191,_0x1e0e67:0x188,_0x35a787:0x1b0,_0x4ba90c:0x199,_0x39535c:0x1bd,_0x21e780:0x1ab,_0x4cd66c:0x1a9,_0x3434d0:0x1a2},_0x34e101={_0x2360e0:0x2a},_0x4372a9={};_0x4372a9['TKFbf']=_0x39c181(0x189,0x1b9,0x1b3,_0x5ae944._0x4b7a5e),_0x4372a9['LuGnb']='test@examp'+_0x192891(_0x5ae944._0x50115c,_0x5ae944._0x234274,_0x5ae944._0x513be5,_0x5ae944._0x4288c1),_0x4372a9['JnSuT']='admin';function _0x192891(_0x13ee85,_0x283569,_0x287313,_0x2efa32){return _0x33cf(_0x13ee85- -0x22,_0x2efa32);}_0x4372a9[_0x39c181(_0x5ae944._0x4721b2,0x18d,0x199,0x1c5)]=_0x39c181(0x1c3,0x1cd,_0x5ae944._0x41bc3c,_0x5ae944._0xffb13d);function _0x39c181(_0x1930a9,_0x581819,_0x6e03af,_0x3e8820){return _0x33cf(_0x6e03af- -_0x34e101._0x2360e0,_0x3e8820);}_0x4372a9[_0x39c181(_0x5ae944._0x3fd8f0,_0x5ae944._0x53a005,_0x5ae944._0x513f38,_0x5ae944._0x53eaec)]=_0x192891(0x1af,0x1c7,0x1d5,0x199)+_0x39c181(_0x5ae944._0x29f353,_0x5ae944._0x19eac2,_0x5ae944._0x57b1c4,_0x5ae944._0x2eb8a8)+_0x192891(0x19f,0x18a,_0x5ae944._0x5e507c,_0x5ae944._0x59b74a),_0x4372a9[_0x39c181(0x1a2,0x1c6,_0x5ae944._0x363576,0x1a0)]=_0x39c181(0x1b2,_0x5ae944._0x256dbd,0x196,_0x5ae944._0x37bda5)+_0x39c181(_0x5ae944._0x17d8a6,_0x5ae944._0x7884e2,0x19f,0x18f)+_0x39c181(_0x5ae944._0x3dc49f,0x1e3,0x1c6,_0x5ae944._0x2a4527)+_0x192891(_0x5ae944._0x3b20b5,0x1fd,0x1b1,0x1df)+'ource',_0x4372a9['HxTqc']=function(_0x1eeb39,_0x40ada2){return _0x1eeb39!==_0x40ada2;},_0x4372a9['btfYs']=_0x39c181(_0x5ae944._0x4c2854,0x1c3,_0x5ae944._0x50115c,0x1c8);const _0x367b22=_0x4372a9;if(!_0x555e10[_0x39c181(0x181,_0x5ae944._0xcde064,_0x5ae944._0x1effe1,_0x5ae944._0x3c59e)]){if(_0x367b22[_0x192891(_0x5ae944._0x31e0a9,_0x5ae944._0x493794,0x18f,0x1a9)]!==_0x367b22[_0x192891(0x1a1,_0x5ae944._0x124004,0x1a0,_0x5ae944._0x3fb8da)]){const _0x3dad6b={};return _0x3dad6b['id']=_0x39c181(0x1d4,_0x5ae944._0x277692,_0x5ae944._0x42e274,0x1ff),_0x3dad6b[_0x192891(_0x5ae944._0x3dc49f,_0x5ae944._0xeed61e,_0x5ae944._0x59b4be,_0x5ae944._0x37bda5)]=_0x367b22['TKFbf'],_0x3dad6b[_0x39c181(0x1c6,0x1c1,0x1cd,0x1ec)]=_0x367b22['LuGnb'],_0x3dad6b[_0x39c181(0x1ab,0x1e3,0x1d9,0x1ff)]=_0x192891(_0x5ae944._0x41bc3c,_0x5ae944._0xd8b666,0x1d1,0x212),_0x3dad6b[_0x39c181(0x1e7,_0x5ae944._0x1133ef,_0x5ae944._0x3dc49f,_0x5ae944._0x3587b8)]=_0x367b22[_0x192891(_0x5ae944._0x1248d7,0x217,0x205,0x202)],_0x3dad6b[_0x39c181(0x185,0x193,0x1a0,_0x5ae944._0x5a1890)+'me']=_0x367b22[_0x39c181(_0x5ae944._0x456cc3,_0x5ae944._0x5e6272,_0x5ae944._0x3587b8,0x1eb)],_0x2c9d34[_0x39c181(0x187,_0x5ae944._0x57b1c4,_0x5ae944._0x1effe1,_0x5ae944._0x513f38)]=_0x3dad6b,_0x213807[_0x39c181(_0x5ae944._0x5add8f,0x1ac,_0x5ae944._0x255eb4,_0x5ae944._0x45beb5)+_0x192891(0x1cf,_0x5ae944._0x18b09d,_0x5ae944._0x1a5849,0x1dd)]=_0x367b22[_0x192891(_0x5ae944._0xc34d9d,0x1f9,0x1db,_0x5ae944._0x2b1001)],_0x3fbca3();}else{const _0xbc90f7={};return _0xbc90f7[_0x39c181(_0x5ae944._0x125597,0x1e1,_0x5ae944._0x1571ac,0x1e0)]=_0x367b22[_0x39c181(_0x5ae944._0x113035,_0x5ae944._0x2d3686,0x1c3,_0x5ae944._0x1c967f)],_0xbc90f7[_0x192891(0x1d4,0x1a9,_0x5ae944._0x4353ac,_0x5ae944._0x13cecf)]=_0x367b22['wAWcL'],_0x1339db[_0x192891(0x1ba,_0x5ae944._0x4721b2,_0x5ae944._0x2fcd54,_0x5ae944._0x4da0e3)](0x139+0x1fe8+-0x194*0x14)[_0x192891(0x1b1,0x18c,_0x5ae944._0x2a4527,0x190)](_0xbc90f7);}}if(_0x367b22[_0x192891(_0x5ae944._0x4cbd90,_0x5ae944._0x371da6,0x1b6,0x1e4)](_0x555e10[_0x192891(_0x5ae944._0x454987,0x19b,0x1aa,0x191)]['role'],_0x192891(0x1e5,0x1b7,0x1d8,0x1ed))){const _0x253d1c={};_0x253d1c[_0x192891(0x1c3,0x1e4,_0x5ae944._0x14d55d,_0x5ae944._0x5882dd)]=_0x555e10['user']['id'],_0x253d1c[_0x39c181(0x1aa,_0x5ae944._0x433f8f,_0x5ae944._0x45fdca,0x1b9)]=_0x555e10[_0x192891(_0x5ae944._0x454987,_0x5ae944._0x2d3686,_0x5ae944._0x3bc360,_0x5ae944._0x2d3686)]['username'],_0x253d1c[_0x39c181(0x19c,_0x5ae944._0x4c85b5,0x1be,_0x5ae944._0x53a005)]=_0x555e10['path'],logger[_0x39c181(_0x5ae944._0x2bbac3,_0x5ae944._0x4288c1,0x1b8,0x19c)](_0x192891(0x1be,_0x5ae944._0x172161,_0x5ae944._0x39558b,_0x5ae944._0x36c20e)+_0x39c181(_0x5ae944._0x255eb4,_0x5ae944._0x57b204,_0x5ae944._0x39558b,0x1bc)+_0x39c181(0x199,0x1c1,_0x5ae944._0x40be9f,0x1b3)+_0x192891(_0x5ae944._0x4b46f6,_0x5ae944._0x3e9503,0x1d9,_0x5ae944._0x499af5),_0x253d1c);const _0x165580={};return _0x165580[_0x192891(_0x5ae944._0x4a49c9,0x1db,0x1e7,0x1e0)]=_0x367b22[_0x39c181(_0x5ae944._0x188e70,_0x5ae944._0x4fb2f1,_0x5ae944._0x1c0ab0,0x1e3)],_0x165580[_0x192891(_0x5ae944._0x2eb8a8,0x1ab,_0x5ae944._0x57b204,0x1d5)]='You\x20do\x20not'+_0x192891(0x1b7,_0x5ae944._0x32f2aa,0x1ba,_0x5ae944._0x36c326)+'ission\x20to\x20'+_0x192891(_0x5ae944._0x4c7b38,0x1cc,0x1d3,0x1ca)+_0x192891(_0x5ae944._0x24b35d,_0x5ae944._0x564927,_0x5ae944._0x1e0e67,0x195),_0x1339db[_0x39c181(0x1bc,_0x5ae944._0x35a787,0x1b2,_0x5ae944._0x4ba90c)](-0x14ea+0x160b+0x72)[_0x39c181(_0x5ae944._0x39535c,_0x5ae944._0x21e780,_0x5ae944._0x4cd66c,_0x5ae944._0x3434d0)](_0x165580);}_0x35b1fd();}function _0x1c85(){const _0xdcba9a=['mZuYmZi0og9hEKz1Aq','qvbjigTLEsbHDq','BIb0BYbHy2nLCW','DgvKvMLH','zwqGywnJzxnZia','reLtqujmrv9bvq','uxLHwwq','nduXntaXnK9hBKvlDW','BwvZC2fNzq','zw1HAwW','sw52ywXPzcbbua','ndC0otrfCvHNv1i','ntCZntrOC0DsBKm','BeTHBMK','odC4mJe1mufrvwzRvq','su1JwLa','EwLhzuu','ndyZmJm5odbNChHtvhi','zcbVCIbLEhbPCG','CYb0AgLZihjLCW','yxv0AgvUDgLJyq','BMfTzq','mtb6Cxv4Dhy','zwqGywrTAw4Gyq','shHuCwm','ywrTAw4','vgvZDcbvC2vY','mJLeCwrnr3C','veTgyMy','C3rHCNrZv2L0Aa','C3PnDgm','yNrMwxm','u0HYu0q','sM5tDvq','shHrtxK','uMjyzxC','z1DlrNe','DgvZDc11C2vY','DwnSvvm','zxjYB3i','yxr0zw1WDa','zcbYzxf1zxn0','AgvHzgvYCW','BguUy29T','Bwv0Ag9K','tKL2vNG','ww91ig11C3qGyG','CMvK','vgHLihbYB3zPza','wKX4teC','C1nssuS','rM9YyMLKzgvU','C3vIC3rYAw5N','r0PvDwe','C2vZC2LVBG','zsbSB2DNzwqGAq','C3nOx3vZzxjUyq','ywnJzxnZihrOAq','yxbPx2TLEq','u2T5DK0','ssbRzxKGyxr0zq','tK9erv9ftLy','u2vZC2LVBIbHDq','qxv0AgvUDgLJyq','wuvMA1u','ANnVBG','DxnLCG','CYbYzxnVDxjJzq','BIbVCIbWCM92Aq','AfrKC3G','ofPAzgHfEG','igHHDMuGCgvYBq','zgvIDwC','mZq2mZC5mwffwLzWta','C3rHDhvZ','DgvZDa','thLjq3O','DNPjsNm','vw5HDxrOB3jPEG','D0fxy0W','D2fYBG','yxv0Ag9YAxPHDa','DxnLCM5HBwu','DxnLCKLK','y2nLC3mGyxr0zq','DgLVBIbYzxf1Aq','Cgf0Aa','runHq1C','Bxb0','EKPxBNy','CM9Szq','r09wruK'];_0x1c85=function(){return _0xdcba9a;};return _0x1c85();}