@dooboostore/simple-boot-http-server 1.0.17 → 1.0.19

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 (340) hide show
  1. package/dist/cjs/SimpleBootHttpServer.d.ts +2 -1
  2. package/dist/cjs/SimpleBootHttpServer.d.ts.map +1 -1
  3. package/dist/cjs/SimpleBootHttpServer.js +310 -2
  4. package/dist/cjs/SimpleBootHttpServer.js.map +7 -0
  5. package/dist/cjs/codes/HttpHeaders.js +69 -1
  6. package/dist/cjs/codes/HttpHeaders.js.map +7 -0
  7. package/dist/cjs/codes/HttpMethod.js +39 -1
  8. package/dist/cjs/codes/HttpMethod.js.map +7 -0
  9. package/dist/cjs/codes/HttpStatus.js +47 -1
  10. package/dist/cjs/codes/HttpStatus.js.map +7 -0
  11. package/dist/cjs/codes/Mimes.js +55 -1
  12. package/dist/cjs/codes/Mimes.js.map +7 -0
  13. package/dist/cjs/codes/index.js +28 -1
  14. package/dist/cjs/codes/index.js.map +7 -0
  15. package/dist/cjs/decorators/MethodMapping.d.ts +0 -1
  16. package/dist/cjs/decorators/MethodMapping.d.ts.map +1 -1
  17. package/dist/cjs/decorators/MethodMapping.js +263 -2
  18. package/dist/cjs/decorators/MethodMapping.js.map +7 -0
  19. package/dist/cjs/decorators/index.js +22 -2
  20. package/dist/cjs/decorators/index.js.map +7 -0
  21. package/dist/cjs/endpoints/CrossDomainHeaderEndPoint.js +54 -1
  22. package/dist/cjs/endpoints/CrossDomainHeaderEndPoint.js.map +7 -0
  23. package/dist/cjs/endpoints/EndPoint.js +16 -1
  24. package/dist/cjs/endpoints/EndPoint.js.map +7 -0
  25. package/dist/cjs/endpoints/HeaderEndPoint.js +39 -1
  26. package/dist/cjs/endpoints/HeaderEndPoint.js.map +7 -0
  27. package/dist/cjs/endpoints/index.js +26 -1
  28. package/dist/cjs/endpoints/index.js.map +7 -0
  29. package/dist/cjs/errors/BadRequestError.js +34 -1
  30. package/dist/cjs/errors/BadRequestError.js.map +7 -0
  31. package/dist/cjs/errors/ForbiddenError.js +34 -1
  32. package/dist/cjs/errors/ForbiddenError.js.map +7 -0
  33. package/dist/cjs/errors/HttpError.js +38 -1
  34. package/dist/cjs/errors/HttpError.js.map +7 -0
  35. package/dist/cjs/errors/InternalServerError.js +34 -1
  36. package/dist/cjs/errors/InternalServerError.js.map +7 -0
  37. package/dist/cjs/errors/NotFoundError.js +34 -1
  38. package/dist/cjs/errors/NotFoundError.js.map +7 -0
  39. package/dist/cjs/errors/UnauthorizedError.js +34 -1
  40. package/dist/cjs/errors/UnauthorizedError.js.map +7 -0
  41. package/dist/cjs/errors/index.js +32 -1
  42. package/dist/cjs/errors/index.js.map +7 -0
  43. package/dist/cjs/filters/CacheFilter.js +150 -1
  44. package/dist/cjs/filters/CacheFilter.js.map +7 -0
  45. package/dist/cjs/filters/Filter.js +16 -1
  46. package/dist/cjs/filters/Filter.js.map +7 -0
  47. package/dist/cjs/filters/HttpStatusFilter.js +42 -1
  48. package/dist/cjs/filters/HttpStatusFilter.js.map +7 -0
  49. package/dist/cjs/filters/OpenApi3Filter.js +71 -2
  50. package/dist/cjs/filters/OpenApi3Filter.js.map +7 -0
  51. package/dist/cjs/filters/ResourceFilter.js +91 -2
  52. package/dist/cjs/filters/ResourceFilter.js.map +7 -0
  53. package/dist/cjs/filters/ThrowFilter.js +45 -1
  54. package/dist/cjs/filters/ThrowFilter.js.map +7 -0
  55. package/dist/cjs/filters/index.js +32 -2
  56. package/dist/cjs/filters/index.js.map +7 -0
  57. package/dist/cjs/index.d.ts +2 -12
  58. package/dist/cjs/index.d.ts.map +1 -1
  59. package/dist/cjs/index.js +24 -2
  60. package/dist/cjs/index.js.map +7 -0
  61. package/dist/cjs/inject/InjectSituationType.js +31 -1
  62. package/dist/cjs/inject/InjectSituationType.js.map +7 -0
  63. package/dist/cjs/inject/index.js +22 -1
  64. package/dist/cjs/inject/index.js.map +7 -0
  65. package/dist/cjs/lifecycle/OnInit.js +16 -1
  66. package/dist/cjs/lifecycle/OnInit.js.map +7 -0
  67. package/dist/cjs/lifecycle/index.js +22 -1
  68. package/dist/cjs/lifecycle/index.js.map +7 -0
  69. package/dist/cjs/models/RequestResponse.js +493 -1
  70. package/dist/cjs/models/RequestResponse.js.map +7 -0
  71. package/dist/cjs/models/datas/HeaderData.js +33 -1
  72. package/dist/cjs/models/datas/HeaderData.js.map +7 -0
  73. package/dist/cjs/models/datas/MultipartData.js +16 -1
  74. package/dist/cjs/models/datas/MultipartData.js.map +7 -0
  75. package/dist/cjs/models/datas/ReqHeader.js +92 -1
  76. package/dist/cjs/models/datas/ReqHeader.js.map +7 -0
  77. package/dist/cjs/models/datas/Resource.js +78 -2
  78. package/dist/cjs/models/datas/Resource.js.map +7 -0
  79. package/dist/cjs/models/datas/body/ReqFormUrlBody.js +29 -1
  80. package/dist/cjs/models/datas/body/ReqFormUrlBody.js.map +7 -0
  81. package/dist/cjs/models/datas/body/ReqJsonBody.js +29 -1
  82. package/dist/cjs/models/datas/body/ReqJsonBody.js.map +7 -0
  83. package/dist/cjs/models/datas/body/ReqMultipartFormBody.js +32 -1
  84. package/dist/cjs/models/datas/body/ReqMultipartFormBody.js.map +7 -0
  85. package/dist/cjs/models/index.js +38 -2
  86. package/dist/cjs/models/index.js.map +7 -0
  87. package/dist/cjs/models/method/patch/PatchJson.js +47 -2
  88. package/dist/cjs/models/method/patch/PatchJson.js.map +7 -0
  89. package/dist/cjs/option/HttpServerOption.js +72 -1
  90. package/dist/cjs/option/HttpServerOption.js.map +7 -0
  91. package/dist/cjs/option/index.js +22 -1
  92. package/dist/cjs/option/index.js.map +7 -0
  93. package/dist/cjs/resolvers/Resolver.js +16 -1
  94. package/dist/cjs/resolvers/Resolver.js.map +7 -0
  95. package/dist/cjs/resolvers/{ResourceResorver.d.ts → ResourceResolver.d.ts} +2 -2
  96. package/dist/cjs/resolvers/{ResourceResorver.d.ts.map → ResourceResolver.d.ts.map} +1 -1
  97. package/dist/cjs/resolvers/ResourceResolver.js +43 -0
  98. package/dist/cjs/resolvers/ResourceResolver.js.map +7 -0
  99. package/dist/cjs/resolvers/index.d.ts +1 -1
  100. package/dist/cjs/resolvers/index.js +24 -2
  101. package/dist/cjs/resolvers/index.js.map +7 -0
  102. package/dist/cjs/session/SessionManager.js +104 -1
  103. package/dist/cjs/session/SessionManager.js.map +7 -0
  104. package/dist/cjs/session/index.js +22 -1
  105. package/dist/cjs/session/index.js.map +7 -0
  106. package/dist/esm/SimpleBootHttpServer.d.ts +2 -1
  107. package/dist/esm/SimpleBootHttpServer.d.ts.map +1 -1
  108. package/dist/esm/SimpleBootHttpServer.js +287 -2
  109. package/dist/esm/SimpleBootHttpServer.js.map +7 -0
  110. package/dist/esm/codes/HttpHeaders.js +46 -1
  111. package/dist/esm/codes/HttpHeaders.js.map +7 -0
  112. package/dist/esm/codes/HttpMethod.js +16 -1
  113. package/dist/esm/codes/HttpMethod.js.map +7 -0
  114. package/dist/esm/codes/HttpStatus.js +24 -1
  115. package/dist/esm/codes/HttpStatus.js.map +7 -0
  116. package/dist/esm/codes/Mimes.js +32 -1
  117. package/dist/esm/codes/Mimes.js.map +7 -0
  118. package/dist/esm/codes/index.js +5 -1
  119. package/dist/esm/codes/index.js.map +7 -0
  120. package/dist/esm/decorators/MethodMapping.d.ts +0 -1
  121. package/dist/esm/decorators/MethodMapping.d.ts.map +1 -1
  122. package/dist/esm/decorators/MethodMapping.js +210 -2
  123. package/dist/esm/decorators/MethodMapping.js.map +7 -0
  124. package/dist/esm/decorators/index.js +2 -2
  125. package/dist/esm/decorators/index.js.map +7 -0
  126. package/dist/esm/endpoints/CrossDomainHeaderEndPoint.js +31 -1
  127. package/dist/esm/endpoints/CrossDomainHeaderEndPoint.js.map +7 -0
  128. package/dist/esm/endpoints/EndPoint.js +1 -0
  129. package/dist/esm/endpoints/EndPoint.js.map +7 -0
  130. package/dist/esm/endpoints/HeaderEndPoint.js +16 -1
  131. package/dist/esm/endpoints/HeaderEndPoint.js.map +7 -0
  132. package/dist/esm/endpoints/index.js +4 -1
  133. package/dist/esm/endpoints/index.js.map +7 -0
  134. package/dist/esm/errors/BadRequestError.js +11 -1
  135. package/dist/esm/errors/BadRequestError.js.map +7 -0
  136. package/dist/esm/errors/ForbiddenError.js +11 -1
  137. package/dist/esm/errors/ForbiddenError.js.map +7 -0
  138. package/dist/esm/errors/HttpError.js +15 -1
  139. package/dist/esm/errors/HttpError.js.map +7 -0
  140. package/dist/esm/errors/InternalServerError.js +11 -1
  141. package/dist/esm/errors/InternalServerError.js.map +7 -0
  142. package/dist/esm/errors/NotFoundError.js +11 -1
  143. package/dist/esm/errors/NotFoundError.js.map +7 -0
  144. package/dist/esm/errors/UnauthorizedError.js +11 -1
  145. package/dist/esm/errors/UnauthorizedError.js.map +7 -0
  146. package/dist/esm/errors/index.js +7 -1
  147. package/dist/esm/errors/index.js.map +7 -0
  148. package/dist/esm/filters/CacheFilter.js +127 -1
  149. package/dist/esm/filters/CacheFilter.js.map +7 -0
  150. package/dist/esm/filters/Filter.js +1 -0
  151. package/dist/esm/filters/Filter.js.map +7 -0
  152. package/dist/esm/filters/HttpStatusFilter.js +19 -1
  153. package/dist/esm/filters/HttpStatusFilter.js.map +7 -0
  154. package/dist/esm/filters/OpenApi3Filter.js +48 -2
  155. package/dist/esm/filters/OpenApi3Filter.js.map +7 -0
  156. package/dist/esm/filters/ResourceFilter.js +58 -2
  157. package/dist/esm/filters/ResourceFilter.js.map +7 -0
  158. package/dist/esm/filters/ThrowFilter.js +22 -1
  159. package/dist/esm/filters/ThrowFilter.js.map +7 -0
  160. package/dist/esm/filters/index.js +7 -2
  161. package/dist/esm/filters/index.js.map +7 -0
  162. package/dist/esm/index.d.ts +2 -12
  163. package/dist/esm/index.d.ts.map +1 -1
  164. package/dist/esm/index.js +5 -2
  165. package/dist/esm/index.js.map +7 -0
  166. package/dist/esm/inject/InjectSituationType.js +8 -1
  167. package/dist/esm/inject/InjectSituationType.js.map +7 -0
  168. package/dist/esm/inject/index.js +2 -1
  169. package/dist/esm/inject/index.js.map +7 -0
  170. package/dist/esm/lifecycle/OnInit.js +1 -0
  171. package/dist/esm/lifecycle/OnInit.js.map +7 -0
  172. package/dist/esm/lifecycle/index.js +2 -0
  173. package/dist/esm/lifecycle/index.js.map +7 -0
  174. package/dist/esm/models/RequestResponse.js +469 -1
  175. package/dist/esm/models/RequestResponse.js.map +7 -0
  176. package/dist/esm/models/datas/HeaderData.js +10 -1
  177. package/dist/esm/models/datas/HeaderData.js.map +7 -0
  178. package/dist/esm/models/datas/MultipartData.js +1 -0
  179. package/dist/esm/models/datas/MultipartData.js.map +7 -0
  180. package/dist/esm/models/datas/ReqHeader.js +69 -1
  181. package/dist/esm/models/datas/ReqHeader.js.map +7 -0
  182. package/dist/esm/models/datas/Resource.js +45 -2
  183. package/dist/esm/models/datas/Resource.js.map +7 -0
  184. package/dist/esm/models/datas/body/ReqFormUrlBody.js +6 -1
  185. package/dist/esm/models/datas/body/ReqFormUrlBody.js.map +7 -0
  186. package/dist/esm/models/datas/body/ReqJsonBody.js +6 -1
  187. package/dist/esm/models/datas/body/ReqJsonBody.js.map +7 -0
  188. package/dist/esm/models/datas/body/ReqMultipartFormBody.js +9 -1
  189. package/dist/esm/models/datas/body/ReqMultipartFormBody.js.map +7 -0
  190. package/dist/esm/models/index.js +10 -2
  191. package/dist/esm/models/index.js.map +7 -0
  192. package/dist/esm/models/method/patch/PatchJson.js +14 -2
  193. package/dist/esm/models/method/patch/PatchJson.js.map +7 -0
  194. package/dist/esm/option/HttpServerOption.d.ts +1 -1
  195. package/dist/esm/option/HttpServerOption.js +49 -1
  196. package/dist/esm/option/HttpServerOption.js.map +7 -0
  197. package/dist/esm/option/index.js +2 -1
  198. package/dist/esm/option/index.js.map +7 -0
  199. package/dist/esm/resolvers/Resolver.js +1 -0
  200. package/dist/esm/resolvers/Resolver.js.map +7 -0
  201. package/dist/esm/resolvers/{ResourceResorver.d.ts → ResourceResolver.d.ts} +2 -2
  202. package/dist/esm/resolvers/{ResourceResorver.d.ts.map → ResourceResolver.d.ts.map} +1 -1
  203. package/dist/esm/resolvers/ResourceResolver.js +20 -0
  204. package/dist/esm/resolvers/ResourceResolver.js.map +7 -0
  205. package/dist/esm/resolvers/index.d.ts +1 -1
  206. package/dist/esm/resolvers/index.js +3 -2
  207. package/dist/esm/resolvers/index.js.map +7 -0
  208. package/dist/esm/session/SessionManager.js +81 -1
  209. package/dist/esm/session/SessionManager.js.map +7 -0
  210. package/dist/esm/session/index.js +2 -1
  211. package/dist/esm/session/index.js.map +7 -0
  212. package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js +6 -2
  213. package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js.map +7 -0
  214. package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js +28 -2
  215. package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js.map +7 -0
  216. package/package.json +29 -23
  217. package/dist/cjs/SimpleBootHttpServer.js.LICENSE.txt +0 -20
  218. package/dist/cjs/decorators/MethodMapping.js.LICENSE.txt +0 -16
  219. package/dist/cjs/decorators/index.js.LICENSE.txt +0 -16
  220. package/dist/cjs/filters/OpenApi3Filter.js.LICENSE.txt +0 -16
  221. package/dist/cjs/filters/ResourceFilter.js.LICENSE.txt +0 -13
  222. package/dist/cjs/filters/index.js.LICENSE.txt +0 -30
  223. package/dist/cjs/index.js.LICENSE.txt +0 -46
  224. package/dist/cjs/models/datas/Resource.js.LICENSE.txt +0 -13
  225. package/dist/cjs/models/index.js.LICENSE.txt +0 -25
  226. package/dist/cjs/models/method/patch/PatchJson.js.LICENSE.txt +0 -11
  227. package/dist/cjs/resolvers/ResourceResorver.js +0 -2
  228. package/dist/cjs/resolvers/ResourceResorver.js.LICENSE.txt +0 -13
  229. package/dist/cjs/resolvers/index.js.LICENSE.txt +0 -13
  230. package/dist/esm/SimpleBootHttpServer.js.LICENSE.txt +0 -20
  231. package/dist/esm/decorators/MethodMapping.js.LICENSE.txt +0 -16
  232. package/dist/esm/decorators/index.js.LICENSE.txt +0 -16
  233. package/dist/esm/filters/OpenApi3Filter.js.LICENSE.txt +0 -16
  234. package/dist/esm/filters/ResourceFilter.js.LICENSE.txt +0 -13
  235. package/dist/esm/filters/index.js.LICENSE.txt +0 -30
  236. package/dist/esm/index.js.LICENSE.txt +0 -46
  237. package/dist/esm/models/datas/Resource.js.LICENSE.txt +0 -13
  238. package/dist/esm/models/index.js.LICENSE.txt +0 -25
  239. package/dist/esm/models/method/patch/PatchJson.js.LICENSE.txt +0 -11
  240. package/dist/esm/resolvers/ResourceResorver.js +0 -2
  241. package/dist/esm/resolvers/ResourceResorver.js.LICENSE.txt +0 -13
  242. package/dist/esm/resolvers/index.js.LICENSE.txt +0 -13
  243. package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js.LICENSE.txt +0 -54
  244. package/dist/umd-bundle/SimpleBootHttpServer.d.ts +0 -14
  245. package/dist/umd-bundle/SimpleBootHttpServer.d.ts.map +0 -1
  246. package/dist/umd-bundle/codes/HttpHeaders.d.ts +0 -42
  247. package/dist/umd-bundle/codes/HttpHeaders.d.ts.map +0 -1
  248. package/dist/umd-bundle/codes/HttpMethod.d.ts +0 -12
  249. package/dist/umd-bundle/codes/HttpMethod.d.ts.map +0 -1
  250. package/dist/umd-bundle/codes/HttpStatus.d.ts +0 -45
  251. package/dist/umd-bundle/codes/HttpStatus.d.ts.map +0 -1
  252. package/dist/umd-bundle/codes/Mimes.d.ts +0 -28
  253. package/dist/umd-bundle/codes/Mimes.d.ts.map +0 -1
  254. package/dist/umd-bundle/codes/index.d.ts +0 -5
  255. package/dist/umd-bundle/codes/index.d.ts.map +0 -1
  256. package/dist/umd-bundle/decorators/MethodMapping.d.ts +0 -74
  257. package/dist/umd-bundle/decorators/MethodMapping.d.ts.map +0 -1
  258. package/dist/umd-bundle/decorators/index.d.ts +0 -2
  259. package/dist/umd-bundle/decorators/index.d.ts.map +0 -1
  260. package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js.LICENSE.txt +0 -54
  261. package/dist/umd-bundle/endpoints/CrossDomainHeaderEndPoint.d.ts +0 -16
  262. package/dist/umd-bundle/endpoints/CrossDomainHeaderEndPoint.d.ts.map +0 -1
  263. package/dist/umd-bundle/endpoints/EndPoint.d.ts +0 -7
  264. package/dist/umd-bundle/endpoints/EndPoint.d.ts.map +0 -1
  265. package/dist/umd-bundle/endpoints/HeaderEndPoint.d.ts +0 -12
  266. package/dist/umd-bundle/endpoints/HeaderEndPoint.d.ts.map +0 -1
  267. package/dist/umd-bundle/endpoints/index.d.ts +0 -4
  268. package/dist/umd-bundle/endpoints/index.d.ts.map +0 -1
  269. package/dist/umd-bundle/errors/BadRequestError.d.ts +0 -8
  270. package/dist/umd-bundle/errors/BadRequestError.d.ts.map +0 -1
  271. package/dist/umd-bundle/errors/ForbiddenError.d.ts +0 -8
  272. package/dist/umd-bundle/errors/ForbiddenError.d.ts.map +0 -1
  273. package/dist/umd-bundle/errors/HttpError.d.ts +0 -12
  274. package/dist/umd-bundle/errors/HttpError.d.ts.map +0 -1
  275. package/dist/umd-bundle/errors/InternalServerError.d.ts +0 -8
  276. package/dist/umd-bundle/errors/InternalServerError.d.ts.map +0 -1
  277. package/dist/umd-bundle/errors/NotFoundError.d.ts +0 -8
  278. package/dist/umd-bundle/errors/NotFoundError.d.ts.map +0 -1
  279. package/dist/umd-bundle/errors/UnauthorizedError.d.ts +0 -8
  280. package/dist/umd-bundle/errors/UnauthorizedError.d.ts.map +0 -1
  281. package/dist/umd-bundle/errors/index.d.ts +0 -7
  282. package/dist/umd-bundle/errors/index.d.ts.map +0 -1
  283. package/dist/umd-bundle/filters/CacheFilter.d.ts +0 -45
  284. package/dist/umd-bundle/filters/CacheFilter.d.ts.map +0 -1
  285. package/dist/umd-bundle/filters/Filter.d.ts +0 -17
  286. package/dist/umd-bundle/filters/Filter.d.ts.map +0 -1
  287. package/dist/umd-bundle/filters/HttpStatusFilter.d.ts +0 -20
  288. package/dist/umd-bundle/filters/HttpStatusFilter.d.ts.map +0 -1
  289. package/dist/umd-bundle/filters/OpenApi3Filter.d.ts +0 -142
  290. package/dist/umd-bundle/filters/OpenApi3Filter.d.ts.map +0 -1
  291. package/dist/umd-bundle/filters/ResourceFilter.d.ts +0 -24
  292. package/dist/umd-bundle/filters/ResourceFilter.d.ts.map +0 -1
  293. package/dist/umd-bundle/filters/ThrowFilter.d.ts +0 -19
  294. package/dist/umd-bundle/filters/ThrowFilter.d.ts.map +0 -1
  295. package/dist/umd-bundle/filters/index.d.ts +0 -7
  296. package/dist/umd-bundle/filters/index.d.ts.map +0 -1
  297. package/dist/umd-bundle/index.d.ts +0 -13
  298. package/dist/umd-bundle/index.d.ts.map +0 -1
  299. package/dist/umd-bundle/inject/InjectSituationType.d.ts +0 -4
  300. package/dist/umd-bundle/inject/InjectSituationType.d.ts.map +0 -1
  301. package/dist/umd-bundle/inject/index.d.ts +0 -2
  302. package/dist/umd-bundle/inject/index.d.ts.map +0 -1
  303. package/dist/umd-bundle/lifecycle/OnInit.d.ts +0 -5
  304. package/dist/umd-bundle/lifecycle/OnInit.d.ts.map +0 -1
  305. package/dist/umd-bundle/lifecycle/index.d.ts +0 -2
  306. package/dist/umd-bundle/lifecycle/index.d.ts.map +0 -1
  307. package/dist/umd-bundle/models/RequestResponse.d.ts +0 -100
  308. package/dist/umd-bundle/models/RequestResponse.d.ts.map +0 -1
  309. package/dist/umd-bundle/models/datas/HeaderData.d.ts +0 -10
  310. package/dist/umd-bundle/models/datas/HeaderData.d.ts.map +0 -1
  311. package/dist/umd-bundle/models/datas/MultipartData.d.ts +0 -12
  312. package/dist/umd-bundle/models/datas/MultipartData.d.ts.map +0 -1
  313. package/dist/umd-bundle/models/datas/ReqHeader.d.ts +0 -68
  314. package/dist/umd-bundle/models/datas/ReqHeader.d.ts.map +0 -1
  315. package/dist/umd-bundle/models/datas/Resource.d.ts +0 -11
  316. package/dist/umd-bundle/models/datas/Resource.d.ts.map +0 -1
  317. package/dist/umd-bundle/models/datas/body/ReqFormUrlBody.d.ts +0 -4
  318. package/dist/umd-bundle/models/datas/body/ReqFormUrlBody.d.ts.map +0 -1
  319. package/dist/umd-bundle/models/datas/body/ReqJsonBody.d.ts +0 -4
  320. package/dist/umd-bundle/models/datas/body/ReqJsonBody.d.ts.map +0 -1
  321. package/dist/umd-bundle/models/datas/body/ReqMultipartFormBody.d.ts +0 -6
  322. package/dist/umd-bundle/models/datas/body/ReqMultipartFormBody.d.ts.map +0 -1
  323. package/dist/umd-bundle/models/index.d.ts +0 -10
  324. package/dist/umd-bundle/models/index.d.ts.map +0 -1
  325. package/dist/umd-bundle/models/method/patch/PatchJson.d.ts +0 -8
  326. package/dist/umd-bundle/models/method/patch/PatchJson.d.ts.map +0 -1
  327. package/dist/umd-bundle/option/HttpServerOption.d.ts +0 -83
  328. package/dist/umd-bundle/option/HttpServerOption.d.ts.map +0 -1
  329. package/dist/umd-bundle/option/index.d.ts +0 -2
  330. package/dist/umd-bundle/option/index.d.ts.map +0 -1
  331. package/dist/umd-bundle/resolvers/Resolver.d.ts +0 -5
  332. package/dist/umd-bundle/resolvers/Resolver.d.ts.map +0 -1
  333. package/dist/umd-bundle/resolvers/ResourceResorver.d.ts +0 -6
  334. package/dist/umd-bundle/resolvers/ResourceResorver.d.ts.map +0 -1
  335. package/dist/umd-bundle/resolvers/index.d.ts +0 -3
  336. package/dist/umd-bundle/resolvers/index.d.ts.map +0 -1
  337. package/dist/umd-bundle/session/SessionManager.d.ts +0 -57
  338. package/dist/umd-bundle/session/SessionManager.d.ts.map +0 -1
  339. package/dist/umd-bundle/session/index.d.ts +0 -2
  340. package/dist/umd-bundle/session/index.d.ts.map +0 -1
@@ -1,2 +1,287 @@
1
- /*! For license information please see SimpleBootHttpServer.js.LICENSE.txt */
2
- import{createRequire as t}from"node:module";var e={229:(t,e,r)=>{var n;r.d(e,{t:()=>n}),function(t){t[t.Ok=200]="Ok",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported"}(n||(n={}))},426:(t,e,r)=>{r.d(e,{T:()=>a});var n,i={d:(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},o={};i.d(o,{T:()=>n}),function(t){t.toString=function(t,e){return null==t?"":"string"==typeof t?t:t.toString(e?.encoding??"utf-8",e?.start,e?.end)},t.toBuffer=(t,e)=>"base64"===e?.encoding?(t=t.split(";base64,").pop()||"",Buffer.from(t,"base64")):Buffer.from(t)}(n||(n={}));const a=o.T},758:(t,e,r)=>{r.d(e,{j:()=>n});class n{constructor({status:t,message:e="HttpError"}){this.name="Error",this.message=e,this.status=t}}},889:(t,e,r)=>{r.d(e,{n:()=>c});var n={9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{n:()=>s});var s,u=o(9284);!function(t){t.uniqueInts=(e,r,n)=>{const i=[];if(n>r-e)throw new Error("Count is greater than the range of unique integers");for(;i.length<n;){const n=t.int(e,r);i.includes(n)||i.push(n)}return i},t.chance=t=>{if(t<0||t>1)throw new Error("Percentage must be between 0 and 1");return Math.random()<t},t.int=(e,r)=>Math.floor(t.float(e,r)),t.float=(t,e)=>u.U.isNullOrUndefined(t)?Math.random():!u.U.isNullOrUndefined(t)&&u.U.isNullOrUndefined(e)?Math.random()*(t||0):Math.random()*((e||0)-(t||0))+(t||0),t.uuid=(t="xxxx-xxxx-xxxx-xxxx")=>t.replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}),t.uuid4=()=>{let t,e="";for(t=0;t<32;t+=1)switch(t){case 8:case 20:e+="-",e+=(16*Math.random()|0).toString(16);break;case 12:e+="-",e+="4";break;case 16:e+="-",e+=(4*Math.random()|8).toString(16);break;default:e+=(16*Math.random()|0).toString(16)}return e},t.hex=()=>{const t="0123456789ABCDEF".split("");let e="";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},t.rgb=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},t.rgba=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<8;r++)e+=t[Math.floor(16*Math.random())];return e},t.alphabet=t=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let r="";for(let n=0;n<t;n++)r+=e[Math.floor(Math.random()*e.length)];return r}}(s||(s={}));const c=a.n},1022:(t,e,r)=>{r.d(e,{D:()=>n});class n{}},1262:(t,e,r)=>{r.d(e,{C:()=>o});var n=r(889),i=r(3500);class o{constructor(t){this.option=t,this.sessions=new Map,this.sessionOption=t.sessionOption,setInterval(async()=>{const t=await this.getSessionUUIDs();for(const e of t){const t=await this.getSessionDataSet(e);t&&this.isExpired(t.access)&&await this.deleteSession(e)}},this.sessionOption.expiredTime)}async getSessionUUIDs(){return this.sessionOption.provider?.uuids?this.sessionOption.provider.uuids():Array.from(this.sessions.keys())}async deleteSession(t){this.sessionOption.provider?.delete?this.sessionOption.provider.delete(t):this.sessions.delete(t)}async getSessionDataSet(t){return this.sessionOption.provider?.get?this.sessionOption.provider.get(t):this.sessions.get(t)}async setSessionDataSet(t,e){this.sessionOption.provider?.set?this.sessionOption.provider.set(t,e):this.sessions.set(t,e)}isExpired(t,e=Date.now()){return e-t>=this.option.sessionOption.expiredTime}makeUUID(){return n.n.uuid("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")}async session(t){let e;e=t instanceof i.z?t.reqCookieGet(this.sessionOption.key)??this.makeUUID():"string"==typeof t?t:this.makeUUID();let r=await this.getSessionDataSet(e);const n=Date.now();return r?(this.isExpired(r.access,n)&&delete r.data,r.access=n):r={access:n},await this.setSessionDataSet(e,r),{uuid:e,dataSet:r}}}},1946:(t,e,r)=>{var n;r.d(e,{K:()=>n}),function(t){t.ApplicationJson="application/json",t.ApplicationOctetStream="application/octet-stream",t.ApplicationXml="application/xml",t.ApplicationJsonPatch="application/json-patch+json",t.ApplicationXWwwFormUrlencoded="application/x-www-form-urlencoded",t.TextPlain="text/plain",t.TextHtml="text/html",t.All="*/*",t.TextCss="text/css",t.TextJavascript="text/javascript",t.TextXml="text/xml",t.TextXslt="text/xslt",t.TextXmlDtd="text/xml-dtd",t.TextPlainUtf8="text/plain; charset=utf-8",t.ImagePng="image/png",t.ImageGif="image/gif",t.ImageJpeg="image/jpeg",t.ImageSvg="image/svg+xml",t.ImageBmp="image/bmp",t.ImageTiff="image/tiff",t.ImagePdf="application/pdf",t.ImageXBmp="image/x-bmp",t.ImageXpixmap="image/x-xpixmap",t.ImageXxbm="image/x-xbm",t.MultipartFormData="multipart/form-data"}(n||(n={}))},2188:(t,e,r)=>{r.d(e,{B:()=>n});class n{constructor(t=[]){this.field=t}}},3055:(e,r,n)=>{n.d(r,{i:()=>d});const i=t(import.meta.url)("node:module"),o=(0,i.createRequire)("file:///Users/hyunhakim/workspace/dooboostore/source/dooboostore-develop/dooboostore-develop.github.io/source/packages/@dooboostore/core-node/dist/esm/file/FileUtils.js")("node:os"),a=(0,i.createRequire)("file:///Users/hyunhakim/workspace/dooboostore/source/dooboostore-develop/dooboostore-develop.github.io/source/packages/@dooboostore/core-node/dist/esm/file/FileUtils.js")("node:fs"),s=(0,i.createRequire)("file:///Users/hyunhakim/workspace/dooboostore/source/dooboostore-develop/dooboostore-develop.github.io/source/packages/@dooboostore/core-node/dist/esm/file/FileUtils.js")("node:path");var u={9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},c={};function f(t){var e=c[t];if(void 0!==e)return e.exports;var r=c[t]={exports:{}};return u[t](r,r.exports,f),r.exports}f.d=(t,e)=>{for(var r in e)f.o(e,r)&&!f.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},f.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var h={};f.d(h,{n:()=>l});var l,y=f(9284);!function(t){t.uniqueInts=(e,r,n)=>{const i=[];if(n>r-e)throw new Error("Count is greater than the range of unique integers");for(;i.length<n;){const n=t.int(e,r);i.includes(n)||i.push(n)}return i},t.chance=t=>{if(t<0||t>1)throw new Error("Percentage must be between 0 and 1");return Math.random()<t},t.int=(e,r)=>Math.floor(t.float(e,r)),t.float=(t,e)=>y.U.isNullOrUndefined(t)?Math.random():!y.U.isNullOrUndefined(t)&&y.U.isNullOrUndefined(e)?Math.random()*(t||0):Math.random()*((e||0)-(t||0))+(t||0),t.uuid=(t="xxxx-xxxx-xxxx-xxxx")=>t.replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}),t.uuid4=()=>{let t,e="";for(t=0;t<32;t+=1)switch(t){case 8:case 20:e+="-",e+=(16*Math.random()|0).toString(16);break;case 12:e+="-",e+="4";break;case 16:e+="-",e+=(4*Math.random()|8).toString(16);break;default:e+=(16*Math.random()|0).toString(16)}return e},t.hex=()=>{const t="0123456789ABCDEF".split("");let e="";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},t.rgb=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},t.rgba=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<8;r++)e+=t[Math.floor(16*Math.random())];return e},t.alphabet=t=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let r="";for(let n=0;n<t;n++)r+=e[Math.floor(Math.random()*e.length)];return r}}(l||(l={}));const p=h.n;var d;!function(t){class e{constructor(t){this._data=t,this.updateStats()}get originalName(){return this._data.originalName}get directory(){return this._data.path.substring(0,this._data.path.lastIndexOf("/"))}get fileName(){return this._data.path.substring(this._data.path.lastIndexOf("/")+1)}get path(){return this._data.path}get extension(){const t=this._data.path.substring(this._data.path.lastIndexOf(".")+1);return t.length>0?t:void 0}async updateStats(){const t=await a.promises.stat(this._data.path);this.size=t.size}async delete(){await a.promises.unlink(this._data.path),this._data.path="",this.size=void 0}async copy(t){await a.promises.copyFile(this._data.path,t),this._data.path=t,this.size=(await a.promises.stat(t)).size}async move(t){const e=t.substring(0,t.lastIndexOf("/"));await a.promises.mkdir(e,{recursive:!0}),await a.promises.rename(this._data.path,t),this._data.path=t,this.size=(await a.promises.stat(t)).size}async rename(t){const e=`${this.directory}/${t}`;await a.promises.rename(this._data.path,e),this.size=(await a.promises.stat(e)).size,this._data.path=e}}t.File=e,t.writeFile=async(t,r)=>(r.path??(r.path=`${o.tmpdir()}/${p.uuid4()}_${Date.now()}`),await a.promises.mkdir(r.path.substring(0,r.path.lastIndexOf("/")),{recursive:!0}),await a.promises.writeFile(r.path,t),new e({path:r.path,originalName:r.originalName})),t.path=t=>Array.isArray(t)?s.join(...t):t,t.existsSync=(e,r)=>{const n=t.path(e);return a.existsSync(n)?(r?.existes?.(n),!0):(r?.noExistes?.(n),!1)},t.mkdirSync=(e,r)=>{t.existsSync(e,{noExistes:t=>{a.mkdirSync(t,r)}})},t.mkdir=async(e,r)=>new Promise((n,i)=>{t.existsSync(e,{noExistes:t=>{a.mkdirSync(t,r),n(t)},existes:t=>{n(t)}})}),t.readSync=(e,r)=>{const n=t.path(e);return r?.option?a.readFileSync(n,r.option):a.readFileSync(n)},t.read=async(e,r)=>{const n=t.path(e);return a.readFile(n,r.option)},t.write=(e,r)=>{const n=t.path(r.path);return r.options?a.writeFileSync(n,e,r.options):a.writeFileSync(n,e),n},t.writeAppend=(e,r)=>{const n=t.path(r.path);return r.options?a.appendFileSync(n,e,r.options):a.appendFileSync(n,e),n},t.deleteSync=(e,r)=>{const n=t.path(e);t.existsSync(n)&&(r?.options?a.rmSync(n,r?.options):a.rmSync(n))},t.deleteDirSync=(e,r)=>{const n=t.path(e);t.existsSync(n)&&(r?.options?a.rmdirSync(n,r?.options):a.rmdirSync(n))},t.deleteFileSync=e=>{const r=t.path(e);t.existsSync(r)&&a.unlinkSync(r)},t.copySync=(e,r,n)=>{const i=t.path(e),o=t.path(r);a.cpSync(i,o,n)}}(d||(d={}))},3106:e=>{e.exports=t(import.meta.url)("zlib")},3500:(e,r,n)=>{n.d(r,{z:()=>T,y:()=>z});var i=n(7953),o={532:(t,e,r)=>{r.d(e,{r:()=>c});var n={3056:(t,e,r)=>{r.d(e,{$:()=>n});var n,i=r(9284);!function(t){t.deleteEnter=t=>t.replace(/\r?\n/g,""),t.pickEmoji=t=>t.match(/[\p{Emoji}]/gu)??[],t.regexExec=(t,e)=>{let r=t.exec(e);const n=[];for(;r;)n.push(r),r=t.exec(r.input);return n},t.regexExecArrayReplace=(e,r,n)=>((Array.isArray(r)?r:t.regexExec(r,e)).reverse().forEach(t=>{const r="string"==typeof n?n:n(t);e=e.substr(0,t.index)+e.substr(t.index).replace(t[0],r)}),e),t.escapeSpecialCharacterRegExp=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.trim=t=>t.trim(),t.rsubString=(t,e)=>t.substring(t.length-e,t.length),t.lsubString=(t,e)=>t.substring(0,e),t.lpad=(e,r,n)=>{for(;r>n.length;)n=e+n;return t.rsubString(n,r)},t.rpad=(e,r,n)=>{for(;r>n.length;)n+=e;return t.lsubString(n,r)},t.lappend=(t,e)=>{let r="",n=0;for(;n++<t;)r+=e;return r},t.unescape=t=>{if(!t)return"";const e={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿","#x27":"'"};return t.replace(/&((?:(?:[a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});?)+);/gi,(t,r)=>r.toLowerCase().split(";").map(r=>r in e?e[r]:t).join(""))},t.executeExpression=(t,e)=>t.replace(/\${([^{}]*)}/g,(t,r)=>String(e[r]??t)),t.ellipsis=(t,e)=>t.length>e?`${t.slice(0,e)}...`:t,t.appendPostposition=(t,{vowel:e,consonant:r})=>`${t}${i.U.lastConsonantLetter(t)?r:e}`}(n||(n={}))},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{r:()=>s});var s,u=o(3056);!function(t){let e,r;t.bindExpression=(t,e)=>(t??"").replace(/\$\{([\s\S.]*?)\}/g,(t,r)=>{const[n,i]=r.split(":"),o=e[n];return o?"function"==typeof o?o(e[i]):o:""}),function(t){t.isExpression=t=>/[$#]\{([\s\S.]*?)\}[$#]/g.test(t??""),t.expressionGroups=t=>u.$.regexExec(/[$#]\{([\s\S.]*?)\}[$#]/g,t??"")}(e=t.Group||(t.Group={})),function(t){t.pathNameData=(t,e)=>{const r=t.split("/"),n=e.split("/");if(r.length!==n.length)return;const i={};for(let t=0;t<n.length;t++){const e=n[t],o=r[t],a=/^\{(.+)\}$/g.exec(e);if(!a){if(e!==o)return;continue}const[s,u]=a[1].split(":");if(u&&!new RegExp(u).test(o))return;i[s]=o}return i}}(r=t.Path||(t.Path={}))}(s||(s={}));const c=a.r}},a={};function s(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return o[t](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var u={};s.d(u,{J:()=>h,M:()=>c});var c,f=s(532);!function(t){t.DATA_PARAMETERS="DATA_PARAMETERS",t.INLINE_DATA_PARAMETERS="INLINE_DATA_PARAMETERS"}(c||(c={}));class h{constructor(t,e,r){if(this.uri=t,this.data=e,this.event=r,this.sessionData=new Map,"string"==typeof t){const e=t.match(/^Symbol\.for\((.+)\):\/(.*)$/);if(e){const t=Symbol.for(e[1]);this.uri={symbol:t,uri:e[2]}}}}get symbols(){if("object"==typeof this.uri)return Array.isArray(this.uri.symbol)?this.uri.symbol:[this.uri.symbol]}get scheme(){if("string"==typeof this.uri){const t=this.uri.split("://");return t.length>1?t[0]:void 0}}get paths(){return this.pathname.split("/")??[]}get fullPath(){const t=("string"==typeof this.uri?this.uri:this.uri.uri).split("://");return t[t.length>=2?1:0]??""}get pathname(){return this.fullPath.split("?")[0]}get query(){return this.fullPath.split("?")[1]??""}get queryParams(){const t={};return this.query.split("&")?.forEach(e=>{const r=e.split("=");t[r[0]]=r[1]}),t}get queryParamsAfterDecodeURI(){const t=this.queryParams;for(const e in t)t.hasOwnProperty(e)&&(t[e]=decodeURIComponent(t[e]));return t}getPathnameData(t){return f.r.Path.pathNameData(this.pathname,t)}get isSymbolScheme(){return void 0!==this.symbols}}const l=u.J;var y=n(7016);const p=t(import.meta.url)("buffer");var d=n(6377),g=n(1022),v=n(9434),w=n(5884),b=n(3055),m={2676:(t,e,r)=>{r.d(e,{B:()=>n});var n,i=r(7855),o=r(9284);!function(t){let e,r;t.constructorName=t=>t&&t.constructor&&t.constructor.name?t.constructor.name:t&&t.name?t.name:void 0,t.deepCopy=t=>t instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(t.entries())))):t instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(t.values())))):o.U.isNullOrUndefined(t)?t:JSON.parse(JSON.stringify(t)),t.allProtoTypeName=(e,r)=>{let n=[];if(e){const i=Object.getPrototypeOf(e);i&&(n=Object.keys(i)||[]).length>0&&(n=n.concat(t.allProtoTypeName(i,r)))}let i=n.filter(t=>"constructor"!==t);if(r&&e){const t=Object.getPrototypeOf(e);i=i.filter(e=>r(e,t?.[e]))}return i},t.uniqueKeys=t=>Array.from(new Set((Array.isArray(t)?t:[t]).flatMap(t=>Object.keys(t)))),t.ownPropertyNames=t=>{const e=[];if(t)if(t.prototype)e.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(t)));else{const r=Object.getPrototypeOf(t);e.push(...Object.getOwnPropertyNames(r))}return e.filter(t=>"constructor"!==t)},t.protoTypeName=t=>{let e=[];if(t){const r=Object.getPrototypeOf(t);e=Object.keys(r)||[]}return e.filter(t=>"constructor"!==t)},t.protoTypes=t=>{const e=[];if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.push(r[t])})}return e},t.seal=t=>Object.seal(t),t.isPrototypeOfTarget=(t,e)=>!(!t||!e)&&Object.prototype.isPrototypeOf.call(t.prototype,e),t.prototypeOfDepth=(t,e)=>{let r=t;const n=[];if(e)do{if(r=Object.getPrototypeOf(r),r?.constructor===e)break;n.push(r)}while(r);return n},t.allProtoType=t=>{const e=(t,r=[])=>(t.prototype&&(r.push(t),e(Object.getPrototypeOf(t),r)),r);return e(t)},t.prototypeOf=t=>Object.getPrototypeOf(t),t.prototypeKeyMap=t=>{const e=new Map;if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.set(r[t],t)})}return e},t.prototypeName=(e,r)=>t.prototypeKeyMap(e).get(r),t.pickRandomKey=t=>{const e=Object.keys(t);return e[Math.floor(Math.random()*e.length)]},t.pickRandomValue=t=>{const e=Object.keys(t);return t[e[Math.floor(Math.random()*e.length)]]},t.pickRandomKeyValue=t=>{const e=Object.keys(t),r=e[Math.floor(Math.random()*e.length)];return{key:r,value:t[r]}},t.keyValues=t=>Object.keys(t).map(e=>({key:e,value:t[e]})),t.entries=t=>Object.entries(t),t.values=t=>Object.values(t),t.keys=t=>Object.keys(t),t.keyLength=e=>t.keys(e).length,t.toDeleteUndefinedAndNull=(t,e)=>{const r=t=>Array.isArray(t)?t.filter(t=>null!=t).map(r):t&&"object"==typeof t?e?.deep?Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e).map(([t,e])=>[t,r(e)])):Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e)):t;return r(t)},function(t){t.isFunctionScript=t=>t.trim().startsWith("function"),t.isArrowFunctionScript=t=>/^\s*\([^)]*\)\s*=>/.test(t),t.toOptionalChainPath=e=>{if(!e)return"";if(e.trim().startsWith("{")&&e.trim().endsWith("}"))return e;if(t.isFunctionScript(e)||t.isArrowFunctionScript(e))return e;if(e.includes(" ? ")&&e.includes(" : ")){const t=e.split(/(\s+\?\s+|\s+:\s+)/).map((t,e)=>{if(0===e){const e=t.match(/[^?.[\]]+|\[[^\]]*\]/g);if(e&&e.length>1)return e.join("?.")}return t});return t.join("")}if(e.includes("(")){const r=[];let n=e,i=0;const o=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let a;for(;null!==(a=o.exec(e));){const e=a[0],o=a[1],s=a[2],u=`__FUNC_CALL_${i}__`,c=`${o}?.(${s?t.toOptionalChainPath(s):""})`;r.push({original:e,processed:c,placeholder:u}),n=n.replace(e,u),i++}const s=n.match(/[^?.[\]]+|\[[^\]]*\]/g);let u="";u=s&&s.length>1?s.join("?."):n;for(const t of r)u=u.replace(t.placeholder,t.processed);return u}const r=e.match(/[^?.[\]]+|\[[^\]]*\]/g);return r?r.join("?."):e},t.removeOptionalChainOperator=t=>t?t.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const e=t=>{const e=[],r=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let n,i=0;const o=t.match(r);if(o&&(o?.index??0)>0)e.push(t.substring(0,o.index)),i=o.index;else if(!o&&t.length>0)return e.push(t),e;for(;null!==(n=r.exec(t));){if(n.index>i){const r=t.substring(i,n.index);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}n[1]?e.push(n[1]):n[2]?e.push(parseInt(n[2],10)):n[4]&&e.push(n[4]),i=r.lastIndex}if(i<t.length){const r=t.substring(i);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}return e};t.to=e=>{const r={};return Object.entries(e).forEach(([e,n])=>{t.set(r,e,n)}),r},t.set=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(t===i.length-1)o[e]=n;else{const r=i[t+1];if("number"==typeof r){if(Array.isArray(o[e])||(o[e]=[]),Array.isArray(o[e]))for(;o[e].length<=r;)o[e].push({})}else"object"==typeof o[e]&&null!==o[e]||(o[e]={});o=o[e]}}},t.get=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(null==o)return n;if("object"!=typeof o||null===o||!(e in o))return n;o=o[e]}return o},t.deletePath=(t,r)=>{const n=e(r);if(0===n.length)return!1;let i=t;for(let t=0;t<n.length-1;t++){const e=n[t];if(null==i)return!1;if("object"!=typeof i||null===i||!(e in i))return!1;i=i[e]}const o=n[n.length-1];return null!==i&&"object"==typeof i&&o in i&&(Array.isArray(i)&&"number"==typeof o?i.splice(o,1):delete i[o],!0)},t.availablePath=(t,e)=>{const r=[],n=t=>"number"==typeof t?"["+t+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)?t:"['"+t+"']",i=(t,o,a)=>{null!==t&&"object"==typeof t&&(a.has(t)||(a.add(t),Array.isArray(t)?t.forEach((t,s)=>{const u=n(s),c=o?`${o}${u}`:u;e&&!e(c,t)||r.push(c),i(t,c,a)}):Object.keys(t).forEach(s=>{const u=n(s);let c;c=u.startsWith("[")?o?`${o}${u}`:u:o?`${o}.${u}`:u,e&&!e(c,t[s])||r.push(c),i(t[s],c,a)})))};return i(t,"",new Set),r},t.detectPathFromScript=(t,e)=>{const r=new Set;class n{constructor(t){this.prefix=t,this.usingVars=r}set(t,e,r,n){return!0}get(t,e,r){if("symbol"==typeof e)return this.createSafeProxy(this.prefix);let n;const i=String(e);return n=isNaN(Number(i))?this.prefix?`${this.prefix}.${i}`:i:this.prefix?`${this.prefix}[${i}]`:i,n&&this.usingVars.add(n),this.createSafeProxy(n)}apply(t,e,r){return this.createSafeProxy(this.prefix)}createSafeProxy(t){const e=new n(t);return new Proxy(()=>{},{get:(r,n,i)=>n===Symbol.toPrimitive?()=>"":"valueOf"===n?()=>e.createSafeProxy(t):"toString"===n?()=>"":e.get(r,n,i),set:e.set.bind(e),apply:e.apply.bind(e)})}}const i={window:new Proxy(()=>{},new n("window")),document:new Proxy(()=>{},new n("document")),console:new Proxy(()=>{},new n("console"))},o=new Proxy(()=>{},new n("this"));try{new Function("window","document","console",`"use strict"; ${t}; `).call(o,i.window,i.document,i.console)}catch(t){console.error("detectPathFromScript error:",t)}if(e?.excludeThis){const t=new Set;return r.forEach(e=>{"this"!==e&&(e.startsWith("this.")?t.add(e.substring(5)):t.add(e))}),t}return r}}(e=t.Path||(t.Path={})),t.toDeleteKey=(e,r)=>{const n={...e};return t.deleteKey(n,r),n},t.deleteKey=(t,e)=>{e.filter(t=>(0,i.O)(t)).forEach(e=>{delete t[e]})},function(t){t.evalReturn=(e,r={})=>{let n="",i="";return"object"==typeof e?(n=e.bodyScript,i=e.returnScript):i=e,t.eval(`${n}; return ${i} `,r)},t.eval=(t,e={})=>{try{return Function(`"use strict"; ${t} `).bind(e)()}catch(e){return console.error("eval error",e),void console.error(t)}}}(r=t.Script||(t.Script={}))}(n||(n={}))},3205:(t,e,r)=>{r.d(e,{O:()=>o});var n=r(7553),i=r(9244);class o extends n.M{constructor(t){super(),this.volume=0,this.mass=0,this.e=0,this.rotate=0,this.width=0,this.height=0,this.transform=[1,0,0,1,0,0],this.color={r:0,g:0,b:0,a:255},this.updateObjWithDefaults(t)}copyObj(){return new o({x:this.x,y:this.y,z:this.z,volume:this.volume,mass:this.mass,e:this.e,rotate:this.rotate,width:this.width,height:this.height,transform:[...this.transform],color:{...this.color},data:{...this.data}})}updateObjWithDefaults(t){if(t){this.x=t.x??this.x,this.y=t.y??this.y,this.z=t.z??this.z,this.volume=t.volume??this.volume,this.mass=t.mass??this.mass,this.e=t.e??this.e,this.rotate=t.rotate??this.rotate,this.width=t.width??this.width,this.height=t.height??this.height,this.transform=[...t.transform??this.transform],this.color={...t.color??this.color};const e=t.data??this.data;this.data=e?{...e}:void 0}}setObj(t){if(t){this.x=t.x??0,this.y=t.y??0,this.z=t.z??0,this.volume=t.volume??0,this.mass=t.mass??0,this.e=t.e??0,this.rotate=t.rotate??0,this.width=t.width??0,this.height=t.height??0,this.transform=[...t.transform??[1,0,0,1,0,0]],this.color={...t.color??{r:0,g:0,b:0,a:255}};const e=t.data;this.data=e?{...e}:void 0}}toRect(){return new i.r(this.x,this.y,this.width,this.height)}}},3599:(t,e,r)=>{r.d(e,{z:()=>n});var n,i=r(8741),o=r(7553),a=r(3205),s=r(4068);!function(t){t.getMinByObjectArray=(t,e)=>{let r;if(e&&t&&t.length>0){r=t[0][e];for(let n=1;n<t.length;n++)r=Math.min(r,t[n][e])}return r},t.hypot=(...t)=>Math.hypot(...t),t.pythagorean=(t,e)=>Math.sqrt(t*t+e*e),t.getMaxByObjectArray=(t,e)=>{let r;if(e&&t&&t.length>0){r=t[0][e];for(let n=1;n<t.length;n++)r=Math.max(r,t[n][e])}return r},t.sum=t=>t.reduce((t,e)=>t+e,0),t.avg=e=>e.length>0?t.sum(e)/e.length:0,t.minMax=(t,e)=>Math.min(Math.max(t,e.min),e.max),t.max=t=>t.length>0?Math.max(...t):void 0,t.min=t=>t.length>0?Math.min(...t):void 0,t.getSumByObjectArray=(t,e)=>{let r=0;if(e&&t&&t.length>0)for(let n=0;n<t.length;n++)r+=t[n][e];return r},t.radians=(t,{type:e="degreeAngle"})=>"ratio"===e?2*t*Math.PI:"percent"===e?t/100*2*Math.PI:t/180*Math.PI,t.degrees=(t,{type:e="degreeAngle"})=>"ratio"===e?360*t:"percent"===e?t/100*360:180*t/Math.PI,t.ratio=(t,e,r=1)=>r*(e/t),t.getBetweenLength=(t,e)=>e-t,t.getPercentByTotal=(t,e)=>e/t*100,t.getRatioByTotal=(t,e)=>e/t,t.getValueByTotalInPercent=(t,e)=>t*e/100,t.getValueByTotalInRatio=(t,e)=>t*e,t.getValuePercentUp=(t,e)=>t*(1+e/100),t.getValueRatioUp=(t,e)=>t*(1+e),t.getValuePercentDown=(t,e)=>t*(1-e/100),t.getValueRatioDown=(t,e)=>t*(1-e),t.beziers=(e,r)=>{const n=new Array(r).fill(void 0);for(let i=0;i<n.length;i++)n[i]=t.bezier(e,r,i);return n},t.bezier=(e,r,n)=>{if(e&&e.length>0){const a=e.map(t=>new o.M(t.x,t.y,t.z)),s=[];return a.reduce((t,e)=>{const i=t.toSub(e).div(r).mult(n+1);return s.push(t.toSub(i)),e}),s.length<=1?s[0]:t.bezier(s.map(t=>new i.M(t)),r,n)}return new o.M},t.cubicBezier=function(e,r,n){if(e.start instanceof a.O&&e.end instanceof a.O){const i=t.cubicBezier({start:e.start.x,end:e.end.x},r,n),o=t.cubicBezier({start:e.start.y,end:e.end.y},r,n),s=t.cubicBezier({start:e.start.z,end:e.end.z},r,n),u=t.cubicBezier({start:e.start.volume,end:e.end.volume},r,n),c=t.cubicBezier({start:e.start.mass,end:e.end.mass},r,n),f=t.cubicBezier({start:e.start.e,end:e.end.e},r,n),h=t.cubicBezier({start:e.start.rotate,end:e.end.rotate},r,n),l=t.cubicBezier({start:e.start.width,end:e.end.width},r,n),y=t.cubicBezier({start:e.start.height,end:e.end.height},r,n),p=t.cubicBezier({start:e.start.transform[0],end:e.end.transform[0]},r,n),d=t.cubicBezier({start:e.start.transform[1],end:e.end.transform[1]},r,n),g=t.cubicBezier({start:e.start.transform[2],end:e.end.transform[2]},r,n),v=t.cubicBezier({start:e.start.transform[3],end:e.end.transform[3]},r,n),w=t.cubicBezier({start:e.start.transform[4],end:e.end.transform[4]},r,n),b=t.cubicBezier({start:e.start.transform[5],end:e.end.transform[5]},r,n),m=t.cubicBezier({start:e.start.color.r??0,end:e.end.color.r??0},r,n),O=t.cubicBezier({start:e.start.color.g??0,end:e.end.color.g??0},r,n),_=t.cubicBezier({start:e.start.color.b??0,end:e.end.color.b??0},r,n),M=t.cubicBezier({start:e.start.color.a??255,end:e.end.color.a??255},r,n);return i.map((t,e)=>{const r=new a.O({x:t,y:o[e],z:s[e]});return r.volume=u[e],r.mass=c[e],r.e=f[e],r.rotate=h[e],r.width=l[e],r.height=y[e],r.transform=[p[e],d[e],g[e],v[e],w[e],b[e]],r.color={r:m[e],g:O[e],b:_[e],a:M[e]},r})}if(e.start instanceof i.M&&e.end instanceof i.M){const o=t.cubicBezier({start:e.start.x,end:e.end.x},r,n),a=t.cubicBezier({start:e.start.y,end:e.end.y},r,n),s=t.cubicBezier({start:e.start.z,end:e.end.z},r,n);return o.map((t,e)=>new i.M(t,a[e],s[e]))}const{start:o,end:s}=e,{frame:u}=r;let{p1x:c,p1y:f,p2x:h,p2y:l}=Array.isArray(n)?{p1x:n[0],p1y:n[1],p2x:n[2],p2y:n[3]}:n;c="random"===c?Math.random():c,f="random"===f?Math.random():f,h="random"===h?Math.random():h,l="random"===l?Math.random():l;const y=[],p=s-o,d=t=>{const e=Number(t*t),r=Number(e*t),n=Number(1-t),i=Number(n*n);return 0*Number(i*n)+3*i*t*Number(f)+3*n*e*Number(l)+1*r},g=u+1;for(let t=1;t<g;t++){const e=o+p*d(t/g);y.push(e)}return y},t.diff=(t,e)=>Math.abs(t-e),t.distSqToLineSegment=(t,e,r)=>{const n=(e.x-r.x)**2+(e.y-r.y)**2;if(0===n)return(t.x-e.x)**2+(t.y-e.y)**2;let i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;i=Math.max(0,Math.min(1,i));const o=e.x+i*(r.x-e.x),a=e.y+i*(r.y-e.y);return(t.x-o)**2+(t.y-a)**2},t.rotatePoint=(t,e,r)=>{const n=t.x-e.x,i=t.y-e.y,o=n*Math.cos(r)-i*Math.sin(r),a=n*Math.sin(r)+i*Math.cos(r);return new s.P(o+e.x,a+e.y)}}(n||(n={}))},4068:(t,e,r)=>{r.d(e,{P:()=>n});class n{constructor(t,e){"object"==typeof t?(this.x=t.x??0,this.y=t.y??0):(this.x=t??0,this.y=e??0)}copy(){return new n(this.x,this.y)}}},5275:(t,e,r)=>{r.d(e,{s:()=>n});const n=t=>!!t&&"number"==typeof t.width&&"number"==typeof t.height},7553:(t,e,r)=>{r.d(e,{M:()=>o});var n=r(8741),i=r(4068);class o{constructor(t,e,r){t instanceof n.M?(this.x=t.x,this.y=t.y,this.z=t.z):"object"==typeof t?(this.x=t.x??0,this.y=t.y??0,this.z=t.z??0):(this.x=t??0,this.y=e??0,this.z=r??0)}set(t,e=0,r=0){return t instanceof o||t instanceof n.M?this.set(t.x||0,t.y||0,t.z||0):(this.x=t,this.y=e,this.z=r),this}get(){return new o(this.x,this.y,this.z)}mag(){const t=this.x,e=this.y,r=this.z;return Math.sqrt(t*t+e*e+r*r)}add(t,e=0,r=0){t instanceof o||t instanceof n.M?(this.x+=t.x,this.y+=t.y,this.z+=t.z):(this.x+=t,this.y+=e,this.z+=r)}toAdd(t,e){return new o(t.x+e.x,t.y+e.y,t.x+e.y)}sub(t,e=0,r=0){t instanceof o||t instanceof n.M?(this.x-=t.x,this.y-=t.y,this.z-=t.z):(this.x-=t,this.y-=e,this.z-=r)}toSub(t){const e=this;return new o(e.x-t.x,e.y-t.y,e.z-t.z)}mult(t){return t instanceof o||t instanceof n.M?(this.x*=t.x,this.y*=t.y,this.z*=t.z):(this.x*=t,this.y*=t,this.z*=t),this}toMult(t){const e=this;return new o(e.x*=t.x,e.y*=t.y,e.z*=t.z)}div(t){return t instanceof o||t instanceof n.M?(this.x/=t.x,this.y/=t.y,this.z/=t.z):(this.x/=t,this.y/=t,this.z/=t),this}toDiv(t){const e=this.get();return e.x/=t,e.y/=t,e.z/=t,e}dist(t){const e=this.x-t.x,r=this.y-t.y,n=this.z-t.z;return Math.sqrt(e*e+r*r+n*n)}toDist(t){const e=this,r=e.x-t.x,n=e.y-t.y,i=e.z-t.z;return Math.sqrt(r*r+n*n+i*i)}dot(t,e,r){return t instanceof o||t instanceof n.M?this.x*t.x+this.y*t.y+this.z*t.z:this.x*t+this.y*e+this.z*r}cross(t){const e=this.x,r=this.y,n=this.z;return new o(r*t.z-t.y*n,n*t.x-t.z*e,e*t.y-t.x*r)}normalize(){const t=this.mag();t>0&&this.div(t)}limit(t){this.mag()>t&&(this.normalize(),this.mult(t))}heading2D(){return-Math.atan2(-this.y,this.x)}random2D(){return this.fromAngle(Math.random()*(2*Math.PI))}fromAngle(t,e=1){return new o(e*Math.cos(t),e*Math.sin(t),0)}fromAngles(t,e,r=1){const n=Math.cos(e),i=Math.sin(e),a=Math.cos(t),s=Math.sin(t);return new o(r*s*i,-r*a,r*s*n)}array(){return[this.x,this.y,this.z]}toPoint3D(){return new n.M(this.x,this.y,this.z)}toPoint2D(){return new i.P(this.x,this.y)}copy(){return new o(this.x,this.y,this.z)}toString(){return"["+this.x+", "+this.y+", "+this.z+"]"}}},7855:(t,e,r)=>{r.d(e,{O:()=>n});const n=t=>null!=t},8741:(t,e,r)=>{r.d(e,{M:()=>o});var n=r(7553),i=r(4068);class o extends i.P{constructor(t,e,r){t instanceof n.M?(super(t.x,t.y),this.z=t.z):"object"==typeof t?(super({x:t.x??0,y:t.y??0}),this.z=t.z??0):(super(t,e),this.z=r??0)}copy(){return new o(this.x,this.y,this.z)}}},9244:(t,e,r)=>{r.d(e,{r:()=>a});var n=r(4068),i=r(3599),o=r(5275);class a{constructor(t,e,r=0,i=0){(0,o.s)(t)?(this._start=new n.P(0,0),this._width=t.width,this._height=t.height):"object"==typeof t&&"object"==typeof e?(this._start=t instanceof n.P?t:new n.P(t.x,t.y),this.end=e instanceof n.P?e:new n.P(e.x,e.y)):"object"==typeof t&&"number"==typeof e?(this._start=t instanceof n.P?t:new n.P(t.x,t.y),this._width=e,this._height=r):"number"==typeof t&&"number"==typeof e&&(this._start=new n.P(t,e),this._width=r,this._height=i)}valueLinkControl(t){let e,r=!1;var n;return"object"==typeof(n=t)&&"value"in n&&"noLink"in n?(e=t.value,r=t.noLink):e=t,{value:e,noLink:r}}get width(){return this._width}get height(){return this._height}get start(){return this._start.copy()}set width(t){this.setWidth(t)}setWidth(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=i.z.getPercentByTotal(this._width,e);this._width=e,this.applyWidthPercentLinks({value:n,noLink:r})}set height(t){this.setHeight(t)}setHeight(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=i.z.getPercentByTotal(this._height,e);this._height=e,this.applyHeightPercentLinks({value:n,noLink:r})}set start(t){let{value:e,noLink:r}=this.valueLinkControl(t);const o=new n.P({x:i.z.getPercentByTotal(this._start.x,e.x),y:i.z.getPercentByTotal(this._start.y,e.y)});this._start=e,this.applyStartPercentLinks({value:o,noLink:r})}setWidthFromEnd(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=i.z.getPercentByTotal(this.start.x,e);this._start.x=this.end.x-e,this.applyStartXPercentLinks({value:n,noLink:r})}set widthFromEnd(t){this.setWidthFromEnd(t)}setHeightFromEnd(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.end.y-e,o=i.z.getPercentByTotal(this.start.y,n);this._start.y=n,this.applyStartYPercentLinks({value:o,noLink:r})}set heightFromEnd(t){this.setHeightFromEnd(t)}setWidthFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.center.x-e/2,o=i.z.getPercentByTotal(this.start.x,n);this._start.x=n,this.applyStartXPercentLinks(o)}set widthFromCenter(t){this.setWidthFromCenter(t)}setHeightFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.center.y-e/2,o=i.z.getPercentByTotal(this.start.y,n);this._start.y=n,this.applyStartYPercentLinks(o)}set heightFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.center.y-e/2,o=i.z.getPercentByTotal(this.start.y,n);this._start.y=n,this.applyStartYPercentLinks(o)}set x(t){this.setX(t)}setX(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=e-this._start.x,o=i.z.getPercentByTotal(this.width,n);this._start.x=e,this.applyStartXPercentLinks({value:o,noLink:r})}set y(t){this.setY(t)}setY(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=e-this._start.y,o=i.z.getPercentByTotal(this.height,n);this._start.y=e,this.applyStartYPercentLinks({value:o,noLink:r})}applyWidthPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.setWidthByWidthPercent({value:e,noLink:this})})}applyHeightPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.setHeightByHeightPercent({value:e,noLink:this})})}applyStartPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.applyStartXPercentLinks({value:e.x,noLink:r}),this.applyStartYPercentLinks({value:e.y,noLink:r})}applyStartXPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.addXByWidthPercent({value:e,noLink:this})})}applyStartYPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.addYByHeightPercent({value:e,noLink:this})})}hasLink(t){return this.linkRects?.has(t)}isLinked(){return!!this.linkRects?.size}addLink(...t){this.linkRects??(this.linkRects=new Set),t.filter(t=>!this.linkRects?.has(t)).forEach(t=>{this.linkRects?.add(t),t.addLink(this)})}setLinks(t){this.unLinkAll(),this.addLink(...t)}unLinkAll(){this.linkRects&&(Array.from(this.linkRects.values()).forEach(t=>{this.unLink(t)}),this.linkRects.clear())}unLink(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.linkRects&&this.linkRects.delete(e),r||e.unLink({value:this,noLink:this})}addWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:this.width+i.z.getValueByTotalInPercent(this.width,e),noLink:r})}addHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:this.height+i.z.getValueByTotalInPercent(this.height,e),noLink:r})}addWidthRatio(t){this.width=this.width+i.z.getValueByTotalInRatio(this.width,t)}addHeightRatio(t){this.height=this.height+i.z.getValueByTotalInRatio(this.height,t)}addXPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInPercent(this.width,e),noLink:r})}addYPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInPercent(this.height,e),noLink:r})}addXRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInRatio(this.width,e),noLink:r})}addYRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInRatio(this.height,e),noLink:r})}set endX(t){const e=t-this.x;this.width=e}set endXPercent(t){this.endX=i.z.getValueByTotalInPercent(this.width,t)}set endYPercent(t){this.endY=i.z.getValueByTotalInPercent(this.height,t)}set endY(t){this.height=t-this.y}set end(t){this.width=t.x-this.x,this.height=t.y-this.y}get x(){return this.start.x}get y(){return this.start.y}get endX(){return this.end.x}get endY(){return this.end.y}to(t){const e=this.copy();return e.start=t,e}toRotate(t,{rotatePoint:e=this.center,type:r="degreeAngle"}){const o=i.z.radians(t,{type:r}),a=e instanceof n.P?e:new n.P(e.x,e.y);return[this.leftTop,this.rightTop,this.rightBottom,this.leftBottom].map(t=>i.z.rotatePoint(t,a,o))}get center(){return new n.P(this.start.x+this.width/2,this.start.y+this.height/2)}get end(){return new n.P(this.start.x+this.width,this.start.y+this.height)}get leftTop(){return this.start.copy()}get leftBottom(){return new n.P(this.start.x,this.end.y)}get rightTop(){return new n.P(this.end.x,this.start.y)}get rightBottom(){return this.end}copy(){return new a(this.x,this.y,this.width,this.height)}getWidthPercent(t){return i.z.getPercentByTotal(this.width,t)}getWidthRatio(t){return i.z.getRatioByTotal(this.width,t)}getWidthByPercent(t){return i.z.getValueByTotalInPercent(this.width,t)}getWidthByRatio(t){return i.z.getValueByTotalInRatio(this.width,t)}getHeightPercent(t){return i.z.getPercentByTotal(this.height,t)}getHeightRatio(t){return i.z.getRatioByTotal(this.height,t)}getHeightByPercent(t){return i.z.getValueByTotalInPercent(this.height,t)}getHeightByRatio(t){return i.z.getValueByTotalInRatio(this.height,t)}getXPercent(t){return i.z.getPercentByTotal(this.width,t-this.x)}getXRatio(t){return i.z.getRatioByTotal(this.width,t-this.x)}getXByPercent(t){return this.x+i.z.getValueByTotalInPercent(this.width,t)}getXByRatio(t){return this.x+i.z.getValueByTotalInRatio(this.width,t)}getYPercent(t){return i.z.getPercentByTotal(this.height,t-this.y)}getYRatio(t){return i.z.getRatioByTotal(this.height,t-this.y)}getYByPercent(t){return this.y+i.z.getValueByTotalInPercent(this.height,t)}getYByRatio(t){return this.y+i.z.getValueByTotalInRatio(this.height,t)}getPercent(t){return new n.P(this.getXPercent(t.x),this.getYPercent(t.y))}toScaleByWidth(t){const e=this.height/this.width;return new a(this.x,this.y,t,t*e)}toScaleByHeight(t){const e=this.width/this.height;return new a(this.x,this.y,t*e,t)}toRatio(t){return new a(this.getXRatio(t.x),this.getYRatio(t.y),this.getWidthRatio(t instanceof a?t.width:t.w),this.getHeightRatio(t instanceof a?t.height:t.h))}getRatio(t){return new n.P(this.getXRatio(t.x),this.getYRatio(t.y))}getByPercent(t){return new n.P(this.getXByPercent(t.x),this.getYByPercent(t.y))}getByRatio(t){return new n.P(this.getXByRatio(t.x),this.getYByRatio(t.y))}getDiffX(t){return t-this.x}getDiffY(t){return t-this.y}getDiffLeft(t){this.getDiffX(t)}getDiffTop(t){this.getDiffY(t)}getDiffRight(t){return t-this.end.x}getDiffBottom(t){return t-this.end.y}getDiffWidth(t){return t-this.width}getDiffHeight(t){return t-this.height}toDiff(t){return new a(t.x-this.x,t.y-this.y,t.width-this.width,t.height-this.height)}setXByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:i.z.getValueByTotalInPercent(this.width,e),noLink:r})}set xByWidthPercent(t){this.setXByWidthPercent(t)}setXByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:i.z.getValueByTotalInRatio(this.width,e),noLink:r})}set xByWidthRatio(t){this.setXByWidthRatio(t)}setYByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:i.z.getValueByTotalInPercent(this.height,e),noLink:r})}set yByHeightPercent(t){this.setYByHeightPercent(t)}setYByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:i.z.getValueByTotalInRatio(this.height,e),noLink:r})}set yByHeightRatio(t){this.setYByHeightRatio(t)}addXByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInPercent(this.width,e),noLink:r})}addXByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInRatio(this.width,e),noLink:r})}addYByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInPercent(this.height,e),noLink:r})}addYByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInRatio(this.height,e),noLink:r})}setWidthByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:i.z.getValueByTotalInPercent(this.width,e),noLink:r})}set widthByWidthPercent(t){this.setWidthByWidthPercent(t)}setWidthByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:i.z.getValueByTotalInRatio(this.width,e),noLink:r})}set widthByWidthRatio(t){this.setWidthByWidthRatio(t)}setHeightByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:i.z.getValueByTotalInPercent(this.height,e),noLink:r})}set heightByHeightPercent(t){this.setHeightByHeightPercent(t)}setHeightByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:i.z.getValueByTotalInRatio(this.height,e),noLink:r})}set heightByHeightRatio(t){this.setHeightByHeightRatio(t)}copyByPercent(t,e){return new a(this.x,this.y,i.z.getValueByTotalInPercent(this.width,t),i.z.getValueByTotalInPercent(this.height,e??t))}copyByRatio(t,e){return new a(this.x,this.y,i.z.getValueByTotalInRatio(this.width,t),i.z.getValueByTotalInRatio(this.height,e??t))}isIn(t){return t instanceof a?this.isIn(t.start)&&this.isIn(t.end):t.x>=this.start.x&&t.x<=this.end.x&&t.y>=this.start.y&&t.y<=this.end.y}isOut(t){return t instanceof a?!this.isOverlap(t):!this.isIn(t)}isOverlap(t){return t instanceof a?!(this.endX<t.x||this.x>t.endX||this.endY<t.y||this.y>t.endY):this.isIn(t)}toString(){return`x:${this.x}, y:${this.y}, width: ${this.width}, height: ${this.height}`}}},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},O={};function _(t){var e=O[t];if(void 0!==e)return e.exports;var r=O[t]={exports:{}};return m[t](r,r.exports,_),r.exports}_.d=(t,e)=>{for(var r in e)_.o(e,r)&&!_.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},_.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var M={};_.d(M,{T:()=>x});var x,S=_(9284),k=_(4068),P=_(8741),j=_(9244),R=_(2676);!function(t){t.objToGetURL=t=>Object.keys(t).reduce((e,r,n)=>`${e}${0!==n?"&":""}${r}=${t[r]}`,""),t.mapToJson=t=>JSON.stringify(Array.from(t.entries()).reduce((t,[e,r])=>(t[e]=r,t),{})),t.jsonToMap=t=>new Map(JSON.parse(t)),t.decodeURIString=t=>decodeURIComponent(t),t.objToStrMap=t=>{const e=new Map;for(const r of Object.keys(t))e.set(r,t[r]);return e},t.jsonToStrMap=e=>t.objToStrMap(JSON.parse(e)),t.strToObject=t=>JSON.parse(t),t.objToJson=t=>JSON.stringify(t),t.objToMap=t=>{const e=new Map;return Object.keys(t).forEach(r=>{e.set(r,t[r])}),e},t.mapToObj=t=>{const e={};return t.forEach((t,r)=>{e[r]=t}),e},t.snakeToCamelCase=t=>t.replace(/_([a-z])/g,(t,e)=>e.toUpperCase()),t.camelToSnakeCase=t=>t.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),t.toFormData=function(t){const e=new FormData;for(const r in t)e.append(r,t[r]);return e},t.toObject=function(e,r){if(e instanceof URLSearchParams){const t={};return e.forEach((e,n)=>{r?.firstValue&&void 0===t[n]?t[n]=e:r?.firstValue||(t[n]?Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]:t[n]=e)}),t}if(e instanceof FormData){const t=t=>{const e={};for(const r of t.keys()){const n=t.getAll(r);e[r]=n.length>1?n:n[0]}return e};return t(e)}if(e&&"function"==typeof e[Symbol.iterator])return Object.fromEntries(e);if(Array.isArray(e))return Object.fromEntries(e);if(S.U.isMap(e)){const r=e;e=t.mapToObj(r)}if(S.U.isArray(e)){const r=e;for(let e=0;e<r.length;e++)r[e]=t.toObject(r[e])}if(S.U.isObject(e))for(const r in e)e[r]=t.toObject(e[r]);return e},t.toArray=t=>t instanceof Set?Array.from(t.values()):Array.isArray(t)?t:t?[t]:[],t.flatArray=(...t)=>t.flatMap(t=>t instanceof Object&&Symbol.iterator in t?Array.from(t):[t]),t.iteratorToArray=t=>Array.from(t),t.toJson=e=>{const r=t.toObject(e);return JSON.stringify(r)},t.concatenateToAttribute=e=>t.concatenateToString(e,"="," ","'"),t.concatenateToParameter=e=>t.concatenateToString(e,"=","&",""),t.concatenateToString=(t,e="=",r=" ",n="")=>{const i=[];for(const r in t){const o=t[r];o&&i.push(r.toString()+e+n+o+n)}return i.join(r)},t.specialCharsToEscape=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.decodeHTMLEscape=t=>t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&#x2F;/g,"/"),t.copyObject=(t,e={})=>({...t,...e}),t.copyArrayWithAddition=(t,e)=>[...t,...e||[]],t.hexToInt=t=>(t.startsWith("#")&&(t=t.slice(1)),3===t.length&&(t=t.split("").map(t=>t+t).join("")),parseInt(t,16)),t.toHex=t=>(t<0&&(t=4294967295+t+1),(t=Number(t.toFixed(0))).toString(16).padStart(2,"0").toUpperCase()),t.toHexColor=e=>`#${t.toHex(e.r??0)}${t.toHex(e.g??0)}${t.toHex(e.b??0)}${t.toHex(e.a??255)}`,t.avgColor=t=>{const e=t.reduce((t,e)=>(t.r+=e.r??0,t.g+=e.g??0,t.b+=e.b??0,t.a+=e.a??0,t),{r:0,g:0,b:0,a:0});return{r:Math.floor(e.r/t.length),g:Math.floor(e.g/t.length),b:Math.floor(e.b/t.length),a:Math.floor(e.a/t.length)}},t.toRGBA=t=>{t??(t="#000000FF");const e=t.replace("#","");return{r:parseInt(e.slice(0,2)||"0",16),g:parseInt(e.slice(2,4)||"0",16),b:parseInt(e.slice(4,6)||"0",16),a:e.length>6?parseInt(e.slice(6,8)||"0",16):255}},t.minMaxCenterAvg=t=>{const e={},r=R.B.uniqueKeys(t);for(const n of r){const r=t.map(t=>t[n]),i=Math.min(...r),o=Math.max(...r),a=(i+o)/2,s=r.reduce((t,e)=>t+e,0)/r.length;e[n]={min:i,max:o,center:a,avg:s,diff:o-i}}return e},t.minMaxCenterRectAvg2D=t=>{const e=new k.P(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),r=new k.P(Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);let n=new k.P(0,0);t.forEach(t=>{e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),r.x=Math.max(r.x,t.x),r.y=Math.max(r.y,t.y),n.x+=t.x,n.y+=t.y});const i=new k.P((e.x+r.x)/2,(e.y+r.y)/2),o=new k.P(n.x/t.length,n.y/t.length),a=new j.r(e.x,e.y,r.x-e.x,r.y-e.y);return{min:e,max:r,center:i,avg:o,minMaxRect:a}},t.minMaxCenterAvg3D=t=>{const e=new P.M(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),r=new P.M(Number.MIN_VALUE,Number.MIN_VALUE,Number.MIN_VALUE);let n=new P.M(0,0,0);t.forEach(t=>{e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),e.z=Math.max(e.z,t.z),r.x=Math.max(r.x,t.x),r.y=Math.max(r.y,t.y),r.z=Math.max(r.z,t.y),n.x+=t.x,n.y+=t.y,n.z+=t.z});const i=new P.M((e.x+r.x)/2,(e.y+r.y)/2,(e.z+r.z)/2),o=new P.M(n.x/t.length,n.y/t.length,n.z/t.length);return{min:e,max:r,center:i,avg:o}},t.roundRectRadiiToFullRadii=t=>t?1===t.length?[t[0]??0,t[0]??0,t[0]??0,t[0]??0]:2===t.length?[t[0]??0,t[1]??0,t[0]??0,t[1]??0]:3===t.length?[t[0]??0,t[1]??0,t[2]??0,t[1]??0]:t:[0,0,0,0],t.toArrayDirectionChange=t=>{if(!t||0===t.length||!t[0]||0===t[0].length)return[];const e=[],r=t[0].length,n=t.length;for(let i=0;i<r;i++){const r=[];for(let e=0;e<n;e++)r.push(t[e][i]);e.push(r)}return e},t.groupByMap=(t,e)=>t.reduce((t,r)=>{const n=e(r),i=t.get(n)||[];return i.push(r),t.set(n,i),t},new Map),t.groupByObject=(e,r)=>{const n=t.groupByMap(e,r);return Object.fromEntries(n)},t.toURLSearchParams=t=>{const e=new URLSearchParams;if("string"==typeof t)new URLSearchParams(t).forEach((t,r)=>{e.append(r,t)});else if("object"==typeof t){const r=t instanceof URLSearchParams?t.entries():Array.isArray(t)?t:Object.entries(t);for(const[t,n]of Array.from(r))Array.isArray(n)?n.forEach(r=>e.append(t,r)):e.append(t,n)}return e},t.stringJsonToKeyPairs=t=>Array.from(t.matchAll(/(\w+):\s*([^,}]+)/g)).map(t=>({key:t[1],value:t[2]}))}(x||(x={}));const A=M.T;var E=n(426);class T{constructor(t,e,r){t instanceof T?(this.req=t.req,this.res=t.res,this.config=r):(this.req=t,this.res=e,this.config=r)}get reqSocket(){return this.req.socket}get reqCookieMap(){let t=this.reqHeader(i.L.Cookie)??"";Array.isArray(t)&&(t=t.join(";"));const e=new Map;return t.split(";").map(t=>t.trim().split("=")).forEach(t=>{e.set(t[0],t[1])}),e}reqCookieGet(t){return this.reqCookieMap.get(t)}get reqRemoteAddress(){const t=this.req.headers["x-forwarded-for"];let e=this.req.socket.remoteAddress;return Array.isArray(t)?e=t.join(",").split(",").shift():"string"==typeof t&&(e=t.split(",").shift()),e}get reqUrlObject(){return new y.URL(this.reqUrl,`${this.reqSocket?"https://":"http"}${this.reqHost??"localhost"}`)}get reqUrlPathName(){return this.reqUrlObj().pathname??""}get reqUrl(){return this.req.url??""}reqUrlObj(t){return new y.URL(`${t?.scheme??"http"}://${t?.host?t?.host:this.reqHeaderFirst(i.L.Host)??"localhost"}${this.req.url??""}`)}get reqUrlSearchParamTuples(){return Array.from(this.reqUrlObj().searchParams)}get reqUrlSearchParams(){return this.reqUrlObj().searchParams}get reqUrlSearchParamsObj(){const t=this.reqUrlObj().searchParams;return A.toObject(t)}get reqPathSearchParamUrl(){const t=this.reqUrlObj();return t.pathname+(t.searchParams.toString()?"?"+t.searchParams.toString():"")}get reqReadable(){return this.req.readable}get reqIntent(){return new l(this.reqPathSearchParamUrl)}reqHasContentTypeHeader(t){return(this.reqHeaderFirst(i.L.ContentType)??"").toLowerCase().indexOf(t.toLocaleLowerCase())>-1}reqHasAcceptHeader(t){return(this.reqHeaderFirst(i.L.Accept)??"").toLowerCase().indexOf(t.toLocaleLowerCase())>-1}reqBodyData(){return new Promise((t,e)=>{if(this.reqReadable){const r=[];this.req.on("data",t=>r.push(t)),this.req.on("error",t=>e(t)),this.req.on("end",()=>{this.reqBodyChunk=p.Buffer.concat(r),t(this.reqBodyChunk)})}else t(this.reqBodyChunk??p.Buffer.alloc(0))})}resBodyData(){return this.resWriteChunk}async reqBodyMultipartFormDataObject(){const t=await this.reqBodyMultipartFormData(),e={};for(const r of t)if(r.isFile)e[r.name]=await b.i.writeFile(r.value,{originalName:r.filename});else{const t=e[r.name];Array.isArray(t)?t.push(r.value):e[r.name]="string"==typeof t?[t,r.value]:r.value}return e}reqBodyMultipartFormData(){return new Promise((t,e)=>{const r=this.req.headers["content-type"];if(!r||!r.startsWith("multipart/form-data"))return e(new Error("Invalid Content-Type. Expected multipart/form-data."));const n=r.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!n)return e(new Error("Boundary not found in Content-Type header."));const i=n[1]||n[2];if(!i)return e(new Error("Failed to extract boundary."));const o=p.Buffer.from(`--${i}`),a=p.Buffer.from("\r\n"),s=p.Buffer.from("\r\n\r\n"),u=[];let c=0;this.req.on("data",t=>{u.push(t),c+=t.length}),this.req.on("error",t=>{e(t)}),this.req.on("end",()=>{if(0===c)return t([]);const r=p.Buffer.concat(u,c),n=[];let i=0,f=r.indexOf(o,i);if(-1===f)return e(new Error("Initial boundary not found."));for(i=f+o.length,r.slice(i,i+a.length).equals(a)&&(i+=a.length);i<r.length;){const t=r.indexOf(o,i);if(-1===t)break;let e=t;e>a.length&&r.slice(e-a.length,e).equals(a)&&(e-=a.length);const u=r.slice(i,e),c=u.indexOf(s);if(-1===c){if(console.warn("Skipping malformed part: no header/body separator found."),i=t+o.length,r.slice(i,i+a.length).equals(a)&&(i+=a.length),"--"===r.slice(i,i+2).toString())break;continue}const f=u.slice(0,c),h=u.slice(c+s.length),l=f.toString("utf-8"),y={};l.split("\r\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const r=t.substring(0,e).trim().toLowerCase(),n=t.substring(e+1).trim();y[r]=n}});const p=y["content-disposition"];if(!p){if(console.warn("Skipping part: no Content-Disposition header."),i=t+o.length,r.slice(i,i+a.length).equals(a)&&(i+=a.length),"--"===r.slice(i,i+2).toString())break;continue}const d=p.match(/name="([^"]+)"/i),g=p.match(/filename="([^"]+)"/i),v=d?d[1]:null,w=g?g[1]:null,b=y["content-type"]||null;if(v){const t=!!w,e={name:v,isFile:t,filename:w,contentType:b,value:t?h:h.toString("utf-8")};n.push(e)}else console.warn("Skipping part: 'name' not found in Content-Disposition.");if(i=t+o.length,r.slice(i,i+a.length).equals(a)&&(i+=a.length),"--"===r.slice(i,i+2).toString())break}t(n)})})}async reqBodyStringData(){return(await this.reqBodyData()).toString()}async reqBodyJsonData(){return JSON.parse(await this.reqBodyStringData())}async reqBodyFormUrlData(){const t=await this.reqBodyStringData(),e={};return Array.from(new y.URLSearchParams(t).entries()).forEach(([t,r])=>{const n=e[t];Array.isArray(n)?n.push(r):e[t]="string"==typeof n?[n,r]:r}),e}async reqBodyReqFormUrlBody(){const t=await this.reqBodyFormUrlData();return Object.assign(new d.s,t)}async reqBodyReqJsonBody(){const t=await this.reqBodyStringData();return Object.assign(new g.D,t?JSON.parse(t):{})}resBodyJsonData(){const t=E.T.toString(this.resBodyData());return t?JSON.parse(t):null}resBodyStringData(){return E.T.toString(this.resBodyData())}reqMethod(){return this.req.method?.toUpperCase()}reqHeader(t){return this.req.headers[t.toLowerCase()]}get reqHost(){return this.reqHeaderFirst(i.L.Host)}get reqHeaderObj(){const t=new v.E;return Object.entries(this.req.headers).forEach(([e,r])=>{t[e]=r}),t}reqHeaderFirst(t,e){const r=this.req.headers[t.toLowerCase()];return r&&Array.isArray(r)?r[0]??e:r??e}reqAuthorizationHeader(){return this.reqHeaderFirst(i.L.Authorization)}reqRefreshTokenHeader(){return this.reqHeaderFirst(i.L.Authorization)}resStatusCode(t){return t?(this.res.statusCode=t,new z(this.req,this.res,this.config,this.res.statusCode)):this.res.statusCode}resHeader(t){return this.res.getHeader(t.toLowerCase())}resHeaderFirst(t,e){const r=this.res.getHeader(t.toLowerCase());return r&&Array.isArray(r)?r[0]??e:r??e}async reqSession(){return this.config.sessionManager?(await this.config.sessionManager.session(this)).dataSet.data:Promise.reject(new Error("Not SessionManager"))}reqSessionSet(t,e){this.reqSession[t]=e}reqSessionGet(t){const e=this.reqSession;if(e)return e[t]}resSetStatusCode(t){return this.res.statusCode=t,this.createRequestResponseChain(this.res.statusCode)}resWrite(t,e="utf8"){return this.resWriteChunk=t,this.createRequestResponseChain(this.resWriteChunk)}resWriteJson(t,e="utf8"){return this.resWrite(JSON.stringify(t),e)}resSetHeader(t,e){return this.createRequestResponseChain(this.res.setHeader(t.toLowerCase(),e))}resAddHeader(t,e){const r=this.res.getHeader(t.toLowerCase()),n=Array.isArray(r)?r.concat(e):r?[r.toString(),...[].concat(e)]:e;return this.createRequestResponseChain(this.res.setHeader(t.toLowerCase(),n))}resSetHeaders(t){return Object.entries(t).forEach(([t,e])=>this.resSetHeader(t,e)),this.createRequestResponseChain()}resAddHeaders(t){return Object.entries(t).forEach(([t,e])=>this.resAddHeader(t,e)),this.createRequestResponseChain()}async resEndChunk(){const t=this.reqHeaderFirst(i.L.AcceptEncoding);let e=this.resWriteChunk;t?.includes("gzip")&&(e=await(0,w.gzip)(e),this.resSetHeader(i.L.ContentEncoding,"gzip")),this.res.end(e)}async resEnd(t){this.resWriteChunk=t??this.resWriteChunk,this.req.readable?(await this.reqBodyData(),await this.resEndChunk()):await this.resEndChunk()}resWriteHead(t,e){return this.createRequestResponseChain(this.res.writeHead(t,e))}resWriteHeadEnd(t,e){this.createRequestResponseChain(this.res.writeHead(t,e)),this.res.end()}resIsDone(){return this.res.finished||this.res.writableEnded||this.res.headersSent}createRequestResponseChain(t){const e=new z(this.req,this.res,this.config,t);return e.resWriteChunk=this.resWriteChunk,e.reqBodyChunk=this.reqBodyChunk,e}}class z extends T{constructor(t,e,r,n){super(t,e,r),this.result=n}}},3587:(t,e,r)=>{r.d(e,{F:()=>s});var n={d:(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},i={};n.d(i,{t:()=>o});class o{constructor({rootRouter:t,container:e,cache:r,advice:n=[],proxy:i,using:o}={}){this.rootRouter=t,this.container=e,this.advice=n,this.proxy=i,this.using=o,this.cache=r}addAdvicce(t){this.advice??(this.advice=[]),this.advice.push(t)}setAdvice(...t){return this.advice=t,this}}const a=i.t;class s extends a{constructor({serverOption:t,listen:e,filters:r,requestEndPoints:n,closeEndPoints:i,errorEndPoints:o,sessionOption:a,globalAdvice:u,fileUploadTempPath:c,noSuchRouteEndPointMappingThrow:f,transactionManagerFactory:h}={},l){super(l),this.serverOption=t,this.listen=Object.assign({port:s.DEFAULT_PORT,hostname:s.DEFAULT_HOSTNAME},e),this.filters=r,this.requestEndPoints=n,this.closeEndPoints=i,this.errorEndPoints=o,this.sessionOption=Object.assign({key:"SBSESSIONID",expiredTime:18e5},a),this.globalAdvice=u,this.fileUploadTempPath=c,this.noSuchRouteEndPointMappingThrow=f,this.transactionManagerFactory=h}get hostname(){return this.listen.hostname}get port(){return this.listen.port}get protocol(){return this.isSecure?"https":"http"}get address(){return`${this.protocol}://${this.hostname}:${this.port}`}get isSecure(){return this.serverOption&&"key"in this.serverOption&&"cert"in this.serverOption}}s.DEFAULT_PORT=8081,s.DEFAULT_HOSTNAME="127.0.0.1"},5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=N(t,i);if(void 0!==r){var n=r.call(t,e);if(P(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(E(n)&&!P(r=n.call(t)))return r;if(E(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function T(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!E(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!E(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!A(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!T(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d},5118:(t,e,r)=>{var n;r.d(e,{y:()=>n}),function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE",t.PATCH="PATCH",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.TRACE="TRACE",t.CONNECT="CONNECT"}(n||(n={}))},5797:(t,e,r)=>{var n;r.d(e,{Q:()=>n}),function(t){t.TransactionManager=Symbol("TransactionManager")}(n||(n={}))},5884:(t,e,r)=>{var n=r(3106);t.exports={gzip:function(t,e){return new Promise(function(r,i){n.gzip(t,e,function(t,e){t?i(Error(t)):r(e)})})},ungzip:function(t,e){return new Promise(function(r,i){n.gunzip(t,e,function(t,e){t?i(Error(t)):r(e)})})}}},6377:(t,e,r)=>{r.d(e,{s:()=>n});class n{}},7016:e=>{e.exports=t(import.meta.url)("url")},7953:(t,e,r)=>{var n;r.d(e,{L:()=>n}),function(t){t.ContentLength="Content-Length",t.ContentType="Content-Type",t.ContentEncoding="Content-Encoding",t.Accept="Accept",t.Authorization="Authorization",t.CacheControl="Cache-Control",t.Connection="Connection",t.Date="Date",t.Host="Host",t.Pragma="Pragma",t.Trailer="Trailer",t.TransferEncoding="Transfer-Encoding",t.Upgrade="Upgrade",t.Via="Via",t.Warning="Warning",t.AcceptCharset="Accept-Charset",t.AcceptEncoding="Accept-Encoding",t.AcceptLanguage="Accept-Language",t.AccessControlAllowOrigin="Access-Control-Allow-Origin",t.AccessControlAllowMethods="Access-Control-Allow-Methods",t.AccessControlAllowHeaders="Access-Control-Allow-Headers",t.AccessControlExposeHeaders="Access-Control-Expose-Headers",t.Expect="Expect",t.From="From",t.MaxForwards="Max-Forwards",t.Referer="Referer",t.UserAgent="User-Agent",t.Cookie="Cookie",t.SetCookie="Set-Cookie",t.Cookie2="Cookie2",t.SetCookie2="Set-Cookie2",t.Location="Location",t.IfModifiedSince="If-Modified-Since",t.IfUnmodifiedSince="If-Unmodified-Since",t.IfMatch="If-Match",t.IfNoneMatch="If-None-Match",t.IfRange="If-Range",t.Allow="Allow",t.Server="Server"}(n||(n={}))},9108:(t,e,r)=>{r.d(e,{Fz:()=>s,Yu:()=>a,cr:()=>n}),r(9771);var n,i=r(5053);r(5118),function(t){t.REQ_JSON_BODY="SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_JSON_BODY",t.REQ_FORM_URL_BODY="SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_FORM_URL_BODY"}(n||(n={}));const o=Symbol("MappingMetadataKey"),a=(t,e)=>i.d.getMetadata(o,t,e),s=t=>(null!=t&&"object"==typeof t&&(t=t.constructor),i.d.getMetadata(o,t))},9434:(t,e,r)=>{r.d(e,{E:()=>n});class n{}},9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return D(Object.create(null))}:s?function(){return D({__proto__:null})}:function(){return D({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}(),n=function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,N(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,i)},e.prototype.values=function(){return new r(this._keys,this._values,a)},e.prototype.entries=function(){return new r(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!N(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(N(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();return n;function i(t,e){return t}function a(t,e){return e}function s(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):o(e,t),e}return o(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y,s={isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o};return s}(e.Reflect));var o=new y,a={registerProvider:s,getProvider:c,setProvider:d};return a;function s(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}}function u(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=F(i);;){var s=L(a);if(!s)return;var u=B(s);if(u.isProviderFor(e,o))return I(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function c(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=u(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function f(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}function d(t,e,r){if(!f(r))throw new Error("Metadata provider not registered.");var n=c(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&R(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=F(i.keys()),a=0;;){var s=L(o);if(!s)return r.length=a,r;var u=B(s);try{r[a]=u}catch(t){try{I(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=U(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=K(e,r,!1);return!S(n)&&R(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=U(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=K(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){K(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=U(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=K(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t,e){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",n=C(t,i);if(void 0!==n){var o=n.call(t,r);if(P(o))throw new TypeError;return o}return function(t,e){if("string"===e){var r=t.toString;if(T(r)&&!P(i=r.call(t)))return i;if(T(n=t.valueOf)&&!P(i=n.call(t)))return i}else{var n;if(T(n=t.valueOf)&&!P(i=n.call(t)))return i;var i,o=t.toString;if(T(o)&&!P(i=o.call(t)))return i}throw new TypeError}(t,"default"===r?"number":r)}function R(t){return!!t}function A(t){var e=j(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function E(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function T(t){return"function"==typeof t}function z(t){return"function"==typeof t}function N(t,e){return t===e||t!=t&&e!=e}function C(t,e){var r=t[e];if(null!=r){if(!T(r))throw new TypeError;return r}}function F(t){var e=C(t,o);if(!T(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function B(t){return t.value}function L(t){var e=t.next();return!e.done&&e}function I(t){var e=t.return;e&&e.call(t)}function U(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function K(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function D(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!E(t))throw new TypeError;if(!z(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!z(n))throw new TypeError;e=n}}return e}(t,e)}if(!E(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=A(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=A(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=A(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=A(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=A(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=A(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=A(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=A(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=A(r)),!P(e))throw new TypeError;S(r)||(r=A(r));var n=K(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var i={16:(t,e,r)=>{r.d(e,{p:()=>y});var n=r(2743),i=r(4647),o=r(970),a=r(9212),s=r(8259),u=r(742),c=r(532),f=r(4209),h=r(1448),l=r(653);let y=class{constructor(t,e){this.simstanceManager=t,this.simOption=e,this.subject=new l.B}get observable(){return this.subject.asObservable()}routingMap(t="",e){const r=e?.router??this.simOption.rootRouter;if(!r)throw new Error("no router");const n={};if(r){const i="object"==typeof r?r.constructor:r,s="object"==typeof r?r:void 0,u=new a.J({targetKeyType:i,originalType:i,value:s},this.simstanceManager).getConfig(o.sP);if(u){const r=t+u.path;u.route&&u.route[""]&&(n[r]=u.route[""]),u.route&&Object.entries(u.route).forEach(([t,e])=>{n[r+t]=e}),u.routers?.forEach(t=>{Object.assign(n,this.routingMap(r,{...e,router:t}))})}}return n}async routings(t,e){const r=e?.router??this.simOption.rootRouter;if(!r)throw new Error("no router");const n="object"==typeof r?r.constructor:r,i="object"==typeof r?r:void 0,o=new a.J({targetKeyType:n,originalType:n,value:i},this.simstanceManager),s=this._collectAllMatchingModules(o,t,[]),u=s.filter(e=>e.path===t.pathname&&e.module);if(u.length>0)return u.forEach(e=>this.subject.next({intent:t,routerManager:this,routerModule:e})),u;const c=s.filter(e=>e.path===t.pathname);return c.length>0?(c.forEach(e=>this.subject.next({intent:t,routerManager:this,routerModule:e})),c):[]}async routing(t,e){"string"==typeof t&&(t=new n.J(t));const r=e?.router??this.simOption.rootRouter;if(!r)throw new Error("no router");const i="object"==typeof r?r.constructor:r,o="object"==typeof r?r:void 0,s=new a.J({targetKeyType:i,originalType:i,value:o},this.simstanceManager),u=s.getValue(),c=this.getExecuteModule(s,t,[],e);if(c){const[e,r]=c;e.routerChains=r,this.activeRouterModule=e;const n={intent:t,routerModule:e,routerManager:this};if(r.length>0)for(let t=0;t<r.length;t++){const e=r[t],i=r[t+1],o=e.getValue();f.W.isCanActivate(o)&&i&&await o.canActivate(n,i.getValue()),f.W.isOnRouting(o)&&i&&await o.onRouting(n)}this.activeRouterModule=e;const i=e.getModuleInstance();if(e?.module){const t=e.router?.getValue();f.W.isCanActivate(t)&&await t.canActivate(n,i),f.W.isOnRouting(t)&&await t.onRouting(n),i&&f.W.isOnRouting(i)&&await i.onRouting(n)}else{const t=e.routerChains[e.routerChains.length-1],r=t?.getValue();f.W.isCanActivate(r)&&await r.canActivate(n,i),f.W.isOnRouting(r)&&await r.onRouting(n)}const o=this.activeRouterModule;return this.subject.next({intent:t,routerModule:o,routerManager:this}),o}{const e=await this._handleNotFoundRouting(u,t);return this.subject.next({intent:t,routerModule:e,routerManager:this}),e}}async _handleNotFoundRouting(t,e){const r=new i.i(this.simstanceManager,t,void 0,[]),n={intent:e,routerModule:r,routerManager:this},o=t;return f.W.isCanActivate(o)&&await o.canActivate(n,null),f.W.isOnRouting(o)&&await o.onRouting(n),this.activeRouterModule=r,this.activeRouterModule}getExecuteModule(t,e,r,n){const i=e.pathname,s=t.getConfig(o.sP);if(s){const u=[];if(Array.isArray(s.filters)?u.push(...s.filters):s.filters&&u.push(s.filters),u.some(t=>!1===("function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t)?.isAccept(e)))return;const c=r.map(t=>t.getConfig(o.sP)?.path||"");if(this.isRootUrl(s.path,c,i)){const i=[...r,t];if(s.routers&&s.routers.length>0){let t,r=-1;for(const o of s.routers){const s=new a.J({targetKeyType:o,originalType:o},this.simstanceManager),u=this.getExecuteModule(s,e,i,n);if(u){const[e,i]=u,o=e.path?.length||0;o>r?(r=o,t=u):o===r&&"last"===n?.find?.router&&(t=u)}}if(t)return t}const o=this.findRouterOrModule(t,s,c,e);if(o)return[o,i]}}}isRootUrl(t,e,r){const n=e.join("")+(t||"");if("/"===n)return!0;const i=n.split("/"),o=r.split("/").slice(0,i.length).join("/");return!!c.r.Path.pathNameData(o,n)}_collectAllMatchingModules(t,e,r){const n=[],i=e.pathname,s=t.getConfig(o.sP);if(s){const u=[];if(Array.isArray(s.filters)?u.push(...s.filters):s.filters&&u.push(s.filters),u.some(t=>!1===("function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t)?.isAccept(e)))return n;const c=r.map(t=>t.getConfig(o.sP)?.path||"");if(this.isRootUrl(s.path,c,i)){const i=[...r,t];if(s.routers&&s.routers.length>0)for(const t of s.routers){const r=new a.J({targetKeyType:t,originalType:t},this.simstanceManager);n.push(...this._collectAllMatchingModules(r,e,i))}const o=this.findRouterOrModule(t,s,c,e);o&&(o.routerChains=i,n.push(o))}}return n}findRouterOrModule(t,e,r,n){const o=this.findRouting(t,e,r,n);if(o?.module)return o.intent=n,o;const a=r.join("")+(e.path||"");if(this.isRootUrl(e.path,r,n.pathname)){const e=new i.i(this.simstanceManager,t);return e.intent=n,e.path=a,e.pathData=n.getPathnameData(a),e}}findRouting(t,e,r,n){const o=r.join("")+e.path;if(e.route)for(const r of Object.keys(e.route).filter(t=>!t.startsWith("_"))){const a=o+r,s=n.getPathnameData(a);if(s)try{const o=this.findRouteProperty(e.route,r,n),u=new i.i(this.simstanceManager,t,o.child);return u.data=o.data,u.path=a,u.pathData=s,u.propertyKeys=o.propertyKeys,u}catch(t){}}}findRouteProperty(t,e,r){let n,i,o;const a=t[e];if("function"==typeof a)n={targetKeyType:a,originalType:a};else if("symbol"==typeof a)n=this.simstanceManager.findLastSim(a)?.type;else{if("string"==typeof a)return this.findRouteProperty(t,a,r);if(Array.isArray(a)){const t=a?.[0];if("object"==typeof t&&"filters"in t&&"target"in t){const e=[];Array.isArray(t.filters)?e.push(...t.filters):t.filters&&e.push(t.filters),e.some(t=>!1===("function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t)?.isAccept(r))||(n={targetKeyType:t.target,originalType:t.target})}else n={targetKeyType:t,originalType:t};i=a?.[1]}else if("object"==typeof a&&"target"in a&&"propertyKeys"in a){const t=a.filters?.filter(t=>t).some(t=>!1===("function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t)?.isAccept(r));t||(n={targetKeyType:a.target,originalType:a.target},o=a.propertyKeys)}else if("object"==typeof a&&"filters"in a&&"target"in a){const t=[];Array.isArray(a.filters)?t.push(...a.filters):a.filters&&t.push(a.filters),t.some(t=>!1===("function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t)?.isAccept(r))||(n={targetKeyType:a.target,originalType:a.target})}}return{child:n,data:i,propertyKeys:o}}};y=function(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}([u.on,function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:paramtypes",e)}(0,[s.T,h.t])],y)},420:(t,e,r)=>{r.d(e,{e:()=>i});var n=r(3966);class i extends n.W{constructor(t,e,r,n){super(t,e,n),this.propertyKeys=r}}},532:(t,e,r)=>{r.d(e,{r:()=>c});var n={3056:(t,e,r)=>{r.d(e,{$:()=>n});var n,i=r(9284);!function(t){t.deleteEnter=t=>t.replace(/\r?\n/g,""),t.pickEmoji=t=>t.match(/[\p{Emoji}]/gu)??[],t.regexExec=(t,e)=>{let r=t.exec(e);const n=[];for(;r;)n.push(r),r=t.exec(r.input);return n},t.regexExecArrayReplace=(e,r,n)=>((Array.isArray(r)?r:t.regexExec(r,e)).reverse().forEach(t=>{const r="string"==typeof n?n:n(t);e=e.substr(0,t.index)+e.substr(t.index).replace(t[0],r)}),e),t.escapeSpecialCharacterRegExp=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.trim=t=>t.trim(),t.rsubString=(t,e)=>t.substring(t.length-e,t.length),t.lsubString=(t,e)=>t.substring(0,e),t.lpad=(e,r,n)=>{for(;r>n.length;)n=e+n;return t.rsubString(n,r)},t.rpad=(e,r,n)=>{for(;r>n.length;)n+=e;return t.lsubString(n,r)},t.lappend=(t,e)=>{let r="",n=0;for(;n++<t;)r+=e;return r},t.unescape=t=>{if(!t)return"";const e={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿","#x27":"'"};return t.replace(/&((?:(?:[a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});?)+);/gi,(t,r)=>r.toLowerCase().split(";").map(r=>r in e?e[r]:t).join(""))},t.executeExpression=(t,e)=>t.replace(/\${([^{}]*)}/g,(t,r)=>String(e[r]??t)),t.ellipsis=(t,e)=>t.length>e?`${t.slice(0,e)}...`:t,t.appendPostposition=(t,{vowel:e,consonant:r})=>`${t}${i.U.lastConsonantLetter(t)?r:e}`}(n||(n={}))},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{r:()=>s});var s,u=o(3056);!function(t){let e,r;t.bindExpression=(t,e)=>(t??"").replace(/\$\{([\s\S.]*?)\}/g,(t,r)=>{const[n,i]=r.split(":"),o=e[n];return o?"function"==typeof o?o(e[i]):o:""}),function(t){t.isExpression=t=>/[$#]\{([\s\S.]*?)\}[$#]/g.test(t??""),t.expressionGroups=t=>u.$.regexExec(/[$#]\{([\s\S.]*?)\}[$#]/g,t??"")}(e=t.Group||(t.Group={})),function(t){t.pathNameData=(t,e)=>{const r=t.split("/"),n=e.split("/");if(r.length!==n.length)return;const i={};for(let t=0;t<n.length;t++){const e=n[t],o=r[t],a=/^\{(.+)\}$/g.exec(e);if(!a){if(e!==o)return;continue}const[s,u]=a[1].split(":");if(u&&!new RegExp(u).test(o))return;i[s]=o}return i}}(r=t.Path||(t.Path={}))}(s||(s={}));const c=a.r},653:(t,e,r)=>{r.d(e,{B:()=>c});var n={4817:(t,e,r)=>{r.d(e,{c:()=>i});var n=r(6038);class i{constructor(t){this._producerFunction=t}subscribe(t,e,r){const i={next:"object"==typeof t?t.next:t,error:"object"==typeof t?t.error:e,complete:"object"==typeof t?t.complete:r},o=new n.v({next:t=>{i.next?.(t)},error:t=>{i.error?.(t)},complete:()=>{i.complete?.()}});let a;this._producerFunction&&(a=this._producerFunction(o));let s=!1;return{get closed(){return s},unsubscribe:()=>{"function"==typeof a?a():a&&"function"==typeof a.unsubscribe&&a.unsubscribe(),s=!0}}}toPromise(){return new Promise((t,e)=>{let r,n;n=this.subscribe({next:t=>{r=t},error:t=>{e(t),n.unsubscribe()},complete:()=>{t(r),n.unsubscribe()}})})}pipe(...t){return 0===t.length?this:t.reduce((t,e)=>e(t),this)}}},6038:(t,e,r)=>{r.d(e,{v:()=>n});class n{constructor(t){this.destination=t,this.closed=!1}next(t){this.closed||this.destination.next(t)}error(t){this.closed||(this.closed=!0,this.destination.error(t),this.unsubscribe())}complete(){this.closed||(this.closed=!0,this.destination.complete(),this.unsubscribe())}unsubscribe(){this.closed=!0}}}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{B:()=>u});var s=o(4817);class u extends s.c{constructor(){super(t=>this._subscribeToSubject(t)),this._observers=new Set,this._isStopped=!1,this._hasError=!1}_subscribeToSubject(t){const e={next:t.next.bind(t),error:t.error.bind(t),complete:t.complete.bind(t)};if(this._isStopped)return this._hasError?e.error?.(this._error):e.complete?.(),{closed:!0,unsubscribe:()=>{}};this._observers.add(e);let r=!1;return{get closed(){return r},unsubscribe:()=>{this._observers.delete(e),r=!0}}}next(t){this._isStopped||this._observers.forEach(e=>{e.next?.(t)})}error(t){this._isStopped||(this._hasError=!0,this._error=t,this._isStopped=!0,this._observers.forEach(e=>e.error?.(t)),this._observers.clear())}complete(){this._isStopped||(this._isStopped=!0,this._observers.forEach(t=>t.complete?.()),this._observers.clear())}asObservable(){return new s.c(t=>this._subscribeToSubject(t))}}const c=a.B},742:(t,e,r)=>{r.d(e,{wB:()=>a}),r(6404),r(5053);var n,i,o={d:(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};o.d({},{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={})),function(t){t.Singleton="Singleton",t.Transient="Transient"}(i||(i={})),new Map,new Set;const a=Symbol("Sim");Symbol("PostConstruct")},970:(t,e,r)=>{r.d(e,{cI:()=>o,sP:()=>i});var n=r(5053);const i=Symbol("Router"),o=t=>{null!=t&&"object"==typeof t&&(t=t.constructor);try{return n.d.getMetadata(i,t)}catch(t){}};Symbol("RouteMetadataKey")},1252:(t,e,r)=>{r.d(e,{O:()=>h,n:()=>f});var n=r(2743),i=r(8259),o=r(742),a=r(9212),s=r(653),u=r(16),c=r(1448);const f=t=>"object"==typeof t&&"string"==typeof t.router&&"function"==typeof t.rootRouter;let h=class{constructor(t,e,r){this.simstanceManager=t,this.routerManager=e,this.simOption=r,this.subject=new s.B}get observable(){return this.subject.asObservable()}async publish(t,e){const r=[],i=f(t)?t.rootRouter:this.simOption.rootRouter,o="string"==typeof(t=f(t)?t.router:t)&&t.match(/^Router\((.+)\):\/(.*)$/);if(o&&"string"==typeof t){const a=o[1],s=o[2],u=(await this.routerManager.routing(a,{router:i})).getModuleInstance();u&&r.push(u),t=new n.J(s,e)}else"string"==typeof t&&(t=new n.J(t,e));let s=t;const u=[];o||(s.symbols?r.push(...s.symbols.map(t=>this.simstanceManager.findSims(t)).flat()):s.scheme?r.push(...this.simstanceManager.getSimConfig(s.scheme)):r.push(...this.simstanceManager.getSimAtomics()));const c=r.map(t=>t instanceof a.J?t.getValue():t);return this.subject.next(t),c.forEach(t=>{let e=t;if(e)if(s.paths.length>0){let t=e,r="";s.paths.filter(t=>t).forEach(n=>{t=e,e=e?.[n],r=n}),e&&"function"==typeof e?n.M.DATA_PARAMETERS===s.publishType?u.push(e.call(t,s.data)):n.M.INLINE_DATA_PARAMETERS===s.publishType?u.push(e.call(t,...s.data)):u.push(e.call(t,s)):e&&(t[r]=s.data,u.push(t[r]))}else n.M.DATA_PARAMETERS===s.publishType?u.push(e?.intentSubscribe?.(s.data)):n.M.INLINE_DATA_PARAMETERS===s.publishType?u.push(e?.intentSubscribe?.(...s.data)):u.push(e?.intentSubscribe?.(s))}),u}};h=function(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}([o.on,function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:paramtypes",e)}(0,[i.T,u.p,c.t])],h)},1448:(t,e,r)=>{r.d(e,{t:()=>n});class n{constructor({rootRouter:t,container:e,cache:r,advice:n=[],proxy:i,using:o}={}){this.rootRouter=t,this.container=e,this.advice=n,this.proxy=i,this.using=o,this.cache=r}addAdvicce(t){this.advice??(this.advice=[]),this.advice.push(t)}setAdvice(...t){return this.advice=t,this}}},2018:(t,e,r)=>{r.d(e,{C:()=>i});var n=r(3966);class i extends n.W{constructor(t,e,r){super(t,e,r)}}},2225:(t,e,r)=>{r.d(e,{j1:()=>i}),r(6404);const n=Symbol("Sim:NoProxy"),i=(t,e)=>null!=t&&!0===((t,e)=>{try{return void 0===e?Reflect.getMetadata(n,t):Reflect.getMetadata(n,t,e)}catch(t){return}})(t,e)},2482:(t,e,r)=>{r.d(e,{Mq:()=>u,_t:()=>o,tr:()=>a}),r(6404);var n,i=r(5053);!function(t){t.INDEX="SIMPLE_BOOT_CORE://Inject/INDEX"}(n||(n={}));class o{constructor({situationType:t,data:e,index:r}){this.situationType=t,this.data=e,this.index=r}}class a{constructor(t){this.containers=[],t&&this.containers.push(...t)}push(...t){this.containers.push(...t)}get length(){return this.containers.length}find(t,e){return this.containers.find(t)}}const s=Symbol("Inject"),u=(t,e)=>(null!=t&&void 0!==t&&"object"==typeof t&&(t=t.constructor),e?Reflect.getOwnMetadata(s,t,e):i.d.getMetadata(s,t)??[])},2743:(t,e,r)=>{r.d(e,{J:()=>o,M:()=>n});var n,i=r(532);!function(t){t.DATA_PARAMETERS="DATA_PARAMETERS",t.INLINE_DATA_PARAMETERS="INLINE_DATA_PARAMETERS"}(n||(n={}));class o{constructor(t,e,r){if(this.uri=t,this.data=e,this.event=r,this.sessionData=new Map,"string"==typeof t){const e=t.match(/^Symbol\.for\((.+)\):\/(.*)$/);if(e){const t=Symbol.for(e[1]);this.uri={symbol:t,uri:e[2]}}}}get symbols(){if("object"==typeof this.uri)return Array.isArray(this.uri.symbol)?this.uri.symbol:[this.uri.symbol]}get scheme(){if("string"==typeof this.uri){const t=this.uri.split("://");return t.length>1?t[0]:void 0}}get paths(){return this.pathname.split("/")??[]}get fullPath(){const t=("string"==typeof this.uri?this.uri:this.uri.uri).split("://");return t[t.length>=2?1:0]??""}get pathname(){return this.fullPath.split("?")[0]}get query(){return this.fullPath.split("?")[1]??""}get queryParams(){const t={};return this.query.split("&")?.forEach(e=>{const r=e.split("=");t[r[0]]=r[1]}),t}get queryParamsAfterDecodeURI(){const t=this.queryParams;for(const e in t)t.hasOwnProperty(e)&&(t[e]=decodeURIComponent(t[e]));return t}getPathnameData(t){return i.r.Path.pathNameData(this.pathname,t)}get isSymbolScheme(){return void 0!==this.symbols}}},3605:(t,e,r)=>{r.d(e,{i:()=>i}),r(6404);class n{constructor(t,e){this.target=t,this.metaData=e}}class i extends n{constructor(t,e,r,n){super(t,e),this.property=r,this.parameter=n}call(...t){return this.target[this.property](...t)}}},3896:(t,e,r)=>{r.d(e,{I:()=>n});const n=t=>"function"==typeof t?.onSimCreateProxyCompleted},3966:(t,e,r)=>{r.d(e,{W:()=>n});class n{constructor(t,e,r){this.message=t,this.name=e,this.stack=r}}},4209:(t,e,r)=>{var n;r.d(e,{W:()=>n}),function(t){t.isCanActivate=t=>"function"==typeof t?.canActivate,t.isOnRouting=t=>"function"==typeof t?.onRouting,t.isHasActivate=t=>"function"==typeof t?.hasActivate}(n||(n={}))},4297:(t,e,r)=>{r.d(e,{P:()=>n});const n=t=>"function"==typeof t?.onSimCreate},4642:(t,e,r)=>{r.d(e,{B:()=>f}),r(6404);var n=r(8259),i=r(1448),o=r(1252),a=r(16),s=r(2743),u=r(2018),c=r(742);class f{constructor(t=new i.t){this.option=t,this.simstanceManager=new n.T(this,t),this.simstanceManager.setStoreSet(n.T,this.simstanceManager),this.routerManager=this.simstanceManager.proxy(new a.p(this.simstanceManager,t)),this.intentManager=this.simstanceManager.proxy(new o.O(this.simstanceManager,this.routerManager,t)),this.simstanceManager.setStoreSet(o.O,this.intentManager),this.simstanceManager.setStoreSet(a.p,this.routerManager),c.l8.add(this)}getSimstanceManager(){return this.simstanceManager}getIntentManager(){return this.intentManager}getRouterManager(){return this.routerManager}run(t){return this.simstanceManager.run(t),this.simstanceManager}simAtomic(t){return"symbol"==typeof t?this.simstanceManager.findFirstSim(t):"function"==typeof t?this.simstanceManager.findFirstSim({type:t}):void 0}simAtomics(t){return"symbol"==typeof t?this.simstanceManager.findSims(t)??[]:"function"==typeof t?this.simstanceManager.findSims({type:t})??[]:[]}getInstance(t){const e=this.sim(t);if(e)return e;throw new u.C("SimNoSuch: no simple instance(getInstance) name:"+t?.prototype?.constructor?.name+","+t)}sim(t){return this.simAtomic(t)?.getValue()}sims(t){return this.simAtomics(t).map(t=>t.getValue())}addSim(t,e){const r=(0,c.on)(t);"function"==typeof r&&e&&r(e)}publishIntent(t,e){return t instanceof s.J?this.intentManager.publish(t):((0,o.n)(t),this.intentManager.publish(t,e))}routing(t,e){if(t instanceof s.J)return this.routerManager.routing(t,e);if("string"==typeof t){const r=new s.J(t);return this.routerManager.routing(r,e)}{const r=new s.J(t.path,t.data);return this.routerManager.routing(r,e)}}}},4647:(t,e,r)=>{r.d(e,{i:()=>u});var n=r(9212),i=r(5846),o=r(420),a=r(970),s=r(532);class u{get path(){return this._path}set path(t){this._path=t}get data(){return this._data}set data(t){this._data=t}get intent(){return this._intent}set intent(t){this._intent=t}get propertyKeys(){return this._propertyKeys}set propertyKeys(t){this._propertyKeys=t}get pathData(){return this._pathData}set pathData(t){this._pathData=t}constructor(t,e,r,n=[]){this.simstanceManager=t,this.router=e,this.module=r,this.routerChains=n}getRouterPath(t=""){return this.getRouterPaths().map(t=>t??"").join(t)}getRouterPaths(){return this.routerChains.map(t=>(0,a.cI)(t instanceof n.J?t.type.targetKeyType:t)?.path)}getRouterPathData(t){return s.r.Path.pathNameData(t,this.getRouterPath())}getModuleInstance(t,e=!0){const r=this.simstanceManager.getOrNewSim({target:this.module?.targetKeyType,originTypeTarget:this.module?.originalType});if(t&&this.propertyKeys&&this.propertyKeys.includes(t)){let n=r[t];return e&&"boolean"==typeof e?n=n.bind(r):e&&"object"==typeof e&&(n=n.bind(e)),n}return r}executeModuleProperty(t,...e){const r=this.getModuleInstance();if(t){if((0,i.A)(r,t)){const n=new Map;return e.forEach(t=>n.set(t.constructor,t)),this.simstanceManager.executeBindParameterSim({target:r,targetKey:t},n)}if(r[t])return r[t]?.(...e);throw new o.e(`${t.toString()} noSuch`,t.toString(),t)}}get firstRouteChain(){return this.routerChains[0]}get firstRouteChainValue(){return this.firstRouteChain.getValue()}get lastRouteChain(){return this.routerChains[this.routerChains.length-1]}get lastRouteChainValue(){return this.lastRouteChain.getValue()}hasActivateInLastRoute(t){return!0===this.lastRouteChainValue?.hasActivate(t)}get queryParams(){if(this.intent)return this.intent.queryParams}get queryParamsAfterDecodeURI(){if(this.intent)return this.intent.queryParamsAfterDecodeURI}}},5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(P(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(E(n)&&!P(r=n.call(t)))return r;if(E(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function T(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!E(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!E(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!A(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!T(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d},5846:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(5053);const i=Symbol("Injection"),o=(t,e)=>n.d.getMetadata(i,t,e)},6165:(t,e,r)=>{r.d(e,{Ss:()=>c,to:()=>f}),r(6404);var n=r(5053),i=r(3605),o=r(7441);const a=Symbol("After"),s=Symbol("Before"),u=(Symbol("Around"),t=>o.B.allProtoTypeName(t).map(e=>new i.i(t,((t,e)=>n.d.getMetadata(a,t,e))(t,e),e)).filter(t=>void 0!==t.metaData)||[]),c=(t,e,r)=>u(t).filter(t=>e===t.metaData?.property&&r===t.metaData.type?.prototype)||[],f=(t,e,r)=>(t=>o.B.allProtoTypeName(t).map(e=>new i.i(t,((t,e)=>n.d.getMetadata(s,t,e))(t,e),e)).filter(t=>void 0!==t.metaData)||[])(t).filter(t=>e===t.metaData?.property&&r===t.metaData.type?.prototype)||[]},6404:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=N(t,i);if(void 0!==r){var n=r.call(t,e);if(P(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(E(n)&&!P(r=n.call(t)))return r;if(E(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function T(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!E(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!E(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!A(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!T(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))},6622:(t,e,r)=>{r.d(e,{e:()=>s});var n=r(6165),i=r(7441),o=r(8537),a=r(2482);class s{constructor(t,e,r){this.simpleApplication=t,this.simstanceManager=e,this.simOption=r}get(t,e){return"_SimpleBoot_application"===e?this.simpleApplication:"_SimpleBoot_simstanceManager"===e?this.simstanceManager:"_SimpleBoot_simOption"===e?this.simOption:t[e]}set(t,e,r,n){return r=this.simstanceManager?.proxy(r),t[e]=r,!0}apply(t,e,r){let n;try{this.aopBefore(e,t);try{n=Reflect.apply(t,e,r)}catch(t){throw t}finally{this.aopAfter(e,t)}}catch(n){console.error(n);const i=this.getExceptionHandler(n,e,t);if(!(i.length>0&&i[0]))throw n;{const t=i[0];this.executeExceptionHandler(n,t,r)}}return n}executeExceptionHandler(t,e,r){const n=new Map;n.set(t.constructor,t);const i=new a._t({situationType:o.W$.ERROR_OBJECT,data:t}),s=new a._t({situationType:o.W$.PARAMETER,data:r});n.set(a.tr,new a.tr([i,s])),r?.forEach(t=>{n.set(t.constructor,t)});try{this.simstanceManager.executeBindParameterSim({target:e.thisArg,targetKey:e.config.propertyKey},n)}catch(e){t=e}if(e.config.config.throw){const n=this.getExceptionHandler(t,e.thisArg,e.config.method);(n?.length??0)>0&&this.executeExceptionHandler(t,n[0],r)}}getExceptionHandler(t,e,r){const n=this.simOption.advice.map(t=>this.simstanceManager?.getOrNewSim({target:t})).filter(t=>t).map(e=>({thisArg:e,config:(0,o.v0)(e,t,[r])}))??[];return[{thisArg:e,config:(0,o.v0)(e,t,[r])},...n].filter(t=>t&&t.config)}aopBefore(t,e){const r=i.B.prototypeName(t,e);if(r&&t){(0,n.to)(t,r).forEach(n=>{n.call(t,e,r)});for(let i=0;i<this.simOption.advice.length;i++){const o=this.simstanceManager?.getOrNewSim({target:this.simOption.advice[i]});(0,n.to)(o,r,Object.getPrototypeOf(t)).forEach(n=>{n.call(t,e,r)})}}}aopAfter(t,e){const r=i.B.prototypeName(t,e);if(r){(0,n.Ss)(t,r).forEach(n=>{n.call(t,e,r)});for(let i=0;i<this.simOption.advice.length;i++){const o=this.simstanceManager?.getOrNewSim({target:this.simOption.advice[i]});(0,n.Ss)(o,r,Object.getPrototypeOf(t)).forEach(n=>{n.call(t,e,r)})}}}has(t,e){return"isProxy"===e||e in t}}},7441:(t,e,r)=>{r.d(e,{B:()=>f});var n={7855:(t,e,r)=>{r.d(e,{O:()=>n});const n=t=>null!=t},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{B:()=>s});var s,u=o(7855),c=o(9284);!function(t){let e,r;t.constructorName=t=>t&&t.constructor&&t.constructor.name?t.constructor.name:t&&t.name?t.name:void 0,t.deepCopy=t=>t instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(t.entries())))):t instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(t.values())))):c.U.isNullOrUndefined(t)?t:JSON.parse(JSON.stringify(t)),t.allProtoTypeName=(e,r)=>{let n=[];if(e){const i=Object.getPrototypeOf(e);i&&(n=Object.keys(i)||[]).length>0&&(n=n.concat(t.allProtoTypeName(i,r)))}let i=n.filter(t=>"constructor"!==t);if(r&&e){const t=Object.getPrototypeOf(e);i=i.filter(e=>r(e,t?.[e]))}return i},t.uniqueKeys=t=>Array.from(new Set((Array.isArray(t)?t:[t]).flatMap(t=>Object.keys(t)))),t.ownPropertyNames=t=>{const e=[];if(t)if(t.prototype)e.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(t)));else{const r=Object.getPrototypeOf(t);e.push(...Object.getOwnPropertyNames(r))}return e.filter(t=>"constructor"!==t)},t.protoTypeName=t=>{let e=[];if(t){const r=Object.getPrototypeOf(t);e=Object.keys(r)||[]}return e.filter(t=>"constructor"!==t)},t.protoTypes=t=>{const e=[];if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.push(r[t])})}return e},t.seal=t=>Object.seal(t),t.isPrototypeOfTarget=(t,e)=>!(!t||!e)&&Object.prototype.isPrototypeOf.call(t.prototype,e),t.prototypeOfDepth=(t,e)=>{let r=t;const n=[];if(e)do{if(r=Object.getPrototypeOf(r),r?.constructor===e)break;n.push(r)}while(r);return n},t.allProtoType=t=>{const e=(t,r=[])=>(t.prototype&&(r.push(t),e(Object.getPrototypeOf(t),r)),r);return e(t)},t.prototypeOf=t=>Object.getPrototypeOf(t),t.prototypeKeyMap=t=>{const e=new Map;if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.set(r[t],t)})}return e},t.prototypeName=(e,r)=>t.prototypeKeyMap(e).get(r),t.pickRandomKey=t=>{const e=Object.keys(t);return e[Math.floor(Math.random()*e.length)]},t.pickRandomValue=t=>{const e=Object.keys(t);return t[e[Math.floor(Math.random()*e.length)]]},t.pickRandomKeyValue=t=>{const e=Object.keys(t),r=e[Math.floor(Math.random()*e.length)];return{key:r,value:t[r]}},t.keyValues=t=>Object.keys(t).map(e=>({key:e,value:t[e]})),t.entries=t=>Object.entries(t),t.values=t=>Object.values(t),t.keys=t=>Object.keys(t),t.keyLength=e=>t.keys(e).length,t.toDeleteUndefinedAndNull=(t,e)=>{const r=t=>Array.isArray(t)?t.filter(t=>null!=t).map(r):t&&"object"==typeof t?e?.deep?Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e).map(([t,e])=>[t,r(e)])):Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e)):t;return r(t)},function(t){t.isFunctionScript=t=>t.trim().startsWith("function"),t.isArrowFunctionScript=t=>/^\s*\([^)]*\)\s*=>/.test(t),t.toOptionalChainPath=e=>{if(!e)return"";if(e.trim().startsWith("{")&&e.trim().endsWith("}"))return e;if(t.isFunctionScript(e)||t.isArrowFunctionScript(e))return e;if(e.includes(" ? ")&&e.includes(" : ")){const t=e.split(/(\s+\?\s+|\s+:\s+)/).map((t,e)=>{if(0===e){const e=t.match(/[^?.[\]]+|\[[^\]]*\]/g);if(e&&e.length>1)return e.join("?.")}return t});return t.join("")}if(e.includes("(")){const r=[];let n=e,i=0;const o=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let a;for(;null!==(a=o.exec(e));){const e=a[0],o=a[1],s=a[2],u=`__FUNC_CALL_${i}__`,c=`${o}?.(${s?t.toOptionalChainPath(s):""})`;r.push({original:e,processed:c,placeholder:u}),n=n.replace(e,u),i++}const s=n.match(/[^?.[\]]+|\[[^\]]*\]/g);let u="";u=s&&s.length>1?s.join("?."):n;for(const t of r)u=u.replace(t.placeholder,t.processed);return u}const r=e.match(/[^?.[\]]+|\[[^\]]*\]/g);return r?r.join("?."):e},t.removeOptionalChainOperator=t=>t?t.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const e=t=>{const e=[],r=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let n,i=0;const o=t.match(r);if(o&&(o?.index??0)>0)e.push(t.substring(0,o.index)),i=o.index;else if(!o&&t.length>0)return e.push(t),e;for(;null!==(n=r.exec(t));){if(n.index>i){const r=t.substring(i,n.index);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}n[1]?e.push(n[1]):n[2]?e.push(parseInt(n[2],10)):n[4]&&e.push(n[4]),i=r.lastIndex}if(i<t.length){const r=t.substring(i);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}return e};t.to=e=>{const r={};return Object.entries(e).forEach(([e,n])=>{t.set(r,e,n)}),r},t.set=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(t===i.length-1)o[e]=n;else{const r=i[t+1];if("number"==typeof r){if(Array.isArray(o[e])||(o[e]=[]),Array.isArray(o[e]))for(;o[e].length<=r;)o[e].push({})}else"object"==typeof o[e]&&null!==o[e]||(o[e]={});o=o[e]}}},t.get=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(null==o)return n;if("object"!=typeof o||null===o||!(e in o))return n;o=o[e]}return o},t.deletePath=(t,r)=>{const n=e(r);if(0===n.length)return!1;let i=t;for(let t=0;t<n.length-1;t++){const e=n[t];if(null==i)return!1;if("object"!=typeof i||null===i||!(e in i))return!1;i=i[e]}const o=n[n.length-1];return null!==i&&"object"==typeof i&&o in i&&(Array.isArray(i)&&"number"==typeof o?i.splice(o,1):delete i[o],!0)},t.availablePath=(t,e)=>{const r=[],n=t=>"number"==typeof t?"["+t+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)?t:"['"+t+"']",i=(t,o,a)=>{null!==t&&"object"==typeof t&&(a.has(t)||(a.add(t),Array.isArray(t)?t.forEach((t,s)=>{const u=n(s),c=o?`${o}${u}`:u;e&&!e(c,t)||r.push(c),i(t,c,a)}):Object.keys(t).forEach(s=>{const u=n(s);let c;c=u.startsWith("[")?o?`${o}${u}`:u:o?`${o}.${u}`:u,e&&!e(c,t[s])||r.push(c),i(t[s],c,a)})))};return i(t,"",new Set),r},t.detectPathFromScript=(t,e)=>{const r=new Set;class n{constructor(t){this.prefix=t,this.usingVars=r}set(t,e,r,n){return!0}get(t,e,r){if("symbol"==typeof e)return this.createSafeProxy(this.prefix);let n;const i=String(e);return n=isNaN(Number(i))?this.prefix?`${this.prefix}.${i}`:i:this.prefix?`${this.prefix}[${i}]`:i,n&&this.usingVars.add(n),this.createSafeProxy(n)}apply(t,e,r){return this.createSafeProxy(this.prefix)}createSafeProxy(t){const e=new n(t);return new Proxy(()=>{},{get:(r,n,i)=>n===Symbol.toPrimitive?()=>"":"valueOf"===n?()=>e.createSafeProxy(t):"toString"===n?()=>"":e.get(r,n,i),set:e.set.bind(e),apply:e.apply.bind(e)})}}const i={window:new Proxy(()=>{},new n("window")),document:new Proxy(()=>{},new n("document")),console:new Proxy(()=>{},new n("console"))},o=new Proxy(()=>{},new n("this"));try{new Function("window","document","console",`"use strict"; ${t}; `).call(o,i.window,i.document,i.console)}catch(t){console.error("detectPathFromScript error:",t)}if(e?.excludeThis){const t=new Set;return r.forEach(e=>{"this"!==e&&(e.startsWith("this.")?t.add(e.substring(5)):t.add(e))}),t}return r}}(e=t.Path||(t.Path={})),t.toDeleteKey=(e,r)=>{const n={...e};return t.deleteKey(n,r),n},t.deleteKey=(t,e)=>{e.filter(t=>(0,u.O)(t)).forEach(e=>{delete t[e]})},function(t){t.evalReturn=(e,r={})=>{let n="",i="";return"object"==typeof e?(n=e.bodyScript,i=e.returnScript):i=e,t.eval(`${n}; return ${i} `,r)},t.eval=(t,e={})=>{try{return Function(`"use strict"; ${t} `).bind(e)()}catch(e){return console.error("eval error",e),void console.error(t)}}}(r=t.Script||(t.Script={}))}(s||(s={}));const f=a.B},8259:(t,e,r)=>{r.d(e,{T:()=>P}),r(6404);var n=r(9492),i=r(2018),o=r(742),a=r(7441),s=r(9212),u=r(5053),c=r(2482),f=r(1448),h=r(6622),l={2676:(t,e,r)=>{r.d(e,{B:()=>n});var n,i=r(7855),o=r(9284);!function(t){let e,r;t.constructorName=t=>t&&t.constructor&&t.constructor.name?t.constructor.name:t&&t.name?t.name:void 0,t.deepCopy=t=>t instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(t.entries())))):t instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(t.values())))):o.U.isNullOrUndefined(t)?t:JSON.parse(JSON.stringify(t)),t.allProtoTypeName=(e,r)=>{let n=[];if(e){const i=Object.getPrototypeOf(e);i&&(n=Object.keys(i)||[]).length>0&&(n=n.concat(t.allProtoTypeName(i,r)))}let i=n.filter(t=>"constructor"!==t);if(r&&e){const t=Object.getPrototypeOf(e);i=i.filter(e=>r(e,t?.[e]))}return i},t.uniqueKeys=t=>Array.from(new Set((Array.isArray(t)?t:[t]).flatMap(t=>Object.keys(t)))),t.ownPropertyNames=t=>{const e=[];if(t)if(t.prototype)e.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(t)));else{const r=Object.getPrototypeOf(t);e.push(...Object.getOwnPropertyNames(r))}return e.filter(t=>"constructor"!==t)},t.protoTypeName=t=>{let e=[];if(t){const r=Object.getPrototypeOf(t);e=Object.keys(r)||[]}return e.filter(t=>"constructor"!==t)},t.protoTypes=t=>{const e=[];if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.push(r[t])})}return e},t.seal=t=>Object.seal(t),t.isPrototypeOfTarget=(t,e)=>!(!t||!e)&&Object.prototype.isPrototypeOf.call(t.prototype,e),t.prototypeOfDepth=(t,e)=>{let r=t;const n=[];if(e)do{if(r=Object.getPrototypeOf(r),r?.constructor===e)break;n.push(r)}while(r);return n},t.allProtoType=t=>{const e=(t,r=[])=>(t.prototype&&(r.push(t),e(Object.getPrototypeOf(t),r)),r);return e(t)},t.prototypeOf=t=>Object.getPrototypeOf(t),t.prototypeKeyMap=t=>{const e=new Map;if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.set(r[t],t)})}return e},t.prototypeName=(e,r)=>t.prototypeKeyMap(e).get(r),t.pickRandomKey=t=>{const e=Object.keys(t);return e[Math.floor(Math.random()*e.length)]},t.pickRandomValue=t=>{const e=Object.keys(t);return t[e[Math.floor(Math.random()*e.length)]]},t.pickRandomKeyValue=t=>{const e=Object.keys(t),r=e[Math.floor(Math.random()*e.length)];return{key:r,value:t[r]}},t.keyValues=t=>Object.keys(t).map(e=>({key:e,value:t[e]})),t.entries=t=>Object.entries(t),t.values=t=>Object.values(t),t.keys=t=>Object.keys(t),t.keyLength=e=>t.keys(e).length,t.toDeleteUndefinedAndNull=(t,e)=>{const r=t=>Array.isArray(t)?t.filter(t=>null!=t).map(r):t&&"object"==typeof t?e?.deep?Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e).map(([t,e])=>[t,r(e)])):Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e)):t;return r(t)},function(t){t.isFunctionScript=t=>t.trim().startsWith("function"),t.isArrowFunctionScript=t=>/^\s*\([^)]*\)\s*=>/.test(t),t.toOptionalChainPath=e=>{if(!e)return"";if(e.trim().startsWith("{")&&e.trim().endsWith("}"))return e;if(t.isFunctionScript(e)||t.isArrowFunctionScript(e))return e;if(e.includes(" ? ")&&e.includes(" : ")){const t=e.split(/(\s+\?\s+|\s+:\s+)/).map((t,e)=>{if(0===e){const e=t.match(/[^?.[\]]+|\[[^\]]*\]/g);if(e&&e.length>1)return e.join("?.")}return t});return t.join("")}if(e.includes("(")){const r=[];let n=e,i=0;const o=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let a;for(;null!==(a=o.exec(e));){const e=a[0],o=a[1],s=a[2],u=`__FUNC_CALL_${i}__`,c=`${o}?.(${s?t.toOptionalChainPath(s):""})`;r.push({original:e,processed:c,placeholder:u}),n=n.replace(e,u),i++}const s=n.match(/[^?.[\]]+|\[[^\]]*\]/g);let u="";u=s&&s.length>1?s.join("?."):n;for(const t of r)u=u.replace(t.placeholder,t.processed);return u}const r=e.match(/[^?.[\]]+|\[[^\]]*\]/g);return r?r.join("?."):e},t.removeOptionalChainOperator=t=>t?t.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const e=t=>{const e=[],r=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let n,i=0;const o=t.match(r);if(o&&(o?.index??0)>0)e.push(t.substring(0,o.index)),i=o.index;else if(!o&&t.length>0)return e.push(t),e;for(;null!==(n=r.exec(t));){if(n.index>i){const r=t.substring(i,n.index);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}n[1]?e.push(n[1]):n[2]?e.push(parseInt(n[2],10)):n[4]&&e.push(n[4]),i=r.lastIndex}if(i<t.length){const r=t.substring(i);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}return e};t.to=e=>{const r={};return Object.entries(e).forEach(([e,n])=>{t.set(r,e,n)}),r},t.set=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(t===i.length-1)o[e]=n;else{const r=i[t+1];if("number"==typeof r){if(Array.isArray(o[e])||(o[e]=[]),Array.isArray(o[e]))for(;o[e].length<=r;)o[e].push({})}else"object"==typeof o[e]&&null!==o[e]||(o[e]={});o=o[e]}}},t.get=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(null==o)return n;if("object"!=typeof o||null===o||!(e in o))return n;o=o[e]}return o},t.deletePath=(t,r)=>{const n=e(r);if(0===n.length)return!1;let i=t;for(let t=0;t<n.length-1;t++){const e=n[t];if(null==i)return!1;if("object"!=typeof i||null===i||!(e in i))return!1;i=i[e]}const o=n[n.length-1];return null!==i&&"object"==typeof i&&o in i&&(Array.isArray(i)&&"number"==typeof o?i.splice(o,1):delete i[o],!0)},t.availablePath=(t,e)=>{const r=[],n=t=>"number"==typeof t?"["+t+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)?t:"['"+t+"']",i=(t,o,a)=>{null!==t&&"object"==typeof t&&(a.has(t)||(a.add(t),Array.isArray(t)?t.forEach((t,s)=>{const u=n(s),c=o?`${o}${u}`:u;e&&!e(c,t)||r.push(c),i(t,c,a)}):Object.keys(t).forEach(s=>{const u=n(s);let c;c=u.startsWith("[")?o?`${o}${u}`:u:o?`${o}.${u}`:u,e&&!e(c,t[s])||r.push(c),i(t[s],c,a)})))};return i(t,"",new Set),r},t.detectPathFromScript=(t,e)=>{const r=new Set;class n{constructor(t){this.prefix=t,this.usingVars=r}set(t,e,r,n){return!0}get(t,e,r){if("symbol"==typeof e)return this.createSafeProxy(this.prefix);let n;const i=String(e);return n=isNaN(Number(i))?this.prefix?`${this.prefix}.${i}`:i:this.prefix?`${this.prefix}[${i}]`:i,n&&this.usingVars.add(n),this.createSafeProxy(n)}apply(t,e,r){return this.createSafeProxy(this.prefix)}createSafeProxy(t){const e=new n(t);return new Proxy(()=>{},{get:(r,n,i)=>n===Symbol.toPrimitive?()=>"":"valueOf"===n?()=>e.createSafeProxy(t):"toString"===n?()=>"":e.get(r,n,i),set:e.set.bind(e),apply:e.apply.bind(e)})}}const i={window:new Proxy(()=>{},new n("window")),document:new Proxy(()=>{},new n("document")),console:new Proxy(()=>{},new n("console"))},o=new Proxy(()=>{},new n("this"));try{new Function("window","document","console",`"use strict"; ${t}; `).call(o,i.window,i.document,i.console)}catch(t){console.error("detectPathFromScript error:",t)}if(e?.excludeThis){const t=new Set;return r.forEach(e=>{"this"!==e&&(e.startsWith("this.")?t.add(e.substring(5)):t.add(e))}),t}return r}}(e=t.Path||(t.Path={})),t.toDeleteKey=(e,r)=>{const n={...e};return t.deleteKey(n,r),n},t.deleteKey=(t,e)=>{e.filter(t=>(0,i.O)(t)).forEach(e=>{delete t[e]})},function(t){t.evalReturn=(e,r={})=>{let n="",i="";return"object"==typeof e?(n=e.bodyScript,i=e.returnScript):i=e,t.eval(`${n}; return ${i} `,r)},t.eval=(t,e={})=>{try{return Function(`"use strict"; ${t} `).bind(e)()}catch(e){return console.error("eval error",e),void console.error(t)}}}(r=t.Script||(t.Script={}))}(n||(n={}))},3205:(t,e,r)=>{r.d(e,{O:()=>o});var n=r(7553),i=r(9244);class o extends n.M{constructor(t){super(),this.volume=0,this.mass=0,this.e=0,this.rotate=0,this.width=0,this.height=0,this.transform=[1,0,0,1,0,0],this.color={r:0,g:0,b:0,a:255},this.updateObjWithDefaults(t)}copyObj(){return new o({x:this.x,y:this.y,z:this.z,volume:this.volume,mass:this.mass,e:this.e,rotate:this.rotate,width:this.width,height:this.height,transform:[...this.transform],color:{...this.color},data:{...this.data}})}updateObjWithDefaults(t){if(t){this.x=t.x??this.x,this.y=t.y??this.y,this.z=t.z??this.z,this.volume=t.volume??this.volume,this.mass=t.mass??this.mass,this.e=t.e??this.e,this.rotate=t.rotate??this.rotate,this.width=t.width??this.width,this.height=t.height??this.height,this.transform=[...t.transform??this.transform],this.color={...t.color??this.color};const e=t.data??this.data;this.data=e?{...e}:void 0}}setObj(t){if(t){this.x=t.x??0,this.y=t.y??0,this.z=t.z??0,this.volume=t.volume??0,this.mass=t.mass??0,this.e=t.e??0,this.rotate=t.rotate??0,this.width=t.width??0,this.height=t.height??0,this.transform=[...t.transform??[1,0,0,1,0,0]],this.color={...t.color??{r:0,g:0,b:0,a:255}};const e=t.data;this.data=e?{...e}:void 0}}toRect(){return new i.r(this.x,this.y,this.width,this.height)}}},3599:(t,e,r)=>{r.d(e,{z:()=>n});var n,i=r(8741),o=r(7553),a=r(3205),s=r(4068);!function(t){t.getMinByObjectArray=(t,e)=>{let r;if(e&&t&&t.length>0){r=t[0][e];for(let n=1;n<t.length;n++)r=Math.min(r,t[n][e])}return r},t.hypot=(...t)=>Math.hypot(...t),t.pythagorean=(t,e)=>Math.sqrt(t*t+e*e),t.getMaxByObjectArray=(t,e)=>{let r;if(e&&t&&t.length>0){r=t[0][e];for(let n=1;n<t.length;n++)r=Math.max(r,t[n][e])}return r},t.sum=t=>t.reduce((t,e)=>t+e,0),t.avg=e=>e.length>0?t.sum(e)/e.length:0,t.minMax=(t,e)=>Math.min(Math.max(t,e.min),e.max),t.max=t=>t.length>0?Math.max(...t):void 0,t.min=t=>t.length>0?Math.min(...t):void 0,t.getSumByObjectArray=(t,e)=>{let r=0;if(e&&t&&t.length>0)for(let n=0;n<t.length;n++)r+=t[n][e];return r},t.radians=(t,{type:e="degreeAngle"})=>"ratio"===e?2*t*Math.PI:"percent"===e?t/100*2*Math.PI:t/180*Math.PI,t.degrees=(t,{type:e="degreeAngle"})=>"ratio"===e?360*t:"percent"===e?t/100*360:180*t/Math.PI,t.ratio=(t,e,r=1)=>r*(e/t),t.getBetweenLength=(t,e)=>e-t,t.getPercentByTotal=(t,e)=>e/t*100,t.getRatioByTotal=(t,e)=>e/t,t.getValueByTotalInPercent=(t,e)=>t*e/100,t.getValueByTotalInRatio=(t,e)=>t*e,t.getValuePercentUp=(t,e)=>t*(1+e/100),t.getValueRatioUp=(t,e)=>t*(1+e),t.getValuePercentDown=(t,e)=>t*(1-e/100),t.getValueRatioDown=(t,e)=>t*(1-e),t.beziers=(e,r)=>{const n=new Array(r).fill(void 0);for(let i=0;i<n.length;i++)n[i]=t.bezier(e,r,i);return n},t.bezier=(e,r,n)=>{if(e&&e.length>0){const a=e.map(t=>new o.M(t.x,t.y,t.z)),s=[];return a.reduce((t,e)=>{const i=t.toSub(e).div(r).mult(n+1);return s.push(t.toSub(i)),e}),s.length<=1?s[0]:t.bezier(s.map(t=>new i.M(t)),r,n)}return new o.M},t.cubicBezier=function(e,r,n){if(e.start instanceof a.O&&e.end instanceof a.O){const i=t.cubicBezier({start:e.start.x,end:e.end.x},r,n),o=t.cubicBezier({start:e.start.y,end:e.end.y},r,n),s=t.cubicBezier({start:e.start.z,end:e.end.z},r,n),u=t.cubicBezier({start:e.start.volume,end:e.end.volume},r,n),c=t.cubicBezier({start:e.start.mass,end:e.end.mass},r,n),f=t.cubicBezier({start:e.start.e,end:e.end.e},r,n),h=t.cubicBezier({start:e.start.rotate,end:e.end.rotate},r,n),l=t.cubicBezier({start:e.start.width,end:e.end.width},r,n),y=t.cubicBezier({start:e.start.height,end:e.end.height},r,n),p=t.cubicBezier({start:e.start.transform[0],end:e.end.transform[0]},r,n),d=t.cubicBezier({start:e.start.transform[1],end:e.end.transform[1]},r,n),g=t.cubicBezier({start:e.start.transform[2],end:e.end.transform[2]},r,n),v=t.cubicBezier({start:e.start.transform[3],end:e.end.transform[3]},r,n),w=t.cubicBezier({start:e.start.transform[4],end:e.end.transform[4]},r,n),b=t.cubicBezier({start:e.start.transform[5],end:e.end.transform[5]},r,n),m=t.cubicBezier({start:e.start.color.r??0,end:e.end.color.r??0},r,n),O=t.cubicBezier({start:e.start.color.g??0,end:e.end.color.g??0},r,n),_=t.cubicBezier({start:e.start.color.b??0,end:e.end.color.b??0},r,n),M=t.cubicBezier({start:e.start.color.a??255,end:e.end.color.a??255},r,n);return i.map((t,e)=>{const r=new a.O({x:t,y:o[e],z:s[e]});return r.volume=u[e],r.mass=c[e],r.e=f[e],r.rotate=h[e],r.width=l[e],r.height=y[e],r.transform=[p[e],d[e],g[e],v[e],w[e],b[e]],r.color={r:m[e],g:O[e],b:_[e],a:M[e]},r})}if(e.start instanceof i.M&&e.end instanceof i.M){const o=t.cubicBezier({start:e.start.x,end:e.end.x},r,n),a=t.cubicBezier({start:e.start.y,end:e.end.y},r,n),s=t.cubicBezier({start:e.start.z,end:e.end.z},r,n);return o.map((t,e)=>new i.M(t,a[e],s[e]))}const{start:o,end:s}=e,{frame:u}=r;let{p1x:c,p1y:f,p2x:h,p2y:l}=Array.isArray(n)?{p1x:n[0],p1y:n[1],p2x:n[2],p2y:n[3]}:n;c="random"===c?Math.random():c,f="random"===f?Math.random():f,h="random"===h?Math.random():h,l="random"===l?Math.random():l;const y=[],p=s-o,d=t=>{const e=Number(t*t),r=Number(e*t),n=Number(1-t),i=Number(n*n);return 0*Number(i*n)+3*i*t*Number(f)+3*n*e*Number(l)+1*r},g=u+1;for(let t=1;t<g;t++){const e=o+p*d(t/g);y.push(e)}return y},t.diff=(t,e)=>Math.abs(t-e),t.distSqToLineSegment=(t,e,r)=>{const n=(e.x-r.x)**2+(e.y-r.y)**2;if(0===n)return(t.x-e.x)**2+(t.y-e.y)**2;let i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;i=Math.max(0,Math.min(1,i));const o=e.x+i*(r.x-e.x),a=e.y+i*(r.y-e.y);return(t.x-o)**2+(t.y-a)**2},t.rotatePoint=(t,e,r)=>{const n=t.x-e.x,i=t.y-e.y,o=n*Math.cos(r)-i*Math.sin(r),a=n*Math.sin(r)+i*Math.cos(r);return new s.P(o+e.x,a+e.y)}}(n||(n={}))},4068:(t,e,r)=>{r.d(e,{P:()=>n});class n{constructor(t,e){"object"==typeof t?(this.x=t.x??0,this.y=t.y??0):(this.x=t??0,this.y=e??0)}copy(){return new n(this.x,this.y)}}},5275:(t,e,r)=>{r.d(e,{s:()=>n});const n=t=>!!t&&"number"==typeof t.width&&"number"==typeof t.height},7553:(t,e,r)=>{r.d(e,{M:()=>o});var n=r(8741),i=r(4068);class o{constructor(t,e,r){t instanceof n.M?(this.x=t.x,this.y=t.y,this.z=t.z):"object"==typeof t?(this.x=t.x??0,this.y=t.y??0,this.z=t.z??0):(this.x=t??0,this.y=e??0,this.z=r??0)}set(t,e=0,r=0){return t instanceof o||t instanceof n.M?this.set(t.x||0,t.y||0,t.z||0):(this.x=t,this.y=e,this.z=r),this}get(){return new o(this.x,this.y,this.z)}mag(){const t=this.x,e=this.y,r=this.z;return Math.sqrt(t*t+e*e+r*r)}add(t,e=0,r=0){t instanceof o||t instanceof n.M?(this.x+=t.x,this.y+=t.y,this.z+=t.z):(this.x+=t,this.y+=e,this.z+=r)}toAdd(t,e){return new o(t.x+e.x,t.y+e.y,t.x+e.y)}sub(t,e=0,r=0){t instanceof o||t instanceof n.M?(this.x-=t.x,this.y-=t.y,this.z-=t.z):(this.x-=t,this.y-=e,this.z-=r)}toSub(t){const e=this;return new o(e.x-t.x,e.y-t.y,e.z-t.z)}mult(t){return t instanceof o||t instanceof n.M?(this.x*=t.x,this.y*=t.y,this.z*=t.z):(this.x*=t,this.y*=t,this.z*=t),this}toMult(t){const e=this;return new o(e.x*=t.x,e.y*=t.y,e.z*=t.z)}div(t){return t instanceof o||t instanceof n.M?(this.x/=t.x,this.y/=t.y,this.z/=t.z):(this.x/=t,this.y/=t,this.z/=t),this}toDiv(t){const e=this.get();return e.x/=t,e.y/=t,e.z/=t,e}dist(t){const e=this.x-t.x,r=this.y-t.y,n=this.z-t.z;return Math.sqrt(e*e+r*r+n*n)}toDist(t){const e=this,r=e.x-t.x,n=e.y-t.y,i=e.z-t.z;return Math.sqrt(r*r+n*n+i*i)}dot(t,e,r){return t instanceof o||t instanceof n.M?this.x*t.x+this.y*t.y+this.z*t.z:this.x*t+this.y*e+this.z*r}cross(t){const e=this.x,r=this.y,n=this.z;return new o(r*t.z-t.y*n,n*t.x-t.z*e,e*t.y-t.x*r)}normalize(){const t=this.mag();t>0&&this.div(t)}limit(t){this.mag()>t&&(this.normalize(),this.mult(t))}heading2D(){return-Math.atan2(-this.y,this.x)}random2D(){return this.fromAngle(Math.random()*(2*Math.PI))}fromAngle(t,e=1){return new o(e*Math.cos(t),e*Math.sin(t),0)}fromAngles(t,e,r=1){const n=Math.cos(e),i=Math.sin(e),a=Math.cos(t),s=Math.sin(t);return new o(r*s*i,-r*a,r*s*n)}array(){return[this.x,this.y,this.z]}toPoint3D(){return new n.M(this.x,this.y,this.z)}toPoint2D(){return new i.P(this.x,this.y)}copy(){return new o(this.x,this.y,this.z)}toString(){return"["+this.x+", "+this.y+", "+this.z+"]"}}},7855:(t,e,r)=>{r.d(e,{O:()=>n});const n=t=>null!=t},8741:(t,e,r)=>{r.d(e,{M:()=>o});var n=r(7553),i=r(4068);class o extends i.P{constructor(t,e,r){t instanceof n.M?(super(t.x,t.y),this.z=t.z):"object"==typeof t?(super({x:t.x??0,y:t.y??0}),this.z=t.z??0):(super(t,e),this.z=r??0)}copy(){return new o(this.x,this.y,this.z)}}},9244:(t,e,r)=>{r.d(e,{r:()=>a});var n=r(4068),i=r(3599),o=r(5275);class a{constructor(t,e,r=0,i=0){(0,o.s)(t)?(this._start=new n.P(0,0),this._width=t.width,this._height=t.height):"object"==typeof t&&"object"==typeof e?(this._start=t instanceof n.P?t:new n.P(t.x,t.y),this.end=e instanceof n.P?e:new n.P(e.x,e.y)):"object"==typeof t&&"number"==typeof e?(this._start=t instanceof n.P?t:new n.P(t.x,t.y),this._width=e,this._height=r):"number"==typeof t&&"number"==typeof e&&(this._start=new n.P(t,e),this._width=r,this._height=i)}valueLinkControl(t){let e,r=!1;var n;return"object"==typeof(n=t)&&"value"in n&&"noLink"in n?(e=t.value,r=t.noLink):e=t,{value:e,noLink:r}}get width(){return this._width}get height(){return this._height}get start(){return this._start.copy()}set width(t){this.setWidth(t)}setWidth(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=i.z.getPercentByTotal(this._width,e);this._width=e,this.applyWidthPercentLinks({value:n,noLink:r})}set height(t){this.setHeight(t)}setHeight(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=i.z.getPercentByTotal(this._height,e);this._height=e,this.applyHeightPercentLinks({value:n,noLink:r})}set start(t){let{value:e,noLink:r}=this.valueLinkControl(t);const o=new n.P({x:i.z.getPercentByTotal(this._start.x,e.x),y:i.z.getPercentByTotal(this._start.y,e.y)});this._start=e,this.applyStartPercentLinks({value:o,noLink:r})}setWidthFromEnd(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=i.z.getPercentByTotal(this.start.x,e);this._start.x=this.end.x-e,this.applyStartXPercentLinks({value:n,noLink:r})}set widthFromEnd(t){this.setWidthFromEnd(t)}setHeightFromEnd(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.end.y-e,o=i.z.getPercentByTotal(this.start.y,n);this._start.y=n,this.applyStartYPercentLinks({value:o,noLink:r})}set heightFromEnd(t){this.setHeightFromEnd(t)}setWidthFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.center.x-e/2,o=i.z.getPercentByTotal(this.start.x,n);this._start.x=n,this.applyStartXPercentLinks(o)}set widthFromCenter(t){this.setWidthFromCenter(t)}setHeightFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.center.y-e/2,o=i.z.getPercentByTotal(this.start.y,n);this._start.y=n,this.applyStartYPercentLinks(o)}set heightFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.center.y-e/2,o=i.z.getPercentByTotal(this.start.y,n);this._start.y=n,this.applyStartYPercentLinks(o)}set x(t){this.setX(t)}setX(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=e-this._start.x,o=i.z.getPercentByTotal(this.width,n);this._start.x=e,this.applyStartXPercentLinks({value:o,noLink:r})}set y(t){this.setY(t)}setY(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=e-this._start.y,o=i.z.getPercentByTotal(this.height,n);this._start.y=e,this.applyStartYPercentLinks({value:o,noLink:r})}applyWidthPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.setWidthByWidthPercent({value:e,noLink:this})})}applyHeightPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.setHeightByHeightPercent({value:e,noLink:this})})}applyStartPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.applyStartXPercentLinks({value:e.x,noLink:r}),this.applyStartYPercentLinks({value:e.y,noLink:r})}applyStartXPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.addXByWidthPercent({value:e,noLink:this})})}applyStartYPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.addYByHeightPercent({value:e,noLink:this})})}hasLink(t){return this.linkRects?.has(t)}isLinked(){return!!this.linkRects?.size}addLink(...t){this.linkRects??(this.linkRects=new Set),t.filter(t=>!this.linkRects?.has(t)).forEach(t=>{this.linkRects?.add(t),t.addLink(this)})}setLinks(t){this.unLinkAll(),this.addLink(...t)}unLinkAll(){this.linkRects&&(Array.from(this.linkRects.values()).forEach(t=>{this.unLink(t)}),this.linkRects.clear())}unLink(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.linkRects&&this.linkRects.delete(e),r||e.unLink({value:this,noLink:this})}addWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:this.width+i.z.getValueByTotalInPercent(this.width,e),noLink:r})}addHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:this.height+i.z.getValueByTotalInPercent(this.height,e),noLink:r})}addWidthRatio(t){this.width=this.width+i.z.getValueByTotalInRatio(this.width,t)}addHeightRatio(t){this.height=this.height+i.z.getValueByTotalInRatio(this.height,t)}addXPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInPercent(this.width,e),noLink:r})}addYPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInPercent(this.height,e),noLink:r})}addXRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInRatio(this.width,e),noLink:r})}addYRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInRatio(this.height,e),noLink:r})}set endX(t){const e=t-this.x;this.width=e}set endXPercent(t){this.endX=i.z.getValueByTotalInPercent(this.width,t)}set endYPercent(t){this.endY=i.z.getValueByTotalInPercent(this.height,t)}set endY(t){this.height=t-this.y}set end(t){this.width=t.x-this.x,this.height=t.y-this.y}get x(){return this.start.x}get y(){return this.start.y}get endX(){return this.end.x}get endY(){return this.end.y}to(t){const e=this.copy();return e.start=t,e}toRotate(t,{rotatePoint:e=this.center,type:r="degreeAngle"}){const o=i.z.radians(t,{type:r}),a=e instanceof n.P?e:new n.P(e.x,e.y);return[this.leftTop,this.rightTop,this.rightBottom,this.leftBottom].map(t=>i.z.rotatePoint(t,a,o))}get center(){return new n.P(this.start.x+this.width/2,this.start.y+this.height/2)}get end(){return new n.P(this.start.x+this.width,this.start.y+this.height)}get leftTop(){return this.start.copy()}get leftBottom(){return new n.P(this.start.x,this.end.y)}get rightTop(){return new n.P(this.end.x,this.start.y)}get rightBottom(){return this.end}copy(){return new a(this.x,this.y,this.width,this.height)}getWidthPercent(t){return i.z.getPercentByTotal(this.width,t)}getWidthRatio(t){return i.z.getRatioByTotal(this.width,t)}getWidthByPercent(t){return i.z.getValueByTotalInPercent(this.width,t)}getWidthByRatio(t){return i.z.getValueByTotalInRatio(this.width,t)}getHeightPercent(t){return i.z.getPercentByTotal(this.height,t)}getHeightRatio(t){return i.z.getRatioByTotal(this.height,t)}getHeightByPercent(t){return i.z.getValueByTotalInPercent(this.height,t)}getHeightByRatio(t){return i.z.getValueByTotalInRatio(this.height,t)}getXPercent(t){return i.z.getPercentByTotal(this.width,t-this.x)}getXRatio(t){return i.z.getRatioByTotal(this.width,t-this.x)}getXByPercent(t){return this.x+i.z.getValueByTotalInPercent(this.width,t)}getXByRatio(t){return this.x+i.z.getValueByTotalInRatio(this.width,t)}getYPercent(t){return i.z.getPercentByTotal(this.height,t-this.y)}getYRatio(t){return i.z.getRatioByTotal(this.height,t-this.y)}getYByPercent(t){return this.y+i.z.getValueByTotalInPercent(this.height,t)}getYByRatio(t){return this.y+i.z.getValueByTotalInRatio(this.height,t)}getPercent(t){return new n.P(this.getXPercent(t.x),this.getYPercent(t.y))}toScaleByWidth(t){const e=this.height/this.width;return new a(this.x,this.y,t,t*e)}toScaleByHeight(t){const e=this.width/this.height;return new a(this.x,this.y,t*e,t)}toRatio(t){return new a(this.getXRatio(t.x),this.getYRatio(t.y),this.getWidthRatio(t instanceof a?t.width:t.w),this.getHeightRatio(t instanceof a?t.height:t.h))}getRatio(t){return new n.P(this.getXRatio(t.x),this.getYRatio(t.y))}getByPercent(t){return new n.P(this.getXByPercent(t.x),this.getYByPercent(t.y))}getByRatio(t){return new n.P(this.getXByRatio(t.x),this.getYByRatio(t.y))}getDiffX(t){return t-this.x}getDiffY(t){return t-this.y}getDiffLeft(t){this.getDiffX(t)}getDiffTop(t){this.getDiffY(t)}getDiffRight(t){return t-this.end.x}getDiffBottom(t){return t-this.end.y}getDiffWidth(t){return t-this.width}getDiffHeight(t){return t-this.height}toDiff(t){return new a(t.x-this.x,t.y-this.y,t.width-this.width,t.height-this.height)}setXByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:i.z.getValueByTotalInPercent(this.width,e),noLink:r})}set xByWidthPercent(t){this.setXByWidthPercent(t)}setXByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:i.z.getValueByTotalInRatio(this.width,e),noLink:r})}set xByWidthRatio(t){this.setXByWidthRatio(t)}setYByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:i.z.getValueByTotalInPercent(this.height,e),noLink:r})}set yByHeightPercent(t){this.setYByHeightPercent(t)}setYByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:i.z.getValueByTotalInRatio(this.height,e),noLink:r})}set yByHeightRatio(t){this.setYByHeightRatio(t)}addXByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInPercent(this.width,e),noLink:r})}addXByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInRatio(this.width,e),noLink:r})}addYByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInPercent(this.height,e),noLink:r})}addYByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInRatio(this.height,e),noLink:r})}setWidthByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:i.z.getValueByTotalInPercent(this.width,e),noLink:r})}set widthByWidthPercent(t){this.setWidthByWidthPercent(t)}setWidthByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:i.z.getValueByTotalInRatio(this.width,e),noLink:r})}set widthByWidthRatio(t){this.setWidthByWidthRatio(t)}setHeightByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:i.z.getValueByTotalInPercent(this.height,e),noLink:r})}set heightByHeightPercent(t){this.setHeightByHeightPercent(t)}setHeightByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:i.z.getValueByTotalInRatio(this.height,e),noLink:r})}set heightByHeightRatio(t){this.setHeightByHeightRatio(t)}copyByPercent(t,e){return new a(this.x,this.y,i.z.getValueByTotalInPercent(this.width,t),i.z.getValueByTotalInPercent(this.height,e??t))}copyByRatio(t,e){return new a(this.x,this.y,i.z.getValueByTotalInRatio(this.width,t),i.z.getValueByTotalInRatio(this.height,e??t))}isIn(t){return t instanceof a?this.isIn(t.start)&&this.isIn(t.end):t.x>=this.start.x&&t.x<=this.end.x&&t.y>=this.start.y&&t.y<=this.end.y}isOut(t){return t instanceof a?!this.isOverlap(t):!this.isIn(t)}isOverlap(t){return t instanceof a?!(this.endX<t.x||this.x>t.endX||this.endY<t.y||this.y>t.endY):this.isIn(t)}toString(){return`x:${this.x}, y:${this.y}, width: ${this.width}, height: ${this.height}`}}},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},y={};function p(t){var e=y[t];if(void 0!==e)return e.exports;var r=y[t]={exports:{}};return l[t](r,r.exports,p),r.exports}p.d=(t,e)=>{for(var r in e)p.o(e,r)&&!p.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},p.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var d={};p.d(d,{T:()=>g});var g,v=p(9284),w=p(4068),b=p(8741),m=p(9244),O=p(2676);!function(t){t.objToGetURL=t=>Object.keys(t).reduce((e,r,n)=>`${e}${0!==n?"&":""}${r}=${t[r]}`,""),t.mapToJson=t=>JSON.stringify(Array.from(t.entries()).reduce((t,[e,r])=>(t[e]=r,t),{})),t.jsonToMap=t=>new Map(JSON.parse(t)),t.decodeURIString=t=>decodeURIComponent(t),t.objToStrMap=t=>{const e=new Map;for(const r of Object.keys(t))e.set(r,t[r]);return e},t.jsonToStrMap=e=>t.objToStrMap(JSON.parse(e)),t.strToObject=t=>JSON.parse(t),t.objToJson=t=>JSON.stringify(t),t.objToMap=t=>{const e=new Map;return Object.keys(t).forEach(r=>{e.set(r,t[r])}),e},t.mapToObj=t=>{const e={};return t.forEach((t,r)=>{e[r]=t}),e},t.snakeToCamelCase=t=>t.replace(/_([a-z])/g,(t,e)=>e.toUpperCase()),t.camelToSnakeCase=t=>t.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),t.toFormData=function(t){const e=new FormData;for(const r in t)e.append(r,t[r]);return e},t.toObject=function(e,r){if(e instanceof URLSearchParams){const t={};return e.forEach((e,n)=>{r?.firstValue&&void 0===t[n]?t[n]=e:r?.firstValue||(t[n]?Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]:t[n]=e)}),t}if(e instanceof FormData){const t=t=>{const e={};for(const r of t.keys()){const n=t.getAll(r);e[r]=n.length>1?n:n[0]}return e};return t(e)}if(e&&"function"==typeof e[Symbol.iterator])return Object.fromEntries(e);if(Array.isArray(e))return Object.fromEntries(e);if(v.U.isMap(e)){const r=e;e=t.mapToObj(r)}if(v.U.isArray(e)){const r=e;for(let e=0;e<r.length;e++)r[e]=t.toObject(r[e])}if(v.U.isObject(e))for(const r in e)e[r]=t.toObject(e[r]);return e},t.toArray=t=>t instanceof Set?Array.from(t.values()):Array.isArray(t)?t:t?[t]:[],t.flatArray=(...t)=>t.flatMap(t=>t instanceof Object&&Symbol.iterator in t?Array.from(t):[t]),t.iteratorToArray=t=>Array.from(t),t.toJson=e=>{const r=t.toObject(e);return JSON.stringify(r)},t.concatenateToAttribute=e=>t.concatenateToString(e,"="," ","'"),t.concatenateToParameter=e=>t.concatenateToString(e,"=","&",""),t.concatenateToString=(t,e="=",r=" ",n="")=>{const i=[];for(const r in t){const o=t[r];o&&i.push(r.toString()+e+n+o+n)}return i.join(r)},t.specialCharsToEscape=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.decodeHTMLEscape=t=>t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&#x2F;/g,"/"),t.copyObject=(t,e={})=>({...t,...e}),t.copyArrayWithAddition=(t,e)=>[...t,...e||[]],t.hexToInt=t=>(t.startsWith("#")&&(t=t.slice(1)),3===t.length&&(t=t.split("").map(t=>t+t).join("")),parseInt(t,16)),t.toHex=t=>(t<0&&(t=4294967295+t+1),(t=Number(t.toFixed(0))).toString(16).padStart(2,"0").toUpperCase()),t.toHexColor=e=>`#${t.toHex(e.r??0)}${t.toHex(e.g??0)}${t.toHex(e.b??0)}${t.toHex(e.a??255)}`,t.avgColor=t=>{const e=t.reduce((t,e)=>(t.r+=e.r??0,t.g+=e.g??0,t.b+=e.b??0,t.a+=e.a??0,t),{r:0,g:0,b:0,a:0});return{r:Math.floor(e.r/t.length),g:Math.floor(e.g/t.length),b:Math.floor(e.b/t.length),a:Math.floor(e.a/t.length)}},t.toRGBA=t=>{t??(t="#000000FF");const e=t.replace("#","");return{r:parseInt(e.slice(0,2)||"0",16),g:parseInt(e.slice(2,4)||"0",16),b:parseInt(e.slice(4,6)||"0",16),a:e.length>6?parseInt(e.slice(6,8)||"0",16):255}},t.minMaxCenterAvg=t=>{const e={},r=O.B.uniqueKeys(t);for(const n of r){const r=t.map(t=>t[n]),i=Math.min(...r),o=Math.max(...r),a=(i+o)/2,s=r.reduce((t,e)=>t+e,0)/r.length;e[n]={min:i,max:o,center:a,avg:s,diff:o-i}}return e},t.minMaxCenterRectAvg2D=t=>{const e=new w.P(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),r=new w.P(Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);let n=new w.P(0,0);t.forEach(t=>{e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),r.x=Math.max(r.x,t.x),r.y=Math.max(r.y,t.y),n.x+=t.x,n.y+=t.y});const i=new w.P((e.x+r.x)/2,(e.y+r.y)/2),o=new w.P(n.x/t.length,n.y/t.length),a=new m.r(e.x,e.y,r.x-e.x,r.y-e.y);return{min:e,max:r,center:i,avg:o,minMaxRect:a}},t.minMaxCenterAvg3D=t=>{const e=new b.M(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),r=new b.M(Number.MIN_VALUE,Number.MIN_VALUE,Number.MIN_VALUE);let n=new b.M(0,0,0);t.forEach(t=>{e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),e.z=Math.max(e.z,t.z),r.x=Math.max(r.x,t.x),r.y=Math.max(r.y,t.y),r.z=Math.max(r.z,t.y),n.x+=t.x,n.y+=t.y,n.z+=t.z});const i=new b.M((e.x+r.x)/2,(e.y+r.y)/2,(e.z+r.z)/2),o=new b.M(n.x/t.length,n.y/t.length,n.z/t.length);return{min:e,max:r,center:i,avg:o}},t.roundRectRadiiToFullRadii=t=>t?1===t.length?[t[0]??0,t[0]??0,t[0]??0,t[0]??0]:2===t.length?[t[0]??0,t[1]??0,t[0]??0,t[1]??0]:3===t.length?[t[0]??0,t[1]??0,t[2]??0,t[1]??0]:t:[0,0,0,0],t.toArrayDirectionChange=t=>{if(!t||0===t.length||!t[0]||0===t[0].length)return[];const e=[],r=t[0].length,n=t.length;for(let i=0;i<r;i++){const r=[];for(let e=0;e<n;e++)r.push(t[e][i]);e.push(r)}return e},t.groupByMap=(t,e)=>t.reduce((t,r)=>{const n=e(r),i=t.get(n)||[];return i.push(r),t.set(n,i),t},new Map),t.groupByObject=(e,r)=>{const n=t.groupByMap(e,r);return Object.fromEntries(n)},t.toURLSearchParams=t=>{const e=new URLSearchParams;if("string"==typeof t)new URLSearchParams(t).forEach((t,r)=>{e.append(r,t)});else if("object"==typeof t){const r=t instanceof URLSearchParams?t.entries():Array.isArray(t)?t:Object.entries(t);for(const[t,n]of Array.from(r))Array.isArray(n)?n.forEach(r=>e.append(t,r)):e.append(t,n)}return e},t.stringJsonToKeyPairs=t=>Array.from(t.matchAll(/(\w+):\s*([^,}]+)/g)).map(t=>({key:t[1],value:t[2]}))}(g||(g={}));const _=d.T;var M=r(4297),x=r(3896),S=r(4642),k=r(2225);class P{constructor(t,e){this.simpleApplication=t,this.option=e,this._storage=new Map,this.setStoreSet(S.B,this.simpleApplication),this.setStoreSet(P,this),this.setStoreSet(e.constructor,e),this.setStoreSet(f.t,e),this.simProxyHandler=new h.e(this.simpleApplication,this,e)}get storage(){return this._storage}getSimAtomics(){const t=[];return Array.from(this.storage.entries()).forEach(([e,r])=>{t.push(...Array.from(Array.from(r.keys())).map(t=>new s.J({targetKeyType:e,originalType:t},this)))}),t}getSimConfig(t){return this.getSimAtomics().filter(e=>{const r=e?.getConfig(),n=_.flatArray(r?.symbol),i=_.flatArray(r?.scheme);return"symbol"==typeof t?t&&e&&n.includes(t):"string"==typeof t&&t&&e&&i.includes(t)})||[]}findSims(t){let e=[];return t&&(e=this.getSimAtomics().filter(e=>{let r=!1;const i=e.getConfig(),o=_.flatArray(i?.symbol).filter(n.O),a=_.flatArray(i?.scheme).filter(n.O);if("symbol"==typeof t)r=o.includes(t);else{const{scheme:n,type:i}=t;r=(!n||a.includes(n))&&(!i||e.type.targetKeyType===i)}return r})),e}findFirstSim(t){return this.findSims(t)[0]}findLastSim(t){return this.findSims(t).reverse()[0]}flatStoreSets(){return new Map(Array.from(this.storage.values()).map(t=>Array.from(t.entries())).flat())}getStoreSets(t){const e=this.storage.get(t);return(Array.from(e?.entries?.()??[])??[]).reverse().map(t=>({type:t[0],instance:t[1]}))}getStoreSet(t,e){const r=this.getStoreSets(t).find(t=>t.type===e);if(r?.instance)return r;{const r=e??t,n=this.flatStoreSets().get(r);return n&&this.setStoreSet(t,n,r),{type:r,instance:n}}}getStoreInstance(t,e){return this.getStoreSet(t,e)?.instance}getOrNewSim({target:t,originTypeTarget:e=t,newInstanceCarrier:r}){if(t){const n=this.getStoreSet(t,e);return n?.type&&!n?.instance?this.resolve({targetKey:t,target:e,newInstanceCarrier:r}):n?.instance}}setStoreSet(t,e,r=t){const n=this.storage.get(t)??new Map;n.set(r,e),this.storage.set(t,n)}registerStore(t,e){const r=this.storage.get(t)??new Map;e.forEach(t=>{const{type:e,value:n}="object"==typeof t?{type:t.constructor,value:t}:{type:t,value:void 0};r.has(e)||r.set(e,n)}),this.storage.set(t,r)}resolve({target:t,targetKey:e,newInstanceCarrier:r={newInstances:[],depth:0}}){const n=this.getStoreSet(e,t);if(n?.instance)return n.instance;if(this.storage.has(e)&&void 0===n?.instance){r.depth++;const i=this.newSim({target:n?.type??e,newInstanceCarrier:r,simCreateAfter:r=>{(0,o.Op)(n?.type??t??e)?.scope===o.v0.Singleton&&this.setStoreSet(e,r,t)}});return r.depth--,0===r.depth&&r.newInstances.forEach(t=>{this.callBindPostConstruct(t)}),(0,M.P)(i)&&i.onSimCreate(),i}const a=new i.C("SimNoSuch: no simple instance(resolve) name:"+e?.prototype?.constructor?.name+","+e);throw console.error(a),a}newSim({target:t,simCreateAfter:e,otherStorage:r,newInstanceCarrier:i}){const a=new t(...this.getParameterSim({target:t,otherStorage:r,newInstanceCarrier:i}));let s=this.proxy(a);const u=(0,o.Op)(t);return u?.proxy&&(Array.isArray(u.proxy)?u.proxy:[u.proxy]).filter(n.O).forEach(t=>{if("object"==typeof t)s=new Proxy(s,t);else{const e=(0,o.Op)(t);s=new Proxy(s,e?this.getOrNewSim({target:t}):this.newSim({target:t}))}}),i?.newInstances.push(s),e?.(s),(0,x.I)(s)&&s.onSimCreateProxyCompleted(s),s}callBindPostConstruct(t){(0,o.Dy)(t).forEach(e=>{t[e.property](...this.getParameterSim({target:t,targetKey:e.property}))})}async executeBindParameterSimPromise({target:t,targetKey:e,firstCheckMaker:r},n){let i=this.executeBindParameterSim({target:t,targetKey:e,firstCheckMaker:r},n);return i instanceof Promise&&(i=await i),i}executeBindParameterSim({target:t,targetKey:e,firstCheckMaker:r},n){const i=this.getParameterSim({target:t,targetKey:e,firstCheckMaker:r,otherStorage:n});if("object"==typeof t&&e){const r=t[e];return r?.bind(t)?.(...i)}if("function"==typeof t&&!e)return new t(...i)}getParameterSim({target:t,targetKey:e,firstCheckMaker:r,otherStorage:n,newInstanceCarrier:i}){const o=u.d.getParameterTypes(t,e);let a=[];const s=(0,c.Mq)(t,e);return a=o.map((o,a)=>{const u=s?.find(t=>t.index===a);if(!u?.config.disabled){for(const n of r??[]){const r=n({target:t,targetKey:e},o,a,u);if(void 0!==r)return r}if(u){const t=u.config;let e=n?.get(o);if(o===Array&&(t.type||t.scheme||t.symbol)){const e=[];return t.type&&e.push(...this.getStoreSets(t.type).map(e=>this.resolve({targetKey:t.type,target:e.type,newInstanceCarrier:i})).reverse()),t.symbol&&e.push(...this.getSimConfig(t.symbol).map(t=>t.getValue({newInstanceCarrier:i}))),t.scheme&&e.push(...this.getSimConfig(t.scheme).map(t=>t.getValue({newInstanceCarrier:i}))),e}if(t.situationType&&n){const r=n.get(c.tr),i=n.get(c._t);if(t.situationType===i?.situationType)e=i.data;else if(r&&r.length>0){const n=r.find(e=>void 0!==e.index?e.situationType===t.situationType&&e.index===a:e.situationType===t.situationType);n&&(e=n.data)}}if(!e){const r=t.symbol?this.findLastSim(t.symbol):this.findLastSim({scheme:t.scheme,type:t.type});try{e=r?this.resolve({targetKey:r?.type.targetKeyType??o,newInstanceCarrier:i}):this.resolve({targetKey:o,newInstanceCarrier:i})}catch(e){if(t.optional)return;throw e}}return t.applyProxy&&e&&(e=t.applyProxy.param?new Proxy(e,new t.applyProxy.type(...t.applyProxy.param)):new Proxy(e,new t.applyProxy.type)),e}return o?n?.get(o)??this.resolve({targetKey:o,newInstanceCarrier:i}):void 0}}),a}proxy(t){try{if(!(0,k.j1)(t)&&null!==t&&(0,o.Op)(t)&&"object"==typeof t&&!("isProxy"in t)){for(const e in t)(0,k.j1)(t,e)||(t[e]=this.proxy(t[e]));a.B.ownPropertyNames(t).filter(e=>"function"==typeof t[e]).filter(e=>!(0,k.j1)(t,e)).forEach(e=>{t[e]=new Proxy(t[e],this.simProxyHandler)}),this.simProxyHandler&&(t=new Proxy(t,this.simProxyHandler))}return this.option.proxy&&(t=this.option.proxy.onAfterProxy(t)),t}catch(t){throw console.log("sim proxy error"),t}}run(t=new Map){for(const[e,r]of Array.from(t.entries()))"object"==typeof e?(0,o.tS)(e,r):(0,o.tS)({type:e},r);const e=_.flatArray(this.option.container).filter(n.O);Array.from(o.hm.entries()).forEach(([t,r])=>{const i=_.flatArray((0,o.Op)(t)?.container).filter(n.O);let a=!1;a=e.length<=0&&i.length<=0||i.length<=0||e.some(t=>i.includes(t)),this.registerStore(t,r)}),this.callBindPostConstruct(this),this.getSimAtomics().forEach(t=>{t.getConfig()?.autoCreate&&t.getValue()})}}},8537:(t,e,r)=>{r.d(e,{W$:()=>n,v0:()=>s}),r(6404);var n,i=r(5053),o=r(7441);!function(t){t.ERROR_OBJECT="SIMPLE_BOOT_CORE://ExceptionHandler/ERROR_OBJECT",t.PARAMETER="SIMPLE_BOOT_CORE://ExceptionHandler/PARAMETER"}(n||(n={}));const a=Symbol("ExceptionHandler"),s=(t,e,r=[])=>{let n=((t,e)=>{const r=(t=>(null!=t&&"object"==typeof t&&(t=t.constructor),i.d.getMetadata(a,t)))(t),n=r?.filter(t=>void 0===t.config.type),s=r?.filter(t=>o.B.isPrototypeOfTarget(t.config.type,e)),u=s?.sort((t,r)=>{const n=o.B.prototypeOfDepth(e,t.config.type),i=o.B.prototypeOfDepth(e,r.config.type);return n.length-i.length});return(u??[]).concat(...n??[])})(t,e);return n=n?.filter(t=>!r.includes(t.method)),n&&n.length>0?n[0]:void 0}},9212:(t,e,r)=>{r.d(e,{J:()=>o});var n=r(742),i=r(5053);class o{constructor(t,e,r){this.type=t,this.simstanceManager=e,this.config=r,this.value=t.value}getConfig(t=n.wB){return i.d.getMetadata(t,this.type.originalType)}getConfigs(){return i.d.getMetadatas(this.type.originalType)}getValue(t){return t?.refresh&&(this.value=void 0),this.value||(this.value=this.simstanceManager.getOrNewSim({target:this.type.targetKeyType,originTypeTarget:this.type.originalType,newInstanceCarrier:t?.newInstanceCarrier})),this.value}}},9492:(t,e,r)=>{r.d(e,{O:()=>a});var n={d:(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},i={};n.d(i,{O:()=>o});const o=t=>null!=t,a=i.O}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return i[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const s=a(4642).B;var u=n(3587);const c=t(import.meta.url)("http"),f=t(import.meta.url)("https");var h=n(3500),l=n(9108),y=n(229),p=n(7953),d=n(1946),g={5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(P(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(E(n)&&!P(r=n.call(t)))return r;if(E(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function T(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!E(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!E(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!A(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!T(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d},6404:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=N(t,i);if(void 0!==r){var n=r.call(t,e);if(P(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(E(n)&&!P(r=n.call(t)))return r;if(E(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function T(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!E(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!E(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!A(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!T(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))},7441:(t,e,r)=>{r.d(e,{B:()=>f});var n={7855:(t,e,r)=>{r.d(e,{O:()=>n});const n=t=>null!=t},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{B:()=>s});var s,u=o(7855),c=o(9284);!function(t){let e,r;t.constructorName=t=>t&&t.constructor&&t.constructor.name?t.constructor.name:t&&t.name?t.name:void 0,t.deepCopy=t=>t instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(t.entries())))):t instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(t.values())))):c.U.isNullOrUndefined(t)?t:JSON.parse(JSON.stringify(t)),t.allProtoTypeName=(e,r)=>{let n=[];if(e){const i=Object.getPrototypeOf(e);i&&(n=Object.keys(i)||[]).length>0&&(n=n.concat(t.allProtoTypeName(i,r)))}let i=n.filter(t=>"constructor"!==t);if(r&&e){const t=Object.getPrototypeOf(e);i=i.filter(e=>r(e,t?.[e]))}return i},t.uniqueKeys=t=>Array.from(new Set((Array.isArray(t)?t:[t]).flatMap(t=>Object.keys(t)))),t.ownPropertyNames=t=>{const e=[];if(t)if(t.prototype)e.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(t)));else{const r=Object.getPrototypeOf(t);e.push(...Object.getOwnPropertyNames(r))}return e.filter(t=>"constructor"!==t)},t.protoTypeName=t=>{let e=[];if(t){const r=Object.getPrototypeOf(t);e=Object.keys(r)||[]}return e.filter(t=>"constructor"!==t)},t.protoTypes=t=>{const e=[];if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.push(r[t])})}return e},t.seal=t=>Object.seal(t),t.isPrototypeOfTarget=(t,e)=>!(!t||!e)&&Object.prototype.isPrototypeOf.call(t.prototype,e),t.prototypeOfDepth=(t,e)=>{let r=t;const n=[];if(e)do{if(r=Object.getPrototypeOf(r),r?.constructor===e)break;n.push(r)}while(r);return n},t.allProtoType=t=>{const e=(t,r=[])=>(t.prototype&&(r.push(t),e(Object.getPrototypeOf(t),r)),r);return e(t)},t.prototypeOf=t=>Object.getPrototypeOf(t),t.prototypeKeyMap=t=>{const e=new Map;if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.set(r[t],t)})}return e},t.prototypeName=(e,r)=>t.prototypeKeyMap(e).get(r),t.pickRandomKey=t=>{const e=Object.keys(t);return e[Math.floor(Math.random()*e.length)]},t.pickRandomValue=t=>{const e=Object.keys(t);return t[e[Math.floor(Math.random()*e.length)]]},t.pickRandomKeyValue=t=>{const e=Object.keys(t),r=e[Math.floor(Math.random()*e.length)];return{key:r,value:t[r]}},t.keyValues=t=>Object.keys(t).map(e=>({key:e,value:t[e]})),t.entries=t=>Object.entries(t),t.values=t=>Object.values(t),t.keys=t=>Object.keys(t),t.keyLength=e=>t.keys(e).length,t.toDeleteUndefinedAndNull=(t,e)=>{const r=t=>Array.isArray(t)?t.filter(t=>null!=t).map(r):t&&"object"==typeof t?e?.deep?Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e).map(([t,e])=>[t,r(e)])):Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e)):t;return r(t)},function(t){t.isFunctionScript=t=>t.trim().startsWith("function"),t.isArrowFunctionScript=t=>/^\s*\([^)]*\)\s*=>/.test(t),t.toOptionalChainPath=e=>{if(!e)return"";if(e.trim().startsWith("{")&&e.trim().endsWith("}"))return e;if(t.isFunctionScript(e)||t.isArrowFunctionScript(e))return e;if(e.includes(" ? ")&&e.includes(" : ")){const t=e.split(/(\s+\?\s+|\s+:\s+)/).map((t,e)=>{if(0===e){const e=t.match(/[^?.[\]]+|\[[^\]]*\]/g);if(e&&e.length>1)return e.join("?.")}return t});return t.join("")}if(e.includes("(")){const r=[];let n=e,i=0;const o=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let a;for(;null!==(a=o.exec(e));){const e=a[0],o=a[1],s=a[2],u=`__FUNC_CALL_${i}__`,c=`${o}?.(${s?t.toOptionalChainPath(s):""})`;r.push({original:e,processed:c,placeholder:u}),n=n.replace(e,u),i++}const s=n.match(/[^?.[\]]+|\[[^\]]*\]/g);let u="";u=s&&s.length>1?s.join("?."):n;for(const t of r)u=u.replace(t.placeholder,t.processed);return u}const r=e.match(/[^?.[\]]+|\[[^\]]*\]/g);return r?r.join("?."):e},t.removeOptionalChainOperator=t=>t?t.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const e=t=>{const e=[],r=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let n,i=0;const o=t.match(r);if(o&&(o?.index??0)>0)e.push(t.substring(0,o.index)),i=o.index;else if(!o&&t.length>0)return e.push(t),e;for(;null!==(n=r.exec(t));){if(n.index>i){const r=t.substring(i,n.index);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}n[1]?e.push(n[1]):n[2]?e.push(parseInt(n[2],10)):n[4]&&e.push(n[4]),i=r.lastIndex}if(i<t.length){const r=t.substring(i);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}return e};t.to=e=>{const r={};return Object.entries(e).forEach(([e,n])=>{t.set(r,e,n)}),r},t.set=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(t===i.length-1)o[e]=n;else{const r=i[t+1];if("number"==typeof r){if(Array.isArray(o[e])||(o[e]=[]),Array.isArray(o[e]))for(;o[e].length<=r;)o[e].push({})}else"object"==typeof o[e]&&null!==o[e]||(o[e]={});o=o[e]}}},t.get=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(null==o)return n;if("object"!=typeof o||null===o||!(e in o))return n;o=o[e]}return o},t.deletePath=(t,r)=>{const n=e(r);if(0===n.length)return!1;let i=t;for(let t=0;t<n.length-1;t++){const e=n[t];if(null==i)return!1;if("object"!=typeof i||null===i||!(e in i))return!1;i=i[e]}const o=n[n.length-1];return null!==i&&"object"==typeof i&&o in i&&(Array.isArray(i)&&"number"==typeof o?i.splice(o,1):delete i[o],!0)},t.availablePath=(t,e)=>{const r=[],n=t=>"number"==typeof t?"["+t+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)?t:"['"+t+"']",i=(t,o,a)=>{null!==t&&"object"==typeof t&&(a.has(t)||(a.add(t),Array.isArray(t)?t.forEach((t,s)=>{const u=n(s),c=o?`${o}${u}`:u;e&&!e(c,t)||r.push(c),i(t,c,a)}):Object.keys(t).forEach(s=>{const u=n(s);let c;c=u.startsWith("[")?o?`${o}${u}`:u:o?`${o}.${u}`:u,e&&!e(c,t[s])||r.push(c),i(t[s],c,a)})))};return i(t,"",new Set),r},t.detectPathFromScript=(t,e)=>{const r=new Set;class n{constructor(t){this.prefix=t,this.usingVars=r}set(t,e,r,n){return!0}get(t,e,r){if("symbol"==typeof e)return this.createSafeProxy(this.prefix);let n;const i=String(e);return n=isNaN(Number(i))?this.prefix?`${this.prefix}.${i}`:i:this.prefix?`${this.prefix}[${i}]`:i,n&&this.usingVars.add(n),this.createSafeProxy(n)}apply(t,e,r){return this.createSafeProxy(this.prefix)}createSafeProxy(t){const e=new n(t);return new Proxy(()=>{},{get:(r,n,i)=>n===Symbol.toPrimitive?()=>"":"valueOf"===n?()=>e.createSafeProxy(t):"toString"===n?()=>"":e.get(r,n,i),set:e.set.bind(e),apply:e.apply.bind(e)})}}const i={window:new Proxy(()=>{},new n("window")),document:new Proxy(()=>{},new n("document")),console:new Proxy(()=>{},new n("console"))},o=new Proxy(()=>{},new n("this"));try{new Function("window","document","console",`"use strict"; ${t}; `).call(o,i.window,i.document,i.console)}catch(t){console.error("detectPathFromScript error:",t)}if(e?.excludeThis){const t=new Set;return r.forEach(e=>{"this"!==e&&(e.startsWith("this.")?t.add(e.substring(5)):t.add(e))}),t}return r}}(e=t.Path||(t.Path={})),t.toDeleteKey=(e,r)=>{const n={...e};return t.deleteKey(n,r),n},t.deleteKey=(t,e)=>{e.filter(t=>(0,u.O)(t)).forEach(e=>{delete t[e]})},function(t){t.evalReturn=(e,r={})=>{let n="",i="";return"object"==typeof e?(n=e.bodyScript,i=e.returnScript):i=e,t.eval(`${n}; return ${i} `,r)},t.eval=(t,e={})=>{try{return Function(`"use strict"; ${t} `).bind(e)()}catch(e){return console.error("eval error",e),void console.error(t)}}}(r=t.Script||(t.Script={}))}(s||(s={}));const f=a.B}},v={};function w(t){var e=v[t];if(void 0!==e)return e.exports;var r=v[t]={exports:{}};return g[t](r,r.exports,w),r.exports}w.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return w.d(e,{a:e}),e},w.d=(t,e)=>{for(var r in e)w.o(e,r)&&!w.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},w.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var b={};w.d(b,{AR:()=>P,SX:()=>x,W$:()=>m,dM:()=>k,ey:()=>S,v0:()=>j}),w(6404);var m,O=w(5053),_=w(7441);!function(t){t.ERROR_OBJECT="SIMPLE_BOOT_CORE://ExceptionHandler/ERROR_OBJECT",t.PARAMETER="SIMPLE_BOOT_CORE://ExceptionHandler/PARAMETER"}(m||(m={}));const M=Symbol("ExceptionHandler"),x=(t={})=>(e,r,n)=>{const i=O.d.getMetadata(M,e.constructor)??[],o=e[r];i.push({propertyKey:r,method:o,config:t}),O.d.defineMetadata(M,i,e.constructor),O.d.defineMetadata(M,t,e,r)},S=(t,e)=>O.d.getMetadata(M,t,e),k=t=>(null!=t&&"object"==typeof t&&(t=t.constructor),O.d.getMetadata(M,t)),P=(t,e)=>{const r=k(t),n=r?.filter(t=>void 0===t.config.type),i=r?.filter(t=>_.B.isPrototypeOfTarget(t.config.type,e)),o=i?.sort((t,r)=>{const n=_.B.prototypeOfDepth(e,t.config.type),i=_.B.prototypeOfDepth(e,r.config.type);return n.length-i.length});return(o??[]).concat(...n??[])},j=(t,e,r=[])=>{let n=P(t,e);return n=n?.filter(t=>!r.includes(t.method)),n&&n.length>0?n[0]:void 0},R=b.W$,A=b.v0;var E={5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(P(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(E(n)&&!P(r=n.call(t)))return r;if(E(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function T(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!E(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!E(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!A(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!T(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d},6404:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=N(t,i);if(void 0!==r){var n=r.call(t,e);if(P(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(E(n)&&!P(r=n.call(t)))return r;if(E(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function T(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!E(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!E(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!A(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!T(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},T={};function z(t){var e=T[t];if(void 0!==e)return e.exports;var r=T[t]={exports:{}};return E[t](r,r.exports,z),r.exports}z.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return z.d(e,{a:e}),e},z.d=(t,e)=>{for(var r in e)z.o(e,r)&&!z.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},z.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var N={};z.d(N,{Mq:()=>D,Qp:()=>C,_t:()=>B,tr:()=>L,y_:()=>K}),z(6404);var C,F=z(5053);(C||(C={})).INDEX="SIMPLE_BOOT_CORE://Inject/INDEX";class B{constructor({situationType:t,data:e,index:r}){this.situationType=t,this.data=e,this.index=r}}class L{constructor(t){this.containers=[],t&&this.containers.push(...t)}push(...t){this.containers.push(...t)}get length(){return this.containers.length}find(t,e){return this.containers.find(t)}}const I=Symbol("Inject"),U=(t,e,r,n)=>{if(r&&"object"==typeof e){const i=e;e=e.constructor;const o=Reflect.getOwnMetadata(I,e,r)||[],a=F.d.getParameterTypes(i,r)[n];o.push({index:n,config:t,propertyKey:r,type:a}),F.d.defineMetadata(I,o,e,r)}else if(!r||"function"==typeof e){const r=F.d.getMetadata(I,e)||[],i=F.d.getParameterTypes(e)[n];r.push({index:n,config:t,type:i}),F.d.defineMetadata(I,r,e)}};function K(t,e,r){if(!e||void 0===r)return(e,r,n)=>{U(t,e,r,n)};U({},t,e,r)}const D=(t,e)=>(null!=t&&void 0!==t&&"object"==typeof t&&(t=t.constructor),e?Reflect.getOwnMetadata(I,t,e):F.d.getMetadata(I,t)??[]),W=N._t,H=N.tr,q=N.Mq;var $=n(5053),V=n(6377),X=n(1022),J=n(9434),Y={420:(t,e,r)=>{r.d(e,{e:()=>i});var n=r(3966);class i extends n.W{constructor(t,e,r,n){super(t,e,n),this.propertyKeys=r}}},532:(t,e,r)=>{r.d(e,{r:()=>c});var n={3056:(t,e,r)=>{r.d(e,{$:()=>n});var n,i=r(9284);!function(t){t.deleteEnter=t=>t.replace(/\r?\n/g,""),t.pickEmoji=t=>t.match(/[\p{Emoji}]/gu)??[],t.regexExec=(t,e)=>{let r=t.exec(e);const n=[];for(;r;)n.push(r),r=t.exec(r.input);return n},t.regexExecArrayReplace=(e,r,n)=>((Array.isArray(r)?r:t.regexExec(r,e)).reverse().forEach(t=>{const r="string"==typeof n?n:n(t);e=e.substr(0,t.index)+e.substr(t.index).replace(t[0],r)}),e),t.escapeSpecialCharacterRegExp=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.trim=t=>t.trim(),t.rsubString=(t,e)=>t.substring(t.length-e,t.length),t.lsubString=(t,e)=>t.substring(0,e),t.lpad=(e,r,n)=>{for(;r>n.length;)n=e+n;return t.rsubString(n,r)},t.rpad=(e,r,n)=>{for(;r>n.length;)n+=e;return t.lsubString(n,r)},t.lappend=(t,e)=>{let r="",n=0;for(;n++<t;)r+=e;return r},t.unescape=t=>{if(!t)return"";const e={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿","#x27":"'"};return t.replace(/&((?:(?:[a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});?)+);/gi,(t,r)=>r.toLowerCase().split(";").map(r=>r in e?e[r]:t).join(""))},t.executeExpression=(t,e)=>t.replace(/\${([^{}]*)}/g,(t,r)=>String(e[r]??t)),t.ellipsis=(t,e)=>t.length>e?`${t.slice(0,e)}...`:t,t.appendPostposition=(t,{vowel:e,consonant:r})=>`${t}${i.U.lastConsonantLetter(t)?r:e}`}(n||(n={}))},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{r:()=>s});var s,u=o(3056);!function(t){let e,r;t.bindExpression=(t,e)=>(t??"").replace(/\$\{([\s\S.]*?)\}/g,(t,r)=>{const[n,i]=r.split(":"),o=e[n];return o?"function"==typeof o?o(e[i]):o:""}),function(t){t.isExpression=t=>/[$#]\{([\s\S.]*?)\}[$#]/g.test(t??""),t.expressionGroups=t=>u.$.regexExec(/[$#]\{([\s\S.]*?)\}[$#]/g,t??"")}(e=t.Group||(t.Group={})),function(t){t.pathNameData=(t,e)=>{const r=t.split("/"),n=e.split("/");if(r.length!==n.length)return;const i={};for(let t=0;t<n.length;t++){const e=n[t],o=r[t],a=/^\{(.+)\}$/g.exec(e);if(!a){if(e!==o)return;continue}const[s,u]=a[1].split(":");if(u&&!new RegExp(u).test(o))return;i[s]=o}return i}}(r=t.Path||(t.Path={}))}(s||(s={}));const c=a.r},742:(t,e,r)=>{r.d(e,{wB:()=>a}),r(6404),r(5053);var n,i,o={d:(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};o.d({},{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={})),function(t){t.Singleton="Singleton",t.Transient="Transient"}(i||(i={})),new Map,new Set;const a=Symbol("Sim");Symbol("PostConstruct")},970:(t,e,r)=>{r.d(e,{cI:()=>o});var n=r(5053);const i=Symbol("Router"),o=t=>{null!=t&&"object"==typeof t&&(t=t.constructor);try{return n.d.getMetadata(i,t)}catch(t){}};Symbol("RouteMetadataKey")},3966:(t,e,r)=>{r.d(e,{W:()=>n});class n{constructor(t,e,r){this.message=t,this.name=e,this.stack=r}}},5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(P(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(E(n)&&!P(r=n.call(t)))return r;if(E(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function T(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!E(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!E(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!A(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!T(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d},5846:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(5053);const i=Symbol("Injection"),o=(t,e)=>n.d.getMetadata(i,t,e)},6404:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=N(t,i);if(void 0!==r){var n=r.call(t,e);if(P(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(E(n)&&!P(r=n.call(t)))return r;if(E(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function T(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!E(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!E(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!A(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!T(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))},9212:(t,e,r)=>{r.d(e,{J:()=>o});var n=r(742),i=r(5053);class o{constructor(t,e,r){this.type=t,this.simstanceManager=e,this.config=r,this.value=t.value}getConfig(t=n.wB){return i.d.getMetadata(t,this.type.originalType)}getConfigs(){return i.d.getMetadatas(this.type.originalType)}getValue(t){return t?.refresh&&(this.value=void 0),this.value||(this.value=this.simstanceManager.getOrNewSim({target:this.type.targetKeyType,originTypeTarget:this.type.originalType,newInstanceCarrier:t?.newInstanceCarrier})),this.value}}}},G={};function Z(t){var e=G[t];if(void 0!==e)return e.exports;var r=G[t]={exports:{}};return Y[t](r,r.exports,Z),r.exports}Z.d=(t,e)=>{for(var r in e)Z.o(e,r)&&!Z.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},Z.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Q={};Z.d(Q,{i:()=>ot});var tt=Z(9212),et=Z(5846),rt=Z(420),nt=Z(970),it=Z(532);class ot{get path(){return this._path}set path(t){this._path=t}get data(){return this._data}set data(t){this._data=t}get intent(){return this._intent}set intent(t){this._intent=t}get propertyKeys(){return this._propertyKeys}set propertyKeys(t){this._propertyKeys=t}get pathData(){return this._pathData}set pathData(t){this._pathData=t}constructor(t,e,r,n=[]){this.simstanceManager=t,this.router=e,this.module=r,this.routerChains=n}getRouterPath(t=""){return this.getRouterPaths().map(t=>t??"").join(t)}getRouterPaths(){return this.routerChains.map(t=>(0,nt.cI)(t instanceof tt.J?t.type.targetKeyType:t)?.path)}getRouterPathData(t){return it.r.Path.pathNameData(t,this.getRouterPath())}getModuleInstance(t,e=!0){const r=this.simstanceManager.getOrNewSim({target:this.module?.targetKeyType,originTypeTarget:this.module?.originalType});if(t&&this.propertyKeys&&this.propertyKeys.includes(t)){let n=r[t];return e&&"boolean"==typeof e?n=n.bind(r):e&&"object"==typeof e&&(n=n.bind(e)),n}return r}executeModuleProperty(t,...e){const r=this.getModuleInstance();if(t){if((0,et.A)(r,t)){const n=new Map;return e.forEach(t=>n.set(t.constructor,t)),this.simstanceManager.executeBindParameterSim({target:r,targetKey:t},n)}if(r[t])return r[t]?.(...e);throw new rt.e(`${t.toString()} noSuch`,t.toString(),t)}}get firstRouteChain(){return this.routerChains[0]}get firstRouteChainValue(){return this.firstRouteChain.getValue()}get lastRouteChain(){return this.routerChains[this.routerChains.length-1]}get lastRouteChainValue(){return this.lastRouteChain.getValue()}hasActivateInLastRoute(t){return!0===this.lastRouteChainValue?.hasActivate(t)}get queryParams(){if(this.intent)return this.intent.queryParams}get queryParamsAfterDecodeURI(){if(this.intent)return this.intent.queryParamsAfterDecodeURI}}const at=Q.i;var st=n(2188),ut={5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(P(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(E(n)&&!P(r=n.call(t)))return r;if(E(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function T(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!E(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!E(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!A(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!T(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d}},ct={};function ft(t){var e=ct[t];if(void 0!==e)return e.exports;var r=ct[t]={exports:{}};return ut[t](r,r.exports,ft),r.exports}ft.d=(t,e)=>{for(var r in e)ft.o(e,r)&&!ft.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},ft.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var ht={};ft.d(ht,{BR:()=>xt,Hl:()=>pt,Lu:()=>_t,OH:()=>vt,QL:()=>bt,aK:()=>mt,by:()=>wt,nv:()=>dt,q7:()=>Mt,xh:()=>Ot});var lt=ft(5053);const yt=Symbol("ValidMetadataKey"),pt=(t,e,r)=>{if(e&&"object"==typeof t){t=t.constructor;const n=Reflect.getOwnMetadata(yt,t,e)||[];n.push(r),Reflect.defineMetadata(yt,n,t,e)}else if(!e||"function"==typeof t){const e=Reflect.getOwnMetadata(yt,t)||[];e.push(r),Reflect.defineMetadata(yt,e,t)}},dt=(t,e)=>(null!=t&&"object"==typeof t&&(t=t.constructor),e?Reflect.getOwnMetadata(yt,t,e)??[]:lt.d.getMetadata(yt,t)??[]),gt=Symbol("ValidationMetadataKey"),vt=t=>(e,r)=>{const n=lt.d.getMetadata(gt,e.constructor)??[];n.push({propertyKey:r,validator:t}),lt.d.defineMetadata(gt,n,e.constructor),lt.d.defineMetadata(gt,t,e,r)},wt=(t,e)=>lt.d.getMetadata(gt,t,e),bt=t=>(null!=t&&"object"==typeof t&&(t=t.constructor),lt.d.getMetadata(gt,t)??[]),mt=t=>(e,...r)=>t.test(e),Ot=(t,...e)=>null!==t,_t=(t,...e)=>null!=t&&("string"==typeof t&&t.length>0||Array.isArray(t)&&t.length>0),Mt=t=>xt(t).filter(t=>!t.valid),xt=t=>{const e=bt(t),r=[];return e.forEach(t=>{r.push({name:t.propertyKey,valid:t.validator(t.propertyKey,t),message:""})}),r},St=ht.q7,kt=ht.nv;var Pt={d:(t,e)=>{for(var r in e)Pt.o(e,r)&&!Pt.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},jt={};Pt.d(jt,{E:()=>Rt});class Rt{constructor(t){this.result=t}toString(){return this.result?JSON.stringify(this.result):"undefined"}get message(){return this.toString()}}const At=jt.E;var Et=n(758),Tt={5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(P(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(E(n)&&!P(r=n.call(t)))return r;if(E(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function T(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!E(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!E(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!A(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!T(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d}},zt={};function Nt(t){var e=zt[t];if(void 0!==e)return e.exports;var r=zt[t]={exports:{}};return Tt[t](r,r.exports,Nt),r.exports}Nt.d=(t,e)=>{for(var r in e)Nt.o(e,r)&&!Nt.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},Nt.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Ct={};Nt.d(Ct,{Ix:()=>It,X5:()=>Ht,aM:()=>Wt,cI:()=>Ut,qh:()=>Dt,r3:()=>Lt,sP:()=>Bt,yL:()=>Kt});var Ft=Nt(5053);const Bt=Symbol("Router"),Lt=(t,e)=>{Ht(e)?.forEach(r=>{t.route=t.route??{};const n=Array.isArray(r.config.path)?r.config.path:[r.config.path];for(const i of n)if(t.route[i]){const e=t.route[i];e.propertyKeys.push(r.propertyKey),e.filters=e.filters??[],Array.isArray(r.config.filters)?e.filters.push(...r.config.filters):r.config.filters&&e.filters.push(r.config.filters)}else t.route[i]={target:e,propertyKeys:[r.propertyKey],filters:r.config.filters}}),Ft.d.defineMetadata(Bt,t,e)};function It(t){if("function"!=typeof t)return e=>{t.path=t.path??"",Lt(t,e)};Lt({path:""},t)}const Ut=t=>{null!=t&&"object"==typeof t&&(t=t.constructor);try{return Ft.d.getMetadata(Bt,t)}catch(t){}},Kt=Symbol("RouteMetadataKey"),Dt=t=>(e,r,n)=>{const i=Ft.d.getMetadata(Kt,e.constructor)??[],o=e[r];i.push({propertyKey:r,method:o,config:t}),Ft.d.defineMetadata(Kt,i,e.constructor),Ft.d.defineMetadata(Kt,t,e,r)},Wt=(t,e)=>Ft.d.getMetadata(Kt,t,e),Ht=t=>(null!=t&&"object"==typeof t&&(t=t.constructor),Ft.d.getMetadata(Kt,t)),qt=Ct.aM;var $t=n(7016),Vt=n(5118),Xt=n(1262),Jt=n(5797);class Yt extends s{constructor(t=new u.F){super(t),this.option=t,this.sessionManager=new Xt.C(this.option)}run(t){const e=super.run(t),r=[...this.option.closeEndPoints??[],...this.option.errorEndPoints??[],...this.option.requestEndPoints??[],...this.option.filters??[]];return Promise.all(r.map(t=>"function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t).map(t=>t.onInit(this))).then(t=>{this.startServer()}),e}startServer(){if(this.option.serverOption&&"key"in this.option.serverOption&&"cert"in this.option.serverOption){this.server=new f.Server(this.option.serverOption);const t=new c.Server;t.on("request",(t,e)=>{e.writeHead(301,{Location:`https://${t.headers.host}${t.url}`}),e.end()}),t.listen(80,this.option.listen.hostname,()=>{console.log("HTTP redirect server running on port 80")})}else this.option.serverOption?this.server=new c.Server(this.option.serverOption):this.server=new c.Server;this.server.on("request",async(t,e)=>{const r=this.option.transactionManagerFactory?await this.option.transactionManagerFactory():void 0;e.on("close",async()=>{if(this.option.closeEndPoints)for(const t of this.option.closeEndPoints)try{const e="function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t,r=e?.endPoint(n,this);r instanceof Promise&&await r}catch(t){}n.resIsDone()||n.resEnd()}),e.on("error",async()=>{if(this.option.errorEndPoints)for(const t of this.option.errorEndPoints)try{const e="function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t,r=e?.endPoint(n,this);r instanceof Promise&&await r}catch(t){}n.resIsDone()||n.resEnd()});const n=new h.z(t,e,{sessionManager:this.sessionManager,option:this.option});if(n.resSetHeader(p.L.Server,"simple-boot-http-server"),!n.reqCookieGet(this.option.sessionOption.key)){const t=await this.sessionManager.session();n.resSetHeader(p.L.SetCookie,`${this.option.sessionOption.key}=${t.uuid}; Path=/; HttpOnly`)}const i=new Map;i.set(h.z,n),i.set(c.IncomingMessage,t),i.set(c.ServerResponse,e);try{if(r?.try(),this.option.requestEndPoints)for(const t of this.option.requestEndPoints)try{const e="function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t;e?.endPoint(n,this)}catch(t){}const t={carrier:new Map,filters:[]};for(let e=0;this.option.filters&&e<this.option.filters.length;e++){const r=this.option.filters[e],i="function"==typeof r?this.simstanceManager.getOrNewSim({target:r}):r;let o=!0;if(i?.proceedBefore&&(o=await i.proceedBefore({rr:n,app:this,carrier:t.carrier}),t.filters.push({filter:i,sw:o})),!o)break}if(!n.resIsDone()){const t=await super.routing(n.reqIntent);i.set(at,t);const e=t?.getModuleInstance?.();let o=[];if(t&&e){if(t.propertyKeys){const r=t.propertyKeys?.map(t=>({propertyKey:t,config:(0,l.Yu)(e,t)}));o.push(...r??[])}else o.push(...(0,l.Fz)(e).filter(t=>!qt(e,t.propertyKey))??[]);if(n.reqMethod()?.toUpperCase()===Vt.y.OPTIONS.toUpperCase()&&(n.resSetHeader(p.L.Allow,o.map(t=>t.config.method).join(", ")),n.resStatusCode(y.t.Ok)),o=o.filter(t=>t&&t.propertyKey&&t.config&&n.reqMethod()?.toUpperCase()===t.config.method.toUpperCase()),o.sort((t,e)=>(e.config?.req?.contentType?.length??0)+(e.config?.req?.accept?.length??0)-((t.config?.req?.contentType?.length??0)+(t.config?.req?.accept?.length??0))),o=o.filter(t=>!t.config?.req?.contentType||!!t.config?.req?.contentType?.find(t=>n.reqHasContentTypeHeader(t))).filter(t=>!t.config?.req?.accept||!!t.config?.req?.accept?.find(t=>n.reqHasAcceptHeader(t))),o[0]){const t=o[0],a=$.d.getParameterTypes(e,t.propertyKey),s=q(e,t.propertyKey),u=kt(e,t.propertyKey);if(s){const t=s.find(t=>t.config?.situationType===l.cr.REQ_JSON_BODY),e=s.find(t=>t.config?.situationType===l.cr.REQ_FORM_URL_BODY),o=s.find(t=>t.config?.situationType===Jt.Q.TransactionManager),a=new H;if(t){let e=await n.reqBodyJsonData();if(t.type&&(e=Object.assign(new t.type,e)),u.includes(t.index)){const t=St(e);if((t?.length??0)>0)throw new At(t)}a.push(new W({situationType:l.cr.REQ_JSON_BODY,data:e}))}if(e){let t=await n.reqBodyFormUrlData();if(e.type&&(t=Object.assign(new e.type,t)),u.includes(e.index)){const e=St(t);if((e?.length??0)>0)throw new At(e)}a.push(new W({situationType:l.cr.REQ_FORM_URL_BODY,data:t}))}if(o&&o.type&&r&&r.hasTransaction(o.type)){let t=await r.getTransaction(o.type);t&&(t=await t.try(o.config.argument),a.push(new W({situationType:Jt.Q.TransactionManager,data:t,index:o.index})))}a.length&&i.set(H,a)}for(const t of a)t===V.s?i.set(V.s,await n.reqBodyReqFormUrlBody()):t===X.D?i.set(X.D,await n.reqBodyReqJsonBody()):t===$t.URLSearchParams?i.set($t.URLSearchParams,n.reqUrlSearchParams):t===st.B?i.set(st.B,n.reqBodyMultipartFormData()):t===J.E&&i.set(J.E,n.reqHeaderObj);let c=await this.simstanceManager.executeBindParameterSimPromise({target:e,targetKey:t.propertyKey},i);if(t.config?.resolver){const e="function"==typeof t.config.resolver?this.simstanceManager.getOrNewSim({target:t.config.resolver}):t.config.resolver;c=await(e?.resolve?.(c,n))}const f=t.config?.res?.status??y.t.Ok,h=t.config?.res?.header??{};t.config?.res?.contentType&&(h[p.L.ContentType]=t.config?.res?.contentType),((t.config?.res?.contentType?.toLowerCase().indexOf(d.K.ApplicationJson.toLowerCase())??-1)>-1||c&&"object"==typeof c)&&(c=JSON.stringify(c)),n.resSetHeaders(h),n.resSetStatusCode(f),n.resWrite(c)}}if(this.option.noSuchRouteEndPointMappingThrow&&o.length<=0&&n.reqMethod()?.toUpperCase()!==Vt.y.OPTIONS)throw this.option.noSuchRouteEndPointMappingThrow(n)}for(const e of t.filters.reverse())if(e.filter?.proceedAfter&&!await e.filter.proceedAfter({rr:n,app:this,before:e.sw,carrier:t.carrier}))break}catch(t){r?.catch(t),n.resStatusCode(t instanceof Et.j?t.status:y.t.InternalServerError);const e="function"==typeof this.option.globalAdvice?this.simstanceManager.getOrNewSim(this.option.globalAdvice):this.option.globalAdvice;if(!e)return void n.resEnd();t&&"object"==typeof t&&(i.set(t.constructor,t),i.set(W,new W({situationType:R.ERROR_OBJECT,data:t})));const o=A(e,t);o&&await this.simstanceManager.executeBindParameterSimPromise({target:e,targetKey:o.propertyKey},i)}finally{r?.finally()}n.resIsDone()||n.resEnd()}),this.server.listen(this.option.listen.port,this.option.listen.hostname,this.option.listen.backlog,()=>{this.option.listen.listeningListener?.(this,this.server)})}}export{Yt as SimpleBootHttpServer};
1
+ import { SimpleApplication } from "@dooboostore/simple-boot/SimpleApplication";
2
+ import { HttpServerOption } from "./option/HttpServerOption.js";
3
+ import { IncomingMessage, Server as HttpServer, ServerResponse } from "http";
4
+ import { Server as HttpsServer } from "https";
5
+ import { RequestResponse } from "./models/RequestResponse.js";
6
+ import { getUrlMapping, getUrlMappings, UrlMappingSituationType } from "./decorators/MethodMapping.js";
7
+ import { HttpStatus } from "./codes/HttpStatus.js";
8
+ import { HttpHeaders } from "./codes/HttpHeaders.js";
9
+ import { Mimes } from "./codes/Mimes.js";
10
+ import { ExceptionHandlerSituationType, targetExceptionHandler } from "@dooboostore/simple-boot/decorators/exception/ExceptionDecorator";
11
+ import { getInject, SituationTypeContainer, SituationTypeContainers } from "@dooboostore/simple-boot/decorators/inject/Inject";
12
+ import { ReflectUtils } from "@dooboostore/core/reflect/ReflectUtils";
13
+ import { ReqFormUrlBody } from "./models/datas/body/ReqFormUrlBody.js";
14
+ import { ReqJsonBody } from "./models/datas/body/ReqJsonBody.js";
15
+ import { ReqHeader } from "./models/datas/ReqHeader.js";
16
+ import { RouterModule } from "@dooboostore/simple-boot/route/RouterModule";
17
+ import { ReqMultipartFormBody } from "./models/datas/body/ReqMultipartFormBody.js";
18
+ import { execValidationInValid, getValidIndex } from "@dooboostore/simple-boot/decorators/validate/Validation";
19
+ import { ValidException } from "@dooboostore/simple-boot/errors/ValidException";
20
+ import { HttpError } from "./errors/HttpError.js";
21
+ import { getRoute } from "@dooboostore/simple-boot/decorators/route/Router";
22
+ import { URLSearchParams } from "url";
23
+ import { HttpMethod } from "./codes/HttpMethod.js";
24
+ import { SessionManager } from "./session/SessionManager.js";
25
+ import { InjectSituationType } from "./inject/InjectSituationType.js";
26
+ class SimpleBootHttpServer extends SimpleApplication {
27
+ constructor(option = new HttpServerOption()) {
28
+ super(option);
29
+ this.option = option;
30
+ this.sessionManager = new SessionManager(this.option);
31
+ }
32
+ server;
33
+ sessionManager;
34
+ run(otherInstanceSim) {
35
+ const simstanceManager = super.run(otherInstanceSim);
36
+ const targets = [...this.option.closeEndPoints ?? [], ...this.option.errorEndPoints ?? [], ...this.option.requestEndPoints ?? [], ...this.option.filters ?? []];
37
+ Promise.all(targets.map((it) => typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it).map((it) => it.onInit(this))).then((it) => {
38
+ this.startServer();
39
+ });
40
+ return simstanceManager;
41
+ }
42
+ startServer() {
43
+ if (this.option.serverOption && "key" in this.option.serverOption && "cert" in this.option.serverOption) {
44
+ this.server = new HttpsServer(this.option.serverOption);
45
+ const httpServer = new HttpServer();
46
+ httpServer.on("request", (req, res) => {
47
+ res.writeHead(301, { Location: `https://${req.headers.host}${req.url}` });
48
+ res.end();
49
+ });
50
+ httpServer.listen(80, this.option.listen.hostname, () => {
51
+ console.log("HTTP redirect server running on port 80");
52
+ });
53
+ } else if (this.option.serverOption) {
54
+ this.server = new HttpServer(this.option.serverOption);
55
+ } else {
56
+ this.server = new HttpServer();
57
+ }
58
+ this.server.on("request", async (req, res) => {
59
+ const transactionManager = this.option.transactionManagerFactory ? await this.option.transactionManagerFactory() : void 0;
60
+ res.on("close", async () => {
61
+ if (this.option.closeEndPoints) {
62
+ for (const it of this.option.closeEndPoints) {
63
+ try {
64
+ const execute = typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it;
65
+ const endPoint = execute?.endPoint(rr, this);
66
+ if (endPoint instanceof Promise) {
67
+ await endPoint;
68
+ }
69
+ } catch (e) {
70
+ }
71
+ }
72
+ }
73
+ if (!rr.resIsDone()) {
74
+ rr.resEnd();
75
+ }
76
+ });
77
+ res.on("error", async () => {
78
+ if (this.option.errorEndPoints) {
79
+ for (const it of this.option.errorEndPoints) {
80
+ try {
81
+ const execute = typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it;
82
+ const endPoint = execute?.endPoint(rr, this);
83
+ if (endPoint instanceof Promise) {
84
+ await endPoint;
85
+ }
86
+ } catch (e) {
87
+ }
88
+ }
89
+ }
90
+ if (!rr.resIsDone()) {
91
+ rr.resEnd();
92
+ }
93
+ });
94
+ const rr = new RequestResponse(req, res, { sessionManager: this.sessionManager, option: this.option });
95
+ rr.resSetHeader(HttpHeaders.Server, "simple-boot-http-server");
96
+ const cookie = rr.reqCookieGet(this.option.sessionOption.key);
97
+ if (!cookie) {
98
+ const session = await this.sessionManager.session();
99
+ rr.resSetHeader(HttpHeaders.SetCookie, `${this.option.sessionOption.key}=${session.uuid}; Path=/; HttpOnly`);
100
+ }
101
+ const otherStorage = /* @__PURE__ */ new Map();
102
+ otherStorage.set(RequestResponse, rr);
103
+ otherStorage.set(IncomingMessage, req);
104
+ otherStorage.set(ServerResponse, res);
105
+ try {
106
+ transactionManager?.try();
107
+ if (this.option.requestEndPoints) {
108
+ for (const it of this.option.requestEndPoints) {
109
+ try {
110
+ const execute = typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it;
111
+ execute?.endPoint(rr, this);
112
+ } catch (e) {
113
+ }
114
+ }
115
+ }
116
+ const filter = {
117
+ carrier: /* @__PURE__ */ new Map(),
118
+ filters: []
119
+ };
120
+ for (let i = 0; this.option.filters && i < this.option.filters.length; i++) {
121
+ const it = this.option.filters[i];
122
+ const execute = typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it;
123
+ let sw = true;
124
+ if (execute?.proceedBefore) {
125
+ sw = await execute.proceedBefore({ rr, app: this, carrier: filter.carrier });
126
+ filter.filters.push({ filter: execute, sw });
127
+ }
128
+ if (!sw) {
129
+ break;
130
+ }
131
+ }
132
+ if (!rr.resIsDone()) {
133
+ const routerModule = await super.routing(rr.reqIntent);
134
+ otherStorage.set(RouterModule, routerModule);
135
+ const moduleInstance = routerModule?.getModuleInstance?.();
136
+ let methods = [];
137
+ if (routerModule && moduleInstance) {
138
+ if (routerModule.propertyKeys) {
139
+ const map = routerModule.propertyKeys?.map((it) => {
140
+ return { propertyKey: it, config: getUrlMapping(moduleInstance, it) };
141
+ });
142
+ methods.push(...map ?? []);
143
+ } else {
144
+ methods.push(...getUrlMappings(moduleInstance).filter((it) => !getRoute(moduleInstance, it.propertyKey)) ?? []);
145
+ }
146
+ if (rr.reqMethod()?.toUpperCase() === HttpMethod.OPTIONS.toUpperCase()) {
147
+ rr.resSetHeader(HttpHeaders.Allow, methods.map((it) => it.config.method).join(", "));
148
+ rr.resStatusCode(HttpStatus.Ok);
149
+ }
150
+ methods = methods.filter((it) => it && it.propertyKey && it.config && rr.reqMethod()?.toUpperCase() === it.config.method.toUpperCase());
151
+ methods.sort((a, b) => {
152
+ return (b.config?.req?.contentType?.length ?? 0) + (b.config?.req?.accept?.length ?? 0) - ((a.config?.req?.contentType?.length ?? 0) + (a.config?.req?.accept?.length ?? 0));
153
+ });
154
+ methods = methods.filter((it) => it.config?.req?.contentType ? !!it.config?.req?.contentType?.find((sit) => rr.reqHasContentTypeHeader(sit)) : true).filter((it) => it.config?.req?.accept ? !!it.config?.req?.accept?.find((sit) => rr.reqHasAcceptHeader(sit)) : true);
155
+ if (methods[0]) {
156
+ const it = methods[0];
157
+ const paramTypes = ReflectUtils.getParameterTypes(moduleInstance, it.propertyKey);
158
+ const injects = getInject(moduleInstance, it.propertyKey);
159
+ const validIndexs = getValidIndex(moduleInstance, it.propertyKey);
160
+ if (injects) {
161
+ const isJson = injects.find((it2) => it2.config?.situationType === UrlMappingSituationType.REQ_JSON_BODY);
162
+ const isFormUrl = injects.find((it2) => it2.config?.situationType === UrlMappingSituationType.REQ_FORM_URL_BODY);
163
+ const isTransactionManager = injects.find((it2) => it2.config?.situationType === InjectSituationType.TransactionManager);
164
+ const siturationContainers = new SituationTypeContainers();
165
+ if (isJson) {
166
+ let data2 = await rr.reqBodyJsonData();
167
+ if (isJson.type) {
168
+ data2 = Object.assign(new isJson.type(), data2);
169
+ }
170
+ if (validIndexs.includes(isJson.index)) {
171
+ const inValid = execValidationInValid(data2);
172
+ if ((inValid?.length ?? 0) > 0) {
173
+ throw new ValidException(inValid);
174
+ }
175
+ }
176
+ siturationContainers.push(new SituationTypeContainer({
177
+ situationType: UrlMappingSituationType.REQ_JSON_BODY,
178
+ data: data2
179
+ }));
180
+ }
181
+ if (isFormUrl) {
182
+ let data2 = await rr.reqBodyFormUrlData();
183
+ if (isFormUrl.type) {
184
+ data2 = Object.assign(new isFormUrl.type(), data2);
185
+ }
186
+ if (validIndexs.includes(isFormUrl.index)) {
187
+ const inValid = execValidationInValid(data2);
188
+ if ((inValid?.length ?? 0) > 0) {
189
+ throw new ValidException(inValid);
190
+ }
191
+ }
192
+ siturationContainers.push(new SituationTypeContainer({ situationType: UrlMappingSituationType.REQ_FORM_URL_BODY, data: data2 }));
193
+ }
194
+ if (isTransactionManager && isTransactionManager.type && transactionManager && transactionManager.hasTransaction(isTransactionManager.type)) {
195
+ let data2 = await transactionManager.getTransaction(isTransactionManager.type);
196
+ if (data2) {
197
+ data2 = await data2.try(isTransactionManager.config.argument);
198
+ siturationContainers.push(new SituationTypeContainer({ situationType: InjectSituationType.TransactionManager, data: data2, index: isTransactionManager.index }));
199
+ }
200
+ }
201
+ if (siturationContainers.length) {
202
+ otherStorage.set(SituationTypeContainers, siturationContainers);
203
+ }
204
+ }
205
+ for (const paramType of paramTypes) {
206
+ if (paramType === ReqFormUrlBody) {
207
+ otherStorage.set(ReqFormUrlBody, await rr.reqBodyReqFormUrlBody());
208
+ } else if (paramType === ReqJsonBody) {
209
+ otherStorage.set(ReqJsonBody, await rr.reqBodyReqJsonBody());
210
+ } else if (paramType === URLSearchParams) {
211
+ otherStorage.set(URLSearchParams, rr.reqUrlSearchParams);
212
+ } else if (paramType === ReqMultipartFormBody) {
213
+ otherStorage.set(ReqMultipartFormBody, rr.reqBodyMultipartFormData());
214
+ } else if (paramType === ReqHeader) {
215
+ otherStorage.set(ReqHeader, rr.reqHeaderObj);
216
+ }
217
+ }
218
+ let data = await this.simstanceManager.executeBindParameterSimPromise({
219
+ target: moduleInstance,
220
+ targetKey: it.propertyKey
221
+ }, otherStorage);
222
+ if (it.config?.resolver) {
223
+ const execute = typeof it.config.resolver === "function" ? this.simstanceManager.getOrNewSim({ target: it.config.resolver }) : it.config.resolver;
224
+ data = await execute?.resolve?.(data, rr);
225
+ }
226
+ const status = it.config?.res?.status ?? HttpStatus.Ok;
227
+ const headers = it.config?.res?.header ?? {};
228
+ if (it.config?.res?.contentType) {
229
+ headers[HttpHeaders.ContentType] = it.config?.res?.contentType;
230
+ }
231
+ if ((it.config?.res?.contentType?.toLowerCase().indexOf(Mimes.ApplicationJson.toLowerCase()) ?? -1) > -1) {
232
+ data = JSON.stringify(data);
233
+ } else if (data && typeof data === "object") {
234
+ data = JSON.stringify(data);
235
+ }
236
+ rr.resSetHeaders(headers);
237
+ rr.resSetStatusCode(status);
238
+ rr.resWrite(data);
239
+ }
240
+ }
241
+ if (this.option.noSuchRouteEndPointMappingThrow && methods.length <= 0 && rr.reqMethod()?.toUpperCase() !== HttpMethod.OPTIONS) {
242
+ throw this.option.noSuchRouteEndPointMappingThrow(rr);
243
+ }
244
+ }
245
+ for (const it of filter.filters.reverse()) {
246
+ if (it.filter?.proceedAfter && !await it.filter.proceedAfter({ rr, app: this, before: it.sw, carrier: filter.carrier })) {
247
+ break;
248
+ }
249
+ }
250
+ } catch (e) {
251
+ transactionManager?.catch(e);
252
+ rr.resStatusCode(e instanceof HttpError ? e.status : HttpStatus.InternalServerError);
253
+ const execute = typeof this.option.globalAdvice === "function" ? this.simstanceManager.getOrNewSim(this.option.globalAdvice) : this.option.globalAdvice;
254
+ if (!execute) {
255
+ rr.resEnd();
256
+ return;
257
+ }
258
+ if (e && typeof e === "object") {
259
+ otherStorage.set(e.constructor, e);
260
+ otherStorage.set(SituationTypeContainer, new SituationTypeContainer({
261
+ situationType: ExceptionHandlerSituationType.ERROR_OBJECT,
262
+ data: e
263
+ }));
264
+ }
265
+ const target = targetExceptionHandler(execute, e);
266
+ if (target) {
267
+ await this.simstanceManager.executeBindParameterSimPromise({
268
+ target: execute,
269
+ targetKey: target.propertyKey
270
+ }, otherStorage);
271
+ }
272
+ } finally {
273
+ transactionManager?.finally();
274
+ }
275
+ if (!rr.resIsDone()) {
276
+ rr.resEnd();
277
+ }
278
+ });
279
+ this.server.listen(this.option.listen.port, this.option.listen.hostname, this.option.listen.backlog, () => {
280
+ this.option.listen.listeningListener?.(this, this.server);
281
+ });
282
+ }
283
+ }
284
+ export {
285
+ SimpleBootHttpServer
286
+ };
287
+ //# sourceMappingURL=SimpleBootHttpServer.js.map