@profoundlogic/coderflow-server 0.6.1 → 0.6.3

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 (179) hide show
  1. package/dist/base-image/Dockerfile +4 -2
  2. package/dist/base-image/agent-wrapper.sh +32 -4
  3. package/dist/base-image/entrypoint.sh +3 -0
  4. package/dist/coder-server.js +1 -1
  5. package/dist/config/cli-models.json +12 -0
  6. package/dist/config.js +1 -1
  7. package/dist/lib/agent-keepalive.js +1 -1
  8. package/dist/lib/agent-models.js +1 -1
  9. package/dist/lib/api-keys.js +1 -1
  10. package/dist/lib/apiKeys.js +1 -1
  11. package/dist/lib/app-server-ports.js +1 -1
  12. package/dist/lib/auto-judge.js +1 -1
  13. package/dist/lib/automation-service.js +1 -1
  14. package/dist/lib/basic-auth.js +1 -1
  15. package/dist/lib/bindings.js +1 -1
  16. package/dist/lib/build-history.js +1 -1
  17. package/dist/lib/build-output-service.js +1 -1
  18. package/dist/lib/build-scheduler.js +1 -1
  19. package/dist/lib/build-service.js +1 -1
  20. package/dist/lib/ca-certificates.js +1 -1
  21. package/dist/lib/claude-oauth-refresh.js +1 -1
  22. package/dist/lib/cli/build.js +1 -1
  23. package/dist/lib/cli/cleanup-users.js +1 -1
  24. package/dist/lib/cli/config-command.js +1 -1
  25. package/dist/lib/cli/config.js +1 -1
  26. package/dist/lib/cli/create-user.js +1 -1
  27. package/dist/lib/cli/grant-admin.js +1 -1
  28. package/dist/lib/cli/init.js +1 -1
  29. package/dist/lib/cli/jira.js +1 -1
  30. package/dist/lib/cli/license.js +1 -1
  31. package/dist/lib/cli/list-roles.js +1 -1
  32. package/dist/lib/cli/list-users.js +1 -1
  33. package/dist/lib/cli/server-manager.js +1 -1
  34. package/dist/lib/cli/set-password.js +1 -1
  35. package/dist/lib/config-migration.js +1 -1
  36. package/dist/lib/container-credential-sync.js +1 -1
  37. package/dist/lib/container-tokens.js +1 -1
  38. package/dist/lib/data-dir.js +1 -1
  39. package/dist/lib/deployment-history.js +1 -1
  40. package/dist/lib/deployment-service.js +1 -1
  41. package/dist/lib/docker-utils.js +1 -1
  42. package/dist/lib/email.js +1 -1
  43. package/dist/lib/emailTemplates.js +1 -1
  44. package/dist/lib/entitlement.js +1 -1
  45. package/dist/lib/external-connections.js +1 -1
  46. package/dist/lib/fetch-utils.js +1 -1
  47. package/dist/lib/git-commit-details-route.js +1 -1
  48. package/dist/lib/git-history-diff-guardrails.js +1 -1
  49. package/dist/lib/git-provider-service.js +1 -1
  50. package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
  51. package/dist/lib/git-provider-setup/index.js +1 -1
  52. package/dist/lib/git-provider-setup/setup-factory.js +1 -1
  53. package/dist/lib/git-provider-setup/setup-interface.js +1 -1
  54. package/dist/lib/git-providers/azure-devops-provider.js +1 -1
  55. package/dist/lib/git-providers/github-app-provider.js +1 -1
  56. package/dist/lib/git-providers/index.js +1 -1
  57. package/dist/lib/git-providers/provider-factory.js +1 -1
  58. package/dist/lib/git-providers/provider-interface.js +1 -1
  59. package/dist/lib/github-urls.js +1 -1
  60. package/dist/lib/group-objective-linking.js +1 -1
  61. package/dist/lib/ibmi-sync.js +1 -1
  62. package/dist/lib/jira-client.js +1 -1
  63. package/dist/lib/judge-blinding.js +1 -1
  64. package/dist/lib/logger.js +1 -1
  65. package/dist/lib/migration-to-scoped-rbac.js +1 -1
  66. package/dist/lib/model-fetcher.js +1 -1
  67. package/dist/lib/notifications.js +1 -1
  68. package/dist/lib/objective-context.js +1 -1
  69. package/dist/lib/oidc-auth.js +1 -1
  70. package/dist/lib/oidc-device-flow.js +1 -1
  71. package/dist/lib/passwordTokens.js +1 -1
  72. package/dist/lib/permission-resolver.js +1 -1
  73. package/dist/lib/pin-cascade.js +1 -1
  74. package/dist/lib/provider-accounts.js +1 -1
  75. package/dist/lib/provider-oauth.js +1 -1
  76. package/dist/lib/provider-profile.js +1 -1
  77. package/dist/lib/provider-token-refresh.js +1 -1
  78. package/dist/lib/rbac-user-state.js +1 -1
  79. package/dist/lib/request-url.js +1 -1
  80. package/dist/lib/rewind.js +1 -1
  81. package/dist/lib/role-definitions.js +1 -1
  82. package/dist/lib/roles.js +1 -1
  83. package/dist/lib/secrets.js +1 -1
  84. package/dist/lib/setup-repo-git-auth.js +1 -1
  85. package/dist/lib/state-capture.js +1 -1
  86. package/dist/lib/static-files.js +1 -1
  87. package/dist/lib/task-name-format.js +1 -1
  88. package/dist/lib/task-name-generator.js +1 -1
  89. package/dist/lib/task-source-metadata.js +1 -1
  90. package/dist/lib/teams.js +1 -1
  91. package/dist/lib/user-git-oauth.js +1 -1
  92. package/dist/lib/user-git-tokens.js +1 -1
  93. package/dist/lib/users.js +1 -1
  94. package/dist/middleware/requireAuth.js +1 -1
  95. package/dist/middleware/requireInit.js +1 -1
  96. package/dist/middleware/requirePermission.js +1 -1
  97. package/dist/package.json +1 -1
  98. package/dist/playwright.config.js +1 -1
  99. package/dist/playwright.task-terminal.config.js +1 -1
  100. package/dist/routes/apiKeys.js +1 -1
  101. package/dist/routes/auth-oidc.js +1 -1
  102. package/dist/routes/auth.js +1 -1
  103. package/dist/routes/automations.js +1 -1
  104. package/dist/routes/bindings.js +1 -1
  105. package/dist/routes/build.js +1 -1
  106. package/dist/routes/containers.js +1 -1
  107. package/dist/routes/deploy-task.js +1 -1
  108. package/dist/routes/environment-management.js +1 -1
  109. package/dist/routes/environments.js +1 -1
  110. package/dist/routes/external-skills.js +1 -1
  111. package/dist/routes/git-credentials.js +1 -1
  112. package/dist/routes/git-oauth.js +1 -1
  113. package/dist/routes/git-provider-setup.js +1 -1
  114. package/dist/routes/health.js +1 -1
  115. package/dist/routes/jira.js +1 -1
  116. package/dist/routes/objective-management.js +1 -1
  117. package/dist/routes/password.js +1 -1
  118. package/dist/routes/prompt.js +1 -1
  119. package/dist/routes/provider-auth.js +1 -1
  120. package/dist/routes/qa.js +1 -1
  121. package/dist/routes/roles.js +1 -1
  122. package/dist/routes/settings.js +1 -1
  123. package/dist/routes/skill-management.js +1 -1
  124. package/dist/routes/skills.js +1 -1
  125. package/dist/routes/tasks.js +1 -1
  126. package/dist/routes/teams.js +1 -1
  127. package/dist/routes/templates.js +1 -1
  128. package/dist/routes/test-task.js +1 -1
  129. package/dist/routes/test.js +1 -1
  130. package/dist/routes/users.js +1 -1
  131. package/dist/routes/visualizations.js +1 -1
  132. package/dist/scripts/create-user.js +1 -1
  133. package/dist/scripts/migrate-config-to-data-dir.js +1 -1
  134. package/dist/start.js +1 -1
  135. package/dist/web-ui/public/activity-detail-modal.js +1 -1
  136. package/dist/web-ui/public/activity-feed.js +1 -1
  137. package/dist/web-ui/public/activity-formatters.js +1 -1
  138. package/dist/web-ui/public/agent-event-parser.js +1 -1
  139. package/dist/web-ui/public/app.js +1 -1
  140. package/dist/web-ui/public/approve-dialog.js +1 -1
  141. package/dist/web-ui/public/automation-links.js +1 -1
  142. package/dist/web-ui/public/automation-schedule.js +1 -1
  143. package/dist/web-ui/public/comments-widget.js +1 -1
  144. package/dist/web-ui/public/diff-utils.js +1 -1
  145. package/dist/web-ui/public/environments.js +1 -1
  146. package/dist/web-ui/public/feedback-widget.js +1 -1
  147. package/dist/web-ui/public/file-selection-tree.js +1 -1
  148. package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
  149. package/dist/web-ui/public/git-history.js +1 -1
  150. package/dist/web-ui/public/git-status.js +1 -1
  151. package/dist/web-ui/public/ibmi-file-filter.js +1 -1
  152. package/dist/web-ui/public/index.html +39 -0
  153. package/dist/web-ui/public/index.js +1 -1
  154. package/dist/web-ui/public/login.js +1 -1
  155. package/dist/web-ui/public/markdown-editor.js +1 -1
  156. package/dist/web-ui/public/markdown-file-editor.js +1 -1
  157. package/dist/web-ui/public/modal-maximize.js +1 -1
  158. package/dist/web-ui/public/notifications.js +1 -1
  159. package/dist/web-ui/public/permissions.js +1 -1
  160. package/dist/web-ui/public/pr-dialog.js +1 -1
  161. package/dist/web-ui/public/roles.js +1 -1
  162. package/dist/web-ui/public/server-health.js +1 -1
  163. package/dist/web-ui/public/settings.html +23 -0
  164. package/dist/web-ui/public/settings.js +1 -1
  165. package/dist/web-ui/public/setup-password.js +1 -1
  166. package/dist/web-ui/public/skills.js +1 -1
  167. package/dist/web-ui/public/sse-client.js +1 -1
  168. package/dist/web-ui/public/sse-shared-worker.js +1 -1
  169. package/dist/web-ui/public/styles.css +101 -1
  170. package/dist/web-ui/public/task.html +46 -1
  171. package/dist/web-ui/public/task.js +1 -1
  172. package/dist/web-ui/public/teams.js +1 -1
  173. package/dist/web-ui/public/terminal.js +1 -1
  174. package/dist/web-ui/public/theme.js +1 -1
  175. package/dist/web-ui/public/users.js +1 -1
  176. package/dist/web-ui/public/variant-grouping.js +1 -1
  177. package/package.json +1 -1
  178. package/dist/.claude/settings.local.json +0 -20
  179. package/dist/playwright-test-results/.last-run.json +0 -54
package/dist/lib/teams.js CHANGED
@@ -1 +1 @@
1
- (function(_0x19cb6a,_0x1806c6){const _0x2289b6={_0x412cb4:0x2d9,_0x5c9ab7:0x2e3,_0x24bec4:0x2f0,_0x2f1e13:0x358,_0x27ef57:0x336,_0x582bf9:0x31f,_0x4aa4f6:0x301,_0x21e0b9:0x362,_0x42d28d:0x311,_0x221d73:0x34f,_0x4d04ff:0x336,_0x414219:0x363,_0x11aba8:0x37c,_0x35a8a1:0x378,_0x2a5e3f:0x35c,_0x483fcc:0x294,_0x1dce23:0x2b7,_0x509889:0x294,_0x28542c:0x2cf,_0x423ba5:0x31e,_0x43bbf1:0x35d,_0x1540cc:0x315,_0x5e1db5:0x2f4,_0x4a3cf5:0x343};function _0x59a537(_0x419a87,_0x14ec55,_0x515bbd,_0x1f2101){return _0x3ceb(_0x1f2101-0x137,_0x14ec55);}const _0x340392=_0x19cb6a();function _0x4b2dd1(_0x1ba17b,_0x39d271,_0x1f843e,_0x4542b6){return _0x3ceb(_0x39d271-0x1d1,_0x1ba17b);}while(!![]){try{const _0x432039=parseInt(_0x59a537(_0x2289b6._0x412cb4,_0x2289b6._0x5c9ab7,0x30b,_0x2289b6._0x24bec4))/(-0x119f*0x1+0x1b66+-0x1*0x9c6)+-parseInt(_0x4b2dd1(_0x2289b6._0x2f1e13,_0x2289b6._0x27ef57,_0x2289b6._0x582bf9,_0x2289b6._0x4aa4f6))/(0x316*0x5+-0x21*0xbf+0x5*0x1d7)*(-parseInt(_0x4b2dd1(0x386,0x378,0x373,_0x2289b6._0x21e0b9))/(0xd99*0x2+-0x2257+0x728))+parseInt(_0x4b2dd1(0x2d8,_0x2289b6._0x42d28d,_0x2289b6._0x221d73,_0x2289b6._0x4d04ff))/(0x17f5+-0x22c9+-0x15b*-0x8)*(-parseInt(_0x4b2dd1(_0x2289b6._0x414219,_0x2289b6._0x11aba8,_0x2289b6._0x35a8a1,_0x2289b6._0x2a5e3f))/(-0x2315+0x10ea+0x1230))+parseInt(_0x59a537(0x29a,0x2b5,_0x2289b6._0x483fcc,_0x2289b6._0x1dce23))/(-0xecb+0x1e5*-0x9+-0x1*-0x1fde)+-parseInt(_0x59a537(_0x2289b6._0x509889,0x288,0x2aa,0x287))/(-0xa*0x1a8+0xba4+-0x1*-0x4f3)+-parseInt(_0x4b2dd1(0x314,0x33b,0x30b,0x370))/(0x170+-0xc2+-0xa6)*(parseInt(_0x59a537(0x2b6,_0x2289b6._0x28542c,0x2ad,0x2d2))/(0xa*-0x2a2+-0x2205*0x1+-0x3b*-0x106))+parseInt(_0x4b2dd1(_0x2289b6._0x423ba5,0x34a,_0x2289b6._0x43bbf1,0x319))/(-0x1*-0x4e1+-0x2*-0x936+-0x1743)*(parseInt(_0x4b2dd1(0x2e0,_0x2289b6._0x1540cc,_0x2289b6._0x5e1db5,_0x2289b6._0x4a3cf5))/(0x11*-0x18c+0xc33*-0x3+0x3ef0));if(_0x432039===_0x1806c6)break;else _0x340392['push'](_0x340392['shift']());}catch(_0xbf0187){_0x340392['push'](_0x340392['shift']());}}}(_0x659f,0x1*-0xd476d+-0x720b+-0x1*-0x174a9f));import{promises as _0x529906}from'fs';import _0x222671 from'path';function _0x356993(_0x3d24fa,_0x349beb,_0x38aec7,_0x410618){return _0x3ceb(_0x349beb-0x143,_0x38aec7);}function _0x3ceb(_0x4450d8,_0x2b9809){_0x4450d8=_0x4450d8-(-0x23f1+0x192*0x7+-0x53d*-0x5);const _0xc68f80=_0x659f();let _0x2b5d4b=_0xc68f80[_0x4450d8];if(_0x3ceb['SGkCYb']===undefined){var _0x5b22d0=function(_0x5b8d88){const _0x478fa8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4af19e='',_0x2a56b6='';for(let _0x10ae13=-0xf45+-0x9a5+0x18ea,_0x237c40,_0x313aaa,_0x394532=0x1*-0x1017+-0x2*-0xca0+-0x1*0x929;_0x313aaa=_0x5b8d88['charAt'](_0x394532++);~_0x313aaa&&(_0x237c40=_0x10ae13%(-0x5*-0xef+-0xa9b+0x5f4)?_0x237c40*(-0x55e+0x1*-0x1538+0x1ad6)+_0x313aaa:_0x313aaa,_0x10ae13++%(0x3ab*-0x3+-0x74d+0x1252))?_0x4af19e+=String['fromCharCode'](0xfb*0x27+-0x4e*-0x26+-0x30d2&_0x237c40>>(-(0x9c+0x2*0xde6+-0x1c66*0x1)*_0x10ae13&-0x4f*-0x4f+-0x1ed*0x1+-0xb*0x20a)):0x777*-0x1+-0x1834+0x1fab){_0x313aaa=_0x478fa8['indexOf'](_0x313aaa);}for(let _0x553735=-0x1738+-0x1*-0x21fb+-0xac3,_0x1d0f75=_0x4af19e['length'];_0x553735<_0x1d0f75;_0x553735++){_0x2a56b6+='%'+('00'+_0x4af19e['charCodeAt'](_0x553735)['toString'](-0x17*0x18e+0x1aff+0x8d3))['slice'](-(0x9be*-0x1+0x1a93+0x49*-0x3b));}return decodeURIComponent(_0x2a56b6);};_0x3ceb['JcOwyk']=_0x5b22d0,_0x3ceb['xxUbZK']={},_0x3ceb['SGkCYb']=!![];}const _0x15e07d=_0xc68f80[-0x1060*-0x2+0x62d+-0x26ed],_0x163a54=_0x4450d8+_0x15e07d,_0x2d52f4=_0x3ceb['xxUbZK'][_0x163a54];return!_0x2d52f4?(_0x2b5d4b=_0x3ceb['JcOwyk'](_0x2b5d4b),_0x3ceb['xxUbZK'][_0x163a54]=_0x2b5d4b):_0x2b5d4b=_0x2d52f4,_0x2b5d4b;}import{logger}from'./logger.js';import{DATA_DIR}from'./data-dir.js';const TEAMS_FILE=_0x222671[_0x356993(0x2bc,0x282,0x290,0x264)](DATA_DIR,'teams.json');let teamsCache=null,teamsCacheMtime=null;export async function loadTeams(){const _0x3da9c5={_0x3bc62a:0x32c,_0x465468:0x332,_0x10a663:0x356,_0x16f745:0x32a,_0x5e91c6:0x147,_0x2a0c34:0x169,_0x4302c1:0x182,_0x2fe2e6:0x338,_0x222405:0x319,_0xd16615:0x324,_0x4be913:0x152,_0x578d83:0x148,_0x366ad0:0x125,_0x1fef47:0x34a,_0x30956:0x357,_0x55d450:0x382,_0x516b37:0x33d,_0x57e25d:0x367,_0x3ec619:0x335,_0x4c9dcc:0x334,_0x1f6c99:0x2ff,_0x5dc7b5:0x2d8,_0x2c50c9:0x336,_0x2d367e:0xda,_0x29ef14:0x146,_0x25583d:0x118,_0x1663d3:0x334,_0x3ce157:0x330,_0x595359:0x342,_0x3345e3:0x113,_0x362cee:0x1b8,_0x477dae:0x348,_0x1ca79f:0x129,_0x5469bd:0x110,_0x19aec0:0x174,_0x35d7a9:0x144,_0x3c7dc7:0x185,_0x15b732:0x30d,_0x1da14a:0x314,_0x1e6335:0x149,_0x4201ab:0x10d,_0x3cf143:0x11a,_0x2565e1:0x12a,_0x3385a1:0x188,_0x1496f1:0x364,_0x220276:0x347,_0xb18208:0x368},_0x10b8fb={_0x68344e:0x411,_0x41b093:0xc2},_0x347345={_0x4d54a5:0x65},_0x4dfd8c={'VrENJ':_0x248e99(_0x3da9c5._0x3bc62a,_0x3da9c5._0x465468,_0x3da9c5._0x10a663,_0x3da9c5._0x16f745),'OeITR':_0x524e3a(-_0x3da9c5._0x5e91c6,-_0x3da9c5._0x2a0c34,-_0x3da9c5._0x4302c1,-0x16a)+_0x248e99(0x359,_0x3da9c5._0x2fe2e6,0x36a,_0x3da9c5._0x222405)+'le','ySSBW':function(_0x54fe79,_0x233034){return _0x54fe79===_0x233034;},'JHhFC':_0x248e99(_0x3da9c5._0xd16615,0x2e6,0x304,0x312),'qMCGA':_0x524e3a(-_0x3da9c5._0x4be913,-0x172,-0x13b,-_0x3da9c5._0x578d83),'lTsIl':_0x524e3a(-0x160,-0x10f,-0x141,-_0x3da9c5._0x366ad0)+'\x20not\x20found'+_0x248e99(_0x3da9c5._0x1fef47,0x30e,_0x3da9c5._0x30956,_0x3da9c5._0x55d450)+_0x248e99(_0x3da9c5._0x516b37,_0x3da9c5._0x57e25d,_0x3da9c5._0x3ec619,_0x3da9c5._0x4c9dcc)+_0x248e99(_0x3da9c5._0x1f6c99,_0x3da9c5._0x5dc7b5,_0x3da9c5._0x2c50c9,0x314),'ttMza':function(_0xbdbcfc,_0x295f74){return _0xbdbcfc(_0x295f74);},'NvOzq':_0x524e3a(-_0x3da9c5._0x2d367e,-_0x3da9c5._0x29ef14,-0x153,-_0x3da9c5._0x25583d)+_0x524e3a(-0x168,-0x196,-0x192,-0x16c)};function _0x248e99(_0x4ba2d0,_0x278131,_0x3b5994,_0x4efcb3){return _0x356993(_0x4ba2d0-0x1a2,_0x4ba2d0-_0x347345._0x4d54a5,_0x278131,_0x4efcb3-0xeb);}function _0x524e3a(_0x519828,_0x5df4ab,_0x501241,_0x5166f6){return _0x356993(_0x519828-0x15e,_0x5166f6- -_0x10b8fb._0x68344e,_0x501241,_0x5166f6-_0x10b8fb._0x41b093);}try{const _0x38f13e=await _0x529906[_0x248e99(_0x3da9c5._0x1663d3,_0x3da9c5._0x3ce157,0x327,_0x3da9c5._0x595359)](TEAMS_FILE),_0x44500c=await _0x529906[_0x524e3a(-0x122,-0xec,-0x122,-_0x3da9c5._0x3345e3)](TEAMS_FILE,_0x4dfd8c[_0x524e3a(-0x154,-_0x3da9c5._0x362cee,-0x18d,-0x182)]),_0x4ba3df=JSON[_0x248e99(0x31e,0x33b,0x2f7,0x330)](_0x44500c);teamsCache=_0x4ba3df[_0x524e3a(-0x160,-0x14e,-0x185,-0x18d)]||[],teamsCacheMtime=_0x38f13e[_0x248e99(0x31b,0x326,0x34d,_0x3da9c5._0x477dae)];const _0x29de37={};return _0x29de37['count']=teamsCache[_0x524e3a(-_0x3da9c5._0x1ca79f,-0x125,-_0x3da9c5._0x5469bd,-0x149)],logger[_0x524e3a(-0x109,-_0x3da9c5._0x19aec0,-0x149,-_0x3da9c5._0x35d7a9)](_0x4dfd8c[_0x524e3a(-0x19a,-0x170,-0x17d,-_0x3da9c5._0x3c7dc7)],_0x29de37),teamsCache;}catch(_0x407c20){if(_0x4dfd8c[_0x248e99(0x2f0,_0x3da9c5._0x15b732,0x308,_0x3da9c5._0x1da14a)](_0x407c20[_0x524e3a(-_0x3da9c5._0x1e6335,-0x151,-0x11e,-0x12b)],_0x4dfd8c['JHhFC'])){const _0x45a3fb=_0x4dfd8c[_0x524e3a(-_0x3da9c5._0x4201ab,-0xf8,-_0x3da9c5._0x3cf143,-_0x3da9c5._0x2565e1)][_0x524e3a(-0x181,-0x143,-_0x3da9c5._0x3385a1,-0x173)]('|');let _0x2f466d=-0x4cd*0x2+0xd90+0x1a*-0x27;while(!![]){switch(_0x45a3fb[_0x2f466d++]){case'0':teamsCache=[];continue;case'1':return teamsCache;case'2':teamsCacheMtime=null;continue;case'3':logger[_0x248e99(0x32f,0x31b,_0x3da9c5._0x1496f1,0x36d)](_0x4dfd8c[_0x248e99(0x35b,0x367,0x368,_0x3da9c5._0x477dae)]);continue;case'4':await _0x4dfd8c[_0x248e99(_0x3da9c5._0x220276,_0x3da9c5._0xb18208,0x319,0x36a)](saveTeams,teamsCache);continue;}break;}}logger['error'](_0x4dfd8c[_0x524e3a(-0x165,-0x185,-0x18e,-0x187)],_0x407c20);throw _0x407c20;}}export async function saveTeams(_0x1f6fea){const _0x217548={_0x4cd00a:0x281,_0x251dd2:0x1a5,_0x177f15:0x17b,_0x37c95c:0x27f,_0x427c7f:0x242,_0x28046d:0x23d,_0x2a95ae:0x249,_0x4b68cd:0x24e,_0x9f5e1e:0x1cb,_0xeb03f3:0x1e3,_0x535181:0x245,_0x1a35c7:0x1f2,_0x28ab4e:0x25b,_0x27b848:0x26a,_0x4095f7:0x279,_0x3ab4ab:0x132,_0x7ba236:0x16a,_0x4b0218:0x17c,_0x51bcea:0x19d,_0x506f88:0x1af,_0x46f56f:0x187,_0xcc220b:0x258,_0x3735ee:0x1b0,_0x127c0e:0x273,_0xddefa2:0x2ab,_0x433a1d:0x28d,_0x12dac2:0x27f,_0x3350bf:0x26b,_0x2bbea7:0x25f,_0x3ed7ff:0x219,_0x392abe:0x214,_0x4723c2:0x229,_0x20ac6a:0x176,_0x516c20:0x1b5,_0x3e5d5e:0x1af,_0x50d756:0x1bc,_0xfd4d8a:0x1bd,_0x5965c6:0x1e5,_0x20f45b:0x218,_0x16be51:0x236,_0x1bd264:0x227,_0x1679d4:0x1b4,_0x341174:0x1a2,_0x5354f2:0x1ee,_0x265fde:0x19d,_0x2c790f:0x1bb,_0x5baf6f:0x18b},_0x51cde6={_0x587a71:0x118},_0x5c01c8={_0x42c594:0x1d3,_0x3ce0f6:0x1a1},_0x1d6e37={};function _0x2cc878(_0x3b3f54,_0x3b3485,_0x252ab1,_0x2c8b28){return _0x356993(_0x3b3f54-_0x5c01c8._0x42c594,_0x3b3f54- -0x51c,_0x2c8b28,_0x2c8b28-_0x5c01c8._0x3ce0f6);}function _0x1810b5(_0x1a27ca,_0x537b63,_0x455594,_0x269e49){return _0x356993(_0x1a27ca-0xe7,_0x1a27ca- -_0x51cde6._0x587a71,_0x455594,_0x269e49-0xbf);}_0x1d6e37[_0x2cc878(-0x273,-_0x217548._0x4cd00a,-0x29c,-0x2b2)]=_0x1810b5(0x1b3,_0x217548._0x251dd2,0x1ca,0x174)+_0x1810b5(0x179,_0x217548._0x177f15,0x1b4,0x154),_0x1d6e37[_0x2cc878(-_0x217548._0x37c95c,-0x278,-_0x217548._0x427c7f,-0x285)]=_0x2cc878(-_0x217548._0x28046d,-0x266,-_0x217548._0x2a95ae,-_0x217548._0x4b68cd),_0x1d6e37[_0x1810b5(0x1bb,0x1ba,_0x217548._0x9f5e1e,_0x217548._0xeb03f3)]=_0x2cc878(-0x223,-_0x217548._0x535181,-0x220,-0x204)+_0x2cc878(-0x22b,-_0x217548._0x1a35c7,-0x1ff,-0x253);const _0x58e4f5=_0x1d6e37;try{const _0x55117f=_0x222671[_0x2cc878(-0x286,-0x26e,-_0x217548._0x28ab4e,-0x289)](TEAMS_FILE),_0x23dcdd={};_0x23dcdd[_0x2cc878(-_0x217548._0x27b848,-0x2a3,-0x233,-0x29e)]=!![],await _0x529906[_0x2cc878(-_0x217548._0x4095f7,-0x28f,-0x29e,-0x250)](_0x55117f,_0x23dcdd);const _0x4735fd={};_0x4735fd[_0x1810b5(0x16c,_0x217548._0x3ab4ab,_0x217548._0x7ba236,0x18a)]=_0x1f6fea,await _0x529906['writeFile'](TEAMS_FILE,JSON[_0x1810b5(_0x217548._0x4b0218,_0x217548._0x51bcea,0x154,0x1a3)](_0x4735fd,null,-0x2d*-0x3c+-0xf3a+0x4b0),_0x1810b5(_0x217548._0x506f88,0x184,0x1ab,_0x217548._0x46f56f));const _0x45929e=await _0x529906[_0x2cc878(-0x24d,-0x26a,-0x250,-_0x217548._0xcc220b)](TEAMS_FILE);teamsCache=_0x1f6fea,teamsCacheMtime=_0x45929e['mtimeMs'];const _0x4f8460={};_0x4f8460['count']=_0x1f6fea[_0x1810b5(_0x217548._0x3735ee,0x1d2,0x1c1,0x1a0)],logger['info'](_0x58e4f5[_0x2cc878(-_0x217548._0x127c0e,-_0x217548._0xddefa2,-_0x217548._0x433a1d,-_0x217548._0x433a1d)],_0x4f8460);}catch(_0x42aaa1){if(_0x58e4f5[_0x2cc878(-_0x217548._0x12dac2,-_0x217548._0x3350bf,-_0x217548._0x2bbea7,-0x2aa)]!==_0x58e4f5[_0x1810b5(0x185,0x14f,0x18d,0x174)]){const _0x380033=new _0x22be28(_0x2cc878(-0x23f,-_0x217548._0x3ed7ff,-_0x217548._0x392abe,-_0x217548._0x4723c2)+'\x27'+_0x4cdf98[_0x1810b5(0x192,_0x217548._0x20ac6a,_0x217548._0x516c20,_0x217548._0x3e5d5e)]+(_0x1810b5(0x1d3,0x1f2,_0x217548._0x50d756,_0x217548._0xfd4d8a)+_0x1810b5(_0x217548._0x5965c6,0x1cc,0x1c1,_0x217548._0x20f45b)));_0x380033[_0x2cc878(-_0x217548._0x16be51,-0x203,-0x1fe,-_0x217548._0x1bd264)]=_0x1810b5(_0x217548._0x1679d4,_0x217548._0x341174,_0x217548._0x5354f2,_0x217548._0x265fde);throw _0x380033;}else{logger['error'](_0x58e4f5[_0x1810b5(_0x217548._0x2c790f,0x1e2,_0x217548._0x5baf6f,0x1c2)],_0x42aaa1);throw _0x42aaa1;}}}export async function getTeams(){const _0x36c64e={_0x592fc1:0x5f,_0xd0b9c4:0x68,_0x3595f1:0x4c,_0x35a3ea:0x248,_0x168f35:0x21e,_0x459111:0x23b,_0x1b75c2:0x20a,_0x17dcea:0x28,_0x1a22d8:0x289},_0x5f3940={_0x2fa481:0x78},_0x57e2c3={_0x431b27:0x28e},_0x2f640b={'BWRhe':function(_0x5bc819,_0xef0db1){return _0x5bc819!==_0xef0db1;},'ljAIH':_0x25a35f(_0x36c64e._0x592fc1,_0x36c64e._0xd0b9c4,0x31,_0x36c64e._0x3595f1),'udOaX':function(_0x54ed6a){return _0x54ed6a();}};function _0x25a35f(_0x571ef9,_0x531ade,_0x4da544,_0x2a4dc0){return _0x356993(_0x571ef9-0x14b,_0x4da544- -_0x57e2c3._0x431b27,_0x2a4dc0,_0x2a4dc0-0x124);}try{const _0x3d1a35=await _0x529906[_0x47bc59(-0x250,-0x1f3,-_0x36c64e._0x35a3ea,-0x221)](TEAMS_FILE);if(!teamsCache||_0x2f640b['BWRhe'](_0x3d1a35['mtimeMs'],teamsCacheMtime))return await loadTeams();}catch(_0xaa1df5){if(_0x2f640b['BWRhe'](_0xaa1df5[_0x47bc59(-0x1d1,-_0x36c64e._0x168f35,-_0x36c64e._0x459111,-_0x36c64e._0x1b75c2)],_0x2f640b[_0x25a35f(-_0x36c64e._0x17dcea,-0x2d,0xd,0x49)]))throw _0xaa1df5;if(!teamsCache)return await _0x2f640b[_0x47bc59(-0x225,-_0x36c64e._0x1a22d8,-0x217,-0x257)](loadTeams);}function _0x47bc59(_0x5521a7,_0x285791,_0x4d8888,_0x22e9bc){return _0x356993(_0x5521a7-_0x5f3940._0x2fa481,_0x22e9bc- -0x4f0,_0x5521a7,_0x22e9bc-0xb7);}return teamsCache;}export async function getTeamById(_0x1eca62){const _0x2124c0={_0x5e74d3:0x62,_0x1aebc2:0x2f,_0x5c877f:0x21,_0x3f1b2a:0x23,_0x4302e6:0x3a,_0x174b7d:0x6b},_0x248f0b={_0x43889d:0xbe,_0xc30840:0x2e6},_0x59ab89={_0x27af78:0xc1},_0x1b12c5={'vagUl':function(_0x5d1528){return _0x5d1528();}};function _0x12b49c(_0x2544bf,_0x149c23,_0xffe9e1,_0xae1f6){return _0x356993(_0x2544bf-0x131,_0x149c23- -0x24c,_0x2544bf,_0xae1f6-_0x59ab89._0x27af78);}function _0x69fe4a(_0x2528e3,_0x625226,_0x153656,_0x21c2da){return _0x356993(_0x2528e3-_0x248f0b._0x43889d,_0x625226- -_0x248f0b._0xc30840,_0x2528e3,_0x21c2da-0x2c);}const _0x3090a4=await _0x1b12c5[_0x69fe4a(-_0x2124c0._0x5e74d3,-_0x2124c0._0x1aebc2,-_0x2124c0._0x5c877f,-_0x2124c0._0x3f1b2a)](getTeams);return _0x3090a4[_0x12b49c(-0x3,_0x2124c0._0x4302e6,0x15,_0x2124c0._0x174b7d)](_0x3bda8e=>_0x3bda8e['id']===_0x1eca62)||null;}export async function getTeamsByUserId(_0x35a9fa){const _0x333e2e={_0x3492e9:0x318,_0x191eec:0x2ec},_0x22c698={_0x224e03:0x180,_0x19fc40:0x233,_0x151d99:0xa},_0x56aa32={_0x115e60:0x40},_0x159e10={'fEltw':function(_0x1be0de){return _0x1be0de();}},_0x28be94=await _0x159e10[_0x29c70a(_0x333e2e._0x3492e9,0x2ec,_0x333e2e._0x191eec,0x2cb)](getTeams);function _0x29c70a(_0x535488,_0x186ba8,_0x328165,_0x7cb5e){return _0x356993(_0x535488-0x8b,_0x328165-_0x56aa32._0x115e60,_0x535488,_0x7cb5e-0x8f);}function _0x3b7e98(_0x4c06fe,_0x17601b,_0x123777,_0xb6234f){return _0x356993(_0x4c06fe-_0x22c698._0x224e03,_0x123777- -_0x22c698._0x19fc40,_0x4c06fe,_0xb6234f-_0x22c698._0x151d99);}return _0x28be94['filter'](_0x5f08af=>_0x5f08af[_0x29c70a(0x2e3,0x2b7,0x2f5,0x2c4)][_0x3b7e98(0x93,0x84,0x55,0x71)](_0x35a9fa));}export async function createTeam(_0x1e7662){const _0x5ccc94={_0x4300fb:0xb3,_0x4b2023:0xd7,_0x1cf890:0xec,_0xd97f3a:0x13c,_0xf4ed6:0x14c,_0x846b0d:0x97,_0x244ac4:0xb4,_0x4440e0:0x7c,_0x4fcee6:0x80,_0x9a0362:0x40,_0x1fe2b1:0x64,_0x4d8199:0x65,_0x4ac5f4:0x119,_0x354026:0x10e,_0x41fd02:0xd3,_0x27852e:0xbb,_0x1e413f:0xe2,_0x2d2a13:0xa0,_0x1a7219:0x89,_0x123c57:0x110,_0x1a6362:0x151,_0xf04085:0xfe,_0x1cdecd:0x111,_0x1bee76:0x103,_0x3f9e48:0xfd,_0x3a2df3:0xd1,_0x2fa566:0xa3,_0x4388b5:0xbd,_0x83b9c0:0x9e,_0x1ae471:0x136,_0x306c54:0xaf,_0xeaf9a1:0xc1,_0x1c5e5a:0x71,_0x473405:0x94,_0x598eb:0x5c,_0x28cd08:0x154,_0x1aa418:0x127,_0x50044e:0xee,_0x2743c7:0xf8,_0x2289a2:0xc3,_0x168f73:0xda,_0x25d8a7:0x85,_0x110f01:0xb6,_0x4caaa9:0x84,_0xdbc33c:0x99,_0xac4849:0xb1,_0x9a67c9:0xab,_0x4c8817:0xa6,_0x208e49:0x7d,_0x157499:0xff,_0x44530e:0xfa,_0x346f53:0x141,_0x17f6de:0x13f,_0x3966ee:0xa9,_0x239e6d:0xdb,_0x224319:0x7f,_0x401450:0xac},_0x42fd1b={_0x177f0a:0x246},_0x4a5994={_0x59fd76:0x3b7},_0x4e3a7c={'IPfYT':_0x49f78f(0xb3,0xaf,0x80,_0x5ccc94._0x4300fb)+'save\x20teams','hlPPD':function(_0x4f44f9){return _0x4f44f9();},'gGCPN':function(_0x4a4dc1,_0x4fb013){return _0x4a4dc1===_0x4fb013;},'rXXyz':_0xf9a864(-0xbd,-_0x5ccc94._0x4b2023,-_0x5ccc94._0x1cf890,-0xe2),'IGxgG':'Team\x20name\x20'+_0xf9a864(-_0x5ccc94._0xd97f3a,-0x117,-0xea,-0x117)+'d','upXyj':_0x49f78f(0x7a,0x73,0x70,0x3a),'HQRzn':_0xf9a864(-0x13d,-0x12e,-_0x5ccc94._0xf4ed6,-0x115),'apwFp':_0x49f78f(0x86,_0x5ccc94._0x846b0d,_0x5ccc94._0x244ac4,0x98),'BIPTT':function(_0x4ab819,_0x1b9b5e){return _0x4ab819(_0x1b9b5e);}},_0x360f6d=await _0x4e3a7c[_0x49f78f(_0x5ccc94._0x4440e0,_0x5ccc94._0x4fcee6,_0x5ccc94._0x9a0362,0x64)](getTeams);if(!_0x1e7662[_0x49f78f(_0x5ccc94._0x1fe2b1,_0x5ccc94._0x4d8199,0x90,_0x5ccc94._0x4d8199)]||!_0x1e7662[_0x49f78f(0x64,0x69,0x91,0x5a)]['trim']()){if(_0x4e3a7c[_0xf9a864(-0xea,-_0x5ccc94._0x4ac5f4,-0x10f,-0x10c)](_0x4e3a7c['rXXyz'],_0xf9a864(-_0x5ccc94._0x354026,-_0x5ccc94._0x41fd02,-_0x5ccc94._0x27852e,-_0x5ccc94._0x1e413f))){const _0x595537=new Error(_0x4e3a7c['IGxgG']);_0x595537[_0x49f78f(_0x5ccc94._0x2d2a13,0x61,_0x5ccc94._0x846b0d,_0x5ccc94._0x1a7219)]=_0x4e3a7c[_0xf9a864(-_0x5ccc94._0x123c57,-_0x5ccc94._0x1a6362,-_0x5ccc94._0xf04085,-_0x5ccc94._0x1cdecd)];throw _0x595537;}else{const _0xec6924=new _0x5da711('Team\x20\x27'+_0x24b299+('\x27\x20not\x20foun'+'d'));_0xec6924[_0xf9a864(-0xbc,-_0x5ccc94._0x1bee76,-_0x5ccc94._0x3f9e48,-_0x5ccc94._0x3a2df3)]=_0x49f78f(_0x5ccc94._0x2fa566,0x92,_0x5ccc94._0x4388b5,_0x5ccc94._0x83b9c0);throw _0xec6924;}}if(_0x360f6d[_0xf9a864(-0x113,-0x12d,-0x109,-_0x5ccc94._0x1ae471)](_0x635b9f=>_0x635b9f[_0x49f78f(0x64,0x69,0x5e,0x25)]===_0x1e7662[_0x49f78f(0x64,0xa0,0x62,0xa0)])){if(_0x4e3a7c['gGCPN'](_0x4e3a7c['HQRzn'],_0x49f78f(_0x5ccc94._0x306c54,_0x5ccc94._0xeaf9a1,0x92,_0x5ccc94._0x1c5e5a))){_0x4e81e5[_0x49f78f(_0x5ccc94._0x473405,_0x5ccc94._0x598eb,0xae,_0x5ccc94._0x3a2df3)](_0x4e3a7c[_0xf9a864(-_0x5ccc94._0x28cd08,-0x10c,-0x155,-_0x5ccc94._0x1aa418)],_0x56bd4b);throw _0x36de4b;}else{const _0x3538c1=new Error(_0xf9a864(-_0x5ccc94._0x50044e,-_0x5ccc94._0x2743c7,-_0x5ccc94._0x2289a2,-_0x5ccc94._0x168f73)+'\x27'+_0x1e7662[_0x49f78f(0x64,0x8e,_0x5ccc94._0x25d8a7,0x43)]+('\x27\x20already\x20'+_0x49f78f(0xb7,0xc0,_0x5ccc94._0x110f01,0x78)));_0x3538c1[_0x49f78f(0xa0,_0x5ccc94._0x4caaa9,_0x5ccc94._0xdbc33c,0xdd)]=_0x4e3a7c[_0x49f78f(_0x5ccc94._0xac4849,0x7f,0xcb,_0x5ccc94._0x9a67c9)];throw _0x3538c1;}}const _0x4a93e8=_0x1e7662[_0x49f78f(0x6f,_0x5ccc94._0x4c8817,0x58,_0x5ccc94._0x208e49)]||[],_0x19e107=new Date()[_0xf9a864(-0xf7,-_0x5ccc94._0x168f73,-_0x5ccc94._0x157499,-_0x5ccc94._0x44530e)+'g']();function _0xf9a864(_0x37dcfc,_0x378703,_0x2a3ccf,_0x10fdc3){return _0x356993(_0x37dcfc-0x1f1,_0x10fdc3- -_0x4a5994._0x59fd76,_0x37dcfc,_0x10fdc3-0x1e8);}const _0x24d1cf={'id':_0x49f78f(0x6b,0x92,0x47,0x48)+Date[_0xf9a864(-0x11c,-0xee,-0xf2,-0x113)]()+'_'+Math[_0xf9a864(-0x106,-_0x5ccc94._0x346f53,-_0x5ccc94._0x17f6de,-0x103)]()['toString'](0x130*-0x6+0x1b45+0x1401*-0x1)['substr'](-0x1246*-0x2+0x1b21+-0x3fab*0x1,-0x1ddc+0x1c4f*-0x1+0x3a34),'name':_0x1e7662['name'],'description':_0x1e7662['descriptio'+'n']||'','members':_0x4a93e8,'created_at':_0x19e107,'created_by':_0x1e7662[_0x49f78f(_0x5ccc94._0x3966ee,0x84,0xdd,_0x5ccc94._0x239e6d)]||null,'updated_at':_0x19e107};function _0x49f78f(_0x1ba0c8,_0x4ea473,_0x91ec1,_0x2796f5){return _0x356993(_0x1ba0c8-0x191,_0x1ba0c8- -_0x42fd1b._0x177f0a,_0x4ea473,_0x2796f5-0x78);}return _0x360f6d[_0x49f78f(0x6a,0x7c,0x68,0x91)](_0x24d1cf),await _0x4e3a7c[_0x49f78f(_0x5ccc94._0x224319,0x79,_0x5ccc94._0x401450,_0x5ccc94._0xac4849)](saveTeams,_0x360f6d),_0x24d1cf;}export async function updateTeam(_0x48bfc4,_0x70dd9d){const _0x5e467c={_0x5b5cf3:0x4b1,_0x2b7a18:0x104,_0xb74c63:0xb5,_0x32a8d6:0xf2,_0x2092ab:0x4c1,_0x72062f:0x4c0,_0x5dd10b:0xed,_0x3b62f6:0x14d,_0x3fb0bf:0x125,_0x379e12:0x508,_0x5af576:0x9f,_0x4dc239:0xb9,_0x2095d7:0x4ee,_0x4a5b4d:0x50e,_0x4c8591:0x55a,_0x55e0c1:0x4a5,_0x14a4ee:0x117,_0x32fc13:0xfd,_0xb212b5:0x14a,_0x5df2de:0xdf,_0xd16334:0xab,_0x583385:0xe9,_0xb3a33a:0x146,_0x38fa1e:0x125,_0x4edc57:0x107,_0x1d93f3:0x106,_0x41d4ee:0xdf,_0x32571f:0x4e9,_0x4b4f72:0x4d3,_0x23ec6c:0x498,_0x4cc004:0x518,_0x48eabd:0x51e,_0x5d9430:0x4f4,_0x19af97:0x4b6,_0x5bc280:0x493,_0x403c5f:0x4e8,_0x4ea950:0x11e,_0x14e771:0x116,_0xe3b636:0x138,_0x505109:0xf4,_0x12fb88:0x12a,_0x3dd750:0x514,_0x54bd3f:0x4f7,_0xc95002:0x52e,_0x1862a9:0x113,_0x8cf565:0x15f,_0x1ff825:0x140,_0x5304e3:0x137,_0x61ca5f:0x105,_0x3b9e43:0x10d,_0x2ddb1d:0x100,_0x17e6df:0x109,_0x16f12f:0x128,_0x1f65cf:0xef,_0x36ff13:0x4d1,_0x2d1dcf:0x11a,_0x41a3b5:0xff,_0x16c9c8:0xf9},_0x1ea621={_0x3d3e07:0x68},_0x3caac3={_0x2ad165:0x1e1,_0x19e484:0x196},_0x445388={'FXShN':'NOT_FOUND','YMoUa':function(_0x4bb5ef){return _0x4bb5ef();},'XJVJI':function(_0xcb3317,_0x3044fd){return _0xcb3317===_0x3044fd;},'PjcVu':_0x11d0a2(0x4c7,0x4bb,0x4dd,_0x5e467c._0x5b5cf3),'fGrSu':function(_0x16bc3c,_0x564355){return _0x16bc3c!==_0x564355;},'vohzq':_0x3204ab(-_0x5e467c._0x2b7a18,-0xb5,-_0x5e467c._0xb74c63,-_0x5e467c._0x32a8d6)+_0x11d0a2(_0x5e467c._0x2092ab,0x4c9,0x4e7,_0x5e467c._0x72062f)+'d','qJxzT':_0x11d0a2(0x4cc,0x4e9,0x4fa,0x501),'dlXgv':'csncg','sDEIz':_0x3204ab(-_0x5e467c._0x5dd10b,-_0x5e467c._0x3b62f6,-_0x5e467c._0x3fb0bf,-0x10e),'YpMQb':_0x11d0a2(0x4f7,0x4f5,_0x5e467c._0x379e12,0x4e6),'ALjvh':function(_0x2dbebe,_0x5ad43f){return _0x2dbebe!==_0x5ad43f;}},_0x6fa79d=await _0x445388['YMoUa'](getTeams),_0x1bc4a8=_0x6fa79d['findIndex'](_0xd69f12=>_0xd69f12['id']===_0x48bfc4);if(_0x445388[_0x3204ab(-_0x5e467c._0x5af576,-0x9a,-_0x5e467c._0x4dc239,-0xd5)](_0x1bc4a8,-(0x81*-0x17+-0x1a12+-0x2*-0x12d5))){if(_0x445388[_0x11d0a2(_0x5e467c._0x2095d7,0x523,_0x5e467c._0x4a5b4d,_0x5e467c._0x4c8591)](_0x445388[_0x11d0a2(0x4ef,_0x5e467c._0x2092ab,0x4e6,_0x5e467c._0x55e0c1)],_0x445388['PjcVu'])){const _0x3fbebd=new Error(_0x3204ab(-0x134,-_0x5e467c._0x14a4ee,-0x13e,-0x121)+_0x48bfc4+('\x27\x20not\x20foun'+'d'));_0x3fbebd['code']=_0x3204ab(-0x118,-0xe4,-_0x5e467c._0x32fc13,-0xe6);throw _0x3fbebd;}else{const _0x490037=new _0x29239b('Team\x20\x27'+_0x15ca12+(_0x3204ab(-0x17a,-0x11c,-0x15f,-_0x5e467c._0xb212b5)+'d'));_0x490037[_0x3204ab(-0xaf,-_0x5e467c._0x5df2de,-_0x5e467c._0xd16334,-_0x5e467c._0x583385)]=_0x445388['FXShN'];throw _0x490037;}}const _0x3e7afa=_0x6fa79d[_0x1bc4a8];function _0x11d0a2(_0x8bb9e8,_0x25caa0,_0x2ceb94,_0x202a60){return _0x356993(_0x8bb9e8-_0x3caac3._0x2ad165,_0x25caa0-0x229,_0x2ceb94,_0x202a60-_0x3caac3._0x19e484);}if(_0x445388['fGrSu'](_0x70dd9d[_0x3204ab(-_0x5e467c._0xb3a33a,-0x161,-0x141,-_0x5e467c._0x38fa1e)],undefined)&&_0x445388[_0x3204ab(-_0x5e467c._0x4edc57,-_0x5e467c._0x1d93f3,-0xcf,-_0x5e467c._0x41d4ee)](_0x70dd9d[_0x11d0a2(_0x5e467c._0x32571f,_0x5e467c._0x4b4f72,_0x5e467c._0x23ec6c,0x4f7)],_0x3e7afa['name'])){if(!_0x70dd9d['name'][_0x11d0a2(0x4e5,0x4fd,0x536,0x51e)]()){const _0x57d87d=new Error(_0x445388['vohzq']);_0x57d87d[_0x11d0a2(_0x5e467c._0x4cc004,0x50f,0x500,_0x5e467c._0x48eabd)]=_0x445388[_0x11d0a2(_0x5e467c._0x5d9430,_0x5e467c._0x19af97,_0x5e467c._0x5bc280,0x4a3)];throw _0x57d87d;}if(_0x6fa79d[_0x11d0a2(_0x5e467c._0x403c5f,0x4aa,0x4d0,0x4b7)](_0x9346a3=>_0x9346a3['name']===_0x70dd9d[_0x11d0a2(0x493,0x4d3,0x4c2,0x4c6)])){if(_0x445388[_0x3204ab(-_0x5e467c._0x4ea950,-_0x5e467c._0x14e771,-0x14a,-_0x5e467c._0xe3b636)]===_0x445388[_0x3204ab(-0xf4,-0xff,-0x12a,-_0x5e467c._0x505109)])_0x249cd1=null;else{const _0x177cff=new Error('Team\x20name\x20'+'\x27'+_0x70dd9d[_0x3204ab(-0x155,-_0x5e467c._0x12fb88,-0x141,-_0x5e467c._0x3fb0bf)]+(_0x11d0a2(0x506,_0x5e467c._0x3dd750,_0x5e467c._0x54bd3f,_0x5e467c._0xc95002)+'exists'));_0x177cff[_0x11d0a2(0x4da,0x50f,0x514,0x4f7)]=_0x445388[_0x3204ab(-_0x5e467c._0x1862a9,-_0x5e467c._0x8cf565,-_0x5e467c._0x1ff825,-0x120)];throw _0x177cff;}}}if(_0x70dd9d['name']!==undefined)_0x3e7afa[_0x3204ab(-_0x5e467c._0x5304e3,-0x106,-0x12b,-_0x5e467c._0x38fa1e)]=_0x70dd9d[_0x3204ab(-0x134,-_0x5e467c._0x61ca5f,-_0x5e467c._0x3b9e43,-_0x5e467c._0x3fb0bf)];if(_0x445388['ALjvh'](_0x70dd9d[_0x3204ab(-_0x5e467c._0x2ddb1d,-_0x5e467c._0x14a4ee,-_0x5e467c._0x17e6df,-0xef)+'n'],undefined))_0x3e7afa[_0x3204ab(-0x100,-0xb3,-_0x5e467c._0x16f12f,-_0x5e467c._0x1f65cf)+'n']=_0x70dd9d[_0x11d0a2(0x505,0x509,_0x5e467c._0x36ff13,0x51b)+'n'];if(_0x445388['ALjvh'](_0x70dd9d[_0x3204ab(-0xdc,-0x104,-0xf7,-_0x5e467c._0x2d1dcf)],undefined))_0x3e7afa['members']=_0x70dd9d['members'];function _0x3204ab(_0x1c0a85,_0x30275c,_0x3a0a9c,_0x3a6a69){return _0x356993(_0x1c0a85-_0x1ea621._0x3d3e07,_0x3a6a69- -0x3cf,_0x3a0a9c,_0x3a6a69-0x1f3);}return _0x3e7afa[_0x3204ab(-0x133,-_0x5e467c._0x41a3b5,-0x138,-_0x5e467c._0x16c9c8)]=new Date()['toISOStrin'+'g'](),await saveTeams(_0x6fa79d),_0x3e7afa;}export async function deleteTeam(_0x336334,_0x39ab91,_0x27ec2e){const _0x57a242={_0x5177c9:0x2dc,_0x26984b:0x2d9,_0x58f0ea:0x2db,_0x2a83ea:0x2d4,_0x4ee99f:0x308,_0xfc94a4:0x2de,_0x438047:0x2e1,_0xf013a2:0x2e7,_0x574571:0x2f2,_0x2fa082:0x2eb,_0xaa5a54:0x2f2,_0x452856:0x2ee,_0x3d111b:0x232,_0x20b47c:0x1ce,_0x44983d:0x1f6,_0xb5ff06:0x1de,_0x2429e3:0x1f4,_0x31e378:0x21a,_0x1ebf05:0x2de,_0x49dc3f:0x2cc,_0x387449:0x327,_0x2483f9:0x2cc,_0x95b874:0x1c5,_0x53a109:0x2f3,_0x18b211:0x2e9,_0x3cecb1:0x2bc,_0x1859bf:0x20e,_0x3c540a:0x243,_0x4ada14:0x2d7,_0x175d52:0x2c5,_0x24088c:0x1bc,_0x517d58:0x1dc,_0x4cb943:0x209,_0x58f7ca:0x226,_0x143d7c:0x1fc,_0x59cc69:0x1e0,_0x4e5163:0x22b,_0x1a3cbe:0x22b,_0x34cc03:0x1e0,_0x5120de:0x2df,_0x463a87:0x2d8,_0xcbd161:0x2ab,_0x516c2d:0x232,_0x4573bd:0x210,_0x5310fd:0x1d7,_0x499f81:0x238,_0x35db62:0x229,_0x1dfbe8:0x219,_0x4e0b9d:0x1fe,_0x4f2e83:0x22e,_0x595bd7:0x207,_0x16d53a:0x1c9,_0x1d3a09:0x1bd,_0x139a3c:0x1aa,_0x17026d:0x221,_0x2ab14b:0x1dd,_0x271cf3:0x1e6,_0x11a65b:0x203,_0x2f22a7:0x213,_0x4401e9:0x25a,_0x1981cd:0x20f,_0x41d1d6:0x2ff,_0x38d3de:0x321,_0x5eabec:0x2c8,_0x59a0ae:0x200,_0x43e391:0x2e0,_0x25937b:0x305,_0x4a8d79:0x2c5,_0x42e541:0x303,_0x2bd2de:0x2ea,_0x1820e2:0x209,_0x5d8844:0x2be,_0x1d6d90:0x2b6,_0x4a8ff4:0x2e9,_0x3aaf03:0x2cd,_0x5cea77:0x1db,_0x48751a:0x1db,_0x12989e:0x1e1},_0xaccdd4={_0x1a01d5:0x16e},_0x263a10={_0x501302:0x1b,_0x564f19:0xcf};function _0x55e267(_0xe49ef6,_0x35905a,_0x37008f,_0x3c7390){return _0x356993(_0xe49ef6-0x1b2,_0x37008f-_0x263a10._0x501302,_0x35905a,_0x3c7390-_0x263a10._0x564f19);}const _0x2c62d5={'hdzJS':_0x55e267(_0x57a242._0x5177c9,_0x57a242._0x26984b,_0x57a242._0x58f0ea,0x2a0),'eqjyb':function(_0x3ab614,_0x4acbdb){return _0x3ab614!==_0x4acbdb;},'lHfQW':_0x55e267(0x301,_0x57a242._0x2a83ea,_0x57a242._0x4ee99f,0x2dc),'TcWpv':function(_0x55e8fc,_0x14b928,_0x6b9399){return _0x55e8fc(_0x14b928,_0x6b9399);},'aHyKO':_0x55e267(0x2a4,_0x57a242._0xfc94a4,_0x57a242._0x438047,_0x57a242._0xf013a2),'ILibQ':_0x55e267(_0x57a242._0x574571,_0x57a242._0x2fa082,_0x57a242._0xaa5a54,_0x57a242._0x452856),'wWBNR':_0x40f2b1(_0x57a242._0x3d111b,0x22b,0x1f7,_0x57a242._0x20b47c)},_0x5a22d4=await getTeams(),_0x3aea40=_0x5a22d4[_0x40f2b1(_0x57a242._0x44983d,_0x57a242._0xb5ff06,_0x57a242._0x2429e3,_0x57a242._0x31e378)](_0x31f496=>_0x31f496['id']===_0x336334);if(_0x3aea40===-(-0x1b*-0x171+-0xfce+-0x171c)){const _0x26b878=new Error('Team\x20\x27'+_0x336334+(_0x55e267(_0x57a242._0x1ebf05,_0x57a242._0x49dc3f,0x2a0,0x273)+'d'));_0x26b878[_0x55e267(_0x57a242._0x387449,0x2d3,0x301,0x2c8)]=_0x55e267(0x2d2,0x33f,0x304,_0x57a242._0x2483f9);throw _0x26b878;}const _0x2526fa=_0x5a22d4[_0x3aea40];_0x5a22d4[_0x40f2b1(0x1e9,0x1d9,_0x57a242._0x95b874,0x1ec)](_0x3aea40,-0x5e*0x49+-0x5d0+0x209f*0x1),await saveTeams(_0x5a22d4);let _0x6c98ac=0xf0c+0x8b7*-0x2+0x262;if(_0x39ab91){if(_0x2c62d5['eqjyb'](_0x2c62d5[_0x55e267(0x31f,_0x57a242._0x53a109,_0x57a242._0x18b211,_0x57a242._0x3cecb1)],_0x2c62d5[_0x40f2b1(_0x57a242._0x1859bf,0x235,0x20a,_0x57a242._0x3c540a)])){const _0xd35f25=new _0x33c716(_0x55e267(_0x57a242._0x4ada14,_0x57a242._0x175d52,0x2f8,0x313)+_0x40f2b1(0x1b9,_0x57a242._0x24088c,_0x57a242._0x517d58,_0x57a242._0x4cb943)+'d');_0xd35f25['code']=_0x40f2b1(_0x57a242._0x58f7ca,0x202,_0x57a242._0x143d7c,_0x57a242._0x59cc69);throw _0xd35f25;}else _0x6c98ac+=await _0x2c62d5[_0x40f2b1(0x1c2,0x19b,0x1d1,0x1bc)](_0x39ab91,_0x2c62d5[_0x40f2b1(_0x57a242._0x4e5163,_0x57a242._0x1a3cbe,0x200,0x1c0)],_0x336334);}if(_0x27ec2e){if(_0x2c62d5['eqjyb'](_0x2c62d5['ILibQ'],_0x2c62d5[_0x40f2b1(0x21b,0x1e1,0x20d,_0x57a242._0x34cc03)]))_0x6c98ac+=await _0x2c62d5['TcWpv'](_0x27ec2e,_0x2c62d5[_0x55e267(_0x57a242._0x3cecb1,0x31a,_0x57a242._0x5120de,_0x57a242._0x463a87)],_0x336334);else{if(!_0x535ae1[_0x55e267(0x2dd,0x2ab,0x2c5,_0x57a242._0xcbd161)][_0x40f2b1(0x20e,_0x57a242._0x516c2d,_0x57a242._0x4573bd,_0x57a242._0x5310fd)]()){const _0x5a0706=new _0x495a15(_0x40f2b1(_0x57a242._0x499f81,_0x57a242._0x35db62,_0x57a242._0x1dfbe8,0x249)+'is\x20require'+'d');_0x5a0706['code']=_0x2c62d5[_0x40f2b1(0x24a,_0x57a242._0x4e0b9d,_0x57a242._0x4f2e83,_0x57a242._0x595bd7)];throw _0x5a0706;}if(_0x517bce[_0x40f2b1(0x1ed,_0x57a242._0x16d53a,_0x57a242._0x1d3a09,_0x57a242._0x139a3c)](_0x39b082=>_0x39b082[_0x55e267(0x2e1,0x2d9,0x2c5,0x2a9)]===_0x59622d['name'])){const _0x93834a=new _0x13a7fe('Team\x20name\x20'+'\x27'+_0x27d823[_0x40f2b1(_0x57a242._0x17026d,_0x57a242._0x2ab14b,_0x57a242._0x271cf3,_0x57a242._0x11a65b)]+(_0x40f2b1(_0x57a242._0x2f22a7,_0x57a242._0x4401e9,0x227,_0x57a242._0x1981cd)+'exists'));_0x93834a[_0x55e267(0x2d1,_0x57a242._0x41d1d6,0x301,0x2d8)]=_0x55e267(0x321,0x2e7,0x2e7,0x2c7);throw _0x93834a;}}}const _0x12ae41={};_0x12ae41[_0x55e267(_0x57a242._0x38d3de,0x2e1,0x303,_0x57a242._0x5eabec)]=_0x336334,_0x12ae41[_0x40f2b1(0x1ca,0x1e6,0x1ca,_0x57a242._0x59a0ae)]=_0x2526fa[_0x55e267(_0x57a242._0x43e391,_0x57a242._0x25937b,_0x57a242._0x4a8d79,0x2f2)],_0x12ae41[_0x55e267(_0x57a242._0x42e541,_0x57a242._0x2bd2de,0x2f4,0x325)+_0x40f2b1(0x19f,_0x57a242._0x1820e2,0x1db,0x1c9)]=_0x6c98ac;function _0x40f2b1(_0x2d7cd5,_0x29403c,_0x41e970,_0x2f274a){return _0x356993(_0x2d7cd5-_0xaccdd4._0x1a01d5,_0x41e970- -0xc4,_0x2d7cd5,_0x2f274a-0x15d);}logger['info']('Deleted\x20te'+'am',_0x12ae41);const _0x219490={};return _0x219490[_0x55e267(_0x57a242._0x5d8844,_0x57a242._0x1d6d90,_0x57a242._0x438047,0x2c7)]=_0x2526fa,_0x219490[_0x55e267(0x310,_0x57a242._0x4a8ff4,0x2f4,_0x57a242._0x3aaf03)+_0x40f2b1(0x219,_0x57a242._0x5cea77,_0x57a242._0x48751a,_0x57a242._0x12989e)]=_0x6c98ac,_0x219490;}export async function addMember(_0x30807c,_0x41b872){const _0xd3fa15={_0x35bcd0:0xe,_0xfeb89:0xfe,_0x68f97e:0x11d,_0x2d06fa:0x17,_0x53f316:0x30,_0x5da5ec:0x1c7,_0x2dc81c:0x192,_0x99a78:0x1b8,_0xf13b32:0x178,_0x238c21:0x19f,_0x211947:0x191,_0x4665a:0x19,_0x361dd7:0x11,_0x52b0f8:0x50,_0x5b4780:0x15b,_0x2f1a27:0x3,_0x68c860:0x24,_0x55eb28:0x38,_0x476f29:0x13e,_0x614998:0x10a,_0x2110b9:0x2c,_0xfca2cc:0x15f,_0x3d8eb4:0x161,_0x5ef7b6:0x23,_0x42d16d:0x60,_0x4c41c2:0x61,_0x210163:0x2b,_0x40df79:0xc,_0x3eae2a:0x25,_0x232c25:0x193,_0x4e4028:0x163,_0x2cc4c:0x12e,_0xabec5e:0x34,_0x34326c:0x49,_0x304c8e:0x29,_0x2eda5f:0x11,_0x193ac2:0x21,_0x2a6c50:0x4c,_0x2a002b:0x16,_0x5b104c:0x34,_0x328350:0x2d,_0x1171c:0x2b},_0x3861a9={_0x5c1c31:0x96,_0x5d48d4:0x2e9},_0xdd2714={'WhZjw':'DUPLICATE','yUeyX':function(_0x366588,_0xfc1056){return _0x366588===_0xfc1056;},'sJYkV':_0x252e79(-0x5,0x1b,-_0xd3fa15._0x35bcd0,-0x32),'yxQZa':'WGLWl','WDqry':function(_0x453009,_0x4b883e){return _0x453009(_0x4b883e);}},_0xdfe3f3=await getTeams(),_0x1ffb45=_0xdfe3f3[_0x547dbf(_0xd3fa15._0xfeb89,_0xd3fa15._0x68f97e,0xe2,0x12a)](_0x5f5080=>_0x5f5080['id']===_0x30807c);if(!_0x1ffb45){if(_0xdd2714[_0x252e79(-_0xd3fa15._0x2d06fa,-0x19,-0x37,-_0xd3fa15._0x53f316)](_0xdd2714[_0x547dbf(_0xd3fa15._0x5da5ec,_0xd3fa15._0x2dc81c,0x19c,_0xd3fa15._0x99a78)],_0xdd2714['yxQZa'])){const _0x3ae685=new _0x191911(_0x547dbf(0x184,_0xd3fa15._0xf13b32,_0xd3fa15._0x238c21,_0xd3fa15._0x211947)+_0x53c728+(_0x252e79(-_0xd3fa15._0x4665a,-_0xd3fa15._0x361dd7,-_0xd3fa15._0x52b0f8,-0x9)+'dy\x20a\x20membe'+'r\x20of\x20this\x20'+_0x547dbf(0x18a,0x15d,0x166,_0xd3fa15._0x5b4780)));_0x3ae685[_0x252e79(-_0xd3fa15._0x2f1a27,-0xb,_0xd3fa15._0x68c860,_0xd3fa15._0x55eb28)]=_0xdd2714['WhZjw'];throw _0x3ae685;}else{const _0x2ecc31=new Error(_0x547dbf(_0xd3fa15._0x476f29,0x145,0x13a,_0xd3fa15._0x614998)+_0x30807c+('\x27\x20not\x20foun'+'d'));_0x2ecc31['code']='NOT_FOUND';throw _0x2ecc31;}}if(_0x1ffb45['members'][_0x252e79(-0x61,-0x40,-0x72,-_0xd3fa15._0x2110b9)](_0x41b872)){const _0x3e683e=new Error('User\x20\x27'+_0x41b872+('\x27\x20is\x20alrea'+_0x547dbf(_0xd3fa15._0xfca2cc,0x138,_0xd3fa15._0x3d8eb4,0x137)+'r\x20of\x20this\x20'+_0x252e79(-_0xd3fa15._0x5ef7b6,0x16,-_0xd3fa15._0x42d16d,-_0xd3fa15._0x4c41c2)));_0x3e683e[_0x252e79(-0x3,_0xd3fa15._0x210163,-_0xd3fa15._0x40df79,-_0xd3fa15._0x3eae2a)]=_0x547dbf(_0xd3fa15._0x232c25,_0xd3fa15._0x4e4028,0x12b,_0xd3fa15._0x2cc4c);throw _0x3e683e;}function _0x547dbf(_0x28a37d,_0x3c1b7b,_0x4f1d00,_0x2d30d8){return _0x356993(_0x28a37d-0x11e,_0x3c1b7b- -0x169,_0x28a37d,_0x2d30d8-0x11);}_0x1ffb45[_0x252e79(-_0xd3fa15._0xabec5e,-0x74,-0x13,-0x3)][_0x252e79(-0x39,-0x2a,-0x58,-_0xd3fa15._0x34326c)](_0x41b872);function _0x252e79(_0x517299,_0x2336c2,_0x42c8fd,_0x2a3bd9){return _0x356993(_0x517299-_0x3861a9._0x5c1c31,_0x517299- -_0x3861a9._0x5d48d4,_0x42c8fd,_0x2a3bd9-0x184);}return _0x1ffb45[_0x252e79(-0x13,-_0xd3fa15._0x304c8e,-_0xd3fa15._0x2eda5f,_0xd3fa15._0x193ac2)]=new Date()[_0x252e79(-0x2c,-_0xd3fa15._0x2a6c50,-_0xd3fa15._0x2a002b,0x6)+'g'](),await _0xdd2714[_0x252e79(-0xd,-_0xd3fa15._0x5b104c,-_0xd3fa15._0x328350,-_0xd3fa15._0x1171c)](saveTeams,_0xdfe3f3),_0x1ffb45;}export async function removeMember(_0x4a2152,_0x4bbd8a){const _0x401e29={_0x2a44c9:0x137,_0x11345d:0x504,_0x1762f1:0xf6,_0x5958ed:0x105,_0x3ea8b1:0xc1,_0x15ff75:0xfc,_0x1e00e8:0x162,_0x453b2:0x14d,_0x3b5736:0xf5,_0x235ab0:0x13d,_0x2c076c:0x101,_0x1e30e1:0xe2,_0x262a17:0xc3,_0x3d25f2:0x14c,_0x1ff160:0x123,_0x4d93b4:0x13d,_0x51ef51:0xf7,_0x2d60c5:0x502,_0x332a4a:0x4f5,_0xe4fc61:0x163,_0x231a85:0x146,_0x108b6c:0x55e,_0x58d85b:0x536,_0x3a935f:0x541,_0x51a13f:0x4db,_0x5e7986:0x4c6,_0x3dd058:0x497,_0x1752f7:0x50e,_0x318bc3:0x4f4,_0x3c0aff:0x4e9,_0xdd0796:0x109,_0x172d70:0xf2,_0x3d5884:0x131},_0x1ca15d={_0x1993cd:0x156,_0x13e66d:0x1b2},_0x4687c6={_0x26560e:0x237,_0x47e572:0x132},_0x1b8a1e={'gcAkn':function(_0xc40d99){return _0xc40d99();},'tHDng':_0x32b627(0x108,0x118,0x166,_0x401e29._0x2a44c9),'WqccN':function(_0xda826e,_0x21bb58){return _0xda826e===_0x21bb58;},'wZSDC':function(_0x24eaac,_0x41071b){return _0x24eaac(_0x41071b);}},_0x11c711=await _0x1b8a1e[_0x482f08(0x547,0x51c,0x52a,_0x401e29._0x11345d)](getTeams),_0xc1cb27=_0x11c711[_0x32b627(0xba,_0x401e29._0x1762f1,0xf0,0xd4)](_0xf070e8=>_0xf070e8['id']===_0x4a2152);function _0x482f08(_0x402f09,_0x3f0fc8,_0x4b1bd6,_0xe12794){return _0x356993(_0x402f09-0x142,_0x4b1bd6-_0x4687c6._0x26560e,_0x402f09,_0xe12794-_0x4687c6._0x47e572);}if(!_0xc1cb27){const _0x2e2395=new Error(_0x32b627(0xd1,_0x401e29._0x5958ed,_0x401e29._0x3ea8b1,_0x401e29._0x15ff75)+_0x4a2152+('\x27\x20not\x20foun'+'d'));_0x2e2395[_0x32b627(_0x401e29._0x1e00e8,0x12c,_0x401e29._0x453b2,0x134)]=_0x1b8a1e[_0x482f08(0x516,0x534,0x536,0x533)];throw _0x2e2395;}const _0x4951ce=_0xc1cb27['members'][_0x32b627(_0x401e29._0x3b5736,_0x401e29._0x235ab0,0x127,_0x401e29._0x2c076c)](_0x4bbd8a);if(_0x1b8a1e[_0x32b627(_0x401e29._0x1e30e1,_0x401e29._0x262a17,0x11d,0xea)](_0x4951ce,-(0x23ee+-0x45*-0x43+-0x35fc))){const _0x1a9032=new Error(_0x32b627(_0x401e29._0x3d25f2,0x15a,_0x401e29._0x1ff160,0x12f)+_0x4bbd8a+(_0x32b627(_0x401e29._0x4d93b4,_0x401e29._0x51ef51,0x128,0x108)+_0x482f08(_0x401e29._0x2d60c5,0x4ea,_0x401e29._0x332a4a,0x4fb)+_0x32b627(0x16e,0x141,_0x401e29._0xe4fc61,_0x401e29._0x231a85)));_0x1a9032['code']=_0x1b8a1e[_0x482f08(0x539,_0x401e29._0x108b6c,_0x401e29._0x58d85b,_0x401e29._0x3a935f)];throw _0x1a9032;}_0xc1cb27[_0x482f08(_0x401e29._0x51a13f,0x520,0x4ec,_0x401e29._0x5e7986)][_0x482f08(_0x401e29._0x3dd058,0x491,0x4c0,0x4a9)](_0x4951ce,0x403+-0x1bb9+0x17b7),_0xc1cb27[_0x482f08(0x52f,0x517,0x50d,0x4f3)]=new Date()[_0x482f08(_0x401e29._0x1752f7,0x4db,_0x401e29._0x318bc3,_0x401e29._0x3c0aff)+'g'](),await _0x1b8a1e[_0x32b627(_0x401e29._0xdd0796,_0x401e29._0x172d70,0x114,_0x401e29._0x3d5884)](saveTeams,_0x11c711);function _0x32b627(_0x283303,_0x34952c,_0x2c60be,_0x281e65){return _0x356993(_0x283303-_0x1ca15d._0x1993cd,_0x281e65- -_0x1ca15d._0x13e66d,_0x34952c,_0x281e65-0x48);}return _0xc1cb27;}export function _resetCache(){teamsCache=null;}function _0x659f(){const _0x3cdf02=['yuH5s08','qKLqvfq','DgvHBq','DxrMltG','BgvUz3rO','mhWYFdn8nhWX','Aw5MBW','u2f2zwqGDgvHBq','rfvqteLdqvrf','zgvIDwC','BeHMuvC','C3rHDa','jYbPCYbHBhjLyq','D1DctLi','EvvLEvG','DMf5rNe','DhjPBq','CeDzvgG','DxbKyxrLzf9HDa','sePwshG','EMvKigvTChr5ia','zgvSzxrLzejPBG','zxjYB3i','C0rfsxO','v0rXCNK','vgvHBsbUyw1Lia','ovH5ue9QzG','EgD4wgW','zgvZy3jPChrPBW','vxnLCIaN','DhrnEMe','D1Ptrem','Be5HC2S','lcbPBML0AwfSAq','y29Kzq','Cu1dr0e','DgvHBuLK','tK9ux0zpvu5e','mZy1nda5AeTqq2PY','jYbHBhjLywr5ia','vgvHBxmGzMLSzq','ywrXDKG','mty2odyWnvHXA3LjBW','y3jLyxrLzf9IEq','zKDYu3u','C2f2zsb0zwfTCW','Agr6sLm','z2nbA24','BxmGzNjVBsbMAq','vwzcALi','BfrZswW','yxb3rNa','ihrOAxmGDgvHBq','rMfPBgvKihrVia','wePwsKK','C0PzA1y','nZaZmJy0uKfQCurH','zxHPC3rZ','CMvHzezPBgu','DeHeBMC','C29Tzq','AM9PBG','ne5AqLvgva','DgvHBxm','jYbUB3qGzM91BG','zMLUza','mJjiEK5Wzha','Aw5JBhvKzxm','C3bSAwnL','tNzpENe','EvntqLC','t2vjvfi','CuP4ELq','DgvHBu5HBwu','vNjftKO','svbMwvq','CYb0BYbMAwXL','u1HRB2q','ndK4mtqZohroA01Vvq','C3rYAw5NAwz5','vgnxChy','zgLYBMfTzq','zgXyz3y','ugPJvNu','DwrpyvG','DgvHBsbSAxn0','BgPbsuG','v3fJy04','sxbRsMm','C3bSAxq','zgLUz3m','AxmGCMvXDwLYzq','zhKGysbTzw1Izq','wLLIuNK','BwTKAxi','BM93','Bg9Hzcb0zwfTCW','DxbyEwO','tg9HzgvKihrLyq','mMPHzK5UBG','s0TyDfK','BMfTzq','z0Ddue4','zKvSDhC','ndKXmJaWogvltNvJza','vgvHBsaN','wxbnuwi','ChvZAa','DgvHBv8','CMvJDxjZAxzL','Aw5KzxHpzG','CMfUzg9T','BwvTyMvYCW','BxrPBwvnCW','DMfNvwW','zMLUzeLUzgv4','CgfYC2u','jYbPCYbUB3qGyq','rgHjy2S','mte0mZi5mgDdBurnrW','Dg9ju09tDhjPBG','ig1LBwjLCIbVzG','ru5pru5u','vKfmsurbveLptG','s0rtu2e','AgXqueq','nZm5nty4nePYDePnDW'];_0x659f=function(){return _0x3cdf02;};return _0x659f();}
1
+ (function(_0x1ef44d,_0xd06443){const _0x1ebef6={_0x488b35:0x5a1,_0x2bc05e:0x53b,_0x4fcfbf:0x4d8,_0x279dc8:0x589,_0xed0eaa:0x5be,_0x2d1668:0x638,_0x966f13:0x524,_0x589efe:0x513,_0x34ebc7:0x4ff,_0x3e9581:0x4f9,_0x66083f:0x52d,_0x42be37:0x53a,_0x575c6a:0x4d0,_0x543fdb:0x4d1,_0x595a5a:0x5f6,_0x229d8e:0x5d3,_0x3d0029:0x610,_0x595467:0x4e2,_0xeea74:0x52a,_0x5c36ca:0x507};function _0x325f70(_0xbc7304,_0x589baa,_0x542be3,_0x53c555){return _0x2900(_0x53c555-0x2ef,_0x589baa);}function _0x9c9ada(_0xb33e7a,_0x530f25,_0x11cf52,_0x34d40c){return _0x2900(_0x11cf52-0x3c0,_0x34d40c);}const _0x3a9928=_0x1ef44d();while(!![]){try{const _0x32e5ed=parseInt(_0x9c9ada(0x596,0x5d1,0x5b0,_0x1ebef6._0x488b35))/(-0x1b5f+0x27a*0xd+-0x4d2*0x1)+parseInt(_0x325f70(0x53c,0x510,0x513,0x51f))/(-0xb3f+0x2*-0xd15+-0xc79*-0x3)+parseInt(_0x325f70(_0x1ebef6._0x2bc05e,0x534,_0x1ebef6._0x4fcfbf,0x515))/(-0x223*-0x1+0x2206+-0x2426)*(-parseInt(_0x9c9ada(0x5dd,_0x1ebef6._0x279dc8,_0x1ebef6._0xed0eaa,0x59c))/(-0xc07*0x3+0x1d*0x1d+0x20d0))+-parseInt(_0x9c9ada(_0x1ebef6._0x2d1668,0x635,0x621,0x649))/(-0x3e*-0x8e+0x1a35*-0x1+-0x82a)*(-parseInt(_0x325f70(0x517,_0x1ebef6._0x966f13,0x4fe,0x524))/(0x1597+-0x612+-0xf7f))+-parseInt(_0x325f70(_0x1ebef6._0x589efe,_0x1ebef6._0x34ebc7,_0x1ebef6._0x3e9581,_0x1ebef6._0x66083f))/(-0x13dc+-0x840+0x1c23)*(-parseInt(_0x325f70(0x532,_0x1ebef6._0x42be37,0x517,0x522))/(-0xd*-0xc9+-0x1*0x1447+0xa1a))+-parseInt(_0x325f70(_0x1ebef6._0x575c6a,0x504,_0x1ebef6._0x543fdb,0x4e3))/(0x16fc*0x1+-0xacb+-0x1*0xc28)+-parseInt(_0x9c9ada(0x59c,_0x1ebef6._0x595a5a,_0x1ebef6._0x229d8e,_0x1ebef6._0x3d0029))/(-0x14d3+-0x91+-0x1*-0x156e)*(parseInt(_0x325f70(_0x1ebef6._0x595467,_0x1ebef6._0xeea74,0x52a,_0x1ebef6._0x5c36ca))/(0x19dd+-0x1b5f+-0x18d*-0x1));if(_0x32e5ed===_0xd06443)break;else _0x3a9928['push'](_0x3a9928['shift']());}catch(_0xe3d735){_0x3a9928['push'](_0x3a9928['shift']());}}}(_0x445d,-0x19*0x2519+-0x3f3*-0x4+0x2d*0x4e91));import{promises as _0x4c7d0b}from'fs';function _0x445d(){const _0x12d1dd=['vgvHBsbUyw1Lia','q1Hnq2K','DxbKyxrLzf9HDa','Afn0wwC','CMfUzg9T','zu1uv24','tg9HzgvKihrLyq','lcbPBML0AwfSAq','t1zYwum','mZiYmda3nvHTC1LzEG','q2H0zvi','rfvqteLdqvrf','DhjPBq','C3rHDa','DgvHBq','Bu5AtMy','q01KCLG','wNn6Ceu','rerZz2y','zgLUz3m','jYbHBhjLywr5ia','wKPlBwW','s1LJrfa','tfLrCg8','u2z3zeu','zgvZy3jPChrPBW','rhbZDeK','DgvHBxm','ota2nJqXufHrruLY','BND0B2G','tfnJugK','AM9PBG','ndu3odi4mNzLy0frsq','qM1qsvq','BwvTyMvYCW','AKzTBwm','tK9ux0zpvu5e','Eg5UveS','BKTnteG','C29Tzq','ChvZAa','rvHjELm','mtuZmdrPBhzjvg0','zxHPC3rZ','ufDMEhm','ru5pru5u','u2f2zwqGDgvHBq','B2HfwMK','s2DOAey','uxHJtMy','AxmGCMvXDwLYzq','DgvHBsbSAxn0','CMvJDxjZAxzL','DujvzuO','y291BNq','vgvHBxmGzMLSzq','y3jLyxrLzf9IEq','tKLjtKW','C2f2zsb0zwfTCW','rMfPBgvKihrVia','BeXMBM8','txLWqNG','Aw5MBW','mJKWsNHuu2jP','Bg9Hzcb0zwfTCW','ig5VDcbMB3vUza','D3jPDgvgAwXL','zgvIDwC','mZuXntCXr0vUsg1g','C3rYAw5NAwz5','CIbVzIb0AgLZia','Aw5JBhvKzxm','rwzKyK0','zMLUzeLUzgv4','vKfmsurbveLptG','Dg9ju09tDhjPBG','z0zxDhG','C3bSAwnL','y09Ot28','EuD1wNq','zhKGysbTzw1Izq','BxrPBwvnCW','odC5ALbwD2n5','BMfTzq','ig1LBwjLCIbVzG','Axfqq0i','BMfHwhG','Aw5KzxHpzG','AMnXBw0','tLnYsNC','qKTXtvm','C3bSAxq','ntu0ndqWvhnsrg9U','se5Wt1K','t29jt0O','mZaYntu5mML1s09gtq','vLbWv2m','mtjyqM5frMW','s2XryxC','vxnLCIaN','jYbPCYbUB3qGyq','EMXbyxC','BwTKAxi','tKvsD1a','vgvHBsaN','jYbPCYbHBhjLyq','mtrRAw9TtKS','rxvdDwe','zgLYBMfTzq','rgvSzxrLzcb0zq','C3vIC3rY','DxrMltG','s1bhBMK','yvnSwMi','ihrOAxmGDgvHBq','DgvHBuLK','zw1SuMq','Dg9tDhjPBMC','t2DoA2O','jYbUB3qGzM91BG','BgvUz3rO','A0jXueG','zMLSDgvY','EMvKigvTChr5ia','C2fprhG','C0PQtxu','zxjYB3i','y29Kzq','sLflqwm','zLbuBMi','y2PbENa','zMLUza'];_0x445d=function(){return _0x12d1dd;};return _0x445d();}import _0x32f256 from'path';function _0x480c94(_0x9f418c,_0x220bfa,_0x1d1f1c,_0x57788e){const _0x3ba837={_0x37b010:0x17};return _0x2900(_0x1d1f1c-_0x3ba837._0x37b010,_0x220bfa);}import{logger}from'./logger.js';import{DATA_DIR}from'./data-dir.js';const TEAMS_FILE=_0x32f256[_0x480c94(0x202,0x21a,0x20a,0x1e4)](DATA_DIR,'teams.json');let teamsCache=null,teamsCacheMtime=null;export async function loadTeams(){const _0x37f9e5={_0xf1085:0x5eb,_0x5fa73a:0x5c5,_0x2ecd69:0x5a9,_0x33e8d9:0x5ae,_0x2d09ad:0x11,_0x1d267b:0x1d,_0x438d5f:0x5b3,_0x393322:0x5c3,_0x2ca1ec:0x607,_0xfcb8b1:0x604,_0x2d1e3b:0x5e1,_0x25e28a:0x609,_0x3cd477:0x22,_0x219f23:0x21,_0x4e6a20:0x13,_0x3509a3:0x5d0,_0x17ab2a:0x59e,_0x47043f:0x39,_0x16fed4:0x9,_0x468bbb:0x4c,_0x33098c:0x3e,_0x325e8c:0x20,_0x3a1f37:0x24,_0xd59318:0x1,_0x58606c:0x4e,_0x4d4d67:0x38,_0x262a16:0x5,_0x559019:0x5f2,_0x5011dc:0x59d,_0x343c56:0x3b,_0x43ad39:0x13,_0x63d5e3:0x20,_0x3d4f31:0x45,_0xf91b8a:0x8,_0x2c076a:0x53,_0xaf24a7:0x2d,_0x257364:0x43,_0x540ed8:0x56,_0x56ac5d:0x28,_0x499de3:0x50,_0x36465f:0x1d,_0x3aed95:0x5fc,_0x242a32:0x6b,_0x3a1cc7:0x26,_0x37f5eb:0x5e4,_0x53c1be:0x41,_0xdeb3fb:0x0,_0x50fb21:0x5fb,_0x2b6c14:0x635,_0x535409:0x613,_0x887515:0x5ed,_0x33dda2:0x631,_0x4bb105:0x608,_0x2d214f:0x73,_0x3f78f7:0x19,_0x59bad7:0x48},_0x38504e={_0x7abc5b:0x1a8,_0x5ca367:0x391},_0x3baebb={_0x4b387c:0x15a};function _0x15b127(_0x54a112,_0x7d26a8,_0x4ab020,_0x50d6e1){return _0x480c94(_0x54a112-0xe3,_0x4ab020,_0x50d6e1- -0x262,_0x50d6e1-_0x3baebb._0x4b387c);}function _0x3ef625(_0x537c84,_0x1ab557,_0x4332b8,_0x4da45e){return _0x480c94(_0x537c84-_0x38504e._0x7abc5b,_0x4332b8,_0x537c84-_0x38504e._0x5ca367,_0x4da45e-0x14b);}const _0x4fe248={'SAydd':'Team\x20name\x20'+_0x3ef625(0x5ae,0x5f0,0x5d3,0x59c)+'d','ZawXy':'NOT_FOUND','DDsgf':function(_0x3eb791,_0x445094){return _0x3eb791===_0x445094;},'ChteR':'rfpIP','OgNkj':_0x3ef625(_0x37f9e5._0xf1085,_0x37f9e5._0x5fa73a,0x5ea,0x5ef),'NRQnX':_0x3ef625(_0x37f9e5._0x2ecd69,0x587,_0x37f9e5._0x33e8d9,0x57e),'yGuZt':_0x15b127(-0x6,_0x37f9e5._0x2d09ad,-0x22,-_0x37f9e5._0x1d267b),'UZuWI':'3|2|4|1|0','JQKAc':function(_0x29bcb9,_0x2dbd33){return _0x29bcb9(_0x2dbd33);},'kBqPH':_0x3ef625(_0x37f9e5._0x438d5f,0x5e9,0x574,0x5d0)+_0x3ef625(0x5bd,_0x37f9e5._0x393322,0x592,0x5b1)+_0x3ef625(_0x37f9e5._0x2ca1ec,0x5e8,_0x37f9e5._0xfcb8b1,0x636)+_0x3ef625(0x5f7,0x618,_0x37f9e5._0x2d1e3b,_0x37f9e5._0x25e28a)+_0x15b127(-_0x37f9e5._0x3cd477,-0x34,-_0x37f9e5._0x219f23,-0x44),'ohEZi':_0x15b127(-_0x37f9e5._0x4e6a20,-0xe,-0x28,-0x3c)+_0x3ef625(0x5bc,_0x37f9e5._0x3509a3,0x59b,_0x37f9e5._0x17ab2a)};try{if(_0x4fe248[_0x15b127(_0x37f9e5._0x47043f,0x52,_0x37f9e5._0x16fed4,0x1f)](_0x4fe248[_0x15b127(_0x37f9e5._0x468bbb,0x14,0x30,0x17)],_0x4fe248[_0x15b127(0x24,_0x37f9e5._0x33098c,0x51,0x17)])){const _0x5acff1=await _0x4c7d0b[_0x15b127(_0x37f9e5._0x325e8c,0x2c,0x2e,0x1a)](TEAMS_FILE),_0x2e057f=await _0x4c7d0b['readFile'](TEAMS_FILE,_0x4fe248[_0x15b127(0xf,-_0x37f9e5._0x3a1f37,0x2d,-_0x37f9e5._0xd59318)]),_0x5749b0=JSON['parse'](_0x2e057f);teamsCache=_0x5749b0[_0x15b127(-0x50,-0x73,-0x45,-0x5c)]||[],teamsCacheMtime=_0x5acff1[_0x15b127(-0x40,-0x6,0x12,-0x26)];const _0x27a422={};return _0x27a422[_0x15b127(-0x5e,-0x5,-_0x37f9e5._0x58606c,-0x41)]=teamsCache[_0x15b127(_0x37f9e5._0x4d4d67,-_0x37f9e5._0x262a16,0x8,0x1)],logger[_0x3ef625(0x5bf,0x5a8,_0x37f9e5._0x559019,_0x37f9e5._0x5011dc)](_0x15b127(0x54,_0x37f9e5._0x343c56,0x27,_0x37f9e5._0x43ad39)+'ms\x20from\x20fi'+'le',_0x27a422),teamsCache;}else{const _0x180ac8=new _0x3a5bda(_0x4fe248['SAydd']);_0x180ac8[_0x15b127(_0x37f9e5._0x63d5e3,_0x37f9e5._0x2d09ad,_0x37f9e5._0x3d4f31,_0x37f9e5._0xf91b8a)]=_0x15b127(-0x1d,-_0x37f9e5._0x2c076a,-0x27,-_0x37f9e5._0xaf24a7);throw _0x180ac8;}}catch(_0x2bc9dc){if(_0x2bc9dc[_0x3ef625(0x5fb,0x5c5,0x5c7,0x5cf)]===_0x4fe248['NRQnX']){if(_0x4fe248[_0x15b127(_0x37f9e5._0x47043f,-0xa,0x58,0x1f)](_0x4fe248[_0x15b127(-0x2f,-_0x37f9e5._0x257364,0x17,-0x28)],_0x4fe248[_0x15b127(-_0x37f9e5._0x540ed8,-0x19,-0x5e,-_0x37f9e5._0x56ac5d)])){const _0xbeae39=_0x4fe248['UZuWI'][_0x15b127(-_0x37f9e5._0x499de3,-0x1d,_0x37f9e5._0x36465f,-0x1c)]('|');let _0x29fb84=-0x6cd+0x1*0xf0c+-0x83f;while(!![]){switch(_0xbeae39[_0x29fb84++]){case'0':return teamsCache;case'1':await _0x4fe248[_0x3ef625(_0x37f9e5._0x3aed95,0x635,0x625,0x617)](saveTeams,teamsCache);continue;case'2':teamsCacheMtime=null;continue;case'3':teamsCache=[];continue;case'4':logger[_0x15b127(0x6,-0x57,-_0x37f9e5._0x242a32,-_0x37f9e5._0x47043f)](_0x4fe248[_0x15b127(-0x28,-_0x37f9e5._0x3a1cc7,-0x26,0x2)]);continue;}break;}}else{const _0x32e370=new _0x4e5be7(_0x3ef625(_0x37f9e5._0x37f5eb,0x5d2,_0x37f9e5._0xf1085,_0x37f9e5._0x33e8d9)+_0x4714ac+(_0x15b127(0x1f,0x2b,-_0x37f9e5._0x53c1be,_0x37f9e5._0xdeb3fb)+'d'));_0x32e370[_0x3ef625(_0x37f9e5._0x50fb21,_0x37f9e5._0x2b6c14,_0x37f9e5._0x535409,_0x37f9e5._0x887515)]=_0x4fe248['ZawXy'];throw _0x32e370;}}logger[_0x3ef625(0x5fa,_0x37f9e5._0x33dda2,_0x37f9e5._0x4bb105,0x5e3)](_0x4fe248[_0x15b127(-_0x37f9e5._0x2d214f,-0x7,-_0x37f9e5._0x3f78f7,-_0x37f9e5._0x59bad7)],_0x2bc9dc);throw _0x2bc9dc;}}export async function saveTeams(_0x263e5e){const _0xd24735={_0x2a898f:0x1b4,_0x113ab1:0x1a1,_0x4b2577:0x1b1,_0x2a8916:0x1a8,_0x4c9334:0x19a,_0x1403ac:0x1d0,_0x212bf1:0x18b,_0x49794f:0x197,_0x3f3c64:0x190,_0x4d841f:0x188,_0x3213c2:0x176,_0x4ef9bc:0x16e,_0x15fa13:0x157,_0x2db117:0x156,_0x5ea6c1:0x1a7,_0x580265:0x16e,_0x167dfc:0x13f,_0x22c9a0:0x165,_0x4752b5:0x1a0,_0x506655:0x198,_0x496ac0:0x182,_0x22f1b0:0x18a,_0x29c673:0x151,_0x4bc616:0x141,_0x53e109:0x191,_0x2176fe:0x1b1,_0x396998:0x1bf,_0x5a84ab:0x138,_0x570dee:0x159,_0x22b9ea:0x16d,_0x4ee1bd:0x162,_0xcaddb3:0x18d,_0x3aa2d7:0x133,_0x31e6d1:0x1b1,_0x59c201:0x19a,_0x58005b:0x176,_0x106cb8:0x16b,_0x5af504:0x143,_0xb51964:0x153,_0x3105e4:0x16c,_0x33f64c:0x195,_0x3a95d0:0x169,_0x2bca84:0x19e,_0x21e4c3:0x137,_0x71005a:0x1ad,_0x56021a:0x162,_0x33defc:0x19c,_0x670d76:0x1a9,_0xf0df1e:0x11e,_0x1e473c:0x184,_0x521f2b:0x180,_0x594e26:0x1b3,_0x5dafff:0x189,_0x3ed172:0x154,_0x5c6048:0x167},_0x22621e={_0x9afec:0xc0},_0x3f9ca5={_0x3b0435:0xb6},_0x3179e3={};_0x3179e3['BghQx']=_0x3acc57(_0xd24735._0x2a898f,_0xd24735._0x113ab1,0x1a0,0x1d9)+'is\x20require'+'d',_0x3179e3[_0x3acc57(0x174,_0xd24735._0x4b2577,_0xd24735._0x2a8916,0x1a7)]=_0x1b6a48(_0xd24735._0x4c9334,_0xd24735._0x1403ac,0x186,_0xd24735._0x212bf1),_0x3179e3['HNpOY']=_0x1b6a48(0x159,_0xd24735._0x49794f,_0xd24735._0x3f3c64,0x16c)+'s\x20to\x20file',_0x3179e3[_0x3acc57(0x18c,_0xd24735._0x4d841f,_0xd24735._0x3213c2,_0xd24735._0x4ef9bc)]=function(_0x383b56,_0x1354b9){return _0x383b56===_0x1354b9;};function _0x3acc57(_0x2c68e4,_0x2089b5,_0x3f8cfe,_0x1bf493){return _0x480c94(_0x2c68e4-0xa6,_0x3f8cfe,_0x2089b5- -0xce,_0x1bf493-_0x3f9ca5._0x3b0435);}function _0x1b6a48(_0x26057f,_0x2ea324,_0x1aa511,_0x6e6dff){return _0x480c94(_0x26057f-0x14f,_0x6e6dff,_0x26057f- -_0x22621e._0x9afec,_0x6e6dff-0x1b);}_0x3179e3[_0x1b6a48(_0xd24735._0x15fa13,0x181,0x16e,_0xd24735._0x2db117)]=_0x1b6a48(_0xd24735._0x5ea6c1,0x167,0x1d6,_0xd24735._0x580265),_0x3179e3[_0x3acc57(_0xd24735._0x167dfc,_0xd24735._0x3213c2,0x143,0x140)]='Failed\x20to\x20'+_0x1b6a48(_0xd24735._0x22c9a0,_0xd24735._0x4752b5,0x15b,_0xd24735._0x506655);const _0x50cf37=_0x3179e3;try{const _0x40d210=_0x32f256[_0x1b6a48(0x197,_0xd24735._0x496ac0,_0xd24735._0x22f1b0,0x1bb)](TEAMS_FILE),_0x466457={};_0x466457[_0x3acc57(0x10f,_0xd24735._0x29c673,_0xd24735._0x4bc616,0x179)]=!![],await _0x4c7d0b[_0x1b6a48(_0xd24735._0x53e109,_0xd24735._0x2176fe,_0xd24735._0x396998,_0xd24735._0x3213c2)](_0x40d210,_0x466457);const _0x43bdc5={};_0x43bdc5[_0x3acc57(0x106,_0xd24735._0x5a84ab,_0xd24735._0x570dee,0x11d)]=_0x263e5e,await _0x4c7d0b[_0x1b6a48(_0xd24735._0x22b9ea,0x19b,0x16b,0x151)](TEAMS_FILE,JSON[_0x3acc57(0x16d,_0xd24735._0x4ee1bd,_0xd24735._0xcaddb3,_0xd24735._0x3aa2d7)](_0x43bdc5,null,-0x2122+-0xa65*0x1+0x2b89),_0x50cf37[_0x3acc57(0x198,_0xd24735._0x31e6d1,_0xd24735._0x59c201,0x171)]);const _0x58d1d5=await _0x4c7d0b[_0x3acc57(_0xd24735._0x58005b,0x1ae,0x194,0x1c8)](TEAMS_FILE);teamsCache=_0x263e5e,teamsCacheMtime=_0x58d1d5[_0x3acc57(_0xd24735._0x106cb8,_0xd24735._0x580265,0x13b,0x15e)];const _0x4b85cc={};_0x4b85cc[_0x3acc57(_0xd24735._0x5af504,_0xd24735._0xb51964,0x167,_0xd24735._0x3105e4)]=_0x263e5e[_0x3acc57(0x181,_0xd24735._0x33f64c,0x163,0x1a1)],logger[_0x1b6a48(_0xd24735._0x3a95d0,0x19d,_0xd24735._0x2bca84,_0xd24735._0x21e4c3)](_0x50cf37[_0x1b6a48(0x188,_0xd24735._0x71005a,0x16d,_0xd24735._0x4b2577)],_0x4b85cc);}catch(_0x4fd6f5){if(_0x50cf37[_0x3acc57(_0xd24735._0x56021a,0x188,_0xd24735._0x33defc,_0xd24735._0x670d76)](_0x50cf37[_0x1b6a48(0x157,0x139,_0xd24735._0xf0df1e,0x15b)],'saODx')){logger[_0x1b6a48(0x1a9,0x1a9,0x1a7,0x18e)](_0x50cf37[_0x1b6a48(_0xd24735._0x1e473c,0x14e,_0xd24735._0x521f2b,_0xd24735._0x594e26)],_0x4fd6f5);throw _0x4fd6f5;}else{const _0x3b6693=new _0x16395c(_0x50cf37['BghQx']);_0x3b6693[_0x3acc57(0x1c3,0x19c,0x167,_0xd24735._0x5dafff)]=_0x3acc57(_0xd24735._0x3ed172,_0xd24735._0x5c6048,0x149,0x141);throw _0x3b6693;}}}export async function getTeams(){const _0x4b4446={_0x168978:0x24f,_0x3155e2:0x2b2,_0x2fc37f:0x2a4,_0xdf8b2c:0x2e3,_0x13a2f8:0x464,_0x1dbbe8:0x48e,_0x75d04e:0x45b,_0xe72a05:0x2a0,_0x213df1:0x2b2,_0xa94e71:0x2b8,_0x150843:0x473},_0x55a64c={_0x265f1b:0x255},_0x4e2fcf={_0x72ec90:0x10f};function _0x2ec72c(_0x477168,_0x27693,_0x186ea9,_0x46a737){return _0x480c94(_0x477168-0x9a,_0x186ea9,_0x477168-0x36,_0x46a737-_0x4e2fcf._0x72ec90);}const _0x21a676={'fTwwH':function(_0x5180de,_0x22cf73){return _0x5180de!==_0x22cf73;},'NIINL':'kXMSq','aSlZb':'fwxQx','AzKIn':function(_0x3a70e8,_0x21e50b){return _0x3a70e8!==_0x21e50b;},'APjIS':_0x2ec72c(0x24e,_0x4b4446._0x168978,0x229,0x23e),'gFWtx':function(_0x44093f){return _0x44093f();}};try{const _0x2682bb=await _0x4c7d0b[_0x2ec72c(_0x4b4446._0x3155e2,_0x4b4446._0x2fc37f,0x2dd,_0x4b4446._0xdf8b2c)](TEAMS_FILE);if(!teamsCache||_0x21a676['fTwwH'](_0x2682bb[_0x3d335f(0x491,_0x4b4446._0x13a2f8,0x4ce,_0x4b4446._0x1dbbe8)],teamsCacheMtime))return await loadTeams();}catch(_0x3ce54d){if(_0x21a676['fTwwH'](_0x21a676[_0x3d335f(0x479,0x489,_0x4b4446._0x75d04e,0x4ab)],_0x21a676[_0x3d335f(0x4b1,0x48d,0x4d0,0x4d1)])){if(_0x21a676['AzKIn'](_0x3ce54d[_0x2ec72c(_0x4b4446._0xe72a05,0x2d7,_0x4b4446._0x213df1,_0x4b4446._0xa94e71)],_0x21a676['APjIS']))throw _0x3ce54d;if(!teamsCache)return await _0x21a676[_0x3d335f(0x48c,0x478,_0x4b4446._0x150843,0x4b1)](loadTeams);}else _0x2c163e=null;}function _0x3d335f(_0x41b09c,_0xb65bff,_0x291789,_0x223059){return _0x480c94(_0x41b09c-0x5a,_0x291789,_0x41b09c-_0x55a64c._0x265f1b,_0x223059-0x1d2);}return teamsCache;}function _0x2900(_0x3fb9fb,_0x4cca8e){_0x3fb9fb=_0x3fb9fb-(-0x2*0x103c+-0x1*-0x23ef+-0x189*0x1);const _0x1ddf2d=_0x445d();let _0x3c06fe=_0x1ddf2d[_0x3fb9fb];if(_0x2900['fbSgkj']===undefined){var _0x51f11d=function(_0x1d59e9){const _0x47419d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x50e2bd='',_0x2b5286='';for(let _0xc0e1f9=-0x35+-0x171+0x1a6,_0x3fbd7d,_0x13955a,_0xcf8dfb=-0x972+-0x4fd*0x1+0x5*0x2e3;_0x13955a=_0x1d59e9['charAt'](_0xcf8dfb++);~_0x13955a&&(_0x3fbd7d=_0xc0e1f9%(0x24c5*-0x1+0x1*-0x22cb+-0x4*-0x11e5)?_0x3fbd7d*(-0xd3+-0x122b*-0x1+-0x1118*0x1)+_0x13955a:_0x13955a,_0xc0e1f9++%(0x1*0xcb6+0x1f20+-0x2bd2))?_0x50e2bd+=String['fromCharCode'](0x2*-0x12f0+0x96c+0x1d73&_0x3fbd7d>>(-(-0x6df*-0x4+-0x409*0x4+-0xb56)*_0xc0e1f9&-0x469*0x7+0x143a+0xaab*0x1)):0x21*0x32+-0x1f9f+0x192d){_0x13955a=_0x47419d['indexOf'](_0x13955a);}for(let _0x37378d=-0x1ecc+0x698+0x1834,_0x4aea4a=_0x50e2bd['length'];_0x37378d<_0x4aea4a;_0x37378d++){_0x2b5286+='%'+('00'+_0x50e2bd['charCodeAt'](_0x37378d)['toString'](0x14*0xe0+-0xfe+-0x1072))['slice'](-(0x19a8+-0x1*-0x1ef1+-0x3897));}return decodeURIComponent(_0x2b5286);};_0x2900['NAEzMh']=_0x51f11d,_0x2900['cHUHpq']={},_0x2900['fbSgkj']=!![];}const _0x354de2=_0x1ddf2d[-0x10*0x54+0xc9f+-0x75f],_0x31d16e=_0x3fb9fb+_0x354de2,_0x43984d=_0x2900['cHUHpq'][_0x31d16e];return!_0x43984d?(_0x3c06fe=_0x2900['NAEzMh'](_0x3c06fe),_0x2900['cHUHpq'][_0x31d16e]=_0x3c06fe):_0x3c06fe=_0x43984d,_0x3c06fe;}export async function getTeamById(_0x3a8ca8){const _0x21d941=await getTeams();return _0x21d941['find'](_0x499c38=>_0x499c38['id']===_0x3a8ca8)||null;}export async function getTeamsByUserId(_0xd8c446){const _0xcdd84d={_0x14e40d:0x370,_0x357e7c:0x35c,_0x3fd908:0x377,_0x265c66:0x292},_0x4a8a0c={_0xeac2c9:0x85},_0x1a1ebb={_0x13d19c:0x100,_0x36860f:0x120};function _0xc1cc95(_0x28a0b2,_0x414ed3,_0x279d5f,_0x17b13e){return _0x480c94(_0x28a0b2-_0x1a1ebb._0x13d19c,_0x279d5f,_0x28a0b2-_0x1a1ebb._0x36860f,_0x17b13e-0x1eb);}function _0x50b474(_0x344d62,_0x39671a,_0x3d7086,_0x271abc){return _0x480c94(_0x344d62-0x36,_0x3d7086,_0x271abc-0x53,_0x271abc-_0x4a8a0c._0xeac2c9);}const _0x5e6efd={'zlAaw':function(_0x5d3fb6){return _0x5d3fb6();}},_0x3794fe=await _0x5e6efd[_0xc1cc95(_0xcdd84d._0x14e40d,_0xcdd84d._0x357e7c,0x39a,_0xcdd84d._0x3fd908)](getTeams);return _0x3794fe[_0x50b474(0x285,_0xcdd84d._0x265c66,0x2f5,0x2b8)](_0x123287=>_0x123287['members'][_0x50b474(0x260,0x2bb,0x282,0x285)](_0xd8c446));}export async function createTeam(_0x142a41){const _0x182547={_0x1dd7b7:0x57e,_0x368960:0x5bb,_0x58e201:0x580,_0x781191:0x551,_0x1781b3:0x195,_0x5ea3ab:0x53d,_0x88ebf8:0x576,_0xfecf77:0x571,_0xb6d041:0x5a2,_0x396690:0x1da,_0x4a7d10:0x1ec,_0x50d14a:0x59a,_0x4b12d5:0x56c,_0x2af62c:0x5a9,_0x5aff04:0x5bf,_0x1b997e:0x1d5,_0x5f3eb3:0x1a1,_0x29a8dd:0x1a2,_0x9df003:0x1d0,_0x53369f:0x1a7,_0x485961:0x1c1,_0x5b5216:0x53f,_0x1b9e76:0x196,_0x4e0b97:0x575,_0x2d27d6:0x56c,_0x365d22:0x540,_0x27dd1a:0x597,_0x2991e3:0x5a3,_0x276bdf:0x1d0,_0x518c38:0x1ae,_0x5417bd:0x1a1,_0x241a9b:0x1e6,_0xe9fb61:0x19c,_0x542972:0x172,_0x53788f:0x5d0,_0x1f115d:0x5c6,_0x4d3c7b:0x569,_0x371f03:0x588,_0x13c9e3:0x591,_0x1e88c9:0x54d,_0x2d2512:0x55c,_0x1a6c43:0x58c,_0x697f32:0x559,_0x350cf6:0x5dd,_0x3121fe:0x574,_0xe504c8:0x5b6,_0x51722b:0x5cc,_0x451bc9:0x58f,_0x210329:0x53f},_0x4e7e78={_0x353560:0x3c},_0x40d5e6={_0x42d6a8:0x18b,_0x506d1e:0xd7};function _0x234d09(_0x4d5ba7,_0x29e2c0,_0x2f2113,_0x129bee){return _0x480c94(_0x4d5ba7-_0x40d5e6._0x42d6a8,_0x29e2c0,_0x4d5ba7- -0x9a,_0x129bee-_0x40d5e6._0x506d1e);}function _0x11d08c(_0x14a073,_0x1ed8c0,_0x1561fb,_0x19d3aa){return _0x480c94(_0x14a073-0x37,_0x14a073,_0x1561fb-0x32e,_0x19d3aa-_0x4e7e78._0x353560);}const _0x54f181={};_0x54f181[_0x11d08c(_0x182547._0x1dd7b7,_0x182547._0x368960,_0x182547._0x58e201,_0x182547._0x781191)]=_0x234d09(0x19b,0x1c4,_0x182547._0x1781b3,0x1a3),_0x54f181[_0x11d08c(_0x182547._0x5ea3ab,_0x182547._0x88ebf8,_0x182547._0xfecf77,_0x182547._0xb6d041)]=_0x234d09(0x1e0,_0x182547._0x396690,0x204,_0x182547._0x4a7d10);const _0x2e1f32=_0x54f181,_0x5c4fcb=await getTeams();if(!_0x142a41['name']||!_0x142a41[_0x11d08c(_0x182547._0x50d14a,0x531,_0x182547._0x4b12d5,0x57c)][_0x11d08c(0x5a2,_0x182547._0x58e201,_0x182547._0x2af62c,_0x182547._0x5aff04)]()){const _0x3df281=new Error(_0x234d09(_0x182547._0x1b997e,0x1e1,0x1c6,_0x182547._0x5f3eb3)+_0x234d09(0x183,_0x182547._0x29a8dd,0x17f,0x17b)+'d');_0x3df281[_0x234d09(_0x182547._0x9df003,0x1ba,_0x182547._0x53369f,_0x182547._0x485961)]=_0x2e1f32[_0x11d08c(0x547,0x5a0,0x580,_0x182547._0x5b5216)];throw _0x3df281;}if(_0x5c4fcb[_0x11d08c(0x514,0x546,0x540,0x54b)](_0x539920=>_0x539920[_0x234d09(0x1a4,0x18f,0x16d,0x1c2)]===_0x142a41[_0x11d08c(0x542,0x567,0x56c,0x546)])){const _0x19b616=new Error(_0x234d09(_0x182547._0x1b997e,0x1ab,0x1a8,_0x182547._0x1b9e76)+'\x27'+_0x142a41[_0x11d08c(_0x182547._0x4e0b97,0x57b,_0x182547._0x2d27d6,_0x182547._0x365d22)]+(_0x11d08c(0x5bc,_0x182547._0x27dd1a,0x5b1,_0x182547._0x2991e3)+'exists'));_0x19b616[_0x234d09(_0x182547._0x276bdf,_0x182547._0x518c38,_0x182547._0x5417bd,0x1b7)]=_0x2e1f32[_0x234d09(0x1a9,0x1bc,_0x182547._0x485961,_0x182547._0x241a9b)];throw _0x19b616;}const _0x29e13e=_0x142a41['members']||[],_0x3ed882=new Date()[_0x234d09(_0x182547._0xe9fb61,0x15b,0x15a,_0x182547._0x542972)+'g'](),_0x25aaba={'id':'team_'+Date['now']()+'_'+Math[_0x11d08c(_0x182547._0x53788f,_0x182547._0x1f115d,0x5a1,_0x182547._0x4d3c7b)]()[_0x11d08c(_0x182547._0x371f03,_0x182547._0x13c9e3,0x58e,0x5b0)](-0x14b+-0x1123+-0x1*-0x1292)[_0x11d08c(_0x182547._0x1e88c9,0x588,0x587,_0x182547._0x2d2512)](-0x1c1c+0x16fb+0x5*0x107,0x1ab4+-0x18d*0x2+-0x3*0x7db),'name':_0x142a41[_0x11d08c(_0x182547._0x1a6c43,_0x182547._0x697f32,0x56c,0x54d)],'description':_0x142a41[_0x11d08c(_0x182547._0x350cf6,_0x182547._0x3121fe,_0x182547._0xe504c8,_0x182547._0x51722b)+'n']||'','members':_0x29e13e,'created_at':_0x3ed882,'created_by':_0x142a41[_0x11d08c(0x56c,0x546,0x551,_0x182547._0x451bc9)]||null,'updated_at':_0x3ed882};return _0x5c4fcb[_0x11d08c(0x572,_0x182547._0x210329,0x541,0x52f)](_0x25aaba),await saveTeams(_0x5c4fcb),_0x25aaba;}export async function updateTeam(_0x354f10,_0xe57041){const _0x3f22f1={_0x443323:0xbb,_0xdbdaa7:0x50c,_0x27e9e5:0x53b,_0x23f713:0x541,_0x40e0a7:0x52b,_0x131f3f:0xb7,_0x4a4fb9:0x4fe,_0x3dc05f:0x19,_0x248661:0x512,_0x4a9dac:0x4d6,_0x3c7495:0x8f,_0xedfa95:0x55d,_0x25f060:0x54c,_0xf77271:0x4ca,_0x20bf2b:0x43,_0x48f274:0xbb,_0x463056:0x90,_0xbc9f7e:0x523,_0x361428:0x4f9,_0x46bee0:0xa4,_0x2b4ea5:0xb9,_0x894176:0x5f,_0x1acd78:0x6f,_0x45f744:0x51d,_0x4ea482:0x571,_0x282912:0x1a,_0x2b22a9:0x49,_0x1787d5:0x47,_0x27f9e6:0x546,_0x11a35a:0xc4,_0x198ab4:0xae,_0x14e628:0x87,_0x347db2:0x6e,_0x4cf127:0xaf,_0x57bd3f:0x554,_0xe5c2fc:0x579,_0x59c954:0x53f,_0x10f01f:0x557,_0x42d33f:0x545,_0x37e073:0x525,_0x1c8bbd:0x9d,_0x572216:0x59,_0x1188af:0x536,_0x8f9fa7:0x514,_0x385af1:0x537,_0xf60f5b:0x564,_0x5a117c:0x4ea,_0x5afd0e:0x527,_0x152060:0x4dc,_0x35b718:0x4cd,_0x45e5eb:0x50f,_0xeda97:0x4db,_0xd10098:0x51f,_0x49523e:0x11,_0xbcc9ee:0x556,_0x519531:0x4f6,_0x92f1df:0x557,_0x260f92:0x4ef,_0x29b58e:0x50e,_0x2112cf:0x54b,_0xc6697d:0x57e,_0x53f952:0x543,_0x539d9e:0x57a,_0x47a98c:0x575,_0x5991d6:0x4a6,_0x2a89ab:0x4c9,_0x2004c9:0x492,_0x52dc35:0x48a,_0x3eb7e0:0x3a,_0x3f049d:0xc,_0x36632b:0x2c,_0x531b47:0x3e,_0x1e3f3d:0x4b4,_0x173564:0x523,_0x2e7d89:0x52c,_0x3681b8:0x7d,_0xf98f0e:0xa4,_0x48a99b:0x67},_0x8ef722={_0x4e8087:0x2bb},_0x42b568={_0x254ba9:0x1cf},_0x55d28f={'fPTnb':_0x2aef4d(_0x3f22f1._0x443323,0x97,0x7e,0xab),'KghhF':function(_0x1e7ded){return _0x1e7ded();},'ecXfT':function(_0x265ef5,_0x1b3094){return _0x265ef5===_0x1b3094;},'emlRd':function(_0x4a99c7,_0x296373){return _0x4a99c7!==_0x296373;},'eMTWn':_0x1662a8(_0x3f22f1._0xdbdaa7,_0x3f22f1._0x27e9e5,_0x3f22f1._0x23f713,_0x3f22f1._0x40e0a7),'mNZNf':_0x2aef4d(0xdf,0xf7,0x94,0xb8),'ZJKml':_0x2aef4d(0x86,0xaf,0xdc,_0x3f22f1._0x131f3f),'aNNAe':_0x1662a8(0x542,_0x3f22f1._0x4a4fb9,0x52f,0x52a)+_0x2aef4d(_0x3f22f1._0x3dc05f,0x83,0xf,0x4e)+'d','KYcDP':'VALIDATION','jFmmc':function(_0xd6dd2a,_0x256b77){return _0xd6dd2a!==_0x256b77;},'coPrq':function(_0x23f385,_0x537406){return _0x23f385(_0x537406);}},_0x50ae19=await _0x55d28f[_0x1662a8(0x500,0x4f9,_0x3f22f1._0x248661,_0x3f22f1._0x4a9dac)](getTeams),_0x210c7f=_0x50ae19['findIndex'](_0x2bd691=>_0x2bd691['id']===_0x354f10);if(_0x55d28f['ecXfT'](_0x210c7f,-(0x16ce+-0x1ebb+0x7ee))){const _0x29b0bd=new Error(_0x2aef4d(_0x3f22f1._0x3c7495,0x79,0xae,0x84)+_0x354f10+(_0x1662a8(0x4e9,_0x3f22f1._0xedfa95,_0x3f22f1._0x25f060,0x51d)+'d'));_0x29b0bd[_0x1662a8(0x4fa,0x561,0x507,0x525)]=_0x1662a8(0x4af,0x4e4,0x4b3,_0x3f22f1._0xf77271);throw _0x29b0bd;}const _0x26d7e4=_0x50ae19[_0x210c7f];if(_0xe57041[_0x2aef4d(0x6a,_0x3f22f1._0x20bf2b,0x7c,0x6f)]!==undefined&&_0x55d28f[_0x2aef4d(0x7f,_0x3f22f1._0x48f274,0xa8,_0x3f22f1._0x463056)](_0xe57041[_0x1662a8(0x4c6,_0x3f22f1._0xbc9f7e,0x4c4,_0x3f22f1._0x361428)],_0x26d7e4['name'])){if(_0x55d28f[_0x2aef4d(0xda,_0x3f22f1._0x46bee0,_0x3f22f1._0x2b4ea5,0xa5)]!==_0x55d28f['eMTWn']){const _0x58badb=new _0x539881(_0x2aef4d(_0x3f22f1._0x894176,0x96,0xbc,0xa0)+'\x27'+_0x4aa2e5[_0x2aef4d(0x8a,0x80,0x62,_0x3f22f1._0x1acd78)]+(_0x1662a8(0x54d,_0x3f22f1._0x45f744,_0x3f22f1._0x4ea482,0x53e)+_0x2aef4d(_0x3f22f1._0x282912,_0x3f22f1._0x3dc05f,_0x3f22f1._0x2b22a9,_0x3f22f1._0x1787d5)));_0x58badb[_0x1662a8(0x557,_0x3f22f1._0x27f9e6,0x558,0x525)]=_0x55d28f[_0x2aef4d(0x6d,_0x3f22f1._0x11a35a,0xad,0x9d)];throw _0x58badb;}else{if(!_0xe57041['name'][_0x2aef4d(_0x3f22f1._0x198ab4,0xbb,_0x3f22f1._0x14e628,0xac)]()){if(_0x55d28f['emlRd'](_0x55d28f[_0x2aef4d(0x9c,_0x3f22f1._0x347db2,0xbc,_0x3f22f1._0x4cf127)],_0x55d28f[_0x1662a8(_0x3f22f1._0x57bd3f,0x52d,_0x3f22f1._0xe5c2fc,_0x3f22f1._0x59c954)])){const _0x30e241=new Error(_0x55d28f['aNNAe']);_0x30e241[_0x1662a8(0x536,_0x3f22f1._0x10f01f,_0x3f22f1._0x42d33f,_0x3f22f1._0x37e073)]=_0x55d28f[_0x1662a8(0x503,0x526,0x530,0x540)];throw _0x30e241;}else{const _0x4575bf=new _0x17d8f1('Team\x20name\x20'+'\x27'+_0xa02d74[_0x2aef4d(_0x3f22f1._0x1c8bbd,_0x3f22f1._0x1acd78,_0x3f22f1._0x572216,0x6f)]+(_0x1662a8(0x576,0x517,_0x3f22f1._0x1188af,0x53e)+'exists'));_0x4575bf[_0x1662a8(0x4fe,_0x3f22f1._0x8f9fa7,_0x3f22f1._0x385af1,0x525)]=_0x55d28f[_0x1662a8(0x4ef,_0x3f22f1._0xf60f5b,_0x3f22f1._0x5a117c,_0x3f22f1._0x5afd0e)];throw _0x4575bf;}}if(_0x50ae19[_0x1662a8(_0x3f22f1._0x152060,0x50f,0x49e,_0x3f22f1._0x35b718)](_0x34dfe0=>_0x34dfe0['name']===_0xe57041[_0x2aef4d(0x55,0x2e,0x93,0x6f)])){const _0x29c39f=new Error('Team\x20name\x20'+'\x27'+_0xe57041[_0x1662a8(_0x3f22f1._0x45e5eb,_0x3f22f1._0xeda97,_0x3f22f1._0xd10098,_0x3f22f1._0x361428)]+('\x27\x20already\x20'+_0x2aef4d(0x3f,0x5b,_0x3f22f1._0x49523e,0x47)));_0x29c39f['code']=_0x55d28f[_0x1662a8(0x50a,0x4fd,_0x3f22f1._0xbcc9ee,_0x3f22f1._0x5afd0e)];throw _0x29c39f;}}}if(_0x55d28f[_0x1662a8(_0x3f22f1._0x519531,_0x3f22f1._0x92f1df,_0x3f22f1._0x260f92,0x51a)](_0xe57041['name'],undefined))_0x26d7e4[_0x1662a8(0x512,_0x3f22f1._0x40e0a7,0x4fc,_0x3f22f1._0x361428)]=_0xe57041['name'];if(_0xe57041[_0x1662a8(_0x3f22f1._0x29b58e,_0x3f22f1._0x2112cf,_0x3f22f1._0xc6697d,_0x3f22f1._0x53f952)+'n']!==undefined)_0x26d7e4[_0x1662a8(0x52d,_0x3f22f1._0x539d9e,0x559,_0x3f22f1._0x53f952)+'n']=_0xe57041[_0x1662a8(0x53c,0x551,_0x3f22f1._0x47a98c,_0x3f22f1._0x53f952)+'n'];function _0x2aef4d(_0xe935b9,_0x31f337,_0x275d3e,_0x43b40c){return _0x480c94(_0xe935b9-0xec,_0xe935b9,_0x43b40c- -_0x42b568._0x254ba9,_0x43b40c-0x28);}if(_0x55d28f[_0x1662a8(0x49d,0x4fe,_0x3f22f1._0x5991d6,_0x3f22f1._0x2a89ab)](_0xe57041[_0x1662a8(_0x3f22f1._0x2004c9,0x4be,_0x3f22f1._0x52dc35,0x4c8)],undefined))_0x26d7e4[_0x2aef4d(_0x3f22f1._0x3eb7e0,_0x3f22f1._0x3f049d,_0x3f22f1._0x36632b,_0x3f22f1._0x531b47)]=_0xe57041[_0x1662a8(_0x3f22f1._0x1e3f3d,0x4ba,0x494,0x4c8)];_0x26d7e4[_0x1662a8(0x53b,_0x3f22f1._0x173564,0x51b,_0x3f22f1._0x2e7d89)]=new Date()[_0x2aef4d(0x2d,_0x3f22f1._0x3681b8,_0x3f22f1._0xf98f0e,_0x3f22f1._0x48a99b)+'g']();function _0x1662a8(_0x4a7859,_0x5afe44,_0x21027e,_0x4312af){return _0x480c94(_0x4a7859-0x139,_0x4a7859,_0x4312af-_0x8ef722._0x4e8087,_0x4312af-0x6d);}return await _0x55d28f['coPrq'](saveTeams,_0x50ae19),_0x26d7e4;}export async function deleteTeam(_0x271d5f,_0x2a47c7,_0x34fc56){const _0x1b7348={_0x5ed1af:0x27d,_0x158b2b:0x2c5,_0x32ed93:0x2fc,_0x24d320:0x2f8,_0xa42940:0x2fd,_0x173fc3:0x298,_0x4678d9:0x2d8,_0x3fd123:0x2d2,_0x57f79e:0x2db,_0xdc05e9:0x2c9,_0x3b6d8a:0x294,_0x348ee5:0x2a7,_0x549301:0x2f,_0x36ca7f:0x70,_0x412477:0x40,_0x5e6371:0x68,_0x527172:0x51,_0x4bc74c:0x52,_0x237c6f:0x67,_0x28441c:0x92,_0x478f96:0x90,_0x3db798:0x6a,_0x2ab076:0x2af,_0x11c0b3:0x73,_0x56dc32:0x93,_0x2194c6:0x84,_0x234ed4:0xa5,_0x10ec9a:0x2be,_0x437fd8:0x2bf,_0x3929b5:0x3c,_0xb81fc:0x39,_0x2e7fd4:0x2c1,_0x297614:0x301,_0x8ae6f4:0x2ea,_0x8d2f8c:0xcf,_0x3003d3:0xba,_0x4a35ee:0xc3,_0x2bbd1b:0x29b,_0x27d43e:0x83,_0x546147:0x87,_0x374a60:0x2de,_0x2105bc:0x2ba,_0x553fa3:0x2a0,_0x209198:0xa4,_0x386606:0x2bb,_0x1a23b4:0x300,_0x26fac3:0x334,_0x40cae3:0x296,_0x50d673:0x2c2,_0x18b6c7:0x50,_0x203b5a:0xd2,_0x5971c2:0x91,_0x2266c3:0x4c,_0x1f26cc:0x38,_0x46fd4c:0x24,_0x40df43:0x55},_0x3a7aaa={_0x1f7c6b:0x26,_0x5e9aa3:0x2d2},_0x56ff7d={_0x13baab:0x87,_0x3e6a0d:0x80,_0x5cff14:0x146},_0x59f67e={'OVrYC':function(_0x27ad0c){return _0x27ad0c();},'lLfno':function(_0x510e39,_0x3ec719){return _0x510e39===_0x3ec719;},'ZszpE':'NOT_FOUND','sJjMu':function(_0x23c673,_0x21489b){return _0x23c673!==_0x21489b;},'EfdbM':_0x58db00(_0x1b7348._0x5ed1af,_0x1b7348._0x158b2b,0x275,0x289),'uBUeJ':function(_0x3b8e74,_0x2122d0,_0x45c11d){return _0x3b8e74(_0x2122d0,_0x45c11d);},'VPpWc':_0x58db00(_0x1b7348._0x32ed93,0x2e6,_0x1b7348._0x24d320,_0x1b7348._0xa42940),'naaXx':_0x58db00(0x2f5,_0x1b7348._0x173fc3,0x314,_0x1b7348._0x4678d9)+'am'},_0x2cb93e=await _0x59f67e[_0x58db00(_0x1b7348._0x3fd123,0x334,0x30d,0x2f7)](getTeams),_0xe3557=_0x2cb93e[_0x58db00(_0x1b7348._0x57f79e,_0x1b7348._0xdc05e9,_0x1b7348._0x3b6d8a,0x2b4)](_0xbca46d=>_0xbca46d['id']===_0x271d5f);if(_0x59f67e[_0x58db00(_0x1b7348._0x57f79e,0x2b6,0x29d,_0x1b7348._0x348ee5)](_0xe3557,-(-0x1*-0x9a9+-0x7*-0x53f+-0x2e61))){const _0x118d87=new Error('Team\x20\x27'+_0x271d5f+(_0x4694b5(-0x7c,-0xaf,-_0x1b7348._0x549301,-_0x1b7348._0x36ca7f)+'d'));_0x118d87[_0x4694b5(-_0x1b7348._0x412477,-0x8b,-0x31,-_0x1b7348._0x5e6371)]=_0x59f67e[_0x4694b5(-_0x1b7348._0x527172,-0x48,-0x91,-_0x1b7348._0x4bc74c)];throw _0x118d87;}const _0x4bf9f0=_0x2cb93e[_0xe3557];_0x2cb93e['splice'](_0xe3557,-0x2053+0x54b+-0x3*-0x903),await saveTeams(_0x2cb93e);let _0x114012=0x912*0x2+0x14*0x1be+-0x34fc;if(_0x2a47c7){if(_0x59f67e[_0x4694b5(-_0x1b7348._0x237c6f,-_0x1b7348._0x28441c,-_0x1b7348._0x478f96,-_0x1b7348._0x3db798)](_0x59f67e['EfdbM'],_0x59f67e[_0x58db00(0x2e0,0x299,_0x1b7348._0x2ab076,0x2b3)])){const _0x19177e=new _0x4f0009(_0x4694b5(-_0x1b7348._0x11c0b3,-_0x1b7348._0x56dc32,-0x9e,-_0x1b7348._0x2194c6)+_0x557434+(_0x4694b5(-_0x1b7348._0x234ed4,-0x68,-0x88,-0x83)+_0x58db00(0x300,_0x1b7348._0x10ec9a,0x2d4,_0x1b7348._0x437fd8)+_0x4694b5(-0x54,-_0x1b7348._0x3929b5,-_0x1b7348._0xb81fc,-0x75)));_0x19177e[_0x58db00(_0x1b7348._0x2e7fd4,0x2c4,_0x1b7348._0x297614,_0x1b7348._0x8ae6f4)]=_0x4694b5(-0x8f,-_0x1b7348._0x8d2f8c,-_0x1b7348._0x3003d3,-_0x1b7348._0x4a35ee);throw _0x19177e;}else _0x114012+=await _0x59f67e[_0x58db00(_0x1b7348._0x2bbd1b,0x2c8,0x29d,0x2a0)](_0x2a47c7,_0x59f67e[_0x4694b5(-0x74,-0x66,-_0x1b7348._0x27d43e,-_0x1b7348._0x546147)],_0x271d5f);}_0x34fc56&&(_0x114012+=await _0x59f67e[_0x58db00(0x28d,_0x1b7348._0x374a60,_0x1b7348._0x2105bc,_0x1b7348._0x553fa3)](_0x34fc56,_0x59f67e[_0x4694b5(-0x58,-_0x1b7348._0x209198,-0x9d,-0x87)],_0x271d5f));function _0x58db00(_0x8b8f14,_0x4b9258,_0x92e512,_0x35afe9){return _0x480c94(_0x8b8f14-_0x56ff7d._0x13baab,_0x4b9258,_0x35afe9-_0x56ff7d._0x3e6a0d,_0x35afe9-_0x56ff7d._0x5cff14);}const _0xd3ad1e={};_0xd3ad1e[_0x58db00(_0x1b7348._0x386606,_0x1b7348._0x1a23b4,0x2ba,0x2de)]=_0x271d5f,_0xd3ad1e['teamName']=_0x4bf9f0['name'],_0xd3ad1e['deletedBin'+_0x58db00(_0x1b7348._0x26fac3,0x323,0x2e7,0x302)]=_0x114012,logger[_0x58db00(_0x1b7348._0x40cae3,_0x1b7348._0x50d673,_0x1b7348._0x10ec9a,0x2a9)](_0x59f67e[_0x4694b5(-_0x1b7348._0x18b6c7,-_0x1b7348._0x203b5a,-0xa1,-_0x1b7348._0x5971c2)],_0xd3ad1e);const _0x3f50b5={};function _0x4694b5(_0x431701,_0x3847c7,_0x419868,_0x2b7e7f){return _0x480c94(_0x431701-_0x3a7aaa._0x1f7c6b,_0x431701,_0x2b7e7f- -_0x3a7aaa._0x5e9aa3,_0x2b7e7f-0x122);}return _0x3f50b5[_0x4694b5(-_0x1b7348._0x2266c3,-_0x1b7348._0x1f26cc,-_0x1b7348._0x46fd4c,-_0x1b7348._0x40df43)]=_0x4bf9f0,_0x3f50b5['deletedBin'+'dings']=_0x114012,_0x3f50b5;}export async function addMember(_0x58ed85,_0x218729){const _0x328470={_0x19bc12:0x116,_0x181d12:0x119,_0x27c948:0x2ba,_0x29c48b:0x2d9,_0x351541:0x2d8,_0x92b70c:0x2a7,_0x317c2a:0x17c,_0x3d3f3a:0x178,_0x5d6a5a:0x189,_0x40ef77:0x134,_0x36087f:0x13a,_0x2c9a68:0x102,_0x143e7c:0x303,_0x518d0f:0x2a3,_0xa1a54d:0x2ac,_0x264786:0x2df,_0x5ab127:0x13d,_0x80b44b:0x11b,_0x3767a3:0x130,_0x37c1f7:0x11d,_0x8efa41:0x277,_0x17adcb:0x2a0,_0x262c9c:0x2c2,_0x4d3b57:0x2e2,_0x30e15b:0x2a9,_0x196244:0x278,_0x5c269f:0x16a,_0xab1031:0x124,_0x16fd4b:0x18b,_0x34c87c:0x1c9,_0x58e1b7:0x2d8,_0x287e96:0x2d2,_0x219c1d:0x182,_0xa88119:0x15c,_0x6c023e:0xe6,_0xd0cf8d:0x11b,_0x4f17c3:0x14e,_0x254c1d:0xfb,_0x3aaa12:0x17f,_0x1f5eb8:0x169,_0x54926f:0x150,_0x18fed8:0x12a,_0x325e20:0x13f},_0x31a73b={_0x46ccc9:0x6e},_0x93bd9e={_0x1d3ef8:0xcd},_0x443659={'MypBx':'NOT_FOUND','cOhOo':function(_0x432313){return _0x432313();},'DKENO':_0x211f6e(0x121,_0x328470._0x19bc12,0x10d,_0x328470._0x181d12),'hStYg':_0x22997e(0x329,_0x328470._0x27c948,0x2e8,_0x328470._0x29c48b),'QxcNf':function(_0x20ae43,_0x47dddf){return _0x20ae43(_0x47dddf);}},_0x38a459=await _0x443659[_0x22997e(0x28f,_0x328470._0x351541,_0x328470._0x92b70c,0x2b8)](getTeams),_0x700316=_0x38a459[_0x211f6e(0x18c,_0x328470._0x317c2a,0x1b6,0x148)](_0x306710=>_0x306710['id']===_0x58ed85);function _0x211f6e(_0x1c8522,_0x73d871,_0x4df0f6,_0x906841){return _0x480c94(_0x1c8522-0x12d,_0x1c8522,_0x73d871- -0xf2,_0x906841-_0x93bd9e._0x1d3ef8);}if(!_0x700316){if('nwtoh'===_0x443659['DKENO']){const _0x2fda97=new Error('Team\x20\x27'+_0x58ed85+('\x27\x20not\x20foun'+'d'));_0x2fda97[_0x211f6e(0x166,_0x328470._0x3d3f3a,0x181,_0x328470._0x5d6a5a)]=_0x443659[_0x211f6e(_0x328470._0x40ef77,0x136,_0x328470._0x36087f,_0x328470._0x2c9a68)];throw _0x2fda97;}else{const _0x33c49f=new _0x57258b('Team\x20\x27'+_0x267a36+(_0x22997e(0x2bc,0x2b7,0x2d0,_0x328470._0x143e7c)+'d'));_0x33c49f[_0x22997e(_0x328470._0x518d0f,_0x328470._0xa1a54d,_0x328470._0x351541,_0x328470._0x264786)]=_0x443659['MypBx'];throw _0x33c49f;}}if(_0x700316[_0x211f6e(_0x328470._0x5ab127,_0x328470._0x80b44b,_0x328470._0x3767a3,_0x328470._0x37c1f7)][_0x22997e(_0x328470._0x8efa41,0x28d,_0x328470._0x17adcb,0x2b3)](_0x218729)){const _0x123e56=new Error('User\x20\x27'+_0x218729+(_0x22997e(0x293,0x2f3,_0x328470._0x262c9c,0x2c8)+_0x22997e(0x2cc,_0x328470._0x4d3b57,_0x328470._0x30e15b,_0x328470._0x196244)+_0x211f6e(0x160,0x13f,_0x328470._0x5c269f,_0x328470._0xab1031)+_0x211f6e(0x197,_0x328470._0x16fd4b,_0x328470._0x34c87c,0x1a6)));_0x123e56[_0x22997e(0x2cb,0x2c3,_0x328470._0x58e1b7,_0x328470._0x287e96)]=_0x443659[_0x211f6e(_0x328470._0x219c1d,0x180,0x158,_0x328470._0xa88119)];throw _0x123e56;}_0x700316[_0x211f6e(_0x328470._0x6c023e,_0x328470._0xd0cf8d,_0x328470._0x4f17c3,_0x328470._0x254c1d)]['push'](_0x218729),_0x700316[_0x211f6e(0x143,_0x328470._0x3aaa12,_0x328470._0x1f5eb8,0x1ab)]=new Date()['toISOStrin'+'g'](),await _0x443659[_0x211f6e(_0x328470._0x54926f,_0x328470._0x18fed8,0x122,_0x328470._0x325e20)](saveTeams,_0x38a459);function _0x22997e(_0x217423,_0x37a40f,_0x209c0e,_0x2775b4){return _0x480c94(_0x217423-0x15f,_0x2775b4,_0x209c0e-_0x31a73b._0x46ccc9,_0x2775b4-0x8e);}return _0x700316;}export async function removeMember(_0x27e480,_0x18a044){const _0x43093a={_0x41da04:0x282,_0x209ab7:0x2b8,_0x54830c:0x243,_0x2ef8a7:0x247,_0x19865d:0x232,_0x408945:0x26a,_0x285a69:0x1d0,_0x794bf:0x23b,_0x58dfbd:0x1fc,_0x4fa0c7:0x234,_0x147cb7:0x231,_0x26b1b9:0x230,_0x3302b0:0x27d,_0x3a6038:0x21c,_0x3f7c80:0x26b,_0x36e905:0x27e,_0x52f2ed:0x255,_0x21d88a:0x2d5,_0x823786:0x2c2,_0x4fb994:0x2b2,_0x429136:0x2b0,_0x77983f:0x227,_0x480177:0x1c4,_0x22d9ec:0x1fd,_0x20947d:0x200,_0x68ec14:0x214,_0x39633e:0x1de,_0x14817f:0x29c,_0x498ca8:0x28b,_0x59cb0e:0x236,_0x516b8f:0x27d,_0xed9fb4:0x277,_0x484674:0x24b,_0x55957e:0x238,_0x41bcca:0x253,_0x270be2:0x22a,_0x2e44c0:0x259,_0x2723fe:0x247,_0x11df7f:0x1e6,_0x4acbb1:0x1ff,_0x2a455b:0x221,_0x13d89c:0x204,_0x5145fd:0x23b,_0x2ca15e:0x2ba,_0x5dfd65:0x284,_0x50db7e:0x242,_0x410425:0x25b,_0x1da2f5:0x27c,_0x5b4e4d:0x29a,_0x5c8eb7:0x280,_0x3555c1:0x287,_0x1a5f8f:0x27c,_0x46beae:0x27a,_0x20d20c:0x28d,_0x454240:0x273,_0x39352e:0x2be,_0x5745c3:0x23b,_0x2baf1c:0x226,_0x56a03d:0x25a,_0x5ace09:0x21d,_0x2cfd10:0x28f,_0x3f07e3:0x256,_0x485ca3:0x28c,_0x4ebb9e:0x237,_0x361936:0x25d},_0x138782={'EXIzS':_0x463525(0x2ea,_0x43093a._0x41da04,_0x43093a._0x209ab7,0x295)+_0x7a03ca(0x206,0x22e,_0x43093a._0x54830c,0x20d)+'d','KlQaw':_0x7a03ca(0x202,_0x43093a._0x2ef8a7,0x223,0x225),'nKMLH':_0x7a03ca(_0x43093a._0x19865d,0x251,0x286,_0x43093a._0x408945),'DpstI':function(_0x29350f,_0x5ea3ec){return _0x29350f!==_0x5ea3ec;},'wBgBR':_0x7a03ca(_0x43093a._0x285a69,_0x43093a._0x794bf,0x21e,_0x43093a._0x58dfbd),'xnnTK':_0x463525(0x272,0x265,0x258,_0x43093a._0x4fa0c7),'OoIOJ':function(_0x3be585,_0x322d1d){return _0x3be585===_0x322d1d;},'KPGni':_0x7a03ca(_0x43093a._0x147cb7,0x224,0x26a,_0x43093a._0x26b1b9),'cjAzp':function(_0x1d5429,_0x4fa683){return _0x1d5429(_0x4fa683);}},_0x2af5fe=await getTeams(),_0x1c4fc4=_0x2af5fe['find'](_0x514fe7=>_0x514fe7['id']===_0x27e480);if(!_0x1c4fc4){if(_0x138782[_0x463525(_0x43093a._0x3302b0,_0x43093a._0x3a6038,0x24e,_0x43093a._0x3f7c80)](_0x463525(0x24e,_0x43093a._0x36e905,_0x43093a._0x52f2ed,0x27f),_0x138782['wBgBR'])){_0x242964[_0x463525(_0x43093a._0x21d88a,_0x43093a._0x823786,_0x43093a._0x4fb994,0x299)]('Failed\x20to\x20'+'save\x20teams',_0x29998d);throw _0xad7a6b;}else{const _0x1c8eb6=new Error('Team\x20\x27'+_0x27e480+(_0x463525(0x2dd,0x2e3,0x2ab,_0x43093a._0x429136)+'d'));_0x1c8eb6['code']=_0x138782[_0x7a03ca(_0x43093a._0x77983f,_0x43093a._0x480177,_0x43093a._0x22d9ec,_0x43093a._0x20947d)];throw _0x1c8eb6;}}function _0x7a03ca(_0x28d542,_0x1528fd,_0x103e6f,_0x48a0ac){return _0x480c94(_0x28d542-0x13,_0x103e6f,_0x48a0ac- -0x10,_0x48a0ac-0x20);}function _0x463525(_0x3c17b0,_0x50cc07,_0x11e4dd,_0x54b79a){return _0x480c94(_0x3c17b0-0xa5,_0x3c17b0,_0x11e4dd-0x49,_0x54b79a-0xa8);}const _0x2478c3=_0x1c4fc4[_0x7a03ca(_0x43093a._0x68ec14,_0x43093a._0x39633e,0x1fd,0x1fd)][_0x463525(_0x43093a._0x14817f,0x28c,_0x43093a._0x498ca8,0x2a8)](_0x18a044);if(_0x2478c3===-(0x15dc+-0x20e2+0xb07)){if(_0x138782[_0x7a03ca(_0x43093a._0x59cb0e,0x277,0x279,0x239)](_0x138782[_0x7a03ca(_0x43093a._0x516b8f,_0x43093a._0xed9fb4,0x213,_0x43093a._0x484674)],_0x463525(0x278,0x247,0x289,0x264))){const _0x75d1c6=new Error('User\x20\x27'+_0x18a044+('\x27\x20is\x20not\x20a'+'\x20member\x20of'+_0x7a03ca(0x22b,0x24f,_0x43093a._0x55957e,0x24d)));_0x75d1c6['code']=_0x138782[_0x463525(_0x43093a._0x41bcca,_0x43093a._0x270be2,_0x43093a._0x2e44c0,0x258)];throw _0x75d1c6;}else{if(!_0x3f3336[_0x463525(0x271,0x29c,0x287,0x26f)][_0x7a03ca(_0x43093a._0x2723fe,0x264,_0x43093a._0x26b1b9,_0x43093a._0x3f7c80)]()){const _0x4fa5be=new _0x1762ed(_0x138782[_0x7a03ca(_0x43093a._0x11df7f,_0x43093a._0x4acbb1,_0x43093a._0x2a455b,_0x43093a._0x13d89c)]);_0x4fa5be[_0x7a03ca(0x23d,0x242,_0x43093a._0x5145fd,0x25a)]=_0x138782[_0x463525(_0x43093a._0x2ca15e,0x28f,0x296,_0x43093a._0x5dfd65)];throw _0x4fa5be;}if(_0x5d3715[_0x463525(0x277,_0x43093a._0x50db7e,_0x43093a._0x410425,_0x43093a._0x1da2f5)](_0x16c0cb=>_0x16c0cb['name']===_0x3b3023['name'])){const _0x335fe5=new _0x4f6d90('Team\x20name\x20'+'\x27'+_0x33808b[_0x463525(_0x43093a._0x5b4e4d,_0x43093a._0x5c8eb7,_0x43093a._0x3555c1,_0x43093a._0x1a5f8f)]+(_0x7a03ca(0x254,_0x43093a._0x46beae,_0x43093a._0x20d20c,_0x43093a._0x454240)+'exists'));_0x335fe5[_0x463525(_0x43093a._0x3555c1,_0x43093a._0x39352e,0x2b3,0x295)]=_0x138782[_0x463525(_0x43093a._0x5745c3,_0x43093a._0x2baf1c,_0x43093a._0x56a03d,_0x43093a._0x5ace09)];throw _0x335fe5;}}}return _0x1c4fc4[_0x463525(0x241,_0x43093a._0x2cfd10,_0x43093a._0x3f07e3,0x24b)][_0x463525(0x2a8,0x2a2,0x281,0x257)](_0x2478c3,-0x4f*0x11+0x2343+0x24f*-0xd),_0x1c4fc4['updated_at']=new Date()['toISOStrin'+'g'](),await _0x138782[_0x7a03ca(_0x43093a._0x485ca3,0x29c,_0x43093a._0x4ebb9e,_0x43093a._0x361936)](saveTeams,_0x2af5fe),_0x1c4fc4;}export function _resetCache(){teamsCache=null;}