jsf.js_next_gen 4.1.0-beta.2 → 4.1.0-beta.21

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 (413) hide show
  1. package/AI_CONTRIBUTIONS.md +71 -0
  2. package/README.md +254 -78
  3. package/api-extractor.faces.json +38 -0
  4. package/dist/docs/assets/hierarchy.js +1 -1
  5. package/dist/docs/assets/navigation.js +1 -1
  6. package/dist/docs/assets/search.js +1 -1
  7. package/dist/docs/functions/faces.ajax.addOnError.html +2 -2
  8. package/dist/docs/functions/faces.ajax.addOnEvent.html +2 -2
  9. package/dist/docs/functions/faces.ajax.request.html +2 -2
  10. package/dist/docs/functions/faces.ajax.response.html +2 -2
  11. package/dist/docs/functions/faces.getClientWindow.html +2 -2
  12. package/dist/docs/functions/faces.getProjectStage.html +2 -2
  13. package/dist/docs/functions/faces.getViewState.html +1 -1
  14. package/dist/docs/functions/faces.push.close.html +1 -1
  15. package/dist/docs/functions/faces.push.init.html +6 -6
  16. package/dist/docs/functions/faces.push.open.html +1 -1
  17. package/dist/docs/functions/faces.util.chain.html +2 -2
  18. package/dist/docs/functions/myfaces.ab.html +3 -3
  19. package/dist/docs/functions/myfaces.onDomReady.html +1 -1
  20. package/dist/docs/functions/myfaces.reserveNamespace.html +1 -1
  21. package/dist/docs/hierarchy.html +1 -1
  22. package/dist/docs/index.html +292 -71
  23. package/dist/docs/interfaces/faces.AjaxData.html +6 -0
  24. package/dist/docs/interfaces/faces.AjaxError.html +18 -0
  25. package/dist/docs/interfaces/faces.AjaxEvent.html +8 -0
  26. package/dist/docs/interfaces/faces.ajax.RequestContext.html +6 -0
  27. package/dist/docs/interfaces/faces.ajax.RequestOptions.html +10 -0
  28. package/dist/docs/modules/faces.ajax.html +1 -1
  29. package/dist/docs/modules/faces.html +1 -1
  30. package/dist/docs/modules/faces.push.html +1 -1
  31. package/dist/docs/modules/faces.util.html +1 -1
  32. package/dist/docs/modules/myfaces.html +1 -1
  33. package/dist/docs/modules.html +1 -1
  34. package/dist/docs/types/faces.AjaxErrorStatus.html +2 -0
  35. package/dist/docs/types/faces.AjaxEventStatus.html +2 -0
  36. package/dist/docs/types/faces.ProjectStage.html +2 -0
  37. package/dist/docs/types/faces.ajax.OnErrorCallback.html +2 -0
  38. package/dist/docs/types/faces.ajax.OnEventCallback.html +2 -0
  39. package/dist/docs/types/faces.push.OnCloseHandler.html +2 -0
  40. package/dist/docs/types/faces.push.OnErrorHandler.html +2 -0
  41. package/dist/docs/types/faces.push.OnMessageHandler.html +2 -0
  42. package/dist/docs/types/faces.push.OnOpenHandler.html +2 -0
  43. package/dist/docs/variables/faces.contextpath.html +1 -1
  44. package/dist/docs/variables/faces.implversion.html +1 -1
  45. package/dist/docs/variables/faces.separatorchar.html +1 -1
  46. package/dist/docs/variables/faces.specversion.html +1 -1
  47. package/dist/docs/variables/myfaces.oam.html +1 -1
  48. package/dist/window/faces-development.js +1801 -499
  49. package/dist/window/faces-development.js.map +1 -1
  50. package/{target/api/_api.js → dist/window/faces.d.ts} +124 -151
  51. package/dist/window/faces.js +1 -1
  52. package/dist/window/faces.js.LICENSE.txt +0 -17
  53. package/dist/window/faces.js.map +1 -1
  54. package/dist/window/jsf-development.js +1806 -513
  55. package/dist/window/jsf-development.js.map +1 -1
  56. package/{target/src/main/typescript/api/_api.js → dist/window/jsf.d.ts} +125 -153
  57. package/dist/window/jsf.js +1 -1
  58. package/dist/window/jsf.js.LICENSE.txt +0 -17
  59. package/dist/window/jsf.js.map +1 -1
  60. package/package.json +22 -18
  61. package/scripts/build-dts.mjs +239 -0
  62. package/src/main/typescript/@types/definitions/index.d.ts +22 -122
  63. package/{target/test/frameworkBase/_ext/monadish/fixtures/test2.js → src/main/typescript/@types/definitions/modules.d.ts} +18 -2
  64. package/src/main/typescript/api/_api.ts +132 -29
  65. package/{target/test/frameworkBase/_ext/monadish/fixtures/test.js → src/main/typescript/api/_api_ae_stub.d.ts} +6 -2
  66. package/src/main/typescript/api/faces.ts +2 -2
  67. package/src/main/typescript/api/jsf.ts +15 -23
  68. package/src/main/typescript/impl/AjaxImpl.ts +15 -15
  69. package/src/main/typescript/impl/PushImpl.ts +139 -69
  70. package/src/main/typescript/impl/core/Const.ts +2 -2
  71. package/src/main/typescript/impl/i18n/Messages.ts +1 -1
  72. package/src/main/typescript/impl/util/Assertions.ts +1 -2
  73. package/src/main/typescript/impl/util/AsyncRunnable.ts +3 -4
  74. package/src/main/typescript/impl/util/ExtDomQuery.ts +19 -19
  75. package/src/main/typescript/impl/util/FileUtils.ts +30 -14
  76. package/src/main/typescript/impl/util/HiddenInputBuilder.ts +34 -34
  77. package/src/main/typescript/impl/util/Lang.ts +19 -22
  78. package/src/main/typescript/impl/util/XhrQueueController.ts +25 -3
  79. package/src/main/typescript/impl/xhrCore/ErrorData.ts +17 -12
  80. package/src/main/typescript/impl/xhrCore/EventData.ts +8 -7
  81. package/src/main/typescript/impl/xhrCore/IResponseProcessor.ts +3 -3
  82. package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +7 -6
  83. package/src/main/typescript/impl/xhrCore/Response.ts +3 -3
  84. package/src/main/typescript/impl/xhrCore/ResponseDataResolver.ts +0 -38
  85. package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +17 -15
  86. package/src/main/typescript/impl/xhrCore/XhrFormData.ts +72 -63
  87. package/src/main/typescript/impl/xhrCore/XhrRequest.ts +80 -134
  88. package/src/main/typescript/mona_dish_shim.ts +6 -2
  89. package/src/main/typescript/myfaces/OamSubmit.ts +10 -6
  90. package/src/main/typescript/test/api/JsfPushShimTest.spec.ts +126 -0
  91. package/src/main/typescript/test/api/MyFacesABTest.spec.ts +16 -0
  92. package/src/main/typescript/test/api/PushTypeCompatibility.ts +65 -0
  93. package/src/main/typescript/test/frameworkBase/LangTest.spec.ts +16 -0
  94. package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +1 -0
  95. package/src/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.ts +16 -0
  96. package/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.ts +16 -0
  97. package/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.ts +16 -0
  98. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +55 -9
  99. package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +16 -0
  100. package/src/main/typescript/test/impl/AssertionsTest.spec.ts +168 -0
  101. package/src/main/typescript/test/impl/FileUtilsTest.spec.ts +126 -0
  102. package/src/main/typescript/test/impl/ImplTest.spec.ts +75 -1
  103. package/src/main/typescript/test/impl/ResponseDataResolverTest.spec.ts +62 -0
  104. package/src/main/typescript/test/impl/util/ExtDomQueryTest.spec.ts +91 -1
  105. package/src/main/typescript/test/impl/util/ExtLangTest.spec.ts +110 -0
  106. package/src/main/typescript/test/impl/util/HiddenInputBuilderTest.spec.ts +74 -0
  107. package/src/main/typescript/test/myfaces/OamSubmit.spec.ts +61 -1
  108. package/src/main/typescript/test/queue/AsynchronousQueueTest.spec.ts +191 -2
  109. package/src/main/typescript/test/xhrCore/ClientWindow.spec.ts +16 -0
  110. package/src/main/typescript/test/xhrCore/ErrorChainTest.spec.ts +14 -0
  111. package/src/main/typescript/test/xhrCore/FakeWebsocket.ts +21 -5
  112. package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +363 -4
  113. package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +218 -4
  114. package/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.ts +1 -1
  115. package/src/main/typescript/test/xhrCore/WebsocketTest.spec.ts +764 -0
  116. package/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.ts +265 -62
  117. package/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.ts +16 -0
  118. package/{target/src/main/typescript/test/xhrCore/FakeWebsocket.js → src/main/typescript/tsconfig.ae.json} +16 -23
  119. package/src/main/typescript/{tsconfig.json → tsconfig.dts.json} +11 -27
  120. package/src/main/typescript/tsconfig.test.json +17 -0
  121. package/tsconfig.api-extractor.json +17 -0
  122. package/.claude/settings.local.json +0 -16
  123. package/.github/workflows/codeql-analysis.yml +0 -83
  124. package/.github/workflows/nodejs.yml +0 -26
  125. package/.mocharc.json +0 -10
  126. package/.nyc_output/384344d4-4f46-455f-84c3-010f829098cb.json +0 -1
  127. package/.nyc_output/a0f90016-f4f9-4039-bb51-57f4f7050541.json +0 -1
  128. package/.nyc_output/db388b5d-0b79-4bce-afd2-001aaf6f0245.json +0 -1
  129. package/.nyc_output/processinfo/384344d4-4f46-455f-84c3-010f829098cb.json +0 -1
  130. package/.nyc_output/processinfo/a0f90016-f4f9-4039-bb51-57f4f7050541.json +0 -1
  131. package/.nyc_output/processinfo/db388b5d-0b79-4bce-afd2-001aaf6f0245.json +0 -1
  132. package/.nyc_output/processinfo/index.json +0 -1
  133. package/.nycrc +0 -6
  134. package/build.cmd +0 -1
  135. package/build.sh +0 -3
  136. package/mvnw +0 -286
  137. package/mvnw.cmd +0 -161
  138. package/plans for 4.0.1.txt +0 -8
  139. package/remap.ts +0 -51
  140. package/src/main/typescript/test/xhrCore/WebsocketTest.ts +0 -221
  141. package/target/api/_api.js.map +0 -1
  142. package/target/api/faces.js +0 -45
  143. package/target/api/faces.js.map +0 -1
  144. package/target/api/jsf.js +0 -56
  145. package/target/api/jsf.js.map +0 -1
  146. package/target/impl/AjaxImpl.js +0 -748
  147. package/target/impl/AjaxImpl.js.map +0 -1
  148. package/target/impl/PushImpl.js +0 -265
  149. package/target/impl/PushImpl.js.map +0 -1
  150. package/target/impl/core/Const.js +0 -177
  151. package/target/impl/core/Const.js.map +0 -1
  152. package/target/impl/core/ImplTypes.js +0 -38
  153. package/target/impl/core/ImplTypes.js.map +0 -1
  154. package/target/impl/i18n/Messages.js +0 -113
  155. package/target/impl/i18n/Messages.js.map +0 -1
  156. package/target/impl/util/Assertions.js +0 -101
  157. package/target/impl/util/Assertions.js.map +0 -1
  158. package/target/impl/util/AsyncRunnable.js +0 -78
  159. package/target/impl/util/AsyncRunnable.js.map +0 -1
  160. package/target/impl/util/ExtDomQuery.js +0 -306
  161. package/target/impl/util/ExtDomQuery.js.map +0 -1
  162. package/target/impl/util/FileUtils.js +0 -98
  163. package/target/impl/util/FileUtils.js.map +0 -1
  164. package/target/impl/util/HiddenInputBuilder.js +0 -83
  165. package/target/impl/util/HiddenInputBuilder.js.map +0 -1
  166. package/target/impl/util/IListener.js +0 -3
  167. package/target/impl/util/IListener.js.map +0 -1
  168. package/target/impl/util/Lang.js +0 -263
  169. package/target/impl/util/Lang.js.map +0 -1
  170. package/target/impl/util/XhrQueueController.js +0 -92
  171. package/target/impl/util/XhrQueueController.js.map +0 -1
  172. package/target/impl/xhrCore/ErrorData.js +0 -87
  173. package/target/impl/xhrCore/ErrorData.js.map +0 -1
  174. package/target/impl/xhrCore/EventData.js +0 -52
  175. package/target/impl/xhrCore/EventData.js.map +0 -1
  176. package/target/impl/xhrCore/IResponseProcessor.js +0 -3
  177. package/target/impl/xhrCore/IResponseProcessor.js.map +0 -1
  178. package/target/impl/xhrCore/RequestDataResolver.js +0 -186
  179. package/target/impl/xhrCore/RequestDataResolver.js.map +0 -1
  180. package/target/impl/xhrCore/ResonseDataResolver.js +0 -104
  181. package/target/impl/xhrCore/ResonseDataResolver.js.map +0 -1
  182. package/target/impl/xhrCore/Response.js +0 -186
  183. package/target/impl/xhrCore/Response.js.map +0 -1
  184. package/target/impl/xhrCore/ResponseDataResolver.js +0 -104
  185. package/target/impl/xhrCore/ResponseDataResolver.js.map +0 -1
  186. package/target/impl/xhrCore/ResponseProcessor.js +0 -468
  187. package/target/impl/xhrCore/ResponseProcessor.js.map +0 -1
  188. package/target/impl/xhrCore/XhrFormData.js +0 -163
  189. package/target/impl/xhrCore/XhrFormData.js.map +0 -1
  190. package/target/impl/xhrCore/XhrRequest.js +0 -433
  191. package/target/impl/xhrCore/XhrRequest.js.map +0 -1
  192. package/target/mona_dish_shim.js +0 -70
  193. package/target/mona_dish_shim.js.map +0 -1
  194. package/target/myfaces/OamSubmit.js +0 -128
  195. package/target/myfaces/OamSubmit.js.map +0 -1
  196. package/target/src/main/typescript/api/_api.js.map +0 -1
  197. package/target/src/main/typescript/api/faces.js +0 -45
  198. package/target/src/main/typescript/api/faces.js.map +0 -1
  199. package/target/src/main/typescript/api/jsf.js +0 -56
  200. package/target/src/main/typescript/api/jsf.js.map +0 -1
  201. package/target/src/main/typescript/impl/AjaxImpl.js +0 -748
  202. package/target/src/main/typescript/impl/AjaxImpl.js.map +0 -1
  203. package/target/src/main/typescript/impl/PushImpl.js +0 -265
  204. package/target/src/main/typescript/impl/PushImpl.js.map +0 -1
  205. package/target/src/main/typescript/impl/core/Const.js +0 -177
  206. package/target/src/main/typescript/impl/core/Const.js.map +0 -1
  207. package/target/src/main/typescript/impl/core/ImplTypes.js +0 -38
  208. package/target/src/main/typescript/impl/core/ImplTypes.js.map +0 -1
  209. package/target/src/main/typescript/impl/i18n/Messages.js +0 -113
  210. package/target/src/main/typescript/impl/i18n/Messages.js.map +0 -1
  211. package/target/src/main/typescript/impl/util/Assertions.js +0 -101
  212. package/target/src/main/typescript/impl/util/Assertions.js.map +0 -1
  213. package/target/src/main/typescript/impl/util/AsyncRunnable.js +0 -78
  214. package/target/src/main/typescript/impl/util/AsyncRunnable.js.map +0 -1
  215. package/target/src/main/typescript/impl/util/ExtDomQuery.js +0 -306
  216. package/target/src/main/typescript/impl/util/ExtDomQuery.js.map +0 -1
  217. package/target/src/main/typescript/impl/util/FileUtils.js +0 -98
  218. package/target/src/main/typescript/impl/util/FileUtils.js.map +0 -1
  219. package/target/src/main/typescript/impl/util/HiddenInputBuilder.js +0 -83
  220. package/target/src/main/typescript/impl/util/HiddenInputBuilder.js.map +0 -1
  221. package/target/src/main/typescript/impl/util/IListener.js +0 -3
  222. package/target/src/main/typescript/impl/util/IListener.js.map +0 -1
  223. package/target/src/main/typescript/impl/util/Lang.js +0 -263
  224. package/target/src/main/typescript/impl/util/Lang.js.map +0 -1
  225. package/target/src/main/typescript/impl/util/XhrQueueController.js +0 -92
  226. package/target/src/main/typescript/impl/util/XhrQueueController.js.map +0 -1
  227. package/target/src/main/typescript/impl/xhrCore/ErrorData.js +0 -87
  228. package/target/src/main/typescript/impl/xhrCore/ErrorData.js.map +0 -1
  229. package/target/src/main/typescript/impl/xhrCore/EventData.js +0 -52
  230. package/target/src/main/typescript/impl/xhrCore/EventData.js.map +0 -1
  231. package/target/src/main/typescript/impl/xhrCore/IResponseProcessor.js +0 -3
  232. package/target/src/main/typescript/impl/xhrCore/IResponseProcessor.js.map +0 -1
  233. package/target/src/main/typescript/impl/xhrCore/RequestDataResolver.js +0 -186
  234. package/target/src/main/typescript/impl/xhrCore/RequestDataResolver.js.map +0 -1
  235. package/target/src/main/typescript/impl/xhrCore/Response.js +0 -186
  236. package/target/src/main/typescript/impl/xhrCore/Response.js.map +0 -1
  237. package/target/src/main/typescript/impl/xhrCore/ResponseDataResolver.js +0 -104
  238. package/target/src/main/typescript/impl/xhrCore/ResponseDataResolver.js.map +0 -1
  239. package/target/src/main/typescript/impl/xhrCore/ResponseProcessor.js +0 -468
  240. package/target/src/main/typescript/impl/xhrCore/ResponseProcessor.js.map +0 -1
  241. package/target/src/main/typescript/impl/xhrCore/XhrFormData.js +0 -163
  242. package/target/src/main/typescript/impl/xhrCore/XhrFormData.js.map +0 -1
  243. package/target/src/main/typescript/impl/xhrCore/XhrRequest.js +0 -433
  244. package/target/src/main/typescript/impl/xhrCore/XhrRequest.js.map +0 -1
  245. package/target/src/main/typescript/mona_dish_shim.js +0 -70
  246. package/target/src/main/typescript/mona_dish_shim.js.map +0 -1
  247. package/target/src/main/typescript/myfaces/OamSubmit.js +0 -128
  248. package/target/src/main/typescript/myfaces/OamSubmit.js.map +0 -1
  249. package/target/src/main/typescript/test/api/MyFacesABTest.spec.js +0 -117
  250. package/target/src/main/typescript/test/api/MyFacesABTest.spec.js.map +0 -1
  251. package/target/src/main/typescript/test/frameworkBase/LangTest.spec.js +0 -123
  252. package/target/src/main/typescript/test/frameworkBase/LangTest.spec.js.map +0 -1
  253. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +0 -657
  254. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +0 -1
  255. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.js +0 -107
  256. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +0 -1
  257. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.js +0 -106
  258. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
  259. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.js +0 -39
  260. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +0 -1
  261. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.js +0 -153
  262. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +0 -1
  263. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js +0 -2
  264. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js.map +0 -1
  265. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js +0 -925
  266. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js.map +0 -1
  267. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js +0 -112
  268. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js.map +0 -1
  269. package/target/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.js +0 -728
  270. package/target/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
  271. package/target/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.js +0 -296
  272. package/target/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
  273. package/target/src/main/typescript/test/impl/ImplTest.spec.js +0 -225
  274. package/target/src/main/typescript/test/impl/ImplTest.spec.js.map +0 -1
  275. package/target/src/main/typescript/test/impl/ImplTest_23.spec.js +0 -143
  276. package/target/src/main/typescript/test/impl/ImplTest_23.spec.js.map +0 -1
  277. package/target/src/main/typescript/test/impl/SeparatorCharsTest.spec.js +0 -106
  278. package/target/src/main/typescript/test/impl/SeparatorCharsTest.spec.js.map +0 -1
  279. package/target/src/main/typescript/test/impl/util/ExtDomQueryTest.spec.js +0 -77
  280. package/target/src/main/typescript/test/impl/util/ExtDomQueryTest.spec.js.map +0 -1
  281. package/target/src/main/typescript/test/myfaces/OamSubmit.spec.js +0 -118
  282. package/target/src/main/typescript/test/myfaces/OamSubmit.spec.js.map +0 -1
  283. package/target/src/main/typescript/test/myfaces/OnLoad.spec.js +0 -57
  284. package/target/src/main/typescript/test/myfaces/OnLoad.spec.js.map +0 -1
  285. package/target/src/main/typescript/test/myfaces/ReserveNamespace.spec.js +0 -60
  286. package/target/src/main/typescript/test/myfaces/ReserveNamespace.spec.js.map +0 -1
  287. package/target/src/main/typescript/test/queue/AsynchronousProbe.js +0 -93
  288. package/target/src/main/typescript/test/queue/AsynchronousProbe.js.map +0 -1
  289. package/target/src/main/typescript/test/queue/AsynchronousQueueTest.spec.js +0 -133
  290. package/target/src/main/typescript/test/queue/AsynchronousQueueTest.spec.js.map +0 -1
  291. package/target/src/main/typescript/test/xhrCore/ClientWindow.spec.js +0 -101
  292. package/target/src/main/typescript/test/xhrCore/ClientWindow.spec.js.map +0 -1
  293. package/target/src/main/typescript/test/xhrCore/ErrorChainTest.spec.js +0 -175
  294. package/target/src/main/typescript/test/xhrCore/ErrorChainTest.spec.js.map +0 -1
  295. package/target/src/main/typescript/test/xhrCore/EventTests.spec.js +0 -184
  296. package/target/src/main/typescript/test/xhrCore/EventTests.spec.js.map +0 -1
  297. package/target/src/main/typescript/test/xhrCore/FakeWebsocket.js.map +0 -1
  298. package/target/src/main/typescript/test/xhrCore/FileUploadTest.spec.js +0 -181
  299. package/target/src/main/typescript/test/xhrCore/FileUploadTest.spec.js.map +0 -1
  300. package/target/src/main/typescript/test/xhrCore/NamespacesRequestTest.spec.js +0 -226
  301. package/target/src/main/typescript/test/xhrCore/NamespacesRequestTest.spec.js.map +0 -1
  302. package/target/src/main/typescript/test/xhrCore/OamSubmitTest.spec.js +0 -199
  303. package/target/src/main/typescript/test/xhrCore/OamSubmitTest.spec.js.map +0 -1
  304. package/target/src/main/typescript/test/xhrCore/RequestParamsTest.spec.js +0 -567
  305. package/target/src/main/typescript/test/xhrCore/RequestParamsTest.spec.js.map +0 -1
  306. package/target/src/main/typescript/test/xhrCore/RequestTest.spec.js +0 -845
  307. package/target/src/main/typescript/test/xhrCore/RequestTest.spec.js.map +0 -1
  308. package/target/src/main/typescript/test/xhrCore/RequestTest_23.spec.js +0 -382
  309. package/target/src/main/typescript/test/xhrCore/RequestTest_23.spec.js.map +0 -1
  310. package/target/src/main/typescript/test/xhrCore/ResponseTest.spec.js +0 -667
  311. package/target/src/main/typescript/test/xhrCore/ResponseTest.spec.js.map +0 -1
  312. package/target/src/main/typescript/test/xhrCore/ResponseTest23.spec.js +0 -367
  313. package/target/src/main/typescript/test/xhrCore/ResponseTest23.spec.js.map +0 -1
  314. package/target/src/main/typescript/test/xhrCore/ShadowDomTest.spec.js +0 -123
  315. package/target/src/main/typescript/test/xhrCore/ShadowDomTest.spec.js.map +0 -1
  316. package/target/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.js +0 -147
  317. package/target/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.js.map +0 -1
  318. package/target/src/main/typescript/test/xhrCore/WebsocketTest.js +0 -207
  319. package/target/src/main/typescript/test/xhrCore/WebsocketTest.js.map +0 -1
  320. package/target/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.js +0 -149
  321. package/target/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.js.map +0 -1
  322. package/target/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.js +0 -130
  323. package/target/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.js.map +0 -1
  324. package/target/test/api/MyFacesABTest.spec.js +0 -117
  325. package/target/test/api/MyFacesABTest.spec.js.map +0 -1
  326. package/target/test/frameworkBase/LangTest.spec.js +0 -123
  327. package/target/test/frameworkBase/LangTest.spec.js.map +0 -1
  328. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +0 -657
  329. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +0 -1
  330. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js +0 -107
  331. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +0 -1
  332. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js +0 -106
  333. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
  334. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js +0 -39
  335. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +0 -1
  336. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js +0 -153
  337. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +0 -1
  338. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js +0 -1
  339. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js.map +0 -1
  340. package/target/test/frameworkBase/_ext/monadish/fixtures/test.js.map +0 -1
  341. package/target/test/frameworkBase/_ext/monadish/fixtures/test2.js.map +0 -1
  342. package/target/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js +0 -925
  343. package/target/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js.map +0 -1
  344. package/target/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js +0 -112
  345. package/target/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js.map +0 -1
  346. package/target/test/frameworkBase/_ext/shared/StandardInits.js +0 -728
  347. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
  348. package/target/test/frameworkBase/_ext/shared/XmlResponses.js +0 -296
  349. package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
  350. package/target/test/frameworkBase/_ext/shared/fixtures/js/tobago.js +0 -16
  351. package/target/test/frameworkBase/_ext/shared/fixtures/js/tobago.js.map +0 -1
  352. package/target/test/impl/ImplTest.spec.js +0 -225
  353. package/target/test/impl/ImplTest.spec.js.map +0 -1
  354. package/target/test/impl/ImplTest_23.spec.js +0 -143
  355. package/target/test/impl/ImplTest_23.spec.js.map +0 -1
  356. package/target/test/impl/SeparatorCharsTest.spec.js +0 -106
  357. package/target/test/impl/SeparatorCharsTest.spec.js.map +0 -1
  358. package/target/test/impl/util/ExtDomQueryTest.spec.js +0 -77
  359. package/target/test/impl/util/ExtDomQueryTest.spec.js.map +0 -1
  360. package/target/test/myfaces/OamSubmit.spec.js +0 -118
  361. package/target/test/myfaces/OamSubmit.spec.js.map +0 -1
  362. package/target/test/myfaces/OnLoad.spec.js +0 -57
  363. package/target/test/myfaces/OnLoad.spec.js.map +0 -1
  364. package/target/test/myfaces/ReserveNamespace.spec.js +0 -60
  365. package/target/test/myfaces/ReserveNamespace.spec.js.map +0 -1
  366. package/target/test/queue/AsynchronousProbe.js +0 -93
  367. package/target/test/queue/AsynchronousProbe.js.map +0 -1
  368. package/target/test/queue/AsynchronousQueueTest.spec.js +0 -133
  369. package/target/test/queue/AsynchronousQueueTest.spec.js.map +0 -1
  370. package/target/test/xhrCore/ClientWindow.spec.js +0 -101
  371. package/target/test/xhrCore/ClientWindow.spec.js.map +0 -1
  372. package/target/test/xhrCore/ErrorChainTest.spec.js +0 -175
  373. package/target/test/xhrCore/ErrorChainTest.spec.js.map +0 -1
  374. package/target/test/xhrCore/EventTests.spec.js +0 -184
  375. package/target/test/xhrCore/EventTests.spec.js.map +0 -1
  376. package/target/test/xhrCore/FakeWebsocket.js +0 -38
  377. package/target/test/xhrCore/FakeWebsocket.js.map +0 -1
  378. package/target/test/xhrCore/FileUploadTest.spec.js +0 -181
  379. package/target/test/xhrCore/FileUploadTest.spec.js.map +0 -1
  380. package/target/test/xhrCore/NamespacesRequestTest.spec.js +0 -226
  381. package/target/test/xhrCore/NamespacesRequestTest.spec.js.map +0 -1
  382. package/target/test/xhrCore/OamSubmitTest.spec.js +0 -199
  383. package/target/test/xhrCore/OamSubmitTest.spec.js.map +0 -1
  384. package/target/test/xhrCore/RequestParamsTest.spec.js +0 -567
  385. package/target/test/xhrCore/RequestParamsTest.spec.js.map +0 -1
  386. package/target/test/xhrCore/RequestTest.spec.js +0 -845
  387. package/target/test/xhrCore/RequestTest.spec.js.map +0 -1
  388. package/target/test/xhrCore/RequestTest_23.spec.js +0 -382
  389. package/target/test/xhrCore/RequestTest_23.spec.js.map +0 -1
  390. package/target/test/xhrCore/ResponseTest.spec.js +0 -667
  391. package/target/test/xhrCore/ResponseTest.spec.js.map +0 -1
  392. package/target/test/xhrCore/ResponseTest23.spec.js +0 -367
  393. package/target/test/xhrCore/ResponseTest23.spec.js.map +0 -1
  394. package/target/test/xhrCore/ShadowDomTest.spec.js +0 -123
  395. package/target/test/xhrCore/ShadowDomTest.spec.js.map +0 -1
  396. package/target/test/xhrCore/TobagoFileUploadTest.spec.js +0 -147
  397. package/target/test/xhrCore/TobagoFileUploadTest.spec.js.map +0 -1
  398. package/target/test/xhrCore/WebsocketTest.js +0 -207
  399. package/target/test/xhrCore/WebsocketTest.js.map +0 -1
  400. package/target/test/xhrCore/XhrFormDataTest.spec.js +0 -149
  401. package/target/test/xhrCore/XhrFormDataTest.spec.js.map +0 -1
  402. package/target/test/xhrCore/XhrRequestProgress.spec.js +0 -130
  403. package/target/test/xhrCore/XhrRequestProgress.spec.js.map +0 -1
  404. package/target/test/xhrCore/fixtures/addedViewHead1.js +0 -17
  405. package/target/test/xhrCore/fixtures/addedViewHead1.js.map +0 -1
  406. package/target/test/xhrCore/fixtures/addedViewHead2.js +0 -17
  407. package/target/test/xhrCore/fixtures/addedViewHead2.js.map +0 -1
  408. package/target/test/xhrCore/fixtures/addedViewHead3.js +0 -17
  409. package/target/test/xhrCore/fixtures/addedViewHead3.js.map +0 -1
  410. package/target/test/xhrCore/fixtures/nonce_script.js +0 -17
  411. package/target/test/xhrCore/fixtures/nonce_script.js.map +0 -1
  412. package/tsconfig.json +0 -9
  413. package/webpack.config.ts +0 -54
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see faces.js.LICENSE.txt */
2
- (()=>{"use strict";var e={771(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.assign=l,t.append=o,t.assignIf=function(e,t,...n){return!e||n.length<1?new s(t):l(t,...n)},t.appendIf=function(e,t,...n){return!e||n.length<1?new s(t):o(t,...n)},t.resolve=function(e,...t){let n=null;t=c(t);let r=e;for(let e=0;e<t.length;e++){let s=t[e];if(s=-1!=a(s)?a(s):s,r=null==r?void 0:r[s],void 0===r)return null;n=r}return r},t.buildPath=d,t.deepCopy=function(e){return JSON.parse(JSON.stringify(e))},t.simpleShallowMerge=function(...e){return h(!0,!1,...e)},t.shallowMerge=h,t.deepEqual=function e(t,n){if(t==n)return!1;if(typeof t!=typeof n)return!1;if(Array.isArray(t)&&Array.isArray(n)){if(t.length!=n.length)return;return t.every(((t,r)=>e(t,n[r])))}if("object"==typeof t&&"object"==typeof n){let r=Object.keys(t),s=Object.keys(n);return r.length==s.length&&r.every((e=>-1!=s.indexOf(e)))&&r.every((r=>e(t[r],n[r])))}return!1};const r=n(86);class s{constructor(e){this.parent=e}set value(e){}get value(){return this.parent}}function l(e,...t){if(t.length<1)return new s(e);const n=d(e,...t);return new class{set value(e){n.target[n.key]=e}get value(){return n.target[n.key]}}}function o(e,...t){if(t.length<1)return new s(e);const n=d(e,...t);return new class{set value(e){Array.isArray(e)||(e=[e]),n.target[n.key]?(Array.isArray(n.target[n.key])||(n.target[n.key]=[n.target[n.key]]),n.target[n.key].push(...e)):n.target[n.key]=e}}}function i(e){let t=e.indexOf("[");return t>=0?e.substring(0,t):e}function a(e){let t=e.indexOf("["),n=e.indexOf("]");return t>=0&&n>0&&t<n?parseInt(e.substring(t+1,n)):-1}function u(e,t,n={}){let r=[];r.length=t,r[t-1]=n,e.push(...r)}function c(e){return new r.Es2019Array(...e).flatMap((e=>e.split("["))).map((e=>-1!=e.indexOf("]")?"["+e:e)).filter((e=>""!=e))}function d(e,...t){t=c(t);let n=e,r=null,s=null,l=-1;for(let e=0;e<t.length;e++)if(s=i(t[e]),l=a(t[e]),-1!=l){if(!Array.isArray(n))throw Error("Associative array referenced as index array in path reference");let s=-1;e<t.length-1&&(s=a(t[e+1]));let o=void 0!==(null==n?void 0:n[l]);u(n,l+1,-1!=s?[]:{}),r=l,e==t.length-1?n[l]=o?n[l]:null:n=n[l]}else{if(Array.isArray(n))throw Error("Index array referenced as associative array in path reference");let l=-1;e<t.length-1&&(l=a(t[e+1])),r=s;let o=void 0!==(null==n?void 0:n[s]);e==t.length-1?o||(n[s]=null):(o||(n[s]=-1==l?{}:[]),n=n[s])}return{target:n,key:r}}function h(e=!0,t=!1,...n){let s={};return new r.Es2019Array(...n).map((e=>({arr:e,keys:Object.keys(e)}))).forEach((({arr:n,keys:l})=>{l.forEach((l=>{let o=n[l];!Array.isArray(o)&&t&&(o=new r.Es2019Array(...[o])),e||!(null==s?void 0:s[l])?function(e,t,n,s,l){if(e)if(void 0===(null==t?void 0:t[n]))t[n]=l;else if(Array.isArray(t[n])){let e=t[n],r=[];l.forEach((t=>{-1==e.indexOf(t)&&r.push(t)})),t[n].push(...r)}else{let e=t[n],s=[];l.forEach((t=>{e!=t&&s.push(t)})),t[n]=new r.Es2019Array(...[]),t[n].push(e),t[n].push(...s)}else t[n]=s[n]}(t,s,l,n,o):!e&&(null==s?void 0:s[l])&&function(e,t,n,s,l){if(e)if(void 0===(null==t?void 0:t[n]))t[n]=l;else if(Array.isArray(t[n]))t[n].push(...l);else{let e=t[n];t[n]=new r.Es2019Array(...[]),t[n].push(e),t[n].push(...l)}}(t,s,l,0,o)}))})),s}},517(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Config=t.CONFIG_ANY=t.CONFIG_VALUE=void 0;const r=n(86),s=n(204),l=n(519).Lang.objAssign,o=n(771);class i extends s.ValueEmbedder{constructor(e,t,n){super(e,t),this.arrPos=null!=n?n:-1}get value(){return""==this.key&&this.arrPos>=0?this._value[this.arrPos]:this.key&&this.arrPos>=0?this._value[this.key][this.arrPos]:this._value[this.key]}set value(e){""==this.key&&this.arrPos>=0?this._value[this.arrPos]=e:this.key&&this.arrPos>=0?this._value[this.key][this.arrPos]=e:this._value[this.key]=e}}i.absent=i.fromNullable(null),t.CONFIG_VALUE="__END_POINT__",t.CONFIG_ANY="__ANY_POINT__";class a extends s.Optional{constructor(e,t){super(e),this.configDef=t}get shallowCopy(){return this.shallowCopy$()}shallowCopy$(){let e=new a({});return e.shallowMerge(this.value),e}get deepCopy(){return this.deepCopy$()}deepCopy$(){return new a(l({},this.value))}static fromNullable(e){return new a(e)}shallowMerge(e,t=!0,n=!1){let r=(0,o.shallowMerge)(t,n,this.value,e.value);Array.isArray(this._value)?(this._value.length=0,this._value.push(...r)):(Object.getOwnPropertyNames(this._value).forEach((e=>delete this._value[e])),Object.getOwnPropertyNames(r).forEach((e=>this._value[e]=r[e])))}append(...e){return(0,o.append)(this._value,...e)}appendIf(e,...t){return(0,o.appendIf)(e,this._value,...t)}assign(...e){return(0,o.assign)(this.value,...e)}assignIf(e,...t){return(0,o.assignIf)(e,this._value,...t)}getIf(...e){return this.assertAccessPath(...e),this.getClass().fromNullable((0,o.resolve)(this.value,...e))}get(e){return this.getClass().fromNullable(super.get(e).value)}delete(e){return e in this.value&&delete this.value[e],this}toJson(){return JSON.stringify(this.value)}getClass(){return a}setVal(e){this._value=e}assertAccessPath(...e){var n,l,o,i,a,u,c,d,h;if(e=this.preprocessKeys(...e),!this.configDef)return;let E=s.Optional.fromNullable(Object.keys(this.configDef).map((e=>{let t={};return t[e]=this.configDef[e],t})));for(let v=0;v<e.length;v++){let _=this.keyVal(e[v]),f=this.arrayIndex(e[v]);if(E=this.isArray(f)?""!=_?Array.isArray(E.value)?s.Optional.fromNullable(null===(l=null===(n=new r.Es2019Array(...E.value).find((e=>{var t;return!(null===(t=null==e?void 0:e[_])||void 0===t||!t)})))||void 0===n?void 0:n[_])||void 0===l?void 0:l[f]):s.Optional.fromNullable(null!==(a=null===(i=null===(o=E.value)||void 0===o?void 0:o[_])||void 0===i?void 0:i[f])&&void 0!==a?a:null):Array.isArray(E.value)?s.Optional.fromNullable(null===(u=E.value)||void 0===u?void 0:u[f]):s.Optional.absent:Array.isArray(E.value)?s.Optional.fromNullable(null===(c=new r.Es2019Array(...E.value).find((e=>{var t;return!(null===(t=null==e?void 0:e[_])||void 0===t||!t)})))||void 0===c?void 0:c[_]):s.Optional.fromNullable(null!==(h=null===(d=E.value)||void 0===d?void 0:d[_])&&void 0!==h?h:null),!E.isPresent())throw Error("Access Path to config invalid");if(E.value==t.CONFIG_ANY)return}}isNoArray(e){return-1==e}isArray(e){return!this.isNoArray(e)}}t.Config=a},331(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(s,l){function o(e){try{a(r.next(e))}catch(e){l(e)}}function i(e){try{a(r.throw(e))}catch(e){l(e)}}function a(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,i)}a((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.DQ$=t.DQ=t.DomQueryCollector=t.DomQuery=t.Style=t.ElementAttribute=void 0;const s=n(204),l=n(785),o=n(519),i=n(228),a=n(86),u=o.Lang.trim,c=o.Lang.isString,d=o.Lang.equalsIgnoreCase,h=o.Lang.objToArray,E=n(771);class v extends s.ValueEmbedder{constructor(e){super(null==e?void 0:e[0],"nonce"),this.rootElems=e}isAbsent(){const e=this.value;return void 0===e||""==e}get value(){var e,t,n,r,s;return null!==(n=null===(t=null===(e=null==this?void 0:this.rootElems)||void 0===e?void 0:e[0])||void 0===t?void 0:t.nonce)&&void 0!==n?n:null===(s=null===(r=null==this?void 0:this.rootElems)||void 0===r?void 0:r[0])||void 0===s?void 0:s.getAttribute("nonce")}set value(e){var t;(null===(t=null==this?void 0:this.rootElems)||void 0===t?void 0:t.length)&&this.rootElems.forEach((t=>{void 0!==(null==t?void 0:t.nonce)?t.nonce=e:t.setAttribute("nonce",e)}))}}var _;!function(e){e.SELECT="select",e.BUTTON="button",e.SUBMIT="submit",e.RESET="reset",e.IMAGE="image",e.RADIO="radio",e.CHECKBOX="checkbox"}(_||(_={}));class f extends s.ValueEmbedder{constructor(e,t,n=null){super(e,t),this.element=e,this.name=t,this.defaultVal=n}get value(){let e=this.element.get(0).orElse().values;return e.length?e[0].getAttribute(this.name):this.defaultVal}set value(e){let t=this.element.get(0).orElse().values;for(let n=0;n<t.length;n++)t[n].setAttribute(this.name,e);t[0].setAttribute(this.name,e)}getClass(){return f}static fromNullable(e,t="value"){return new f(e,t)}}t.ElementAttribute=f;class p extends s.ValueEmbedder{constructor(e,t,n=null){super(e,t),this.element=e,this.name=t,this.defaultVal=n}get value(){let e=this.element.values;return e.length?e[0].style[this.name]:this.defaultVal}set value(e){let t=this.element.values;for(let n=0;n<t.length;n++)t[n].style[this.name]=e}getClass(){return f}static fromNullable(e,t="value"){return new f(e,t)}}t.Style=p;const T=()=>!0;class A{constructor(...e){if(this.rootNode=[],this.pos=-1,this._limits=-1,!s.Optional.fromNullable(e).isAbsent()&&e.length)for(let t=0;t<e.length;t++)if(e[t])if(c(e[t])){let n=A.querySelectorAll(e[t]);n.isAbsent()||e.push(...n.values)}else e[t]instanceof A?this.rootNode.push(...e[t].values):this.rootNode.push(e[t])}get value(){return this.getAsElem(0)}get values(){return this.allElems()}get global(){return i._global$}get stream(){throw Error("Not implemented, include Stream.ts for this to work")}get lazyStream(){throw Error("Not implemented, include Stream.ts for this to work")}get id(){return new f(this.get(0),"id")}get length(){return this.rootNode.length}get tagName(){return this.getAsElem(0).getIf("tagName")}get nodeName(){return this.getAsElem(0).getIf("nodeName")}isTag(e){return!this.isAbsent()&&(this.nodeName.orElse("__none___").value.toLowerCase()==e.toLowerCase()||this.tagName.orElse("__none___").value.toLowerCase()==e.toLowerCase())}get type(){return this.getAsElem(0).getIf("type")}get name(){return new s.ValueEmbedder(this.getAsElem(0).value,"name")}get inputValue(){return this.getAsElem(0).getIf("value").isPresent()?new s.ValueEmbedder(this.getAsElem(0).value):s.ValueEmbedder.absent}get val(){return this.inputValue.value}set val(e){this.inputValue.value=e}get nodeId(){return this.id.value}set nodeId(e){this.id.value=e}get checked(){return new a.Es2019Array(...this.values).every((e=>!!e.checked))}set checked(e){this.eachElem((t=>t.checked=e))}get elements(){return this.querySelectorAll("input, checkbox, select, textarea, fieldset")}get deepElements(){return this.querySelectorAllDeep("input, select, textarea, checkbox, fieldset")}querySelectorAllDeep(e){let t=[],n=this.querySelectorAll(e);n.length&&t.push(n);let r=this.querySelectorAll("*").shadowRoot;if(r.length){let n=r.querySelectorAllDeep(e);n.length&&t.push(n)}return new A(...t)}get disabled(){return this.attr("disabled").isPresent()}set disabled(e){e?this.attr("disabled").value="disabled":this.removeAttribute("disabled")}removeAttribute(e){this.eachElem((t=>t.removeAttribute(e)))}get childNodes(){let e=[];return this.eachElem((t=>{e=e.concat(h(t.childNodes))})),new A(...e)}get asArray(){return new a.Es2019Array(...this.rootNode).filter((e=>null!=e)).map((e=>A.byId(e)))}get offsetWidth(){return new a.Es2019Array(...this.rootNode).filter((e=>null!=e)).map((e=>e.offsetWidth)).reduce(((e,t)=>e+t),0)}get offsetHeight(){return new a.Es2019Array(...this.rootNode).filter((e=>null!=e)).map((e=>e.offsetHeight)).reduce(((e,t)=>e+t),0)}get offsetLeft(){return new a.Es2019Array(...this.rootNode).filter((e=>null!=e)).map((e=>e.offsetLeft)).reduce(((e,t)=>e+t),0)}get offsetTop(){return new a.Es2019Array(this.rootNode).filter((e=>null!=e)).map((e=>e.offsetTop)).reduce(((e,t)=>e+t),0)}get asNodeArray(){return new a.Es2019Array(...this.rootNode.filter((e=>null!=e)))}get nonce(){return new v(this.rootNode)}static querySelectorAllDeep(e){return new A(document).querySelectorAllDeep(e)}static querySelectorAll(e){return-1!=e.indexOf("/shadow/")?new A(document)._querySelectorAllDeep(e):new A(document)._querySelectorAll(e)}static byId(e,t=!1){return c(e)?t?new A(document).byIdDeep(e):new A(document).byId(e):new A(e)}static byTagName(e){return c(e)?new A(document).byTagName(e):new A(e)}static globalEval(e,t){return new A(document).globalEval(e,t)}static globalEvalSticky(e,t){return new A(document).globalEvalSticky(e,t)}static fromMarkup(e){const t=document.implementation.createHTMLDocument("");let n=(e=u(e)).toLowerCase();if(-1!=n.search(/<!doctype[^\w\-]+/gi)||-1!=n.search(/<html[^\w\-]+/gi)||-1!=n.search(/<head[^\w\-]+/gi)||-1!=n.search(/<body[^\w\-]+/gi))return t.documentElement.innerHTML=e,new A(t.documentElement);{let t=function(e,t){let n=["<",t,">"].join(""),r=["<",t," "].join("");return 0==e.indexOf(n)||0==e.indexOf(r)},r=new A(document.createElement("div"));return t(n,"thead")||t(n,"tbody")?(r.html(`<table>${e}</table>`),r.querySelectorAll("table").get(0).childNodes.detach()):t(n,"tfoot")?(r.html(`<table><thead></thead><tbody><tbody${e}</table>`),r.querySelectorAll("table").get(2).childNodes.detach()):t(n,"tr")?(r.html(`<table><tbody>${e}</tbody></table>`),r.querySelectorAll("tbody").get(0).childNodes.detach()):t(n,"td")?(r.html(`<table><tbody><tr>${e}</tr></tbody></table>`),r.querySelectorAll("tr").get(0).childNodes.detach()):(r.html(e),r.childNodes.detach())}}get(e){return e<this.rootNode.length?new A(this.rootNode[e]):A.absent}getAsElem(e,t=s.Optional.absent){return e<this.rootNode.length?s.Optional.fromNullable(this.rootNode[e]):t}filesFromElem(e){var t;return e<this.rootNode.length&&(null===(t=this.rootNode[e])||void 0===t?void 0:t.files)?this.rootNode[e].files:[]}allElems(){return this.rootNode}isAbsent(){return 0==this.length}isPresent(e){let t=this.isAbsent();return!t&&e&&e.call(this,this),!t}ifPresentLazy(e=function(){}){return this.isPresent.call(this,e),this}delete(){this.eachElem((e=>{e.parentNode&&e.parentNode.removeChild(e)}))}querySelectorAll(e){return-1!=e.indexOf("/shadow/")?this._querySelectorAllDeep(e):this._querySelectorAll(e)}closest(e){return-1!=e.indexOf("/shadow/")?this._closestDeep(e):this._closest(e)}byId(e,t){let n=[];return t&&(n=n.concat(...new a.Es2019Array(...(null==this?void 0:this.rootNode)||[]).filter((t=>e==t.id)).map((e=>new A(e))))),n=n.concat(this.querySelectorAll(`[id="${e}"]`)),new A(...n)}byIdDeep(e,t){let n=[];t&&(n=n.concat(new a.Es2019Array(...(null==this?void 0:this.rootNode)||[]).filter((t=>e==t.id)).map((e=>new A(e)))));let r=this.querySelectorAllDeep(`[id="${e}"]`);return r.length&&n.push(r),new A(...n)}byTagName(e,t,n){var r;let s=[];return t&&(s=new a.Es2019Array(...null!==(r=null==this?void 0:this.rootNode)&&void 0!==r?r:[]).filter((t=>(null==t?void 0:t.tagName)==e)).reduce(((e,t)=>e.concat([t])),s)),n?s.push(this.querySelectorAllDeep(e)):s.push(this.querySelectorAll(e)),new A(...s)}attr(e,t=null){return new f(this,e,t)}style(e,t=null){return new p(this,e,t)}hasClass(e){let t=!1;return this.eachElem((n=>{if(t=n.classList.contains(e),t)return!1})),t}addClass(e){return this.eachElem((t=>t.classList.add(e))),this}removeClass(e){return this.eachElem((t=>t.classList.remove(e))),this}isMultipartCandidate(e=!1){const t="input[type='file']";return this.matchesSelector(t)||(e?this.querySelectorAllDeep(t):this.querySelectorAll(t)).first().isPresent()}html(e){return s.Optional.fromNullable(e).isAbsent()?this.isPresent()?s.Optional.fromNullable(this.innerHTML):s.Optional.absent:(this.innerHTML=e,this)}dispatchEvent(e){return this.eachElem((t=>t.dispatchEvent(e))),this}set innerHTML(e){this.eachElem((t=>t.innerHTML=e))}get innerHTML(){let e=[];return this.eachElem((t=>e.push(t.innerHTML))),e.join("")}set innerHtml(e){this.innerHTML=e}get innerHtml(){return this.innerHTML}filterSelector(e){let t=[];return this.eachElem((n=>{this._matchesSelector(n,e)&&t.push(n)})),new A(...t)}matchesSelector(e){return this.asArray.some((t=>this._matchesSelector(t.getAsElem(0).value,e)))}getIf(...e){let t=this.childNodes;for(let n=0;n<e.length;n++)if(t=t.filterSelector(e[n]),t.isAbsent())return t;return t}eachElem(e){for(let t=0,n=this.rootNode.length;t<n&&!1!==e(this.rootNode[t],t);t++);return this}firstElem(e=e=>e){return this.rootNode.length>1&&e(this.rootNode[0],0),this}lastElem(e=e=>e){return this.rootNode.length>1&&e(this.rootNode[this.rootNode.length-1],0),this}each(e){return new a.Es2019Array(...this.rootNode).forEach(((t,n)=>{if(null!=t)return e(A.byId(t),n)})),this}replace(e){return this.each((t=>{let n=t.getAsElem(0).value,r=n.parentElement,s=n.nextElementSibling,l=n.previousElementSibling;null!=s?new A(s).insertBefore(e):l?new A(l).insertAfter(e):new A(r).append(e),t.delete()})),e}first(e=e=>e){return this.rootNode.length>=1?(e(this.get(0),0),this.get(0)):this}last(e=e=>e){if(this.rootNode.length>=1){let t=this.get(this.rootNode.length-1);return e(t,0),t}return this}filter(e){let t=[];return this.each((n=>{e(n)&&t.push(n)})),new A(...t)}globalEval(e,t){var n,r,s;const l=null!==(r=null===(n=document.getElementsByTagName("head"))||void 0===n?void 0:n[0])&&void 0!==r?r:null===(s=document.documentElement.getElementsByTagName("head"))||void 0===s?void 0:s[0],o=document.createElement("script");t&&(void 0!==(null==o?void 0:o.nonce)?o.nonce=t:o.setAttribute("nonce",t)),o.type="text/javascript",o.innerHTML=e;let i=l.appendChild(o);return l.removeChild(i),this}globalEvalSticky(e,t){let n=document.getElementsByTagName("head")[0]||document.documentElement,r=document.createElement("script");return this.applyNonce(t,r),r.type="text/javascript",r.innerHTML=e,n.appendChild(r),this}detach(){return this.eachElem((e=>{e.parentNode.removeChild(e)})),this}appendTo(e){return o.Lang.isString(e)?(this.appendTo(A.querySelectorAll(e)),this):(this.eachElem((t=>{e.getAsElem(0).orElseLazy((()=>({appendChild:()=>{}}))).value.appendChild(t)})),this)}loadScriptEval(e,t=0,n){return this._loadScriptEval(!1,e,t,n),this}loadScriptEvalSticky(e,t=0,n){return this._loadScriptEval(!0,e,t,n),this}insertAfter(...e){this.each((t=>{let n=t.getAsElem(0).value,r=n.parentNode;for(let t=0;t<e.length;t++){let s=n.nextSibling;e[t].eachElem((e=>{s?(r.insertBefore(e,s),n=s):r.appendChild(e)}))}}));let t=[];return t.push(this),t=t.concat(e),new A(...t)}insertBefore(...e){this.each((t=>{let n=t.getAsElem(0).value,r=n.parentNode;for(let t=0;t<e.length;t++)e[t].eachElem((e=>{r.insertBefore(e,n)}))}));let t=[];return t.push(this),t=t.concat(e),new A(...t)}orElse(...e){return this.isPresent()?this:new A(...e)}orElseLazy(e){return this.isPresent()?this:new A(e())}allParents(e){let t=this.parent(),n=[];for(;t.isPresent();)t.matchesSelector(e)&&n.push(t),t=t.parent();return new A(...n)}firstParent(e){let t=this.parent();for(;t.isPresent();){if(t.matchesSelector(e))return t;t=t.parent()}return A.absent}parentsWhileMatch(e){const t=[];let n=this.parent().filter((t=>t.matchesSelector(e)));for(;n.isPresent();)t.push(n),n=n.parent().filter((t=>t.matchesSelector(e)));return new A(...t)}parent(){let e=[];return this.eachElem((t=>{let n=t.parentNode||t.host||t.shadowRoot;n&&-1==e.indexOf(n)&&e.push(n)})),new A(...e)}copyAttrs(e){return e.eachElem((e=>{let t=h(e.attributes);for(let e of t){let t=e.value,n=e.name;switch(n){case"id":this.id.value=t;break;case"disabled":this.resolveAttributeHolder("disabled").disabled=t;break;case"checked":this.resolveAttributeHolder("checked").checked=t;break;case"nonce":break;default:this.attr(n).value=t}}})),e.nonce.isPresent((()=>{this.nonce.value=e.nonce.value})),this}outerHTML(e,t,n,r=!1){var s;if(this.isAbsent())return;let l=null===(s=null===document||void 0===document?void 0:document.activeElement)||void 0===s?void 0:s.id,o=l?A.getCaretPosition(document.activeElement):null,i=A.fromMarkup(e),a=[],u=this.getAsElem(0).value,c=i.get(0),d=u.parentNode,h=c.getAsElem(0).value;if(d.replaceChild(h,u),a.push(new A(h)),this.isAbsent())return this;let E=[];i.length>1&&(E=E.concat(...i.values.slice(1)),a.push(A.byId(h).insertAfter(new A(...E)))),t&&this.runScripts(),n&&this.runCss();let v=A.byId(l);return l&&v.isPresent()&&null!=o&&void 0!==o&&v.eachElem((e=>A.setCaretPosition(e,o))),i}runScripts(e=!1,t=T){const n=t=>{if(t.length){let n=[];new a.Es2019Array(...t).forEach((t=>{t.nonce?(n.length&&(this.globalEval(n.join("\n")),n.length=0),e?this.globalEvalSticky(t.evalText,t.nonce):this.globalEval(t.evalText,t.nonce)):n.push(t.evalText)})),n.length&&(e?this.globalEvalSticky(n.join("\n")):this.globalEval(n.join("\n")),n.length=0),t=[]}return t};let r=[],s=["","script","text/javascript","text/ecmascript","ecmascript"],l=l=>{var o,i,a,c;let h=l.tagName,E=(null!==(o=null==l?void 0:l.type)&&void 0!==o?o:"").toLowerCase();if(h&&d(h,"script")&&-1!=s.indexOf(E)){let s=l.getAttribute("src");if(void 0!==s&&null!=s&&s.length>0){let o=null!==(i=null==l?void 0:l.nonce)&&void 0!==i?i:l.getAttribute("nonce").value;t(s)&&(r=n(r),e?o?this.loadScriptEvalSticky(s,0,o):this.loadScriptEvalSticky(s,0):o?this.loadScriptEval(s,0,o):this.loadScriptEval(s,0))}else{let e=u(l.text||l.innerText||l.innerHTML),t=!0;for(;t;)t=!1,"\x3c!--"==e.substring(0,4)&&(e=e.substring(4),t=!0),"//\x3c!--"==e.substring(0,4)&&(e=e.substring(6),t=!0),"//<![CDATA["==e.substring(0,11)&&(e=e.substring(11),t=!0);let n=null!==(c=null!==(a=null==l?void 0:l.nonce)&&void 0!==a?a:l.getAttribute("nonce").value)&&void 0!==c?c:"";r.push({nonce:n,evalText:e})}}};try{new A(this.filterSelector("script"),this.querySelectorAll("script")).asArray.flatMap((e=>[...e.values])).sort(((e,t)=>t.compareDocumentPosition(e)-3)).forEach((e=>l(e))),n(r)}catch(e){console&&console.error&&console.error(e.message||e.description)}finally{l=null}return this}runCss(){return new A(this.filterSelector("link, style"),this.querySelectorAll("link, style")).asArray.flatMap((e=>[...e.values])).sort(((e,t)=>e.compareDocumentPosition(t)-3)).forEach((e=>(e=>{const t=A.byId(e),n=t.tagName.orElse("").value;let r=A.fromMarkup(`<${n.toLowerCase()} />`);r=r.copyAttrs(t),r.innerHTML=e.innerHTML,t.replace(r)})(e))),this}click(){return this.fireEvent("click"),this}addEventListener(e,t,n){return this.eachElem((r=>r.addEventListener(e,t,n))),this}removeEventListener(e,t,n){return this.eachElem((r=>r.removeEventListener(e,t,n))),this}fireEvent(e,t={}){let n={bubbles:!0,cancelable:!0};n=(0,E.simpleShallowMerge)(n,t),this.eachElem((t=>{let r;if(t.ownerDocument)r=t.ownerDocument;else{if(9!=t.nodeType)throw new Error("Invalid node passed to fireEvent: "+t.id);r=t}if(t.dispatchEvent){let r=Event;switch(e){case"click":case"mousedown":case"mouseup":case"mousemove":r=this.global().MouseEvent;break;case"keyup":case"keydown":case"keypress":r=this.global().KeyboardEvent;break;case"focus":case"change":case"blur":case"select":break;default:throw"fireEvent: Couldn't find an event class for event '"+e+"'."}let s=new r(e,n);s.synthetic=!0,t.dispatchEvent(s)}else if(t.fireEvent){let s=r.createEventObject();s.synthetic=!0,Object.keys(n).forEach((e=>s[e]=n[e])),t.fireEvent("on"+e,s)}}))}textContent(e=""){return this.asArray.map((e=>e.getAsElem(0).orElseLazy((()=>({textContent:""}))).value.textContent||"")).reduce(((t,n)=>[t,e,n].join("")),"")}innerText(e=""){return this.asArray.map((e=>e.getAsElem(0).orElseLazy((()=>({innerText:""}))).value.innerText||"")).reduce(((t,n)=>[t,n].join(e)),"")}encodeFormElement(e={}){if(this.name.isAbsent())return;let t=(0,E.simpleShallowMerge)(e);return this.each((e=>{var n,r;if(e.name.isAbsent())return;let s=e.name.value,l=e.tagName.orElse("__none__").value.toLowerCase(),o=e.type.orElse("__none__").value.toLowerCase();if(o=o.toLowerCase(),("input"==l||"textarea"==l||"select"==l)&&null!=s&&""!=s&&!e.disabled){if("select"==l){let n=e.getAsElem(0).value;if(n.selectedIndex>=0){let e=n.options.length;for(let r=0;r<e;r++)if(n.options[r].selected){let e=n.options[r];(0,E.append)(t,s).value=null!=e.getAttribute("value")?e.value:e.text}}}if(l!=_.SELECT&&o!=_.BUTTON&&o!=_.RESET&&o!=_.SUBMIT&&o!=_.IMAGE&&(o!=_.CHECKBOX&&o!=_.RADIO||e.checked)){let l=null===(r=null===(n=e.value)||void 0===n?void 0:n.value)||void 0===r?void 0:r.files,o=null!=l?l:[];if(null==o?void 0:o.length)(0,E.assign)(t,s).value=Array.from(o);else{if(l)return;(0,E.append)(t,s).value=e.inputValue.value}}}})),t}get cDATAAsString(){return this.asArray.flatMap((e=>e.childNodes.asArray)).filter((e=>{var t,n;return 4==(null===(n=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.value)||void 0===n?void 0:n.nodeType)})).reduce(((e,t)=>{var n,r,s;return e.push(null!==(s=null===(r=null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.value)||void 0===r?void 0:r.data)&&void 0!==s?s:""),e}),[]).join("")}subNodes(e,t){return s.Optional.fromNullable(t).isAbsent()&&(t=this.length),new A(...this.rootNode.slice(e,Math.min(t,this.length)))}limits(e){return this._limits=e,this}hasNext(){let e=-1!=this._limits&&this.pos>=this._limits-1,t=this.pos>=this.values.length-1;return!(e||t)}next(){return this.hasNext()?(this.pos++,new A(this.values[this.pos])):null}lookAhead(e=1){return this.values.length-1<this.pos+e?l.ITERATION_STATUS.EO_STRM:new A(this.values[this.pos+e])}current(){return-1==this.pos?l.ITERATION_STATUS.BEF_STRM:new A(this.values[this.pos])}reset(){this.pos=-1}attachShadow(e={mode:"open"}){let t=[];return this.eachElem((n=>{var r;let s;if(!(null===(r=n)||void 0===r?void 0:r.attachShadow))throw new Error("Shadow dom creation not supported by the browser, please use a shim, to gain this functionality");s=A.byId(n.attachShadow(e)),t.push(s)})),new A(...t)}waitUntilDom(e){return r(this,arguments,void 0,(function*(e,t={attributes:!0,childList:!0,subtree:!0,timeout:500,interval:100}){return function(e,t,n={attributes:!0,childList:!0,subtree:!0,timeout:500,interval:100}){return new Promise(((r,s)=>{let l=null;const o=new Error("Mutation observer timeout");function i(e,t){let r=null;return t(e)?e:(r=n.childList?t(e)?e:e.childNodes.filter((e=>t(e))).first().value.value:n.subtree?t(e)?e:e.querySelectorAll(" * ").filter((e=>t(e))).first().value.value:t(e)?e:null,r)}let a=e;if(a=i(a,t))r(new A(a));else if("undefined"!=typeof MutationObserver){const i=setTimeout((()=>(l.disconnect(),s(o))),n.timeout),a=n=>{const s=new A(n.map((e=>e.target))).filter((e=>t(e))).first();s.isPresent()&&(clearTimeout(i),l.disconnect(),r(new A(s||e)))};l=new MutationObserver(a);let u=Object.assign({},n);delete u.timeout,e.eachElem((e=>{l.observe(e,u)}))}else{let l=setInterval((()=>{let n=i(e,t);n&&(a&&(clearTimeout(a),clearInterval(l),l=null),r(new A(n||e)))}),n.interval),a=setTimeout((()=>{l&&(clearInterval(l),s(o))}),n.timeout)}}))}(this,e,t)}))}get shadowElements(){let e=(this.querySelectorAll("*").filter((e=>e.hasShadow)).allElems()||[]).map((e=>e.shadowRoot));return new A(...e)}get shadowRoot(){let e=[];for(let t=0;t<this.rootNode.length;t++)this.rootNode[t].shadowRoot&&e.push(this.rootNode[t].shadowRoot);return new A(...e)}get hasShadow(){for(let e=0;e<this.rootNode.length;e++)if(this.rootNode[e].shadowRoot)return!0;return!1}static getCaretPosition(e){let t=0;try{if(null===document||void 0===document?void 0:document.selection){e.focus();let n=document.selection.createRange();n.moveStart("character",-e.value.length),t=n.text.length}}catch(e){}return t}static setCaretPosition(e,t){(null==e?void 0:e.focus)&&(null==e||e.focus()),(null==e?void 0:e.setSelectiongRange)&&(null==e||e.setSelectiongRange(t,t))}[Symbol.iterator](){return{next:()=>({done:!this.hasNext(),value:this.next()})}}concat(e,t=!0){let n=this.asArray;const r=new A(...n.concat(e.asArray));if(!t)return r;let s={};return new A(...r.asArray.filter((e=>{const t=!(null==s?void 0:s[e.value.value.outerHTML]);return s[e.value.value.outerHTML]=!0,t})))}append(e){return this.each((t=>e.appendTo(t))),this}prependTo(e){return e.eachElem((e=>{e.prepend(...this.allElems())})),this}prepend(e){return this.eachElem((t=>{t.prepend(...e.allElems())})),this}_querySelectorAll(e){var t,n;if(!(null===(t=null==this?void 0:this.rootNode)||void 0===t?void 0:t.length))return this;let r=[];for(let t=0;t<this.rootNode.length;t++){if(!(null===(n=this.rootNode[t])||void 0===n?void 0:n.querySelectorAll))continue;let s=this.rootNode[t].querySelectorAll(e);r=r.concat(...h(s))}return new A(...r)}_querySelectorAllDeep(e){var t;if(!(null===(t=null==this?void 0:this.rootNode)||void 0===t?void 0:t.length))return this;let n=new A(...this.rootNode),r=e.split(/\/shadow\//);for(let e=0;e<r.length;e++){if(""==r[e])continue;let t=r[e];n=n.querySelectorAll(t),e<r.length-1&&(n=n.shadowRoot)}return n}_closest(e){var t,n;if(!(null===(t=null==this?void 0:this.rootNode)||void 0===t?void 0:t.length))return this;let r=[];for(let t=0;t<this.rootNode.length;t++){if(!(null===(n=this.rootNode[t])||void 0===n?void 0:n.closest))continue;let s=[this.rootNode[t].closest(e)];r=r.concat(...s)}return new A(...r)}_closestDeep(e){var t;if(!(null===(t=null==this?void 0:this.rootNode)||void 0===t?void 0:t.length))return this;let n=new A(...this.rootNode),r=e.split(/\/shadow\//);for(let e=0;e<r.length;e++){if(""==r[e])continue;let t=r[e];n=n.closest(t),e<r.length-1&&(n=n.shadowRoot)}return n}_matchesSelector(e,t){if(e.matches)return e.matches(t);var n=(document||ownerDocument).querySelectorAll(t);return-1!==Array.prototype.indexOf.call(n,e)}_loadScriptEval(e,t,n=0,r){let s=this.createSourceNode(t,r),l=this.createSourceNode(null,r),o=`nonce_${Date.now()}_${Math.random()}`;l.innerHTML=`document.head["${o}"] = true`;let i=document.head;if(i.appendChild(l),i.removeChild(l),i[o]){try{n?setTimeout((()=>{i.appendChild(s),e||i.removeChild(s)}),n):(i.appendChild(s),e||i.removeChild(s))}finally{delete i[o]}return this}}resolveAttributeHolder(e="value"){let t=[];return t[e]=null,e in this.getAsElem(0).value?this.getAsElem(0).value:t}createSourceNode(e,t){let n=document.createElement("script");return n.type="text/javascript",t&&(void 0!==(null==n?void 0:n.nonce)?n.nonce=t:n.setAttribute("nonce",t)),e&&(n.src=e),n}applyNonce(e,t){e&&(void 0!==(null==t?void 0:t.nonce)?t.nonce=e:t.setAttribute("nonce",e))}}t.DomQuery=A,A.absent=new A,A.global=i._global$,t.DomQueryCollector=class{constructor(){this.data=[]}collect(e){this.data.push(e)}get finalValue(){return new A(...this.data)}},t.DQ=A,t.DQ$=A.querySelectorAll},86(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Es2019Array=void 0,t._Es2019Array=r;class n extends Array{constructor(...e){super(...e),e._another?this._another=e._another:this._another=e,this.flatMap=e=>this._flatMap(e),this.flat=(e=1)=>this._flat(e)}map(e,t){return new r(...Array.prototype.map.call(this._another,e,t))}concat(...e){return new r(...Array.prototype.concat.call(this._another,...e))}reverse(){return new r(...Array.prototype.reverse.call(this._another))}slice(e,t){return new r(...Array.prototype.slice.call(this._another,e,t))}splice(e,t){return new r(...Array.prototype.splice.call(this._another,e,null!=t?t:0))}filter(e,t){return new r(...Array.prototype.filter.call(this._another,e,t))}reduce(e,t){return Array.prototype.reduce.call(this._another,e,t)}_flat(e=1){return this._flatResolve(this._another,e)}_flatResolve(e,n=1){if(0==n)return e;let r=[];return e.forEach((e=>{e=Array.isArray(e)?e:[e];let t=this._flatResolve(e,n-1);r=r.concat(t)})),new t.Es2019Array(...r)}_flatMap(e){let t=this.map((t=>e(t)));return this._flatResolve(t)}}function r(...e){let t=new n(...e);return new Proxy(t,{get:(e,t,n)=>"symbol"==typeof t?e._another[t]:isNaN(parseInt(t))?e[t]:e._another[t],set:(e,t,n)=>(e[t]=n,e._another[t]=n,!0)})}t.Es2019Array=Array.prototype.flatMap?function(...e){return(null==e?void 0:e.flatMap)?e:r(...e)}:r},228(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t._global$=function(){var e;let t="undefined"!=typeof globalThis&&globalThis.window?globalThis.window:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0!==n.g&&(null===n.g||void 0===n.g?void 0:n.g.window)?n.g.window:void 0!==n.g?n.g:null;return null!==(e=null==t?void 0:t.window)&&void 0!==e?e:t}},519(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Lang=void 0;const r=n(204),s=n(86);var l;!function(e){function t(e){let t=/\s/,n=(e=e.replace(/^\s\s*/,"")).length;for(;t.test(e.charAt(--n)););return e.slice(0,n+1)}function n(e){return!!arguments.length&&null!=e&&("string"==typeof e||e instanceof String)}e.saveResolve=function(e,t=null){try{let n=e();return r.Optional.fromNullable(null!=n?n:t)}catch(e){return r.Optional.absent}},e.saveResolveLazy=function(e,t=null){try{let n=e();return r.Optional.fromNullable(null!=n?n:t())}catch(e){return r.Optional.absent}},e.strToArray=function(e,n=/\./gi){let r=[];return e.split(n).forEach((e=>{r.push(t(e))})),r},e.trim=t,e.objToArray=function(e,t=0,n=[]){return"__undefined__"==(null!=e?e:"__undefined__")?null!=n?n:null:e instanceof Array&&!t&&!n?e:new s.Es2019Array(...n.concat(Array.prototype.slice.call(e,t)))},e.equalsIgnoreCase=function(e,t){let n=null!=t?t:"___no_value__";return(null!=e?e:"___no_value__").toLowerCase()===n.toLowerCase()},e.assertType=function(e,t){return n(t)?typeof e==t:e instanceof t},e.isString=n,e.isFunc=function(e){return e instanceof Function||"function"==typeof e},e.objAssign=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");let n=Object(e);return Object.assign?(t.forEach((e=>Object.assign(n,e))),n):(t.filter((e=>null!=e)).forEach((e=>{let t=e;Object.keys(t).filter((e=>Object.prototype.hasOwnProperty.call(t,e))).forEach((e=>n[e]=t[e]))})),n)}}(l||(t.Lang=l={}))},204(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueEmbedder=t.Optional=t.Monad=void 0;const r=n(86);class s{constructor(e){this._value=e}get value(){return this._value}map(e){e||(e=e=>e);let t=e(this.value);return new s(t)}flatMap(e){let t=this.map(e);for(;(null==t?void 0:t.value)instanceof s;)t=t.value;return t}}t.Monad=s;class l extends s{constructor(e){super(e)}get value(){return this._value instanceof s?this._value.flatMap().value:this._value}static fromNullable(e){return new l(e)}isAbsent(){return void 0===this.value||null==this.value}isPresent(e){let t=this.isAbsent();return!t&&e&&e.call(this,this),!t}ifPresentLazy(e=()=>{}){return this.isPresent.call(this,e),this}orElse(e){return this.isPresent()?this:null==e?l.absent:this.flatMap((()=>e))}orElseLazy(e){return this.isPresent()?this:this.flatMap(e)}flatMap(e){let t=super.flatMap(e);return t instanceof l?t.flatMap():l.fromNullable(t.value)}getIf(...e){e=this.preprocessKeys(...e);let t=this;for(let n=0;n<e.length;n++){let r=this.keyVal(e[n]),s=this.arrayIndex(e[n]);if(""===r&&s>=0){if(t=this.getClass().fromNullable(t.value instanceof Array?t.value.length<s?null:t.value[s]:null),t.isAbsent())return t}else if(r&&s>=0){if(t.getIfPresent(r).isAbsent())return t;if(t=t.getIfPresent(r).value instanceof Array?this.getClass().fromNullable(t.getIfPresent(r).value[s]):this.getClass().absent,t.isAbsent())return t}else{if(t=t.getIfPresent(r),t.isAbsent())return t;s>-1&&(t=this.getClass().fromNullable(t.value[s]))}}return t}match(e){return!this.isAbsent()&&e(this.value)}get(e=l.absent){return this.isAbsent()?this.getClass().fromNullable(e).flatMap():this.getClass().fromNullable(this.value).flatMap()}toJson(){return JSON.stringify(this.value)}getClass(){return l}arrayIndex(e){let t=e.indexOf("["),n=e.indexOf("]");return t>=0&&n>0&&t<n?parseInt(e.substring(t+1,n)):-1}keyVal(e){let t=e.indexOf("[");return t>=0?e.substring(0,t):e}getIfPresent(e){return this.isAbsent()?this.getClass().absent:this.getClass().fromNullable(this.value[e]).flatMap()}resolve(e){if(this.isAbsent())return l.absent;try{return l.fromNullable(e(this.value))}catch(e){return l.absent}}preprocessKeys(...e){return new r.Es2019Array(...e).flatMap((e=>new r.Es2019Array(...e.split(/]\s*\[/gi)).map((e=>(-1==(e=e.replace(/^\s+|\s+$/g,"")).indexOf("[")&&-1!=e.indexOf("]")&&(e="["+e),-1==e.indexOf("]")&&-1!=e.indexOf("[")&&(e+="]"),e)))))}}t.Optional=l,l.absent=l.fromNullable(null);class o extends l{constructor(e,t="value"){super(e),this.key=t}get value(){return this._value?this._value[this.key]:null}set value(e){this._value&&(this._value[this.key]=e)}orElse(e){let t={};return t[this.key]=e,this.isPresent()?this:new o(t,this.key)}orElseLazy(e){if(this.isPresent())return this;{let t={};return t[this.key]=e(),new o(t,this.key)}}getClass(){return o}static fromNullable(e,t="value"){return new o(e,t)}}t.ValueEmbedder=o,o.absent=o.fromNullable(null)},785(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCollector=t.QueryFormStringCollector=t.QueryFormDataCollector=t.FormDataCollector=t.ConfigCollector=t.AssocArrayCollector=t.Run=t.ArrayAssocArrayCollector=t.InverseArrayCollector=t.ShimArrayCollector=t.MappedStreamDataSource=t.FilteredStreamDatasource=t.ArrayStreamDataSource=t.SequenceDataSource=t.MultiStreamDatasource=t.ITERATION_STATUS=void 0,t.calculateSkips=o;const r=n(86),s=n(517);var l;function o(e){let t=1;for(;e.lookAhead(t)!=l.EO_STRM;)t++;return--t}!function(e){e.EO_STRM="__EO_STRM__",e.BEF_STRM="___BEF_STRM__"}(l||(t.ITERATION_STATUS=l={})),t.MultiStreamDatasource=class{constructor(e,...t){this.first=e,this.selectedPos=0,this.strms=[e].concat(...t),this.activeStrm=this.strms[this.selectedPos]}current(){return this.activeStrm.current()}hasNext(){return!!this.activeStrm.hasNext()||!(this.selectedPos>=this.strms.length)&&-1!=this.findNextStrm()}findNextStrm(){let e=!1,t=this.selectedPos;for(;!e&&t<this.strms.length;)e=this.strms[t].hasNext(),e||t++;return e?t:-1}lookAhead(e=1){const t=this.strms.slice(this.selectedPos);if(!t.length)return l.EO_STRM;const n=[...t];for(;n.length;){let t=n.shift(),r=t.lookAhead(e);if(r!=l.EO_STRM)return r;e-=o(t)}return l.EO_STRM}next(){return this.activeStrm.hasNext()?this.activeStrm.next():(this.selectedPos=this.findNextStrm(),-1==this.selectedPos?l.EO_STRM:(this.activeStrm=this.strms[this.selectedPos],this.activeStrm.next()))}reset(){this.activeStrm=this.strms[0],this.selectedPos=0;for(let e=0;e<this.strms.length;e++)this.strms[e].reset()}},t.SequenceDataSource=class{constructor(e,t){this.total=t,this.start=e,this.value=e-1}hasNext(){return this.value<this.total-1}next(){return this.value++,this.value<=this.total-1?this.value:l.EO_STRM}lookAhead(e=1){return this.value+e>this.total-1?l.EO_STRM:this.value+e}reset(){this.value=this.start-1}current(){return this.start-1?l.BEF_STRM:this.value}},t.ArrayStreamDataSource=class{constructor(...e){this.dataPos=-1,this.value=e}lookAhead(e=1){return this.dataPos+e>this.value.length-1?l.EO_STRM:this.value[this.dataPos+e]}hasNext(){return this.value.length-1>this.dataPos}next(){var e;return this.dataPos++,null!==(e=null==this?void 0:this.value[this.dataPos])&&void 0!==e?e:l.EO_STRM}reset(){this.dataPos=-1}current(){return this.value[Math.max(0,this.dataPos)]}},t.FilteredStreamDatasource=class{constructor(e,t){this._current=l.BEF_STRM,this._filterIdx={},this._unfilteredPos=0,this.filterFunc=e,this.inputDataSource=t}hasNext(){let e,t=1,n=!1;for(;!n&&(e=this.inputDataSource.lookAhead(t))!=l.EO_STRM;)this.filterFunc(e)?(this._filterIdx[this._unfilteredPos+t]=!0,n=!0):t++;return n}next(){var e,t;let n=l.EO_STRM;for(;this.inputDataSource.hasNext();){this._unfilteredPos++;let r=this.inputDataSource.next();if(r!=l.EO_STRM&&(null!==(t=null===(e=this._filterIdx)||void 0===e?void 0:e[this._unfilteredPos])&&void 0!==t&&t||this.filterFunc(r))){this._filterIdx[this._unfilteredPos]=!0,n=r;break}}return this._current=n,n}lookAhead(e=1){var t;let n;for(let r=1;e>0&&(n=this.inputDataSource.lookAhead(r))!=l.EO_STRM;r++)((null===(t=this._filterIdx)||void 0===t?void 0:t[this._unfilteredPos+r])||this.filterFunc(n))&&(e--,this._filterIdx[this._unfilteredPos+r]=!0);return n}current(){return this._current}reset(){this._current=l.BEF_STRM,this._filterIdx={},this._unfilteredPos=0,this.inputDataSource.reset()}},t.MappedStreamDataSource=class{constructor(e,t){this.mapFunc=e,this.inputDataSource=t}hasNext(){return this.inputDataSource.hasNext()}next(){return this.mapFunc(this.inputDataSource.next())}reset(){this.inputDataSource.reset()}current(){return this.mapFunc(this.inputDataSource.current())}lookAhead(e=1){const t=this.inputDataSource.lookAhead(e);return t==l.EO_STRM?t:this.mapFunc(t)}},t.ShimArrayCollector=class{constructor(){this.data=new r.Es2019Array(...[])}collect(e){this.data.push(e)}get finalValue(){return this.data}},t.InverseArrayCollector=class{constructor(){this.data=[]}collect(e){this.data.unshift(e)}get finalValue(){return this.data}},t.ArrayAssocArrayCollector=class{constructor(){this.finalValue={}}collect(e){var t,n,r,s;let l=null!==(t=null==e?void 0:e[0])&&void 0!==t?t:e;this.finalValue[l]=null!==(r=null===(n=this.finalValue)||void 0===n?void 0:n[l])&&void 0!==r?r:[],this.finalValue[l].push(null===(s=null==e?void 0:e[1])||void 0===s||s)}},t.Run=class{collect(e){}get finalValue(){return null}},t.AssocArrayCollector=class{constructor(){this.finalValue={}}collect(e){var t,n;this.finalValue[null!==(t=e[0])&&void 0!==t?t:e]=null===(n=e[1])||void 0===n||n}},t.ConfigCollector=class{constructor(){this.finalValue=new s.Config({})}collect(e){this.finalValue.append(e.key).value=e.value}},t.FormDataCollector=class{constructor(){this.finalValue=new FormData}collect(e){this.finalValue.append(e.key,e.value)}},t.QueryFormDataCollector=class{constructor(){this.finalValue=new FormData}collect(e){let t=e.encodeFormElement();t.isPresent()&&this.finalValue.append(e.name.value,t.get(e.name).value)}},t.QueryFormStringCollector=class{constructor(){this.formData=[]}collect(e){let t=e.encodeFormElement();t.isPresent()&&this.formData.push([e.name.value,t.get(e.name).value])}get finalValue(){return new r.Es2019Array(...this.formData).map((e=>e.join("="))).reduce(((e,t)=>[e,t].join("&")))}},t.ArrayCollector=class{constructor(){this.data=[]}collect(e){this.data.push(e)}get finalValue(){return this.data}}},100(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.XQ=t.XMLQuery=void 0;const r=n(519),s=n(331),l=r.Lang.isString,o=n(228);class i extends s.DomQuery{constructor(e,t="text/xml"){var n;l(e)?super(null==(n=e)?null:r.Lang.saveResolveLazy((()=>new((0,o._global$)().DOMParser)),(()=>(()=>{let e=new ActiveXObject("Microsoft.XMLDOM");return e.async=!1,{parseFromString:(t,n)=>e.loadXML(t)}})())).value.parseFromString(n,t)):super(e)}isXMLParserError(){return this.querySelectorAll("parsererror").isPresent()}toString(){let e=[];return this.eachElem((t=>{var n,r,s,l;let i=null!==(l=null===(s=null===(r=null===(n=(0,o._global$)())||void 0===n?void 0:n.XMLSerializer)||void 0===r?void 0:r.constructor())||void 0===s?void 0:s.serializeToString(t))&&void 0!==l?l:null==t?void 0:t.xml;i&&e.push(i)})),e.join("")}parserErrorText(e){return this.querySelectorAll("parsererror").textContent(e)}static parseXML(e){return new i(e)}static parseHTML(e){return new i(e,"text/html")}static fromString(e,t="text/xml"){return new i(e,t)}}t.XMLQuery=i,t.XQ=i},257(e,t,n){var r,s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o<n.length;o++)"default"!==n[o]&&s(t,e,n[o]);return l(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t._Es2019Array=t.Es2019Array=t.Assoc=t.CONFIG_VALUE=t.CONFIG_ANY=t.Config=t.shallowMerge=t.simpleShallowMerge=t.append=t.assignIf=t.assign=t.XQ=t.XMLQuery=t.ValueEmbedder=t.Optional=t.Monad=t.Lang=t.DQ$=t.DQ=t.DomQueryCollector=t.ElementAttribute=t.DomQuery=void 0;var i=n(331);Object.defineProperty(t,"DomQuery",{enumerable:!0,get:function(){return i.DomQuery}}),Object.defineProperty(t,"ElementAttribute",{enumerable:!0,get:function(){return i.ElementAttribute}}),Object.defineProperty(t,"DomQueryCollector",{enumerable:!0,get:function(){return i.DomQueryCollector}}),Object.defineProperty(t,"DQ",{enumerable:!0,get:function(){return i.DQ}}),Object.defineProperty(t,"DQ$",{enumerable:!0,get:function(){return i.DQ$}});var a=n(519);Object.defineProperty(t,"Lang",{enumerable:!0,get:function(){return a.Lang}});var u=n(204);Object.defineProperty(t,"Monad",{enumerable:!0,get:function(){return u.Monad}}),Object.defineProperty(t,"Optional",{enumerable:!0,get:function(){return u.Optional}}),Object.defineProperty(t,"ValueEmbedder",{enumerable:!0,get:function(){return u.ValueEmbedder}});var c=n(100);Object.defineProperty(t,"XMLQuery",{enumerable:!0,get:function(){return c.XMLQuery}}),Object.defineProperty(t,"XQ",{enumerable:!0,get:function(){return c.XQ}});var d=n(771);Object.defineProperty(t,"assign",{enumerable:!0,get:function(){return d.assign}}),Object.defineProperty(t,"assignIf",{enumerable:!0,get:function(){return d.assignIf}}),Object.defineProperty(t,"append",{enumerable:!0,get:function(){return d.append}}),Object.defineProperty(t,"simpleShallowMerge",{enumerable:!0,get:function(){return d.simpleShallowMerge}}),Object.defineProperty(t,"shallowMerge",{enumerable:!0,get:function(){return d.shallowMerge}});var h=n(517);Object.defineProperty(t,"Config",{enumerable:!0,get:function(){return h.Config}});var E=n(517);Object.defineProperty(t,"CONFIG_ANY",{enumerable:!0,get:function(){return E.CONFIG_ANY}});var v=n(517);Object.defineProperty(t,"CONFIG_VALUE",{enumerable:!0,get:function(){return v.CONFIG_VALUE}}),t.Assoc=o(n(771));var _=n(86);Object.defineProperty(t,"Es2019Array",{enumerable:!0,get:function(){return _.Es2019Array}}),Object.defineProperty(t,"_Es2019Array",{enumerable:!0,get:function(){return _._Es2019Array}})},973(e,t,n){t.$A=t.J_=void 0;const r=n(644),s=n(54),l=n(19),o=n(351);var i,a;!function(e){let t,n,l;e.specversion=4e5,e.implversion=0,e.separatorchar=function(){const e="#{facesContext.namingContainerSeparatorChar}";return e.match(/\#\{facesContext.namingContainerSeparatorChar\}/gi)?r.Implementation.getSeparatorChar():e}(),e.contextpath="#{facesContext.externalContext.requestContextPath}",e.getProjectStage=function(){return r.Implementation.getProjectStage()},e.getViewState=function(e){return r.Implementation.getViewState(e)},e.getClientWindow=function(e){return r.Implementation.getClientWindow(e)},function(e){e.request=function(e,t,n){r.Implementation.request(e,t,n)},e.response=function(e,t){r.Implementation.response(e,t)},e.addOnError=function(e){r.Implementation.addOnError(e)},e.addOnEvent=function(e){r.Implementation.addOnEvent(e)}}(t=e.ajax||(e.ajax={})),function(e){e.chain=function(e,t,...n){return r.Implementation.chain(e,t,...n)}}(n=e.util||(e.util={})),function(e){e.init=function(e,t,n,r,l,o,i,a,u){s.PushImpl.init(e,t,n,r,l,o,i,a,u)},e.open=function(e){s.PushImpl.open(e)},e.close=function(e){s.PushImpl.close(e)}}(l=e.push||(e.push={}))}(i||(t.J_=i={})),function(e){e.ab=function(e,t,n,r,s,l={},i={}){var a,u;l||(l={}),i||(i={}),n&&(l[o.CTX_OPTIONS_PARAMS]=null!==(a=null==l?void 0:l[o.CTX_OPTIONS_PARAMS])&&void 0!==a?a:{},l[o.CTX_OPTIONS_PARAMS][(0,o.$nsp)(o.P_BEHAVIOR_EVENT)]=n),r&&(l[o.CTX_OPTIONS_EXECUTE]=r),s&&(l[o.CTX_PARAM_RENDER]=s),l.params||(l.params={});for(let e in i)l.params[e]=i[e];(null!==(u=null===window||void 0===window?void 0:window.faces)&&void 0!==u?u:window.jsf).ajax.request(e,t,l)};const t=[];let n=null;e.onDomReady=function(e){"complete"!==document.readyState?(t.push(e),n||(n=()=>{window.removeEventListener("DOMContentLoaded",n),n=null;try{t.forEach((e=>e()))}finally{t.length=0}},window.addEventListener("DOMContentLoaded",n))):(n&&n(),e())},e.reserveNamespace=function(e){let t=window;const n=e.split(".");for(const e of n)t[e]=t[e]||{},t=t[e]},e.oam=l.oam}(a||(t.$A=a={}))},644(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Implementation=void 0;const r=n(121),s=n(229),l=n(257),o=n(22),i=n(780),a=n(234),u=n(471),c=n(351),d=n(7),h=n(680),E=n(666);var v,_,f;!function(e){e.Production="Production",e.Development="Development",e.SystemTest="SystemTest",e.UnitTest="UnitTest"}(v||(v={})),function(e){e.onerror="onerror",e.onevent="onevent",e.render="render",e.execute="execute",e.myfaces="myfaces",e.delay="delay",e.timeout="timeout",e.resetValues="resetValues",e.windowId="windowId",e.params="params"}(_||(_={})),function(e){const t=l.Lang.trim,n=u.ExtLang.getMessage,f=u.ExtLang.getGlobalConfig;var p=o.Assertions.assert;const T=u.ExtLang.ofAssoc,A=u.ExtLang.collectAssoc;let m=null,R=null,g=[],S=[];function y(){const e=i.ExtDomQuery.searchJsfJsFor(/stage=([^&;]*)/).value;return e in v?e:v.Production}function O(e,t=function(e){}){t(e),S.forEach((t=>{t(e)})),f("defaultErrorOutput",console?console.error:alert)(e)}function P(e,t){const n=(0,d.resolveViewRootId)(t);n&&(e.assign(c.NAMED_VIEWROOT).value=!0,e.assign(c.NAMING_CONTAINER_ID).value=n)}function M(e,n,r,s,o,i=""){const a=(0,c.$faces)().separatorchar;let u=r?t(r).split(/\s+/gi):[],d=[],h={};const E=e=>{const t=i.length?i+a:c.EMPTY_STR;let n=s.id.value;const r=n.substring(0,n.lastIndexOf(a)),o=r.length?r+a:c.EMPTY_STR,u=0===e.indexOf(a);let d;return u||i.length&&0==e.indexOf(t)?d=[t,e=0==(e=u?e.substring(1):e).indexOf(t)?e.substring(t.length):e].join(c.EMPTY_STR):(0==n.indexOf(t)&&(n=n.substring(t.length)),d=0==e.indexOf(n)?[t,e].join(c.EMPTY_STR):[o,e].join(c.EMPTY_STR)),l.DQ.byId(d).isPresent()?d:e};for(let t=0;t<u.length;t++)if(!(u[t]in h))switch(u[t]){case c.IDENT_NONE:return e.delete(n);case c.IDENT_ALL:return e.assign(n).value=c.IDENT_ALL,e;case c.IDENT_FORM:d.push(E(s.id.value)),h[s.id.value]=!0;break;case c.IDENT_THIS:o in h||(d.push(E(o)),h[o]=!0);break;default:d.push(E(u[t])),h[u[t]]=!0}return e.assign(n).value=d.join(" "),e}function I(){var e,t;return null!==(t=null===(e=null===window||void 0===window?void 0:window[c.MYFACES])||void 0===e?void 0:e.config)&&void 0!==t?t:{}}e.requestQueue=null,e.getSeparatorChar=function(){var e,t;return null!==(t=null===(e=I())||void 0===e?void 0:e.separator)&&void 0!==t?t:null!=R?R:R=i.ExtDomQuery.searchJsfJsFor(/separator=([^&;]*)/).orElse(":").value},e.reset=function(){m=null,R=null,g=[],S=[],e.requestQueue=null},e.getProjectStage=function(){var e,t;return null!==(t=null===(e=I())||void 0===e?void 0:e.projectStage)&&void 0!==t?t:null!=m?m:m=y()},e.resolveProjectStateFromURL=y,e.chain=function(e,n,...r){let s=!0;return r.every((r=>{let l=function(e,n,r){if("string"!=typeof r)return!1!==r.call(e,n);{let s=t(r);return 0==s.indexOf("function ")&&(s=`return ${s} (event)`),!1!==new Function("event",s).call(e,n)}}(e,n,r);return!1===l&&(s=!1),s})),s},e.request=function(t,n,r){var s,a,u,h,E,v,f,p,m,R,g,S,y,O,I,N,C,w,b,D,L,x,X,V,k,j,F,U,H;const{options:Q,elem:G,elementId:q,windowId:W,isResetValues:$}=(0,d.resolveDefaults)(n,r,t),Y=new i.ExtConfig({}),B=new i.ExtConfig({});o.Assertions.assertRequestIntegrity(Q,G);const z=(0,d.resolveForm)(G,n),J=(0,d.resolveViewId)(z),K=z.id.value,Z=(0,d.resolveDelay)(Q),ee=(0,d.resolveTimeout)(Q);var te;Y.assignIf(!!W,c.P_WINDOW_ID).value=W,Y.assign(c.CTX_PARAM_REQ_PASS_THR).value=(te=Q.value,T(te).filter((e=>!(e[0]in _))).reduce(A,{}));const ne=(re=Q.getIf(c.CTX_OPTIONS_PARAMS).orElse({}).value,Array.isArray(re)?re.reduce(A,{}):re);var re;let se=Y.getIf(c.CTX_PARAM_REQ_PASS_THR);var le,oe,ie,ae;se.$nspEnabled=!1,se.shallowMerge(new l.Config(ne),!0),se.$nspEnabled=!0,Y.assignIf(!!n,c.CTX_PARAM_REQ_PASS_THR,c.P_EVT).value=null==n?void 0:n.type,Y.assign(c.SOURCE).value=q,Y.assign(c.VIEW_ID).value=J,Y.assign(c.ON_EVENT).value=null===(s=Q.value)||void 0===s?void 0:s.onevent,Y.assign(c.ON_ERROR).value=null===(a=Q.value)||void 0===a?void 0:a.onerror,Y.assign(c.MYFACES).value=null===(u=Q.value)||void 0===u?void 0:u.myfaces,Y.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_AJAX_SOURCE).value=q,Y.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_AJAX).value=!0,Y.assignIf($,c.CTX_PARAM_REQ_PASS_THR,c.P_RESET_VALUES).value=!0,B.assign(c.CTX_PARAM_SRC_FRM_ID).value=K,B.assign(c.CTX_PARAM_UPLOAD_PREINIT).value=null===(v=null===(E=null===(h=Q.value)||void 0===h?void 0:h.myfaces)||void 0===E?void 0:E.upload)||void 0===v?void 0:v.preinit,B.assign(c.CTX_PARAM_UPLOAD_LOADSTART).value=null===(m=null===(p=null===(f=Q.value)||void 0===f?void 0:f.myfaces)||void 0===p?void 0:p.upload)||void 0===m?void 0:m.loadstart,B.assign(c.CTX_PARAM_UPLOAD_ON_PROGRESS).value=null===(S=null===(g=null===(R=Q.value)||void 0===R?void 0:R.myfaces)||void 0===g?void 0:g.upload)||void 0===S?void 0:S.progress,B.assign(c.CTX_PARAM_UPLOAD_LOADEND).value=null===(I=null===(O=null===(y=Q.value)||void 0===y?void 0:y.myfaces)||void 0===O?void 0:O.upload)||void 0===I?void 0:I.loadend,B.assign(c.CTX_PARAM_UPLOAD_LOAD).value=null===(w=null===(C=null===(N=Q.value)||void 0===N?void 0:N.myfaces)||void 0===C?void 0:C.upload)||void 0===w?void 0:w.load,B.assign(c.CTX_PARAM_UPLOAD_ERROR).value=null===(L=null===(D=null===(b=Q.value)||void 0===b?void 0:b.myfaces)||void 0===D?void 0:D.upload)||void 0===L?void 0:L.error,B.assign(c.CTX_PARAM_UPLOAD_ABORT).value=null===(V=null===(X=null===(x=Q.value)||void 0===x?void 0:x.myfaces)||void 0===X?void 0:X.upload)||void 0===V?void 0:V.abort,B.assign(c.CTX_PARAM_UPLOAD_TIMEOUT).value=null===(F=null===(j=null===(k=Q.value)||void 0===k?void 0:k.myfaces)||void 0===j?void 0:j.upload)||void 0===F?void 0:F.timeout,Y.assign(c.CTX_PARAM_REQ_PASS_THR,K).value=K,B.assign(c.CTX_PARAM_SRC_CTL_ID).value=q,B.assign(c.CTX_PARAM_PPS).value=null!==(H=null===(U=function(e){var t;return null===(t=T(e).filter((e=>"myfaces"==e[0])).reduce(A,{}))||void 0===t?void 0:t[c.MYFACES]}(Q.value))||void 0===U?void 0:U[c.MYFACES_OPTION_PPS])&&void 0!==H&&H,function(e,t){let n=(0,c.$faces)().getClientWindow(e.getAsElem(0).value);n&&(t.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_CLIENT_WINDOW).value=n)}(z,Y),oe=Y,ie=z,ae=q,(le=Q).getIf(c.CTX_OPTIONS_EXECUTE).isPresent()?(le.assign(c.CTX_OPTIONS_EXECUTE).value=[le.getIf(c.CTX_OPTIONS_EXECUTE).value,c.IDENT_THIS].join(" "),M(oe.getIf(c.CTX_PARAM_REQ_PASS_THR).get({}),c.P_EXECUTE,le.getIf(c.CTX_OPTIONS_EXECUTE).value,ie,ae,oe.getIf(c.VIEW_ID).value)):oe.assign(c.CTX_PARAM_REQ_PASS_THR,c.P_EXECUTE).value=ae,function(e,t,n,r){e.getIf(c.CTX_PARAM_RENDER).isPresent()&&M(t.getIf(c.CTX_PARAM_REQ_PASS_THR).get({}),c.P_RENDER,e.getIf(c.CTX_PARAM_RENDER).value,n,r,t.getIf(c.VIEW_ID).value)}(Q,Y,z,q),P(B,z),e.queueHandler.addRequestToQueue(G,z,Y,B,Z,ee)},e.response=function(e,t){r.Response.processResponse(e,t)},e.addOnError=function(e){S.push(e)},e.addOnEvent=function(e){g.push(e)},e.sendEvent=function(e,t=function(e){}){t(e),g.forEach((t=>t(e)))},e.stdErrorHandler=function(t,n,r,s=!1){try{O(a.ErrorData.fromClient(r))}finally{s&&e.requestQueue.clear()}},e.sendError=O,e.getClientWindow=function(e){const t="___mf_id_altered__",n="___init____";let r=e?l.DQ.byId(e):(0,l.DQ$)("form"),s=r.filterSelector(`input[name='${(0,c.$nsp)(c.P_CLIENT_WINDOW)}']`).orElseLazy((()=>r.querySelectorAll(`input[name='${(0,c.$nsp)(c.P_CLIENT_WINDOW)}']`))).asArray.map((e=>e.val)).reduce(((e,r)=>e==n?r:e==t||e!=r?t:r),n);return p(t!=s,"Multiple different windowIds found in document"),s!=n?s:(function(){const e=window.location.href,t=new RegExp("[\\?&]jfwid=([^&#\\;]*)").exec(e);return null!=t?l.Optional.fromNullable(t[1]):l.Optional.fromNullable(null)}()||i.ExtDomQuery.searchJsfJsFor(/jfwid=([^&;]*)/).orElse(null)).value},e.getViewState=function(e){let t=l.DQ.byId(e,!0);if(!t.isTag(c.HTML_TAG_FORM))throw new Error(n("ERR_VIEWSTATE"));const r=new l.Config({});P(r,l.DQ.byId(e));let s=t.deepElements.encodeFormElement();return(0,h.encodeFormData)(new i.ExtConfig(s),(0,d.resoveNamingContainerMapper)(r))},e.queueHandler={addRequestToQueue:function(t,n,r,l,o=0,i=0){e.requestQueue=null!==e.requestQueue&&void 0!==e.requestQueue?e.requestQueue:new E.XhrQueueController,e.requestQueue.enqueue(new s.XhrRequest(r,l,i),o)}}}(f||(t.Implementation=f={}))},54(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PushImpl=void 0;const r=n(351),s=n(257);var l;!function(e){const t=s.DQ.global().location.protocol.replace("http","ws")+"//";e.sockets={},e.components={},e.clientIdsByTokens={},e.reset=function(){e.sockets={},e.components={},e.clientIdsByTokens={}},e.init=function(r,l,i,a,u,c,d,h,E){var v,_,f;if(d=o(d),!s.DQ.global().WebSocket)return void d(-1,i);let p=l.substr(l.indexOf("?")+1);e.components[r]||(e.components[r]={channelToken:p,onopen:o(a),onmessage:o(u),onerror:o(c),onclose:d,behaviors:h,autoconnect:E},e.clientIdsByTokens[p]||(e.clientIdsByTokens[p]=[]),e.clientIdsByTokens[p].push(r),e.sockets[p]||(e.sockets[p]=new n(p,function(e){if(e.indexOf("://")<0){let n=s.DQ.global().location.hostname+":"+s.DQ.global().location.port;return t+n+e}return e}(l),i))),E&&(null!==(_=null===(v=s.DQ.global())||void 0===v?void 0:v.faces)&&void 0!==_?_:null===(f=s.DQ.global())||void 0===f?void 0:f.jsf).push.open(r)},e.open=function(t){var n;l(null===(n=e.components[t])||void 0===n?void 0:n.channelToken).open()},e.close=function(t){l(e.components[t].channelToken).close()};class n{constructor(e,t,n){this.channelToken=e,this.url=t,this.channel=n,this.reconnectAttempts=0}open(){this.socket&&1==this.socket.readyState||(this.socket=new WebSocket(this.url),this.bindCallbacks())}onopen(t){var n,r;if(!this.reconnectAttempts){let t=e.clientIdsByTokens[this.channelToken];for(let s=t.length-1;s>=0;s--){let l=t[s];null===(r=null===(n=e.components[l])||void 0===n?void 0:n.onopen)||void 0===r||r.call(n,this.channel)}}this.reconnectAttempts=0}onerror(t){var n,r,s;let l=JSON.parse(null!==(n=null==t?void 0:t.data)&&void 0!==n?n:null);for(let n=e.clientIdsByTokens[this.channelToken].length-1;n>=0;n--){let o=e.clientIdsByTokens[this.channelToken][n];if(document.getElementById(o))try{null===(s=null===(r=e.components[o])||void 0===r?void 0:r.onerror)||void 0===s||s.call(r,l,this.channel,t)}catch(e){}else e.clientIdsByTokens[this.channelToken].splice(n,1)}0==e.clientIdsByTokens[this.channelToken].length&&this.close()}onmmessage(t){var n,r,s;let l=JSON.parse(t.data);for(let o=e.clientIdsByTokens[this.channelToken].length-1;o>=0;o--){let i=e.clientIdsByTokens[this.channelToken][o];if(document.getElementById(i)){try{null===(r=null===(n=e.components[i])||void 0===n?void 0:n.onmessage)||void 0===r||r.call(n,l,this.channel,t)}catch(e){}let o=null===(s=null===e.components||void 0===e.components?void 0:e.components[i])||void 0===s?void 0:s.behaviors,a=null==o?void 0:o[l];if(a&&a.length)for(let e=0;e<a.length;e++)try{a[e](null)}catch(e){}}else e.clientIdsByTokens[this.channelToken].splice(o,1)}0==e.clientIdsByTokens[this.channelToken].length&&this.close()}onclose(t){var n,s;if(!this.socket||1e3==t.code&&t.reason==r.REASON_EXPIRED||1008==t.code||!this.reconnectAttempts||this.reconnectAttempts>=r.MAX_RECONNECT_ATTEMPTS){let r=e.clientIdsByTokens[this.channelToken];for(let l=r.length-1;l>=0;l--){let o=r[l];null===(s=null===(n=null===e.components||void 0===e.components?void 0:e.components[o])||void 0===n?void 0:n.onclose)||void 0===s||s.call(n,null==t?void 0:t.code,null==this?void 0:this.channel,t)}}else setTimeout(this.open,r.RECONNECT_INTERVAL*this.reconnectAttempts++)}close(){if(this.socket){let e=this.socket;this.socket=null,e.close()}}bindCallbacks(){this.socket.onopen=e=>this.onopen(e),this.socket.onmessage=e=>this.onmmessage(e),this.socket.onclose=e=>this.onclose(e),this.socket.onerror=e=>this.onerror(e)}}function l(t){let n=e.sockets[t];if(n)return n;throw new Error("Unknown channelToken: "+t)}function o(e=()=>{}){return"function"!=typeof e&&(e=s.DQ.global()[e]),e}}(l||(t.PushImpl=l={}))},351(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CTX_OPTIONS_PARAMS=t.TIMEOUT_EVENT=t.CLIENT_ERROR=t.SERVER_ERROR=t.MALFORMEDXML=t.EMPTY_RESPONSE=t.HTTP_ERROR=t.RESPONSE_XML=t.RESPONSE_TEXT=t.ERROR_MESSAGE=t.ERROR_NAME=t.STATUS=t.SOURCE=t.SUCCESS=t.COMPLETE=t.BEGIN=t.ON_EVENT=t.ON_ERROR=t.EVENT=t.ERROR=t.WINDOW_ID=t.CTX_PARAM_RENDER=t.P_BEHAVIOR_EVENT=t.P_WINDOW_ID=t.P_RESET_VALUES=t.P_EVT=t.P_RENDER_OVERRIDE=t.P_RENDER=t.P_EXECUTE=t.P_AJAX=t.IDENT_FORM=t.IDENT_THIS=t.IDENT_NONE=t.IDENT_ALL=t.HTML_CLIENT_WINDOW=t.HTML_VIEWSTATE=t.EMPTY_MAP=t.EMPTY_STR=t.EMPTY_FUNC=t.P_RESOURCE=t.P_VIEWBODY=t.P_VIEWHEAD=t.P_VIEWROOT=t.P_CLIENT_WINDOW=t.P_VIEWSTATE=t.VIEW_ID=t.NAMING_CONTAINER_ID=t.P_AJAX_SOURCE=t.NAMED_VIEWROOT=t.XML_ATTR_NAMED_VIEWROOT=void 0,t.XML_TAG_CHANGES=t.XML_TAG_PARTIAL_RESP=t.ATTR_ID=t.ATTR_VALUE=t.ATTR_NAME=t.ATTR_URL=t.MYFACES_OPTION_PPS=t.ERR_NO_PARTIAL_RESPONSE=t.PHASE_PROCESS_RESPONSE=t.SEL_RESPONSE_XML=t.SEL_CLIENT_WINDOW_ELEM=t.SEL_VIEWSTATE_ELEM=t.HTML_TAG_STYLE=t.HTML_TAG_SCRIPT=t.HTML_TAG_LINK=t.HTML_TAG_BODY=t.HTML_TAG_FORM=t.HTML_TAG_HEAD=t.STD_ACCEPT=t.NO_TIMEOUT=t.MULTIPART=t.URL_ENCODED=t.STATE_EVT_COMPLETE=t.STATE_EVT_TIMEOUT=t.STATE_EVT_BEGIN=t.REQ_TYPE_POST=t.REQ_TYPE_GET=t.ENCODED_URL=t.VAL_AJAX=t.REQ_ACCEPT=t.HEAD_FACES_REQ=t.CONTENT_TYPE=t.CTX_PARAM_PPS=t.CTX_PARAM_REQ_PASS_THR=t.CTX_PARAM_SRC_CTL_ID=t.CTX_PARAM_UPLOAD_TIMEOUT=t.CTX_PARAM_UPLOAD_ABORT=t.CTX_PARAM_UPLOAD_ERROR=t.CTX_PARAM_UPLOAD_LOAD=t.CTX_PARAM_UPLOAD_LOADEND=t.CTX_PARAM_UPLOAD_LOADSTART=t.CTX_PARAM_UPLOAD_PREINIT=t.CTX_PARAM_UPLOAD_ON_PROGRESS=t.CTX_PARAM_SRC_FRM_ID=t.CTX_PARAM_MF_INTERNAL=t.CTX_OPTIONS_EXECUTE=t.CTX_OPTIONS_RESET=t.CTX_OPTIONS_TIMEOUT=t.DELAY_NONE=t.CTX_OPTIONS_DELAY=void 0,t.UNKNOWN=t.MAX_RECONNECT_ATTEMPTS=t.RECONNECT_INTERVAL=t.APPLIED_CLIENT_WINDOW=t.APPLIED_VST=t.REASON_EXPIRED=t.MF_NONE=t.MYFACES=t.DEFERRED_HEAD_INSERTS=t.UPDATE_ELEMS=t.UPDATE_FORMS=t.XML_TAG_ATTR=t.XML_TAG_AFTER=t.XML_TAG_BEFORE=t.XML_TAG_REDIRECT=t.XML_TAG_EXTENSION=t.XML_TAG_ATTRIBUTES=t.XML_TAG_ERROR=t.XML_TAG_EVAL=t.XML_TAG_INSERT=t.XML_TAG_DELETE=t.XML_TAG_UPDATE=void 0,t.$faces=function(){var e;return null!==(e=null===window||void 0===window?void 0:window.faces)&&void 0!==e?e:null===window||void 0===window?void 0:window.jsf},t.$nsp=function(e){return e&&(null==e?void 0:e.replace)?(null===window||void 0===window?void 0:window.faces)?e.replace(/javax\.faces/gi,"jakarta.faces"):e.replace(/jakarta\.faces/gi,"javax.faces"):e},t.XML_ATTR_NAMED_VIEWROOT="namedViewRoot",t.NAMED_VIEWROOT="namedViewRoot",t.P_AJAX_SOURCE="jakarta.faces.source",t.NAMING_CONTAINER_ID="myfaces.NamingContainerId",t.VIEW_ID="myfaces.viewId",t.P_VIEWSTATE="jakarta.faces.ViewState",t.P_CLIENT_WINDOW="jakarta.faces.ClientWindow",t.P_VIEWROOT="jakarta.faces.ViewRoot",t.P_VIEWHEAD="jakarta.faces.ViewHead",t.P_VIEWBODY="jakarta.faces.ViewBody",t.P_RESOURCE="jakarta.faces.Resource",t.EMPTY_FUNC=Object.freeze((()=>{})),t.EMPTY_STR="",t.EMPTY_MAP=Object.freeze({}),t.HTML_VIEWSTATE=["<input type='hidden'","name='",t.P_VIEWSTATE,"' value='' />"].join(t.EMPTY_STR),t.HTML_CLIENT_WINDOW=["<input type='hidden'","' name='",t.P_CLIENT_WINDOW,"' value='' />"].join(t.EMPTY_STR),t.IDENT_ALL="@all",t.IDENT_NONE="@none",t.IDENT_THIS="@this",t.IDENT_FORM="@form",t.P_AJAX="jakarta.faces.partial.ajax",t.P_EXECUTE="jakarta.faces.partial.execute",t.P_RENDER="jakarta.faces.partial.render",t.P_RENDER_OVERRIDE="_myfaces.rendeOverride",t.P_EVT="jakarta.faces.partial.event",t.P_RESET_VALUES="jakarta.faces.partial.resetValues",t.P_WINDOW_ID="jakarta.faces.windowId",t.P_BEHAVIOR_EVENT="jakarta.faces.behavior.event",t.CTX_PARAM_RENDER="render",t.WINDOW_ID="windowId",t.ERROR="error",t.EVENT="event",t.ON_ERROR="onerror",t.ON_EVENT="onevent",t.BEGIN="begin",t.COMPLETE="complete",t.SUCCESS="success",t.SOURCE="source",t.STATUS="status",t.ERROR_NAME="error-name",t.ERROR_MESSAGE="error-message",t.RESPONSE_TEXT="responseText",t.RESPONSE_XML="responseXML",t.HTTP_ERROR="httpError",t.EMPTY_RESPONSE="emptyResponse",t.MALFORMEDXML="malformedXML",t.SERVER_ERROR="serverError",t.CLIENT_ERROR="clientError",t.TIMEOUT_EVENT="timeout",t.CTX_OPTIONS_PARAMS="params",t.CTX_OPTIONS_DELAY="delay",t.DELAY_NONE="none",t.CTX_OPTIONS_TIMEOUT="timeout",t.CTX_OPTIONS_RESET="resetValues",t.CTX_OPTIONS_EXECUTE="execute",t.CTX_PARAM_MF_INTERNAL="myfaces.internal",t.CTX_PARAM_SRC_FRM_ID="myfaces.source.formId",t.CTX_PARAM_UPLOAD_ON_PROGRESS="myfaces.upload.progress",t.CTX_PARAM_UPLOAD_PREINIT="myfaces.upload.preinit",t.CTX_PARAM_UPLOAD_LOADSTART="myfaces.upload.loadstart",t.CTX_PARAM_UPLOAD_LOADEND="myfaces.upload.loadend",t.CTX_PARAM_UPLOAD_LOAD="myfaces.upload.load",t.CTX_PARAM_UPLOAD_ERROR="myfaces.upload.error",t.CTX_PARAM_UPLOAD_ABORT="myfaces.upload.abort",t.CTX_PARAM_UPLOAD_TIMEOUT="myfaces.upload.timeout",t.CTX_PARAM_SRC_CTL_ID="myfaces.source.controlId",t.CTX_PARAM_REQ_PASS_THR="myfaces.request.passThrough",t.CTX_PARAM_PPS="myfaces.request.pps",t.CONTENT_TYPE="Content-Type",t.HEAD_FACES_REQ="Faces-Request",t.REQ_ACCEPT="Accept",t.VAL_AJAX="partial/ajax",t.ENCODED_URL="jakarta.faces.encodedURL",t.REQ_TYPE_GET="GET",t.REQ_TYPE_POST="POST",t.STATE_EVT_BEGIN="begin",t.STATE_EVT_TIMEOUT="TIMEOUT_EVENT",t.STATE_EVT_COMPLETE="complete",t.URL_ENCODED="application/x-www-form-urlencoded",t.MULTIPART="multipart/form-data",t.NO_TIMEOUT=0,t.STD_ACCEPT="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",t.HTML_TAG_HEAD="HEAD",t.HTML_TAG_FORM="FORM",t.HTML_TAG_BODY="BODY",t.HTML_TAG_LINK="LINK",t.HTML_TAG_SCRIPT="SCRIPT",t.HTML_TAG_STYLE="STYLE",t.SEL_VIEWSTATE_ELEM="[name='"+t.P_VIEWSTATE+"']",t.SEL_CLIENT_WINDOW_ELEM="[name='"+t.P_CLIENT_WINDOW+"']",t.SEL_RESPONSE_XML="responseXML",t.PHASE_PROCESS_RESPONSE="processResponse",t.ERR_NO_PARTIAL_RESPONSE="Partial response not set",t.MYFACES_OPTION_PPS="pps",t.ATTR_URL="url",t.ATTR_NAME="name",t.ATTR_VALUE="value",t.ATTR_ID="id",t.XML_TAG_PARTIAL_RESP="partial-response",t.XML_TAG_CHANGES="changes",t.XML_TAG_UPDATE="update",t.XML_TAG_DELETE="delete",t.XML_TAG_INSERT="insert",t.XML_TAG_EVAL="eval",t.XML_TAG_ERROR="error",t.XML_TAG_ATTRIBUTES="attributes",t.XML_TAG_EXTENSION="extension",t.XML_TAG_REDIRECT="redirect",t.XML_TAG_BEFORE="before",t.XML_TAG_AFTER="after",t.XML_TAG_ATTR="attribute",t.UPDATE_FORMS="myfaces.updateForms",t.UPDATE_ELEMS="myfaces.updateElems",t.DEFERRED_HEAD_INSERTS="myfaces.headElems",t.MYFACES="myfaces",t.MF_NONE="__mf_none__",t.REASON_EXPIRED="Expired",t.APPLIED_VST="myfaces.appliedViewState",t.APPLIED_CLIENT_WINDOW="myfaces.appliedClientWindow",t.RECONNECT_INTERVAL=500,t.MAX_RECONNECT_ATTEMPTS=25,t.UNKNOWN="UNKNOWN"},315(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.StateHolder=void 0;const r=n(351);t.StateHolder=class{constructor(e,t){this.id=e,this.value=t;let n=e.indexOf(r.P_VIEWSTATE);this.nameSpace=n>0?e.substr(0,n-1):r.EMPTY_STR}get hasNameSpace(){var e;return!!(null!==(e=null==this?void 0:this.nameSpace)&&void 0!==e?e:r.EMPTY_STR).length}}},207(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Messages=void 0,t.Messages=class{constructor(){this.MSG_TEST="Testmessage",this.MSG_DEV_MODE="Note, this message is only sent, because project stage is development and no other error listeners are registered.",this.MSG_AFFECTED_CLASS="Affected Class=",this.MSG_AFFECTED_METHOD="Affected Method=",this.MSG_ERROR_NAME="Error Name=",this.MSG_ERROR_MESSAGE="Error Message=",this.MSG_SERVER_ERROR_NAME="Server Error Name=",this.MSG_ERROR_DESC="Error Description=",this.MSG_ERROR_NO="Error Number=",this.MSG_ERROR_LINENO="Error Line Number=",this.ERR_FORM="Sourceform could not be determined, either because element is not attached to a form or we have multiple forms with named elements of the same identifier or name, stopping the ajax processing",this.ERR_VIEWSTATE="faces.viewState= param value not of type form!",this.ERR_TRANSPORT="Transport type {0} does not exist",this.ERR_EVT_PASS="an event must be passed down (either a an event object null or undefined) ",this.ERR_CONSTRUCT="Parts of the response couldn't be retrieved when constructing the event data= {0} ",this.ERR_MALFORMEDXML="The server response could not be parsed, the server has returned with a response which is not xml !",this.ERR_SOURCE_FUNC="source cannot be a function (probably source and event were not defined or set to null",this.ERR_EV_OR_UNKNOWN="An event object or unknown must be passed as second parameter",this.ERR_SOURCE_NOSTR="source cannot be a string",this.ERR_SOURCE_DEF_NULL="source must be defined or null",this.ERR_MUST_STRING="{0}: {1} namespace must be of type String",this.ERR_REF_OR_ID="{0}: {1} a reference node or identifier must be provided",this.ERR_PARAM_GENERIC="{0}: parameter {1} must be of type {2}",this.ERR_PARAM_STR="{0}: {1} param must be of type string",this.ERR_PARAM_STR_RE="{0}: {1} param must be of type string or a regular expression",this.ERR_PARAM_MIXMAPS="{0}: both a source as well as a destination map must be provided",this.ERR_MUST_BE_PROVIDED="{0}: an {1} and a {2} must be provided",this.ERR_MUST_BE_PROVIDED1="{0}: {1} must be set",this.ERR_REPLACE_EL="replaceElements called while evalNodes is not an array",this.ERR_EMPTY_RESPONSE="{0}: The response cannot be null or empty!",this.ERR_ITEM_ID_NOTFOUND="{0}: item with identifier {1} could not be found",this.ERR_PPR_IDREQ="{0}: Error in PPR Insert, id must be present",this.ERR_PPR_INSERTBEFID="{0}: Error in PPR Insert, before id or after id must be present",this.ERR_PPR_INSERTBEFID_1="{0}: Error in PPR Insert, before node of id {1} does not exist in document",this.ERR_PPR_INSERTBEFID_2="{0}: Error in PPR Insert, after node of id {1} does not exist in document",this.ERR_PPR_DELID="{0}: Error in delete, id not in xml markup",this.ERR_PPR_UNKNOWNCID="{0}: Unknown Html-Component-ID= {1}",this.ERR_NO_VIEWROOTATTR="{0}: Changing of ViewRoot attributes is not supported",this.ERR_NO_HEADATTR="{0}: Changing of Head attributes is not supported",this.ERR_RED_URL="{0}: Redirect without url",this.ERR_REQ_FAILED_UNKNOWN="Request failed with unknown status",this.ERR_REQU_FAILED="Request failed with status {0} and reason {1}",this.UNKNOWN="UNKNOWN"}}},22(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Assertions=void 0;const r=n(257),s=n(351),l=n(471);var o;!function(e){function t(t,n=s.EMPTY_STR,r=s.EMPTY_STR,l="Assertion Error"){if(!t)throw e.raiseError(new Error,n,r,l)}function n(t,n,l=s.EMPTY_STR,o=s.EMPTY_STR,i="Type Assertion Error"){if(t&&!r.Lang.assertType(t,n))throw e.raiseError(new Error,l,o,i)}function o(e,t=s.EMPTY_STR,r=s.EMPTY_STR,l="Assertion Error"){n(e,"function",t,r,l)}e.assertRequestIntegrity=function(e,n){o(e.getIf(s.ON_ERROR).value),o(e.getIf(s.ON_EVENT).value),t(n.isPresent(),l.ExtLang.getMessage("ERR_MUST_BE_PROVIDED1","{0}: source must be provided or exist","source element id"),"faces.ajax.request","ArgNotSet")},e.assertUrlExists=function(t){if(t.attr(s.ATTR_URL).isAbsent())throw e.raiseError(new Error,l.ExtLang.getMessage("ERR_RED_URL",null,"processRedirect"),"processRedirect")},e.assertValidXMLResponse=function(e){t(!e.isAbsent(),s.EMPTY_RESPONSE,s.PHASE_PROCESS_RESPONSE),t(!e.isXMLParserError(),e.parserErrorText(s.EMPTY_STR),s.PHASE_PROCESS_RESPONSE),t(e.querySelectorAll(s.XML_TAG_PARTIAL_RESP).isPresent(),s.ERR_NO_PARTIAL_RESPONSE,s.PHASE_PROCESS_RESPONSE)},e.raiseError=function(e,t,n,r,o){let i=null!=r?r:s.MALFORMEDXML,a=null!=o?o:s.MALFORMEDXML,u=null!=t?t:s.EMPTY_STR;return l.ExtLang.makeException(e,i,a,"Response",n||(arguments.caller?arguments.caller.toString():"_raiseError"),u)},e.assert=t,e.assertType=n,e.assertFunction=o,e.assertDelay=function(e){if(!(e>=0))throw new Error("Invalid delay value: "+e)}}(o||(t.Assertions=o={}))},726(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncRunnable=void 0,t.AsyncRunnable=class{constructor(){this.catchFunctions=[],this.thenFunctions=[]}resolve(e){this.thenFunctions.reduce(((e,t)=>t(e)),e)}reject(e){this.catchFunctions.reduce(((e,t)=>t(e)),e)}catch(e){return this.catchFunctions.push(e),this}finally(e){return this.catchFunctions.push(e),this.thenFunctions.push(e),this}then(e){return this.thenFunctions.push(e),this}}},780(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtConfig=t.ExtDQ=t.ExtDomQuery=void 0;const r=n(257),s=n(351),l=e=>e&&!(-1==(null==e?void 0:e.search(/\/jakarta\.faces\.resource.*\/faces\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces-development\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces-uncompressed\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces[^.]*\.js.*ln=jakarta.faces.*/gi))&&-1==(null==e?void 0:e.search(/\/javax\.faces\.resource.*\/jsf\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf-development\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf-uncompressed\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf[^.]*\.js.*ln=javax.faces.*/gi))),o="src";class i extends r.DQ{static get windowId(){return new i(document.body).windowId}static get nonce(){return new i(document.body).nonce}get windowId(){const e=function(){let e=window.location.href,t=new RegExp("[\\?&]windowId=([^&#\\;]*)").exec(e);return null!=t?t[1]:null};if(this.value.isPresent()){let t=this.querySelectorAll("form input[name='"+s.P_WINDOW_ID+"']");if(t.length>1)throw Error("Multiple different windowIds found in document");return r.Optional.fromNullable(t.isPresent()?t.getAsElem(0).value.value:e())}return r.Optional.fromNullable(e())}get nonce(){var e;let t=new a(window.myfaces).getIf("config","cspMeta","nonce");if(t.value)return r.ValueEmbedder.fromNullable(t);let n=new r.DQ(document.currentScript).nonce;if(n.isPresent())return r.ValueEmbedder.fromNullable(n);let s=r.Optional.fromNullable(null===(e=r.DQ.querySelectorAll("script[src], link[src]").asArray.filter((e=>e.nonce.isPresent()&&null!=e.attr(o))).filter((e=>l(e.attr(o).value))))||void 0===e?void 0:e[0]);return(null==s?void 0:s.value)?new r.DomQuery(s.value).nonce:r.ValueEmbedder.absent}static searchJsfJsFor(e){return new i(document).searchJsfJsFor(e)}searchJsfJsFor(e){var t;return r.Optional.fromNullable(null===(t=r.DQ.querySelectorAll("script[src], link[src]").asArray.filter((e=>l(e.attr(o).value))).map((t=>t.attr(o).value.match(e))).filter((e=>null!=e&&e.length>1)).map((e=>decodeURIComponent(e[1]))))||void 0===t?void 0:t[0])}globalEval(e,t){return new i(super.globalEval(e,null!=t?t:this.nonce.value))}globalEvalSticky(e,t){return new i(super.globalEvalSticky(e,null!=t?t:this.nonce.value))}runScripts(e=!1,t){return super.runScripts(e,(e=>{var n,r;return(null===(n=null==t?void 0:t(e))||void 0===n||n)&&!l(e)&&!(-1!=(r=e).search(/\/faces[^.]*\.js.*ln=myfaces.testscripts.*/gi)||-1!=r.search(/\/jsf[^.]*\.js.*ln=myfaces.testscripts.*/gi))}))}runHeadInserts(e=!0){let t=i.byId(document.head),n=[];this.filter((function(n){if(!e)return!0;const r=n.tagName.value;if(!r)return!0;let s=n.attr("href").orElseLazy((()=>n.attr("src").value)).orElseLazy((()=>n.attr("rel").value));return!s.isPresent()||!t.querySelectorAll(`${r}[href='${s.value}']`).length&&!t.querySelectorAll(`${r}[src='${s.value}']`).length&&!t.querySelectorAll(`${r}[rel='${s.value}']`).length})).each((e=>{"SCRIPT"!=e.tagName.value?(new i(...n).runScripts(!0),n=[],t.append(e)):n.push(e)})),new i(...n).runScripts(!0)}static byId(e,t=!1){var n,l,o;const a=r.DomQuery.byId(e,t);if("development"==(0,s.$faces)().getProjectStage().toLowerCase()&&(null===window||void 0===window?void 0:window.console)&&a.isAbsent()&&e){let t=null!==(o=null!==(l=null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)&&void 0!==l?l:null==e?void 0:e.id)&&void 0!==o?o:e.toString();console.error("Element "+t+"not found")}return new i(a)}filter(e){return new i(super.filter(e))}}t.ExtDomQuery=i,t.ExtDQ=i;class a extends r.Config{constructor(e){super(e),this.$nspEnabled=!0}assignIf(e,...t){const n=this.remap(t);return super.assignIf(e,...n)}assign(...e){const t=this.remap(e);return super.assign(...t)}append(...e){return super.append(...e)}appendIf(e,...t){const n=this.remap(t);return super.appendIf(e,...n)}getIf(...e){const t=this.remap(e);return super.getIf(...t)}get(e){return super.get((0,s.$nsp)(e))}delete(e){return super.delete((0,s.$nsp)(e))}static fromNullable(e){return new a(e)}getClass(){return a}shallowCopy$(){const e=super.shallowCopy$();return new a(e)}get deepCopy(){return new a(super.deepCopy$())}remap(e){return this.$nspEnabled?new r.Es2019Array(...e).map((e=>(0,s.$nsp)(e))):e}}t.ExtConfig=a},680(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFormData=function(e,t=(e,t)=>[e,t],n=l.EMPTY_STR){if(e.isAbsent())return n;const o=e.value;return new r.Es2019Array(...Object.keys(o)).filter((e=>o.hasOwnProperty(e))).flatMap((e=>o[e].map((n=>t(e,n))))).filter((([,e])=>!(e instanceof s.ExtDomQuery.global().File))).map((e=>`${encodeURIComponent(e[0])}=${encodeURIComponent(e[1])}`)).join("&")},t.decodeEncodedValues=o,t.resolveFiles=i,t.fixEmptyParameters=function(e){var t,n;return e.length<3?[null!==(t=null==e?void 0:e[0])&&void 0!==t?t:[],null!==(n=null==e?void 0:e[1])&&void 0!==n?n:[]]:e},t.getFormInputsAsArr=function(e){const t=function(e){return o((0,l.$faces)().getViewState(e.getAsElem(0).value))}(e),n=i(e);return t.concat(n)};const r=n(257),s=n(780),l=n(351);function o(e){return e.split(/&/gi).filter((e=>!!(e||"").replace(/\s+/g,""))).map((e=>{let t=decodeURIComponent(e),n=t.indexOf("=");return-1==n?[t]:[t.substring(0,n),t.substring(n+1)]}))}function i(e){return e.querySelectorAllDeep("input[type='file']").asArray.map((e=>[e.name.value||e.id.value,e.filesFromElem(0)])).flatMap((([e,t])=>[...t].map((t=>[e,t]))))}},248(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenInputBuilder=void 0;const r=n(257),s=n(351);t.HiddenInputBuilder=class{constructor(e){this.selector=e,this.namedViewRoot=!1;const t=-1!=e.indexOf((0,s.$nsp)(s.P_VIEWSTATE));this.name=t?s.P_VIEWSTATE:s.P_CLIENT_WINDOW,this.template=t?s.HTML_VIEWSTATE:s.HTML_CLIENT_WINDOW}withNamingContainerId(e){return this.namingContainerId=e,this}withParent(e){return this.parent=e,this}withNamedViewRoot(e){return this.namedViewRoot=e,this}build(){var e,t,n;const l=(0,s.$faces)().separatorchar;let o=(0,r.DQ$)(`[name*='${(0,s.$nsp)(this.name)}']`).asArray.map((e=>{let t=e.id.orElse("0").value;return t=t.substring(t.lastIndexOf(l)+1),parseInt(t)})).filter((e=>!isNaN(e))).reduce(((e,t)=>Math.max(e,t)),0);o++;const i=r.DQ.fromMarkup((0,s.$nsp)(this.template));return i.id.value=((null===(e=this.namingContainerId)||void 0===e?void 0:e.length)?[this.namingContainerId,(0,s.$nsp)(this.name),o]:[(0,s.$nsp)(this.name),o]).join(l),this.namedViewRoot?i.name.value=(null===(t=this.namingContainerId)||void 0===t?void 0:t.length)?[this.namingContainerId,(0,s.$nsp)(this.name)].join(l):(0,s.$nsp)(this.name):i.name.value=(0,s.$nsp)(this.name),null===(n=null==this?void 0:this.parent)||void 0===n||n.append(i),i}}},471(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtLang=void 0;const r=n(257),s=n(207),l=n(351),o=n(7),i=n(257);var a;!function(e){let t;function n(e,n,...r){var o,i;t=null!=t?t:new s.Messages;let a=null!==(i=null!==(o=t[e])&&void 0!==o?o:n)&&void 0!==i?i:e;return r.forEach(((e,t)=>{a=a.replace(new RegExp(["\\{",t,"\\}"].join(l.EMPTY_STR),"g"),e)})),a}function a(e,t,n,r,s,l){return new Error(l+(null!=r?r:"impl/util/Lang/")+s)}e.getLanguage=function(){var e,t;let n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:null===navigator||void 0===navigator?void 0:navigator.language;return n=n.split("-")[0],n},e.failSaveResolve=function(e,t=null){return r.Lang.saveResolve(e,t)},e.failSaveExecute=function(e,t=null){r.Lang.saveResolve(e,t)},e.getMessage=n,e.keyValToStr=function(e,t,n="\n"){return[e,t].join(n)},e.makeException=a,e.getGlobalConfig=function(e,t){var n,r,s;return null!==(s=null===(r=null===(n=null===window||void 0===window?void 0:window.myfaces)||void 0===n?void 0:n.config)||void 0===r?void 0:r[e])&&void 0!==s?s:t},e.getForm=function(e,t){let s=new r.DQ(e),i=t?new r.DQ((0,o.getEventTarget)(t)):r.DomQuery.absent;if(s.isTag(l.HTML_TAG_FORM))return s;if(s.attr(l.HTML_TAG_FORM).isPresent()){let e=s.attr(l.HTML_TAG_FORM).value,t=r.DQ.byId(e,!0);if(t.isPresent())return t}let u=s.firstParent(l.HTML_TAG_FORM).orElseLazy((()=>s.byTagName(l.HTML_TAG_FORM,!0))).orElseLazy((()=>i.firstParent(l.HTML_TAG_FORM))).orElseLazy((()=>i.byTagName(l.HTML_TAG_FORM))).first();return u=u.orElseLazy((()=>r.DQ.byTagName(l.HTML_TAG_FORM))),function(e){if(e.isAbsent()||e.length>1)throw a(new Error,0,0,"Impl","getForm",n("ERR_FORM"))}(u),u},e.getLocalOrGlobalConfig=function(e,t,n){var r,s,l,o,i,a,u;return null!==(u=null!==(o=null===(l=null===(s=null===(r=e.value)||void 0===r?void 0:r.myfaces)||void 0===s?void 0:s.config)||void 0===l?void 0:l[t])&&void 0!==o?o:null===(a=null===(i=null===window||void 0===window?void 0:window.myfaces)||void 0===i?void 0:i.config)||void 0===a?void 0:a[t])&&void 0!==u?u:n},e.ofAssoc=function(e){return new i.Es2019Array(...Object.keys(e)).map((t=>[t,e[t]]))},e.collectAssoc=function(e,t){return e[t[0]]=t[1],e};let u={};e.debounce=function(e,t,n){function r(){clearTimeout(u[e]),delete u[e]}(null==u?void 0:u[e])&&r(),n>0?u[e]=setTimeout((()=>{try{t()}finally{r()}}),n):t()}}(a||(t.ExtLang=a={}))},666(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.XhrQueueController=void 0;const r=n(471).ExtLang.debounce;t.XhrQueueController=class{constructor(){this.queue=[],this.taskRunning=!1}enqueue(e,t=0){r("xhrQueue",(()=>{const t=this.enrichRunnable(e);this.taskRunning?this.queue.push(t):(this.signalTaskRunning(),t.start())}),t)}next(){this.updateTaskRunning();const e=this.queue.shift();null==e||e.start()}clear(){this.queue.length=0,this.updateTaskRunning()}get isEmpty(){return!this.queue.length}enrichRunnable(e){return e.then((()=>this.next())).catch((()=>this.clear()))}signalTaskRunning(){this.taskRunning=!0}updateTaskRunning(){this.taskRunning=!this.isEmpty}}},234(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorData=t.ErrorType=void 0;const r=n(351),s=n(257),l=n(560),o=n(471).ExtLang.getMessage;var i;!function(e){e.SERVER_ERROR="serverError",e.HTTP_ERROR="httpError",e.CLIENT_ERROR="clientError",e.TIMEOUT="timeout"}(i||(t.ErrorType=i={}));class a extends l.EventData{constructor(e,t,n,l=null,o=null,a=-1,u=null,c=i.CLIENT_ERROR){super(),this.type="error",this.source=s.DQ.byId(e).value.orElse(e).value,this.type=r.ERROR,this.errorName=t,this.errorMessage=c==i.SERVER_ERROR?c+": "+n:n,this.responseCode=a,this.responseText=l,this.responseXML=o,this.status=u,this.description=`Status: ${this.status}\nResponse Code: ${this.responseCode}\nError Message: ${this.errorMessage}`,this.typeDetails=c,c==i.SERVER_ERROR&&(this.serverErrorName=this.errorName,this.serverErrorMessage=this.errorMessage)}static fromClient(e){var t,n,s,l;return new a(null!==(t=null==e?void 0:e.source)&&void 0!==t?t:"client",null!==(n=null==e?void 0:e.name)&&void 0!==n?n:r.EMPTY_STR,null!==(s=null==e?void 0:e.message)&&void 0!==s?s:r.EMPTY_STR,null!==(l=null==e?void 0:e.stack)&&void 0!==l?l:r.EMPTY_STR)}static fromHttpConnection(e,t,n,s,l,o,u=r.EMPTY_STR){return new a(e,t,n,s,l,o,u,i.HTTP_ERROR)}static fromGeneric(e,t,n=i.SERVER_ERROR){let s=this.getMsg,l=s(e,r.SOURCE),o=s(e,r.ERROR_NAME),u=s(e,r.ERROR_MESSAGE),c=s(e,r.STATUS),d=s(e,r.RESPONSE_TEXT),h=e.getIf(r.RESPONSE_XML).value;return new a(l,o,u,d,h,t,c,n)}static getMsg(e,t){return o(e.getIf(t).orElse(r.EMPTY_STR).value)}static fromServerError(e){return this.fromGeneric(e,-1)}}t.ErrorData=a},560(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventData=void 0;const r=n(257),s=n(351);class l{static createFromRequest(e,t,n,o){let i=new l;if(i.type=s.EVENT,i.status=o,i.source=t.getIf("_source","_element").value,!i.source){let e=n.getIf(s.SOURCE).orElseLazy((()=>n.getIf(s.P_AJAX_SOURCE).value)).orElseLazy((()=>n.getIf(s.CTX_PARAM_REQ_PASS_THR,s.P_AJAX_SOURCE).value)).value;e&&(i.source=r.DQ.byId(e,!0).first().value.value),i.source&&(t.assign("_source","_element").value=i.source)}return o!==s.BEGIN&&(i.responseCode=null==e?void 0:e.status,i.responseText=null==e?void 0:e.responseText,i.responseXML=null==e?void 0:e.responseXML),i}}t.EventData=l},7(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.resolveHandlerFunc=function(e,t,n){return(t=t||new r.Config({})).getIf(n).orElseLazy((()=>e.getIf(n).value)).orElse(s.EMPTY_FUNC).value},t.resolveTargetUrl=a,t.resolveFinalUrl=function(e,t,n=s.REQ_TYPE_POST){return a(e.getAsElem(0).value)+(n==s.REQ_TYPE_GET?"?"+t.toString():s.EMPTY_STR)},t.resolveForm=function(e,t){return l.ExtLang.getForm(e.getAsElem(0).value,t)},t.resolveViewId=function(e){const t=e.querySelectorAll(`input[type='hidden'][name*='${(0,s.$nsp)(s.P_VIEWSTATE)}']`).id.orElse("").value,n=(0,s.$faces)().separatorchar,r=t.split(n,2)[0],l=-1===r.indexOf((0,s.$nsp)(s.P_VIEWSTATE))?r:"";return 0===e.id.value.indexOf(l)?l:""},t.resolveViewRootId=function(e){const t=e.querySelectorAll(`input[type='hidden'][name*='${(0,s.$nsp)(s.P_VIEWSTATE)}']`).attr("name").orElse("").value,n=(0,s.$faces)().separatorchar,r=t.split(n,2)[0];return-1===r.indexOf((0,s.$nsp)(s.P_VIEWSTATE))?r:""},t.resoveNamingContainerMapper=function(e){if(!e.getIf(s.NAMED_VIEWROOT).isPresent())return(e,t)=>[e,t];const t=e.getIf(s.NAMING_CONTAINER_ID).value+(0,s.$faces)().separatorchar;return(e,n)=>0==e.indexOf(t)?[e,n]:[t+e,n]},t.resolveTimeout=function(e){var t;let n=l.ExtLang.getLocalOrGlobalConfig;return null!==(t=e.getIf(s.CTX_OPTIONS_TIMEOUT).value)&&void 0!==t?t:n(e.value,s.CTX_OPTIONS_TIMEOUT,0)},t.resolveDelay=function(e){let t=e.getIf(s.CTX_OPTIONS_DELAY).orElse(0).value;return t=s.DELAY_NONE===t?0:t,i.Assertions.assertDelay(t),t},t.resolveWindowId=u,t.getEventTarget=function(e){var t,n;let r=e,s=null!==(n=null!==(t=null==r?void 0:r.srcElement)&&void 0!==t?t:null==r?void 0:r.target)&&void 0!==n?n:null==r?void 0:r.source;for(;s&&1!=s.nodeType;)s=s.parentNode;return s},t.resolveDefaults=function(e,t,n=null){var s;const l=r.DQ.byId(n||e.target,!0),i=new o.ExtConfig(t).deepCopy;return{options:i,elem:l,elementId:l.id.value,windowId:u(i),isResetValues:!0===(null===(s=i.value)||void 0===s?void 0:s.resetValues)}};const r=n(257),s=n(351),l=n(471),o=n(780),i=n(22);function a(e){return void 0===e.elements[s.ENCODED_URL]?e.action:e.elements[s.ENCODED_URL].value}function u(e){var t,n;return null!==(n=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.windowId)&&void 0!==n?n:o.ExtDomQuery.windowId.value}},121(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Response=void 0;const r=n(257),s=n(797),l=n(351),o=n(403),i=n(780);var a;!function(e){e.processResponse=function(e,n){let a=i.ExtConfig.fromNullable(e),{externalContext:u,internalContext:c}=(0,o.resolveContexts)(n),d=(0,o.resolveResponseXML)(a),h=new s.ResponseProcessor(a,u,c);c.assign(l.RESPONSE_XML).value=d,d.querySelectorAll(l.XML_TAG_PARTIAL_RESP).each((e=>function(e,n,s){var o;let i=null===(o=null==e?void 0:e.id)||void 0===o?void 0:o.value;s.assignIf(!!i,l.NAMING_CONTAINER_ID).value=i,n.updateNamedViewRootState();const a=[l.XML_TAG_ERROR,l.XML_TAG_REDIRECT,l.XML_TAG_CHANGES].join(",");e.querySelectorAll(a).each((e=>{switch(e.tagName.value){case l.XML_TAG_ERROR:n.error(e);break;case l.XML_TAG_REDIRECT:n.redirect(e);break;case l.XML_TAG_CHANGES:!function(e,n){const s=[l.XML_TAG_UPDATE,l.XML_TAG_EVAL,l.XML_TAG_INSERT,l.XML_TAG_DELETE,l.XML_TAG_ATTRIBUTES,l.XML_TAG_EXTENSION].join(", ");e.querySelectorAll(s).each((e=>{switch(e.tagName.value){case l.XML_TAG_UPDATE:!function(e,t){(function(e,t){return e.processViewState(t)||e.processClientWindow(t)})(t,e)||function(e,t){let n=e.cDATAAsString;switch(e.id.value){case(0,l.$nsp)(l.P_VIEWROOT):t.replaceViewRoot(r.DQ.fromMarkup(n.substring(n.indexOf("<html"))));break;case(0,l.$nsp)(l.P_VIEWHEAD):t.replaceHead(r.DQ.fromMarkup(n));break;case(0,l.$nsp)(l.P_VIEWBODY):t.replaceBody(r.DQ.fromMarkup(n));break;case(0,l.$nsp)(l.P_RESOURCE):t.addToHead(r.DQ.fromMarkup(n));break;default:t.update(e,n)}}(e,t)}(e,n);break;case l.XML_TAG_EVAL:n.eval(e);break;case l.XML_TAG_INSERT:t(n,e);break;case l.XML_TAG_DELETE:n.delete(e);break;case l.XML_TAG_ATTRIBUTES:n.attributes(e);case l.XML_TAG_EXTENSION:}}))}(e,n)}}))}(e,h,c))),h.updateNamedViewRootState(),h.fixViewStates(),h.fixClientWindow(),h.globalEval(),h.done()};let t=function(e,t){t.querySelectorAll([l.XML_TAG_BEFORE,l.XML_TAG_AFTER].join(",")).length?e.insertWithSubTags(t):e.insert(t)}}(a||(t.Response=a={}))},403(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.resolveResponseXML=function(e){let t=new r.XMLQuery((0,o.$nsp)(e.getIf(o.SEL_RESPONSE_XML).value));return s.Assertions.assertValidXMLResponse(t),t},t.resolveContexts=function(e){let t=i.ExtConfig.fromNullable(e),n=t.getIf(o.CTX_PARAM_MF_INTERNAL);return n.isPresent()||(n=i.ExtConfig.fromNullable({})),n.assign(o.DEFERRED_HEAD_INSERTS).value=[],n.assign(o.UPDATE_FORMS).value=[],n.assign(o.UPDATE_ELEMS).value=[],{externalContext:t,internalContext:n}},t.resolveSourceElement=function(e,t){let n=function(e,t){return t.getIf(o.CTX_PARAM_SRC_CTL_ID).orElseLazy((()=>e.getIf(o.SOURCE,"id").value))}(e,t);return l.DQ.byId(n.value,!0)},t.resolveSourceForm=function(e,t){let n=e.getIf(o.CTX_PARAM_SRC_FRM_ID),r=new l.DQ(n.isPresent()?document.forms[n.value]:null);return r=r.orElseLazy((()=>t.firstParent(o.HTML_TAG_FORM))).orElseLazy((()=>t.querySelectorAll(o.HTML_TAG_FORM))).orElseLazy((()=>l.DQ.querySelectorAll(o.HTML_TAG_FORM))),r};const r=n(257),s=n(22),l=n(257),o=n(351),i=n(780)},797(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseProcessor=void 0;const r=n(257),s=n(644),l=n(22),o=n(234),i=n(315),a=n(560),u=n(351),c=n(780),d=n(248),h=r.Lang.trim,E=n(471).ExtLang.ofAssoc;class v{constructor(e,t,n){this.request=e,this.externalContext=t,this.internalContext=n}replaceHead(e){const t=e.querySelectorAll(u.HTML_TAG_HEAD);if(!t.isPresent())return;const n=c.ExtDomQuery.querySelectorAll(u.HTML_TAG_HEAD);n.childNodes.delete(),this.addToHead(t),n.copyAttrs(t)}addToHead(e){const t=new c.ExtDomQuery(e),n=[u.HTML_TAG_SCRIPT];t.filter((e=>-1==n.indexOf(e.tagName.orElse("").value))).runHeadInserts(!0);const s="HEAD"===e.tagName.value?e.childNodes:e,l=new r.DomQuery(...s.asArray.filter((e=>-1!=n.indexOf(e.tagName.orElse("").value))));this.addToHeadDeferred(l)}addToHeadDeferred(e){this.internalContext.assign(u.DEFERRED_HEAD_INSERTS).value.push(e)}replaceBody(e){const t=e.querySelectorAll(u.HTML_TAG_BODY);if(!t.isPresent())return;const n=t.innerHTML,r=c.ExtDomQuery.querySelectorAll(u.HTML_TAG_BODY),s=r.querySelectorAll(u.HTML_TAG_FORM);r.html(n).copyAttrs(t),this.externalContext.assign((0,u.$nsp)(u.P_RENDER_OVERRIDE)).value="@all",this.storeForPostProcessing(s,r)}eval(e){c.ExtDomQuery.globalEval(e.cDATAAsString)}error(e){const t=new c.ExtConfig({});t.assign(u.SOURCE).value=this.externalContext.getIf(u.P_AJAX_SOURCE).get(0).value,t.assign(u.ERROR_NAME).value=e.querySelectorAll(u.ERROR_NAME).textContent(u.EMPTY_STR),t.assign(u.ERROR_MESSAGE).value=e.querySelectorAll(u.ERROR_MESSAGE).cDATAAsString;const n=this.internalContext.get(u.RESPONSE_XML).isPresent();t.assignIf(n,u.RESPONSE_XML).value=this.internalContext.getIf(u.RESPONSE_XML).value.get(0).value;const r=o.ErrorData.fromServerError(t);this.triggerOnError(r),s.Implementation.sendError(r)}redirect(e){l.Assertions.assertUrlExists(e);const t=h(e.attr(u.ATTR_URL).value);t!=u.EMPTY_STR&&(window.location.href=t)}update(e,t){const n=c.ExtDomQuery.byId(e.id.value,!0).outerHTML(t,!1,!1),r=null==n?void 0:n.firstParent(u.HTML_TAG_FORM).orElseLazy((()=>n.byTagName(u.HTML_TAG_FORM,!0)));r&&this.storeForPostProcessing(r,n)}delete(e){r.DQ.byId(e.id.value,!0).delete()}attributes(e){const t=r.DQ.byId(e.id.value,!0);e.byTagName(u.XML_TAG_ATTR).each((e=>{t.attr(e.attr(u.ATTR_NAME).value).value=e.attr(u.ATTR_VALUE).value}))}replaceViewRoot(e){this.replaceHead(e),this.replaceBody(e)}insert(e){const t=e.attr(u.XML_TAG_BEFORE),n=e.attr(u.XML_TAG_AFTER),s=r.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(r.DQ.byId(t.value,!0).insertBefore(s),this.internalContext.assign(u.UPDATE_ELEMS).value.push(s)),n.isPresent()&&(r.DQ.byId(n.value,!0).insertAfter(s),this.internalContext.assign(u.UPDATE_ELEMS).value.push(s))}insertWithSubTags(e){const t=e.querySelectorAll(u.XML_TAG_BEFORE),n=e.querySelectorAll(u.XML_TAG_AFTER);t.each((e=>{const t=e.attr(u.ATTR_ID),n=r.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(r.DQ.byId(t.value,!0).insertBefore(n),this.internalContext.assign(u.UPDATE_ELEMS).value.push(n))})),n.each((e=>{const t=e.attr(u.ATTR_ID),n=r.DQ.fromMarkup(e.cDATAAsString);t.isPresent()&&(r.DQ.byId(t.value,!0).insertAfter(n),this.internalContext.assign(u.UPDATE_ELEMS).value.push(n))}))}processViewState(e){if(v.isViewStateNode(e)){const t=e.cDATAAsString;return this.internalContext.assign(u.APPLIED_VST,e.id.value).value=new i.StateHolder((0,u.$nsp)(e.id.value),t),!0}return!1}processClientWindow(e){if(v.isClientWindowNode(e)){const t=e.cDATAAsString;return this.internalContext.assign(u.APPLIED_CLIENT_WINDOW,e.id.value).value=new i.StateHolder((0,u.$nsp)(e.id.value),t),!0}}globalEval(){new c.ExtDomQuery(...this.internalContext.getIf(u.DEFERRED_HEAD_INSERTS).value).runHeadInserts(!0);let e=new c.ExtDomQuery(...this.internalContext.getIf(u.UPDATE_ELEMS).value);e.runCss(),e.runScripts()}fixViewStates(){E(this.internalContext.getIf(u.APPLIED_VST).orElse({}).value).forEach((([,e])=>{const t=this.internalContext.getIf(u.NAMING_CONTAINER_ID),n=!!this.internalContext.getIf(u.NAMED_VIEWROOT).value,r=this.getContainerForms(t).filter((e=>this.isInExecuteOrRender(e)));this.appendViewStateToForms(r,n,e.value,t.orElse("").value)}))}fixClientWindow(){E(this.internalContext.getIf(u.APPLIED_CLIENT_WINDOW).orElse({}).value).forEach((([,e])=>{const t=this.internalContext.getIf(u.NAMING_CONTAINER_ID),n=!!this.internalContext.getIf(u.NAMED_VIEWROOT).value,r=this.getContainerForms(t).filter((e=>this.isInExecuteOrRender(e)));this.appendClientWindowToForms(r,n,e.value,t.orElse("").value)}))}updateNamedViewRootState(){let e=this.internalContext.getIf(u.NAMING_CONTAINER_ID),t=this.internalContext.getIf(u.NAMED_VIEWROOT);if(e.isPresent()&&(t.isAbsent()||!t.value)){const t=(0,u.$faces)().separatorchar;this.internalContext.assign(u.NAMED_VIEWROOT).value=!!document.getElementById(e.value)||(0,r.DQ$)(`input[name*='${(0,u.$nsp)(u.P_VIEWSTATE)}']`).filter((n=>0==n.attr("name").value.indexOf(e.value+t))).length>0}}done(){const e=a.EventData.createFromRequest(this.request.value,this.internalContext,this.externalContext,u.SUCCESS),t=this.externalContext.getIf(u.ON_EVENT).orElseLazy((()=>this.internalContext.getIf(u.ON_EVENT).value)).orElse(u.EMPTY_FUNC).value;s.Implementation.sendEvent(e,t)}appendViewStateToForms(e,t,n,r=""){this.assignState(e,(0,u.$nsp)(u.SEL_VIEWSTATE_ELEM),t,n,r)}appendClientWindowToForms(e,t,n,r=""){this.assignState(e,(0,u.$nsp)(u.SEL_CLIENT_WINDOW_ELEM),t,n,r)}assignState(e,t,n,r,s){e.each((e=>{e.querySelectorAll(t).orElseLazy((()=>(e=>new d.HiddenInputBuilder(t).withNamingContainerId(s).withParent(e).withNamedViewRoot(n).build())(e))).val=r}))}storeForPostProcessing(e,t){this.storeForUpdate(e),this.storeForEval(t)}storeForUpdate(e){this.internalContext.assign(u.UPDATE_FORMS).value.push(e)}storeForEval(e){this.internalContext.assign(u.UPDATE_ELEMS).value.push(e)}static isViewStateNode(e){var t,n,r,s,l,o;const i=(0,u.$faces)().separatorchar;return void 0!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.value)&&((null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)==(0,u.$nsp)(u.P_VIEWSTATE)||-1!=(null===(s=null===(r=null==e?void 0:e.id)||void 0===r?void 0:r.value)||void 0===s?void 0:s.indexOf([i,(0,u.$nsp)(u.P_VIEWSTATE)].join(u.EMPTY_STR)))||-1!=(null===(o=null===(l=null==e?void 0:e.id)||void 0===l?void 0:l.value)||void 0===o?void 0:o.indexOf([(0,u.$nsp)(u.P_VIEWSTATE),i].join(u.EMPTY_STR))))}static isClientWindowNode(e){var t,n,r,s,l,o;const i=(0,u.$faces)().separatorchar;return void 0!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.value)&&((null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)==(0,u.$nsp)(u.P_CLIENT_WINDOW)||-1!=(null===(s=null===(r=null==e?void 0:e.id)||void 0===r?void 0:r.value)||void 0===s?void 0:s.indexOf([i,(0,u.$nsp)(u.P_CLIENT_WINDOW)].join(u.EMPTY_STR)))||-1!=(null===(o=null===(l=null==e?void 0:e.id)||void 0===l?void 0:l.value)||void 0===o?void 0:o.indexOf([(0,u.$nsp)(u.P_CLIENT_WINDOW),i].join(u.EMPTY_STR))))}triggerOnError(e){this.externalContext.getIf(u.ON_ERROR).orElseLazy((()=>this.internalContext.getIf(u.ON_ERROR).value)).orElse(u.EMPTY_FUNC).value(e)}isInExecuteOrRender(e){const t=this.externalContext.getIf((0,u.$nsp)(u.P_EXECUTE)).orElse("@none").value.split(/\s+/gi),n=this.externalContext.getIf(u.P_RENDER_OVERRIDE).orElseLazy((()=>this.externalContext.getIf((0,u.$nsp)(u.P_RENDER)).value)).orElse(u.IDENT_NONE).value.split(/\s+/gi);return[...t.concat(...n)].filter((t=>{if(-1!=[u.IDENT_ALL,u.IDENT_NONE].indexOf(t))return!0;const n=this.getNameOrIdSelector(t);return e.matchesSelector(n)||e.querySelectorAll(n).isPresent()||e.firstParent(n).isPresent()})).length>0}getContainerForms(e){return e.isPresent()?(0,r.DQ$)(this.getNameOrIdSelector(e.value)).orElseLazy((()=>r.DQ.byTagName(u.HTML_TAG_BODY))).byTagName(u.HTML_TAG_FORM,!0):r.DQ.byTagName(u.HTML_TAG_FORM)}getNameOrIdSelector(e){return`[id='${e}'], [name='${e}']`}}t.ResponseProcessor=v},944(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.XhrFormData=void 0;const r=n(257),s=n(351),l=n(680),o=n(471).ExtLang.ofAssoc,i=n(257),a=(e,t)=>[e,t];class u extends r.Config{constructor(e,t=a,n,r){super({}),this.dataSource=e,this.paramsMapper=t,this.partialIds=r,this.isMultipartRequest=!1,this.resolveRequestType(this.dataSource,n),this.encodeSubmittableFields(this.dataSource,this.partialIds),this.applyViewState(this.dataSource)}toFormData(){return o(this.value).flatMap((([e,t])=>Array.isArray(t)?new i.Es2019Array(...t).map((t=>({key:e,value:t}))):[{key:e,value:t}])).map((({key:e,value:t})=>({key:e=this.remapKeyForNamingContainer(e),value:t}))).reduce(((e,{key:t,value:n})=>(e.append(t,n),e)),new FormData)}toString(e=s.EMPTY_STR){return(0,l.encodeFormData)(this,this.paramsMapper,e)}resolveRequestType(e,t){t&&-1==t.indexOf(s.IDENT_NONE)&&(this.isMultipartRequest=e.isMultipartCandidate(!0))}applyViewState(e){if(this.getIf((0,s.$nsp)(s.P_VIEWSTATE)).isPresent())return;let t=e.querySelectorAllDeep(`[name*='${(0,s.$nsp)(s.P_VIEWSTATE)}'`),n=t.inputValue;this.appendIf(n.isPresent(),this.remapKeyForNamingContainer(t.name.value)).value=n.value}encodeSubmittableFields(e,t=[]){const n=t.map((e=>this.remapKeyForNamingContainer(e)));(0,l.getFormInputsAsArr)(e).map(l.fixEmptyParameters).map((([e,t])=>this.paramsMapper(e,t))).filter((([e,t])=>!n.length||0==e.indexOf("@")||-1!=n.indexOf(e))).forEach((([e,t])=>this.append(e).value=t))}remapKeyForNamingContainer(e){return this.paramsMapper(e,"")[0]}}t.XhrFormData=u},229(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.XhrRequest=void 0;const r=n(726),s=n(257),l=n(644),o=n(944),i=n(234),a=n(560),u=n(471),c=n(351),d=n(7),h=u.ExtLang.failSaveExecute,E=n(780);class v extends r.AsyncRunnable{constructor(e,t,n=c.NO_TIMEOUT,r=c.REQ_TYPE_POST,s=c.URL_ENCODED){super(),this.requestContext=e,this.internalContext=t,this.timeout=n,this.ajaxType=r,this.contentType=s,this.stopProgress=!1,this.xhrObject=new XMLHttpRequest,this.registerXhrCallbacks((e=>this.resolve(e)),(e=>this.reject(e)))}start(){let e=h,t=this.xhrObject,n=s.DQ.byId(this.internalContext.getIf(c.CTX_PARAM_SRC_FRM_ID).value),r=()=>this.requestContext.getIf(c.CTX_PARAM_REQ_PASS_THR,c.P_EXECUTE).get(c.IDENT_NONE).value.split(/\s+/gi);try{const s=r(),l=!0===this.internalContext.getIf(c.CTX_PARAM_PPS).value?s:[],i=new o.XhrFormData(n,(0,d.resoveNamingContainerMapper)(this.internalContext),s,l);this.contentType=i.isMultipartRequest?"undefined":this.contentType,this.requestContext.$nspEnabled=!1;const a=this.requestContext,u=a.getIf(c.CTX_PARAM_REQ_PASS_THR);u.$nspEnabled=!1;try{i.shallowMerge(u,!0,!0)}finally{this.requestContext.$nspEnabled=!0,u.$nspEnabled=!0}this.appendIssuingItem(i),this.responseContext=u.deepCopy;const h=this.responseContext;h.assign(c.CTX_PARAM_MF_INTERNAL).value=this.internalContext.value,h.assign(c.ON_EVENT).value=a.getIf(c.ON_EVENT).value,h.assign(c.ON_ERROR).value=a.getIf(c.ON_ERROR).value,t.open(this.ajaxType,(0,d.resolveFinalUrl)(n,i,this.ajaxType),!0),this.timeout&&(t.timeout=this.timeout),"undefined"!=this.contentType&&e((()=>t.setRequestHeader(c.CONTENT_TYPE,`${this.contentType}; charset=utf-8`))),e((()=>t.setRequestHeader(c.HEAD_FACES_REQ,c.VAL_AJAX))),e((()=>t.setRequestHeader(c.REQ_ACCEPT,c.STD_ACCEPT))),this.sendEvent(c.BEGIN),this.sendRequest(i)}catch(e){throw this.handleErrorAndClearQueue(e),e}return this}cancel(){try{this.xhrObject.abort()}catch(e){this.handleError(e)}}registerXhrCallbacks(e,t){var n,r;const s=this.xhrObject;s.onabort=()=>{this.onAbort(e,t)},s.ontimeout=()=>{this.onTimeout(e,t)},s.onload=()=>{this.onResponseReceived(e)},s.onloadend=()=>{this.onResponseProcessed(this.xhrObject,e)},(null==s?void 0:s.upload)&&(null===(r=(n=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_PREINIT)).value)||void 0===r||r.call(n,s.upload),s.upload.addEventListener("progress",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_ON_PROGRESS)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("load",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_LOAD)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("loadstart",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_LOADSTART)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("loadend",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_LOADEND)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("abort",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_ABORT)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("timeout",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_TIMEOUT)).value)||void 0===n||n.call(t,s.upload,e)})),s.upload.addEventListener("error",(e=>{var t,n;null===(n=(t=this.internalContext.getIf(c.CTX_PARAM_UPLOAD_ERROR)).value)||void 0===n||n.call(t,s.upload,e)}))),s.onerror=e=>{if(this.isCancelledResponse(this.xhrObject))return this.stopProgress=!0,void t();this.stopProgress||this.handleError(e)}}isCancelledResponse(e){return 0===(null==e?void 0:e.status)&&4===(null==e?void 0:e.readyState)&&""===(null==e?void 0:e.responseText)&&null===(null==e?void 0:e.responseXML)}onAbort(e,t){this.handleHttpError(t)}onTimeout(e,t){this.sendEvent(c.STATE_EVT_TIMEOUT),this.handleHttpError(e)}onResponseReceived(e){var t;this.sendEvent(c.COMPLETE),this.processRequestErrors(e)||(0,c.$faces)().ajax.response(this.xhrObject,null!==(t=this.responseContext.value)&&void 0!==t?t:{})}processRequestErrors(e){var t,n,r,l,o;const i=new s.XMLQuery(null===(t=this.xhrObject)||void 0===t?void 0:t.responseXML),a=null!==(r=null===(n=this.xhrObject)||void 0===n?void 0:n.responseText)&&void 0!==r?r:"",u=null!==(o=null===(l=this.xhrObject)||void 0===l?void 0:l.status)&&void 0!==o?o:-1;if(i.isXMLParserError()){const t="Invalid Response",n="The response xml is invalid";return this.handleGenericResponseError(t,n,c.MALFORMEDXML,e),!0}if(i.isAbsent()&&a.trim().length>0){const t="Invalid Response",n="The response xml is invalid";return this.handleGenericResponseError(t,n,c.MALFORMEDXML,e),!0}if(i.isAbsent()){const t="Empty Response",n="The response has provided no data";return this.handleGenericResponseError(t,n,c.EMPTY_RESPONSE,e),!0}return(u>=300||u<200)&&(this.handleHttpError(e),!0)}handleGenericResponseError(e,t,n,r){var s,l,o,a;const u=new i.ErrorData(this.internalContext.getIf(c.CTX_PARAM_SRC_CTL_ID).value,e,t,null!==(l=null===(s=this.xhrObject)||void 0===s?void 0:s.responseText)&&void 0!==l?l:"",null!==(a=null===(o=this.xhrObject)||void 0===o?void 0:o.responseXML)&&void 0!==a?a:null,this.xhrObject.status,n);this.finalizeError(u,r)}handleHttpError(e,t="Generic HTTP Serror"){var n,r,s,l,o,a;this.stopProgress=!0;const u=new i.ErrorData(this.internalContext.getIf(c.CTX_PARAM_SRC_CTL_ID).value,c.HTTP_ERROR,t,null!==(r=null===(n=this.xhrObject)||void 0===n?void 0:n.responseText)&&void 0!==r?r:"",null!==(l=null===(s=this.xhrObject)||void 0===s?void 0:s.responseXML)&&void 0!==l?l:null,null!==(a=null===(o=this.xhrObject)||void 0===o?void 0:o.status)&&void 0!==a?a:-1,c.HTTP_ERROR);this.finalizeError(u,e)}finalizeError(e,t){try{this.handleError(e,!0)}finally{t(e),this.stopProgress=!0}}onResponseProcessed(e,t){this.stopProgress||t(e)}sendRequest(e){const t=this.ajaxType!=c.REQ_TYPE_GET;e.isMultipartRequest?this.xhrObject.send(t?e.toFormData():null):this.xhrObject.send(t?e.toString():null)}sendEvent(e){var t;const n=a.EventData.createFromRequest(this.xhrObject,this.internalContext,this.requestContext,e);try{let e=(0,d.resolveHandlerFunc)(this.requestContext,this.responseContext,c.ON_EVENT);l.Implementation.sendEvent(n,e)}catch(e){throw e.source=null!==(t=null==e?void 0:e.source)&&void 0!==t?t:this.requestContext.getIf(c.SOURCE).value,this.handleErrorAndClearQueue(e),e}}handleErrorAndClearQueue(e,t=!1){this.handleError(e,t),this.reject(e)}handleError(e,t=!1){var n;const r=t?i.ErrorData.fromHttpConnection(e.source,e.type,null!==(n=e.message)&&void 0!==n?n:c.EMPTY_STR,e.responseText,e.responseXML,e.responseCode,e.status):i.ErrorData.fromClient(e),s=(0,d.resolveHandlerFunc)(this.requestContext,this.responseContext,c.ON_ERROR);l.Implementation.sendError(r,s)}appendIssuingItem(e){var t,n;const r=this.internalContext.getIf(c.CTX_PARAM_SRC_CTL_ID).value,l=null!==(n=null===(t=e.getIf((0,c.$nsp)(c.P_BEHAVIOR_EVENT)).value)||void 0===t?void 0:t[0])&&void 0!==n?n:null,o=!!l&&"click"!=l;if(r&&e.getIf(r).isAbsent()&&!o){const t=s.DQ.byId(r),n=t.inputValue,l=new E.ExtConfig({}),o=t.type.orElse("").value.toLowerCase();if(!(o!=v.TYPE_CHECKBOX&&o!=v.TYPE_RADIO||t.checked))return;o==v.TYPE_CHECKBOX||o==v.TYPE_RADIO?l.assign(r).value=n.orElse(!0).value:n.isPresent()&&(l.assign(r).value=n.value),e.shallowMerge(l,!0,!0)}}}t.XhrRequest=v,v.TYPE_CHECKBOX="checkbox",v.TYPE_RADIO="radio"},19(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.oam=void 0;const r=n(257),s=n(471);var l;!function(e){const t=s.ExtLang.ofAssoc;e.setHiddenInput=function(e,t,n){r.DQ.byId(document.forms[e]).each((e=>{const s=e.querySelectorAll(`input[type='hidden'][name='${t}']`);if(s.isPresent())s.inputValue.value=n;else{const s=r.DQ.fromMarkup(`<input type='hidden' id='${t}' name='${t}'>`);s.inputValue.value=n,s.appendTo(e)}}))},e.clearHiddenInput=function(e,t){var n,s,l;let o=null===(l=null===(s=null===(n=document.forms)||void 0===n?void 0:n[e])||void 0===s?void 0:s.elements)||void 0===l?void 0:l[t];o&&r.DQ.byId(o).delete()},e.submitForm=function(e,n=null,s=null,l={}){var o,i,a,u,c,d;l=l||{};let h="clearFormHiddenParams_"+e.replace(/-/g,"$:").replace(/:/g,"_");null===(o=null===window||void 0===window?void 0:window[h])||void 0===o||o.call(window,e),(null===(u=null===(a=null===(i=null===window||void 0===window?void 0:window.myfaces)||void 0===i?void 0:i.core)||void 0===a?void 0:a.config)||void 0===u?void 0:u.autoScroll)&&(null===window||void 0===window?void 0:window.getScrolling)&&myfaces.oam.setHiddenInput(e,"autoScroll",null===window||void 0===window?void 0:window.getScrolling());let E=Array.isArray(l)?[...l]:t(l);return E.forEach((([t,n])=>myfaces.oam.setHiddenInput(e,t,n))),myfaces.oam.setHiddenInput(e,`${e}:_idcl`,null!=n?n:""),r.DQ.byId(null!==(d=null===(c=document.forms)||void 0===c?void 0:c[e])&&void 0!==d?d:document.getElementById(e)).each((t=>{var n;const r=t.getAsElem(0).value,l=t.getAsElem(0).value.getAttribute("target");"null"!=s&&s&&t.getAsElem(0).value.setAttribute("target",s);const o=null===(n=null==r?void 0:r.onsubmit)||void 0===n?void 0:n.call(r,null);try{(o||void 0===o)&&r.submit()}catch(e){null===window||void 0===window||window.console.error(e)}finally{null==l||"null"==l?t.getAsElem(0).value.removeAttribute("target"):t.getAsElem(0).value.setAttribute("target",l),E.forEach((([t,n])=>{myfaces.oam.clearHiddenInput(e,t)})),myfaces.oam.clearHiddenInput(e,`${e}:_idcl`)}})),!1}}(l||(t.oam=l={}))}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r={};(()=>{var e,t,s,l=r;if(Object.defineProperty(l,"__esModule",{value:!0}),l.myfaces=l.faces=void 0,!window.faces){const t=n(973).J_;window.faces=null!==(e=null===window||void 0===window?void 0:window.faces)&&void 0!==e?e:t}if(!(null===(t=null===window||void 0===window?void 0:window.myfaces)||void 0===t?void 0:t.ab)){const e=n(973).$A;window.myfaces=null!==(s=null===window||void 0===window?void 0:window.myfaces)&&void 0!==s?s:{},Object.keys(e).forEach((t=>{var n,r;return window.myfaces[t]=null!==(r=null===(n=window.myfaces)||void 0===n?void 0:n[t])&&void 0!==r?r:e[t]}))}l.faces=window.faces,l.myfaces=window.myfaces})();var s=window;for(var l in r)s[l]=r[l];r.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})();
2
+ (()=>{"use strict";var e={563(e,t,n){n.d(t,{J:()=>en,$:()=>tn});const r=3e4;function s(e,t){for(let n=0,s=t.length;n<s;n+=r)Array.prototype.push.apply(e,Array.prototype.slice.call(t,n,n+r));return e}class i extends Array{constructor(e=[]){super(),(e=Array.isArray(e)?e:[e])._another?this._another=e._another:this._another=e,s(this,e),this.flatMap=e=>this._flatMap(e),this.flat=(e=1)=>this._flat(e)}map(e,t){return l(Array.prototype.map.call(this._another,e,t))}concat(...e){return l(Array.prototype.concat.apply(this._another,e))}reverse(){return l(Array.prototype.reverse.call(this._another))}slice(e,t){return l(Array.prototype.slice.call(this._another,e,t))}splice(e,t){return l(Array.prototype.splice.call(this._another,e,null!=t?t:0))}filter(e,t){return l(Array.prototype.filter.call(this._another,e,t))}reduce(e,t){return Array.prototype.reduce.call(this._another,e,t)}_flat(e=1){return this._flatResolve(this._another,e)}_flatResolve(e,t=1){if(0==t)return e;let n=[];return e.forEach((e=>{e=Array.isArray(e)?e:[e];let r=this._flatResolve(e,t-1);n=n.concat(r)})),u(n)}_flatMap(e){let t=this.map((t=>e(t)));return this._flatResolve(t)}}function l(e){let t=new i(e);return new Proxy(t,{get:(e,t,n)=>"symbol"==typeof t?e._another[t]:isNaN(parseInt(t))?e[t]:e._another[t],set:(e,t,n)=>(e[t]=n,e._another[t]=n,!0)})}var o,a=Array.prototype.flatMap?function(...e){return(null==e?void 0:e.flatMap)?e:l(e)}:function(...e){return l(e)};function u(e){const t=s([],e);return Array.prototype.flatMap?t:l(t)}class c{constructor(e){this._value=e}get value(){return this._value}map(e){e||(e=e=>e);let t=e(this.value);return new c(t)}flatMap(e){let t=this.map(e);for(;(null==t?void 0:t.value)instanceof c;)t=t.value;return t}}class h extends c{constructor(e){super(e)}get value(){return this._value instanceof c?this._value.flatMap().value:this._value}static fromNullable(e){return new h(e)}isAbsent(){return void 0===this.value||null==this.value}isPresent(e){let t=this.isAbsent();return!t&&e&&e.call(this,this),!t}ifPresentLazy(e=()=>{}){return this.isPresent.call(this,e),this}orElse(e){return this.isPresent()?this:null==e?h.absent:this.flatMap((()=>e))}orElseLazy(e){return this.isPresent()?this:this.flatMap(e)}flatMap(e){let t=super.flatMap(e);return t instanceof h?t.flatMap():h.fromNullable(t.value)}getIf(...e){e=this.preprocessKeys(...e);let t=this;for(let n=0;n<e.length;n++){let r=this.keyVal(e[n]),s=this.arrayIndex(e[n]);if(""===r&&s>=0){if(t=this.getClass().fromNullable(t.value instanceof Array?t.value.length<s?null:t.value[s]:null),t.isAbsent())return t}else if(r&&s>=0){if(t.getIfPresent(r).isAbsent())return t;if(t=t.getIfPresent(r).value instanceof Array?this.getClass().fromNullable(t.getIfPresent(r).value[s]):this.getClass().absent,t.isAbsent())return t}else{if(t=t.getIfPresent(r),t.isAbsent())return t;s>-1&&(t=this.getClass().fromNullable(t.value[s]))}}return t}match(e){return!this.isAbsent()&&e(this.value)}get(e=h.absent){return this.isAbsent()?this.getClass().fromNullable(e).flatMap():this.getClass().fromNullable(this.value).flatMap()}toJson(){return JSON.stringify(this.value)}getClass(){return h}arrayIndex(e){let t=e.indexOf("["),n=e.indexOf("]");return t>=0&&n>0&&t<n?parseInt(e.substring(t+1,n)):-1}keyVal(e){let t=e.indexOf("[");return t>=0?e.substring(0,t):e}getIfPresent(e){return this.isAbsent()?this.getClass().absent:this.getClass().fromNullable(this.value[e]).flatMap()}resolve(e){if(this.isAbsent())return h.absent;try{return h.fromNullable(e(this.value))}catch(e){return h.absent}}preprocessKeys(...e){return new a(...e).flatMap((e=>new a(...e.split(/]\s*\[/gi)).map((e=>(-1==(e=e.replace(/^\s+|\s+$/g,"")).indexOf("[")&&-1!=e.indexOf("]")&&(e="["+e),-1==e.indexOf("]")&&-1!=e.indexOf("[")&&(e+="]"),e)))))}}h.absent=h.fromNullable(null);class d extends h{constructor(e,t="value"){super(e),this.key=t}get value(){return this._value?this._value[this.key]:null}set value(e){this._value&&(this._value[this.key]=e)}orElse(e){let t={};return t[this.key]=e,this.isPresent()?this:new d(t,this.key)}orElseLazy(e){if(this.isPresent())return this;{let t={};return t[this.key]=e(),new d(t,this.key)}}getClass(){return d}static fromNullable(e,t="value"){return new d(e,t)}}d.absent=d.fromNullable(null),function(e){function t(e){let t=/\s/,n=(e=e.replace(/^\s\s*/,"")).length;for(;t.test(e.charAt(--n)););return e.slice(0,n+1)}function n(e){return!!arguments.length&&null!=e&&("string"==typeof e||e instanceof String)}e.saveResolve=function(e,t=null){try{let n=e();return h.fromNullable(null!=n?n:t)}catch(e){return h.absent}},e.saveResolveLazy=function(e,t=null){try{let n=e();return h.fromNullable(null!=n?n:t())}catch(e){return h.absent}},e.strToArray=function(e,n=/\./gi){let r=[];return e.split(n).forEach((e=>{r.push(t(e))})),r},e.trim=t,e.objToArray=function(e,t=0,n=[]){return"__undefined__"==(null!=e?e:"__undefined__")?null!=n?n:null:e instanceof Array&&!t&&!n?e:u(n.concat(Array.prototype.slice.call(e,t)))},e.equalsIgnoreCase=function(e,t){let n=null!=t?t:"___no_value__";return(null!=e?e:"___no_value__").toLowerCase()===n.toLowerCase()},e.assertType=function(e,t){return n(t)?typeof e==t:e instanceof t},e.isString=n,e.isFunc=function(e){return e instanceof Function||"function"==typeof e},e.objAssign=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");let n=Object(e);return Object.assign?(t.forEach((e=>Object.assign(n,e))),n):(t.filter((e=>null!=e)).forEach((e=>{let t=e;[...Object.keys(t),...Object.getOwnPropertySymbols(t).filter((e=>Object.prototype.propertyIsEnumerable.call(t,e)))].forEach((e=>n[e]=t[e]))})),n)}}(o||(o={}));class v{constructor(e){this.parent=e}set value(e){}get value(){return this.parent}}function f(e,...t){if(t.length<1)return new v(e);const n=w(e,...t);return new class{set value(e){n.target[n.key]=e}get value(){return n.target[n.key]}}}function p(e,...t){if(t.length<1)return new v(e);const n=w(e,...t);return new class{set value(e){Array.isArray(e)||(e=[e]),n.target[n.key]?(Array.isArray(n.target[n.key])||(n.target[n.key]=[n.target[n.key]]),s(n.target[n.key],e)):n.target[n.key]=e}}}function m(e){let t=e.indexOf("[");return t>=0?e.substring(0,t):e}function g(e){let t=e.indexOf("["),n=e.indexOf("]");return t>=0&&n>0&&t<n?parseInt(e.substring(t+1,n)):-1}function y(e,t,n={}){let r=[];r.length=t,r[t-1]=n,s(e,r)}function E(e){return new a(...e).flatMap((e=>e.split("["))).map((e=>-1!=e.indexOf("]")?"["+e:e)).filter((e=>""!=e))}function w(e,...t){t=E(t);let n=e,r=null,s=null,i=-1;for(let e=0;e<t.length;e++)if(s=m(t[e]),i=g(t[e]),-1!=i){if(!Array.isArray(n))throw Error("Associative array referenced as index array in path reference");let s=-1;e<t.length-1&&(s=g(t[e+1]));let l=void 0!==(null==n?void 0:n[i]);y(n,i+1,-1!=s?[]:{}),r=i,e==t.length-1?n[i]=l?n[i]:null:n=n[i]}else{if(Array.isArray(n))throw Error("Index array referenced as associative array in path reference");let i=-1;e<t.length-1&&(i=g(t[e+1])),r=s;let l=void 0!==(null==n?void 0:n[s]);e==t.length-1?l||(n[s]=null):(l||(n[s]=-1==i?{}:[]),n=n[s])}return{target:n,key:r}}function b(...e){return A(!0,!1,...e)}function A(e=!0,t=!1,...n){let r={};return new a(...n).map((e=>({arr:e,keys:Object.keys(e)}))).forEach((({arr:n,keys:i})=>{i.forEach((i=>{let l=n[i];!Array.isArray(l)&&t&&(l=new a(...[l])),e||!(null==r?void 0:r[i])?function(e,t,n,r,i){if(e)if(void 0===(null==t?void 0:t[n]))t[n]=i;else if(Array.isArray(t[n])){let e=t[n],r=[];i.forEach((t=>{-1==e.indexOf(t)&&r.push(t)})),s(t[n],r)}else{let e=t[n],r=[];i.forEach((t=>{e!=t&&r.push(t)})),t[n]=new a(...[]),t[n].push(e),s(t[n],r)}else t[n]=r[n]}(t,r,i,n,l):!e&&(null==r?void 0:r[i])&&function(e,t,n,r,i){if(e)if(void 0===(null==t?void 0:t[n]))t[n]=i;else if(Array.isArray(t[n]))s(t[n],i);else{let e=t[n];t[n]=new a(...[]),t[n].push(e),s(t[n],i)}}(t,r,i,0,l)}))})),r}const S=o.objAssign;class x extends d{constructor(e,t,n){super(e,t),this.arrPos=null!=n?n:-1}get value(){return""==this.key&&this.arrPos>=0?this._value[this.arrPos]:this.key&&this.arrPos>=0?this._value[this.key][this.arrPos]:this._value[this.key]}set value(e){""==this.key&&this.arrPos>=0?this._value[this.arrPos]=e:this.key&&this.arrPos>=0?this._value[this.key][this.arrPos]=e:this._value[this.key]=e}}x.absent=x.fromNullable(null);class _ extends h{constructor(e,t){super(e),this.configDef=t}get shallowCopy(){return this.shallowCopy$()}shallowCopy$(){let e=new _({});return e.shallowMerge(this.value),e}get deepCopy(){return this.deepCopy$()}deepCopy$(){return new _(S({},this.value))}static fromNullable(e){return new _(e)}shallowMerge(e,t=!0,n=!1){let r=A(t,n,this.value,e.value);Array.isArray(this._value)?(this._value.length=0,s(this._value,r)):(Object.getOwnPropertyNames(this._value).forEach((e=>delete this._value[e])),Object.getOwnPropertyNames(r).forEach((e=>this._value[e]=r[e])))}append(...e){return p(this._value,...e)}appendIf(e,...t){return function(e,t,...n){return!e||n.length<1?new v(t):p(t,...n)}(e,this._value,...t)}assign(...e){return f(this.value,...e)}assignIf(e,...t){return function(e,t,...n){return!e||n.length<1?new v(t):f(t,...n)}(e,this._value,...t)}getIf(...e){return this.assertAccessPath(...e),this.getClass().fromNullable(function(e,...t){let n=null;t=E(t);let r=e;for(let e=0;e<t.length;e++){let s=t[e];if(s=-1!=g(s)?g(s):s,r=null==r?void 0:r[s],void 0===r)return null;n=r}return r}(this.value,...e))}get(e){return this.getClass().fromNullable(super.get(e).value)}delete(e){return e in this.value&&delete this.value[e],this}toJson(){return JSON.stringify(this.value)}getClass(){return _}setVal(e){this._value=e}assertAccessPath(...e){var t,n,r,s,i,l,o,a,c;if(e=this.preprocessKeys(...e),!this.configDef)return;let d=h.fromNullable(Object.keys(this.configDef).map((e=>{let t={};return t[e]=this.configDef[e],t})));for(let v=0;v<e.length;v++){let f=this.keyVal(e[v]),p=this.arrayIndex(e[v]);if(d=this.isArray(p)?""!=f?Array.isArray(d.value)?h.fromNullable(null===(n=null===(t=u(d.value).find((e=>{var t;return!(null===(t=null==e?void 0:e[f])||void 0===t||!t)})))||void 0===t?void 0:t[f])||void 0===n?void 0:n[p]):h.fromNullable(null!==(i=null===(s=null===(r=d.value)||void 0===r?void 0:r[f])||void 0===s?void 0:s[p])&&void 0!==i?i:null):Array.isArray(d.value)?h.fromNullable(null===(l=d.value)||void 0===l?void 0:l[p]):h.absent:Array.isArray(d.value)?h.fromNullable(null===(o=u(d.value).find((e=>{var t;return!(null===(t=null==e?void 0:e[f])||void 0===t||!t)})))||void 0===o?void 0:o[f]):h.fromNullable(null!==(c=null===(a=d.value)||void 0===a?void 0:a[f])&&void 0!==c?c:null),!d.isPresent())throw Error("Access Path to config invalid");if("__ANY_POINT__"==d.value)return}}isNoArray(e){return-1==e}isArray(e){return!this.isNoArray(e)}}var R;function N(e){let t=1;for(;e.lookAhead(t)!=R.EO_STRM;)t++;return--t}!function(e){e.EO_STRM="__EO_STRM__",e.BEF_STRM="___BEF_STRM__"}(R||(R={}));class I{constructor(e,...t){this.first=e,this.selectedPos=0,this.strms=[e],t.forEach((e=>{Array.isArray(e)?s(this.strms,e):this.strms.push(e)})),this.activeStrm=this.strms[this.selectedPos]}current(){return this.activeStrm.current()}hasNext(){return!!this.activeStrm.hasNext()||!(this.selectedPos>=this.strms.length)&&-1!=this.findNextStrm()}findNextStrm(){let e=!1,t=this.selectedPos;for(;!e&&t<this.strms.length;)e=this.strms[t].hasNext(),e||t++;return e?t:-1}lookAhead(e=1){const t=this.strms.slice(this.selectedPos);if(!t.length)return R.EO_STRM;const n=[...t];for(;n.length;){let t=n.shift(),r=t.lookAhead(e);if(r!=R.EO_STRM)return r;e-=N(t)}return R.EO_STRM}next(){return this.activeStrm.hasNext()?this.activeStrm.next():(this.selectedPos=this.findNextStrm(),-1==this.selectedPos?R.EO_STRM:(this.activeStrm=this.strms[this.selectedPos],this.activeStrm.next()))}reset(){this.activeStrm=this.strms[0],this.selectedPos=0;for(let e=0;e<this.strms.length;e++)this.strms[e].reset()}}class C{constructor(...e){this.dataPos=-1,this.value=e}static ofArray(e){const t=new C;return t.value=null!=e?e:[],t}lookAhead(e=1){return this.dataPos+e>this.value.length-1?R.EO_STRM:this.value[this.dataPos+e]}hasNext(){return this.value.length-1>this.dataPos}next(){var e;return this.dataPos++,null!==(e=null==this?void 0:this.value[this.dataPos])&&void 0!==e?e:R.EO_STRM}reset(){this.dataPos=-1}current(){return this.value[Math.max(0,this.dataPos)]}}class T{constructor(e,t){this._current=R.BEF_STRM,this._filterIdx={},this._unfilteredPos=0,this.filterFunc=e,this.inputDataSource=t}hasNext(){let e,t=1,n=!1;for(;!n&&(e=this.inputDataSource.lookAhead(t))!=R.EO_STRM;)this.filterFunc(e)?(this._filterIdx[this._unfilteredPos+t]=!0,n=!0):t++;return n}next(){var e,t;let n=R.EO_STRM;for(;this.inputDataSource.hasNext();){this._unfilteredPos++;let r=this.inputDataSource.next();if(r!=R.EO_STRM&&(null!==(t=null===(e=this._filterIdx)||void 0===e?void 0:e[this._unfilteredPos])&&void 0!==t&&t||this.filterFunc(r))){this._filterIdx[this._unfilteredPos]=!0,n=r;break}}return this._current=n,n}lookAhead(e=1){var t;let n=R.EO_STRM;for(let r=1;e>0&&(n=this.inputDataSource.lookAhead(r))!=R.EO_STRM;r++)((null===(t=this._filterIdx)||void 0===t?void 0:t[this._unfilteredPos+r])||this.filterFunc(n))&&(e--,this._filterIdx[this._unfilteredPos+r]=!0);return n}current(){return this._current}reset(){this._current=R.BEF_STRM,this._filterIdx={},this._unfilteredPos=0,this.inputDataSource.reset()}}class O{constructor(e,t){this.mapFunc=e,this.inputDataSource=t}hasNext(){return this.inputDataSource.hasNext()}next(){return this.mapFunc(this.inputDataSource.next())}reset(){this.inputDataSource.reset()}current(){return this.mapFunc(this.inputDataSource.current())}lookAhead(e=1){const t=this.inputDataSource.lookAhead(e);return t==R.EO_STRM?t:this.mapFunc(t)}}class M{constructor(){this.data=[]}collect(e){this.data.push(e)}get finalValue(){return this.data}}function k(){var e;let t="undefined"!=typeof globalThis&&globalThis.window?globalThis.window:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0!==n.g&&(null===n.g||void 0===n.g?void 0:n.g.window)?n.g.window:void 0!==n.g?n.g:null;return null!==(e=null==t?void 0:t.window)&&void 0!==e?e:t}const P=o.trim,j=o.isString,D=o.equalsIgnoreCase,L=o.objToArray;function q(e,t){for(let n=t.length;n>0;n-=r){const s=Math.max(0,n-r);e.prepend(...t.slice(s,n))}}class F extends d{constructor(e){super(null==e?void 0:e[0],"nonce"),this.rootElems=e}isAbsent(){const e=this.value;return void 0===e||""==e}get value(){var e,t,n,r,s;return null!==(n=null===(t=null===(e=null==this?void 0:this.rootElems)||void 0===e?void 0:e[0])||void 0===t?void 0:t.nonce)&&void 0!==n?n:null===(s=null===(r=null==this?void 0:this.rootElems)||void 0===r?void 0:r[0])||void 0===s?void 0:s.getAttribute("nonce")}set value(e){var t;(null===(t=null==this?void 0:this.rootElems)||void 0===t?void 0:t.length)&&this.rootElems.forEach((t=>{void 0!==(null==t?void 0:t.nonce)?t.nonce=e:t.setAttribute("nonce",e)}))}}var H;!function(e){e.SELECT="select",e.BUTTON="button",e.SUBMIT="submit",e.RESET="reset",e.IMAGE="image",e.RADIO="radio",e.CHECKBOX="checkbox"}(H||(H={}));class V extends d{constructor(e,t,n=null){super(e,t),this.element=e,this.name=t,this.defaultVal=n}get value(){let e=this.element.get(0).orElse().values;return e.length?e[0].getAttribute(this.name):this.defaultVal}set value(e){let t=this.element.get(0).orElse().values;for(let n=0;n<t.length;n++)t[n].setAttribute(this.name,e)}getClass(){return V}static fromNullable(e,t="value"){return new V(e,t)}}class $ extends d{constructor(e,t,n=null){super(e,t),this.element=e,this.name=t,this.defaultVal=n}get value(){let e=this.element.values;return e.length?e[0].style[this.name]:this.defaultVal}set value(e){let t=this.element.values;for(let n=0;n<t.length;n++)t[n].style[this.name]=e}getClass(){return $}static fromNullable(e,t="value"){return new $(e,t)}}const B=()=>!0;class U{constructor(...e){if(this.rootNode=[],this.pos=-1,this._limits=-1,!h.fromNullable(e).isAbsent()&&e.length)for(let t=0;t<e.length;t++)if(e[t])if(j(e[t])){let n=U.querySelectorAll(e[t]);n.isAbsent()||s(e,n.values)}else e[t]instanceof U?s(this.rootNode,e[t].values):Array.isArray(e[t])?s(e,e[t]):this.rootNode.push(e[t])}get value(){return this.getAsElem(0)}get values(){return this.allElems()}get global(){return k}get stream(){throw Error("Not implemented, include Stream.ts for this to work")}get lazyStream(){throw Error("Not implemented, include Stream.ts for this to work")}get id(){return new V(this.get(0),"id")}get length(){return this.rootNode.length}get tagName(){return this.getAsElem(0).getIf("tagName")}get nodeName(){return this.getAsElem(0).getIf("nodeName")}isTag(e){return!this.isAbsent()&&(this.nodeName.orElse("__none___").value.toLowerCase()==e.toLowerCase()||this.tagName.orElse("__none___").value.toLowerCase()==e.toLowerCase())}get type(){return this.getAsElem(0).getIf("type")}get name(){return new d(this.getAsElem(0).value,"name")}get inputValue(){return this.getAsElem(0).getIf("value").isPresent()?new d(this.getAsElem(0).value):d.absent}get val(){return this.inputValue.value}set val(e){this.inputValue.value=e}get nodeId(){return this.id.value}set nodeId(e){this.id.value=e}get checked(){return u(this.values).every((e=>!!e.checked))}set checked(e){this.eachElem((t=>t.checked=e))}get elements(){return this.querySelectorAll("input, select, textarea, fieldset")}get deepElements(){return this.querySelectorAllDeep("input, select, textarea, fieldset")}querySelectorAllDeep(e){let t=[],n=this.querySelectorAll(e);n.length&&t.push(n);let r=this._collectShadowRoots();if(r.length){let n=new U(r).querySelectorAllDeep(e);n.length&&t.push(n)}return new U(t)}_collectShadowRoots(){var e,t;let n=[];for(let r=0;r<(null!==(t=null===(e=null==this?void 0:this.rootNode)||void 0===e?void 0:e.length)&&void 0!==t?t:0);r++){let e=this.rootNode[r];if(!(null==e?void 0:e.querySelectorAll))continue;let t=e.querySelectorAll("*");for(let e=0,r=t.length;e<r;e++){let r=t[e].shadowRoot;r&&n.push(r)}}return n}get disabled(){return this.attr("disabled").isPresent()}set disabled(e){e?this.attr("disabled").value="disabled":this.removeAttribute("disabled")}removeAttribute(e){this.eachElem((t=>t.removeAttribute(e)))}get childNodes(){let e=[];return this.eachElem((t=>{s(e,t.childNodes)})),new U(e)}get asArray(){return u(this.rootNode).filter((e=>null!=e)).map((e=>U.byId(e)))}get offsetWidth(){return u(this.rootNode).filter((e=>null!=e)).map((e=>e.offsetWidth)).reduce(((e,t)=>e+t),0)}get offsetHeight(){return u(this.rootNode).filter((e=>null!=e)).map((e=>e.offsetHeight)).reduce(((e,t)=>e+t),0)}get offsetLeft(){return u(this.rootNode).filter((e=>null!=e)).map((e=>e.offsetLeft)).reduce(((e,t)=>e+t),0)}get offsetTop(){return u(this.rootNode).filter((e=>null!=e)).map((e=>e.offsetTop)).reduce(((e,t)=>e+t),0)}get asNodeArray(){return u(this.rootNode.filter((e=>null!=e)))}get nonce(){return new F(this.rootNode)}static querySelectorAllDeep(e){return new U(document).querySelectorAllDeep(e)}static querySelectorAll(e){return-1!=e.indexOf("/shadow/")?new U(document)._querySelectorAllDeep(e):new U(document)._querySelectorAll(e)}static byId(e,t=!1){return j(e)?t?new U(document).byIdDeep(e):new U(document).byId(e):new U(e)}static byTagName(e){return j(e)?new U(document).byTagName(e):new U(e)}static globalEval(e,t){return new U(document).globalEval(e,t)}static globalEvalSticky(e,t){return new U(document).globalEvalSticky(e,t)}static fromMarkup(e){const t=document.implementation.createHTMLDocument("");let n=(e=P(e)).toLowerCase();if(-1!=n.search(/<!doctype[^\w\-]+/gi)||-1!=n.search(/<html[^\w\-]+/gi)||-1!=n.search(/<head[^\w\-]+/gi)||-1!=n.search(/<body[^\w\-]+/gi))return t.documentElement.innerHTML=e,new U(t.documentElement);{let t=function(e,t){let n=["<",t,">"].join(""),r=["<",t," "].join("");return 0==e.indexOf(n)||0==e.indexOf(r)},r=new U(document.createElement("div"));return t(n,"thead")||t(n,"tbody")||t(n,"tfoot")?(r.html(`<table>${e}</table>`),r.querySelectorAll("table").get(0).childNodes.detach()):t(n,"tr")?(r.html(`<table><tbody>${e}</tbody></table>`),r.querySelectorAll("tbody").get(0).childNodes.detach()):t(n,"td")||t(n,"th")?(r.html(`<table><tbody><tr>${e}</tr></tbody></table>`),r.querySelectorAll("tr").get(0).childNodes.detach()):(r.html(e),r.childNodes.detach())}}get(e){return e<this.rootNode.length?new U(this.rootNode[e]):U.absent}getAsElem(e,t=h.absent){return e<this.rootNode.length?h.fromNullable(this.rootNode[e]):t}filesFromElem(e){var t;return e<this.rootNode.length&&(null===(t=this.rootNode[e])||void 0===t?void 0:t.files)?this.rootNode[e].files:[]}allElems(){return this.rootNode}isAbsent(){return 0==this.length}isPresent(e){let t=this.isAbsent();return!t&&e&&e.call(this,this),!t}ifPresentLazy(e=function(){}){return this.isPresent.call(this,e),this}delete(){this.eachElem((e=>{e.parentNode&&e.parentNode.removeChild(e)}))}querySelectorAll(e){return-1!=e.indexOf("/shadow/")?this._querySelectorAllDeep(e):this._querySelectorAll(e)}closest(e){return-1!=e.indexOf("/shadow/")?this._closestDeep(e):this._closest(e)}byId(e,t){let n=[];return t&&(n=n.concat(u((null==this?void 0:this.rootNode)||[]).filter((t=>e==t.id)).map((e=>new U(e))))),n=n.concat(this.querySelectorAll(`[id="${e}"]`)),new U(n)}byIdDeep(e,t){let n=[];t&&(n=n.concat(u((null==this?void 0:this.rootNode)||[]).filter((t=>e==t.id)).map((e=>new U(e)))));let r=this.querySelectorAllDeep(`[id="${e}"]`);return r.length&&n.push(r),new U(n)}byTagName(e,t,n){var r;let i=[];return t&&s(i,u(null!==(r=null==this?void 0:this.rootNode)&&void 0!==r?r:[]).filter((t=>(null==t?void 0:t.tagName)==e))),n?i.push(this.querySelectorAllDeep(e)):i.push(this.querySelectorAll(e)),new U(i)}attr(e,t=null){return new V(this,e,t)}style(e,t=null){return new $(this,e,t)}hasClass(e){let t=!1;return this.eachElem((n=>{if(t=n.classList.contains(e),t)return!1})),t}addClass(e){return this.eachElem((t=>t.classList.add(e))),this}removeClass(e){return this.eachElem((t=>t.classList.remove(e))),this}isMultipartCandidate(e=!1){const t="input[type='file']";return this.matchesSelector(t)||(e?this.querySelectorAllDeep(t):this.querySelectorAll(t)).first().isPresent()}html(e){return h.fromNullable(e).isAbsent()?this.isPresent()?h.fromNullable(this.innerHTML):h.absent:(this.innerHTML=e,this)}dispatchEvent(e){return this.eachElem((t=>t.dispatchEvent(e))),this}set innerHTML(e){this.eachElem((t=>t.innerHTML=e))}get innerHTML(){let e=[];return this.eachElem((t=>e.push(t.innerHTML))),e.join("")}set innerHtml(e){this.innerHTML=e}get innerHtml(){return this.innerHTML}filterSelector(e){let t=[];return this.eachElem((n=>{this._matchesSelector(n,e)&&t.push(n)})),new U(t)}matchesSelector(e){return this.asArray.some((t=>this._matchesSelector(t.getAsElem(0).value,e)))}getIf(...e){let t=this.childNodes;for(let n=0;n<e.length;n++)if(t=t.filterSelector(e[n]),t.isAbsent())return t;return t}eachElem(e){for(let t=0,n=this.rootNode.length;t<n&&!1!==e(this.rootNode[t],t);t++);return this}firstElem(e=e=>e){return this.rootNode.length>0&&e(this.rootNode[0],0),this}lastElem(e=e=>e){return this.rootNode.length>0&&e(this.rootNode[this.rootNode.length-1],this.rootNode.length-1),this}each(e){return u(this.rootNode).forEach(((t,n)=>{if(null!=t)return e(U.byId(t),n)})),this}replace(e){return this.each((t=>{let n=t.getAsElem(0).value,r=n.parentElement,s=n.nextElementSibling,i=n.previousElementSibling;null!=s?new U(s).insertBefore(e):i?new U(i).insertAfter(e):new U(r).append(e),t.delete()})),e}first(e=e=>e){return this.rootNode.length>=1?(e(this.get(0),0),this.get(0)):this}last(e=e=>e){if(this.rootNode.length>=1){let t=this.get(this.rootNode.length-1);return e(t,0),t}return this}filter(e){let t=[];return this.each((n=>{e(n)&&t.push(n)})),new U(t)}globalEval(e,t){var n,r,s;const i=null!==(r=null===(n=document.getElementsByTagName("head"))||void 0===n?void 0:n[0])&&void 0!==r?r:null===(s=document.documentElement.getElementsByTagName("head"))||void 0===s?void 0:s[0],l=document.createElement("script");t&&(void 0!==(null==l?void 0:l.nonce)?l.nonce=t:l.setAttribute("nonce",t)),l.type="text/javascript",l.innerHTML=e;let o=i.appendChild(l);return i.removeChild(o),this}globalEvalSticky(e,t){let n=document.getElementsByTagName("head")[0]||document.documentElement,r=document.createElement("script");return this.applyNonce(t,r),r.type="text/javascript",r.innerHTML=e,n.appendChild(r),this}detach(){return this.eachElem((e=>{e.parentNode.removeChild(e)})),this}appendTo(e){return o.isString(e)?(this.appendTo(U.querySelectorAll(e)),this):(this.eachElem((t=>{e.getAsElem(0).orElseLazy((()=>({appendChild:()=>{}}))).value.appendChild(t)})),this)}loadScriptEval(e,t=0,n){return this._loadScriptEval(!1,e,t,n),this}loadScriptEvalSticky(e,t=0,n){return this._loadScriptEval(!0,e,t,n),this}insertAfter(...e){this.each((t=>{let n=t.getAsElem(0).value,r=n.parentNode;for(let t=0;t<e.length;t++){let s=n.nextSibling;e[t].eachElem((e=>{s?(r.insertBefore(e,s),n=s):r.appendChild(e)}))}}));let t=[];return t.push(this),t=t.concat(e),new U(t)}insertBefore(...e){this.each((t=>{let n=t.getAsElem(0).value,r=n.parentNode;for(let t=0;t<e.length;t++)e[t].eachElem((e=>{r.insertBefore(e,n)}))}));let t=[];return t.push(this),t=t.concat(e),new U(t)}orElse(...e){return this.isPresent()?this:new U(...e)}orElseLazy(e){return this.isPresent()?this:new U(e())}allParents(e){let t=this.parent(),n=[];for(;t.isPresent();)t.matchesSelector(e)&&n.push(t),t=t.parent();return new U(n)}firstParent(e){let t=this.parent();for(;t.isPresent();){if(t.matchesSelector(e))return t;t=t.parent()}return U.absent}parentsWhileMatch(e){const t=[];let n=this.parent().filter((t=>t.matchesSelector(e)));for(;n.isPresent();)t.push(n),n=n.parent().filter((t=>t.matchesSelector(e)));return new U(t)}parent(){let e=[];return this.eachElem((t=>{let n=t.parentNode||t.host||t.shadowRoot;n&&-1==e.indexOf(n)&&e.push(n)})),new U(e)}copyAttrs(e){return e.eachElem((e=>{let t=L(e.attributes);for(let e of t){let t=e.value,n=e.name;switch(n){case"id":this.id.value=t;break;case"disabled":this.resolveAttributeHolder("disabled").disabled=t;break;case"checked":this.resolveAttributeHolder("checked").checked=t;break;case"nonce":break;default:this.attr(n).value=t}}})),e.nonce.isPresent((()=>{this.nonce.value=e.nonce.value})),this}outerHTML(e,t,n,r=!1){var s;if(this.isAbsent())return;let i=this.getAsElem(0).value,l=null===document||void 0===document?void 0:document.activeElement,o=null==l?void 0:l.id,a=!!o&&!!(null===(s=null==i?void 0:i.contains)||void 0===s?void 0:s.call(i,l)),u=a?U.getCaretPosition(l):null,c=U.fromMarkup(e),h=[],d=c.get(0),v=i.parentNode,f=d.getAsElem(0).value;if(v.replaceChild(f,i),h.push(new U(f)),this.isAbsent())return this;let p=[];if(c.length>1&&(p=p.concat(c.values.slice(1)),h.push(U.byId(f).insertAfter(new U(p)))),t&&this.runScripts(),n&&this.runCss(),a){let e=U.byId(o);e.isPresent()&&null!=u&&void 0!==u&&e.eachElem((e=>U.setCaretPosition(e,u)))}return c}runScripts(e=!1,t=B){const n=t=>{if(t.length){let n=[];u(t).forEach((t=>{t.nonce?(n.length&&(this.globalEval(n.join("\n")),n.length=0),e?this.globalEvalSticky(t.evalText,t.nonce):this.globalEval(t.evalText,t.nonce)):n.push(t.evalText)})),n.length&&(e?this.globalEvalSticky(n.join("\n")):this.globalEval(n.join("\n")),n.length=0),t=[]}return t};let r=[],s=["","script","text/javascript","text/ecmascript","ecmascript"],i=i=>{var l,o,a,u;let c=i.tagName,h=(null!==(l=null==i?void 0:i.type)&&void 0!==l?l:"").toLowerCase();if(c&&D(c,"script")&&-1!=s.indexOf(h)){let s=i.getAttribute("src");if(void 0!==s&&null!=s&&s.length>0){let l=null!==(o=null==i?void 0:i.nonce)&&void 0!==o?o:i.getAttribute("nonce").value;t(s)&&(r=n(r),e?l?this.loadScriptEvalSticky(s,0,l):this.loadScriptEvalSticky(s,0):l?this.loadScriptEval(s,0,l):this.loadScriptEval(s,0))}else{let e=P(i.text||i.innerText||i.innerHTML),t=!0;for(;t;)t=!1,"\x3c!--"==e.substring(0,4)&&(e=e.substring(4),t=!0),"//\x3c!--"==e.substring(0,4)&&(e=e.substring(6),t=!0),"//<![CDATA["==e.substring(0,11)&&(e=e.substring(11),t=!0);let n=null!==(u=null!==(a=null==i?void 0:i.nonce)&&void 0!==a?a:i.getAttribute("nonce").value)&&void 0!==u?u:"";r.push({nonce:n,evalText:e})}}};try{new U(this.filterSelector("script"),this.querySelectorAll("script")).asArray.flatMap((e=>[...e.values])).sort(((e,t)=>t.compareDocumentPosition(e)-3)).forEach((e=>i(e))),n(r)}catch(e){if(console&&console.error){const t=e;console.error(t.message||t.description)}}finally{i=null}return this}runCss(){return new U(this.filterSelector("link, style"),this.querySelectorAll("link, style")).asArray.flatMap((e=>[...e.values])).sort(((e,t)=>e.compareDocumentPosition(t)-3)).forEach((e=>(e=>{const t=U.byId(e),n=t.tagName.orElse("").value;let r=U.fromMarkup(`<${n.toLowerCase()} />`);r=r.copyAttrs(t),r.innerHTML=e.innerHTML,t.replace(r)})(e))),this}click(){return this.fireEvent("click"),this}addEventListener(e,t,n){return this.eachElem((r=>r.addEventListener(e,t,n))),this}removeEventListener(e,t,n){return this.eachElem((r=>r.removeEventListener(e,t,n))),this}fireEvent(e,t={}){let n={bubbles:!0,cancelable:!0};n=b(n,t),this.eachElem((t=>{let r;if(t.ownerDocument)r=t.ownerDocument;else{if(9!=t.nodeType)throw new Error("Invalid node passed to fireEvent: "+t.id);r=t}if(t.dispatchEvent){let r=Event;switch(e){case"click":case"mousedown":case"mouseup":case"mousemove":r=this.global().MouseEvent;break;case"keyup":case"keydown":case"keypress":r=this.global().KeyboardEvent;break;case"focus":case"change":case"blur":case"select":break;default:throw"fireEvent: Couldn't find an event class for event '"+e+"'."}let s=new r(e,n);s.synthetic=!0,t.dispatchEvent(s)}else if(t.fireEvent){let s=r.createEventObject();s.synthetic=!0,Object.keys(n).forEach((e=>s[e]=n[e])),t.fireEvent("on"+e,s)}}))}textContent(e=""){return this.asArray.map((e=>e.getAsElem(0).orElseLazy((()=>({textContent:""}))).value.textContent||"")).reduce(((t,n)=>[t,e,n].join("")),"")}innerText(e=""){return this.asArray.map((e=>e.getAsElem(0).orElseLazy((()=>({innerText:""}))).value.innerText||"")).reduce(((t,n)=>[t,n].join(e)),"")}encodeFormElement(e={}){if(this.name.isAbsent())return;let t=b(e);return this.each((e=>{var n,r;if(e.name.isAbsent())return;let s=e.name.value,i=e.tagName.orElse("__none__").value.toLowerCase(),l=e.type.orElse("__none__").value.toLowerCase();if(l=l.toLowerCase(),("input"==i||"textarea"==i||"select"==i)&&null!=s&&""!=s&&!e.disabled){if("select"==i){let n=e.getAsElem(0).value;if(n.selectedIndex>=0){let e=n.options.length;for(let r=0;r<e;r++)if(n.options[r].selected){let e=n.options[r];p(t,s).value=null!=e.getAttribute("value")?e.value:e.text}}}if(i!=H.SELECT&&l!=H.BUTTON&&l!=H.RESET&&l!=H.SUBMIT&&l!=H.IMAGE&&(l!=H.CHECKBOX&&l!=H.RADIO||e.checked)){let i=null===(r=null===(n=e.value)||void 0===n?void 0:n.value)||void 0===r?void 0:r.files,l=null!=i?i:[];if(null==l?void 0:l.length)f(t,s).value=Array.from(l);else{if(i)return;p(t,s).value=e.inputValue.value}}}})),t}get cDATAAsString(){let e=this.asArray.flatMap((e=>e.childNodes.asArray)).filter((e=>{var t,n;return 4==(null===(n=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.value)||void 0===n?void 0:n.nodeType)})).reduce(((e,t)=>{var n,r,s;return e.push(null!==(s=null===(r=null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.value)||void 0===r?void 0:r.data)&&void 0!==s?s:""),e}),[]);return e.join("")}subNodes(e,t){return h.fromNullable(t).isAbsent()&&(t=this.length),new U(this.rootNode.slice(e,Math.min(t,this.length)))}limits(e){return this._limits=e,this}hasNext(){let e=-1!=this._limits&&this.pos>=this._limits-1,t=this.pos>=this.values.length-1;return!(e||t)}next(){return this.hasNext()?(this.pos++,new U(this.values[this.pos])):null}lookAhead(e=1){return this.values.length-1<this.pos+e?R.EO_STRM:new U(this.values[this.pos+e])}current(){return-1==this.pos?R.BEF_STRM:new U(this.values[this.pos])}reset(){this.pos=-1}attachShadow(e={mode:"open"}){let t=[];return this.eachElem((n=>{var r;let s;if(!(null===(r=n)||void 0===r?void 0:r.attachShadow))throw new Error("Shadow dom creation not supported by the browser, please use a shim, to gain this functionality");s=U.byId(n.attachShadow(e)),t.push(s)})),new U(t)}waitUntilDom(e){return t=this,n=arguments,s=function*(e,t={attributes:!0,childList:!0,subtree:!0,timeout:500,interval:100}){return function(e,t,n={attributes:!0,childList:!0,subtree:!0,timeout:500,interval:100}){return new Promise(((r,s)=>{let i=null;const l=new Error("Mutation observer timeout");function o(e,t){let r=null;return t(e)?e:(r=n.childList?t(e)?e:e.childNodes.filter((e=>t(e))).first().value.value:n.subtree?t(e)?e:e.querySelectorAll(" * ").filter((e=>t(e))).first().value.value:t(e)?e:null,r)}let a=e;if(a=o(a,t))r(new U(a));else if("undefined"!=typeof MutationObserver){const o=setTimeout((()=>(i.disconnect(),s(l))),n.timeout),a=n=>{const s=new U(n.map((e=>e.target))).filter((e=>t(e))).first();s.isPresent()&&(clearTimeout(o),i.disconnect(),r(new U(s||e)))};i=new MutationObserver(a);let u=Object.assign({},n);delete u.timeout,e.eachElem((e=>{i.observe(e,u)}))}else{let i,a;i=setInterval((()=>{let n=o(e,t);n&&(a&&(clearTimeout(a),clearInterval(i),i=null),r(new U(n||e)))}),n.interval),a=setTimeout((()=>{i&&(clearInterval(i),s(l))}),n.timeout)}}))}(this,e,t)},new((r=void 0)||(r=Promise))((function(e,i){function l(e){try{a(s.next(e))}catch(e){i(e)}}function o(e){try{a(s.throw(e))}catch(e){i(e)}}function a(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(l,o)}a((s=s.apply(t,n||[])).next())}));var t,n,r,s}get shadowElements(){let e=(this.querySelectorAll("*").filter((e=>e.hasShadow)).allElems()||[]).map((e=>e.shadowRoot)).filter((e=>!!e));return new U(e)}get shadowRoot(){let e=[];for(let t=0;t<this.rootNode.length;t++)this.rootNode[t].shadowRoot&&e.push(this.rootNode[t].shadowRoot);return new U(e)}get hasShadow(){for(let e=0;e<this.rootNode.length;e++)if(this.rootNode[e].shadowRoot)return!0;return!1}static getCaretPosition(e){try{if("number"==typeof(null==e?void 0:e.selectionStart))return e.selectionStart}catch(e){}return 0}static setCaretPosition(e,t){(null==e?void 0:e.focus)&&(null==e||e.focus());try{(null==e?void 0:e.setSelectionRange)&&(null==e||e.setSelectionRange(t,t))}catch(e){}}[Symbol.iterator](){return{next:()=>({done:!this.hasNext(),value:this.next()})}}concat(e,t=!0){let n=this.asArray;const r=new U(n.concat(e.asArray));if(!t)return r;let s={};return new U(r.asArray.filter((e=>{const t=!(null==s?void 0:s[e.value.value.outerHTML]);return s[e.value.value.outerHTML]=!0,t})))}append(e){return this.each((t=>e.appendTo(t))),this}prependTo(e){return e.eachElem((e=>{q(e,this.allElems())})),this}prepend(e){return this.eachElem((t=>{q(t,e.allElems())})),this}_querySelectorAll(e){var t,n;if(!(null===(t=null==this?void 0:this.rootNode)||void 0===t?void 0:t.length))return this;let r=[];for(let t=0;t<this.rootNode.length;t++)(null===(n=this.rootNode[t])||void 0===n?void 0:n.querySelectorAll)&&s(r,this.rootNode[t].querySelectorAll(e));return new U(r)}_querySelectorAllDeep(e){var t;if(!(null===(t=null==this?void 0:this.rootNode)||void 0===t?void 0:t.length))return this;let n=new U(this.rootNode),r=e.split(/\/shadow\//);for(let e=0;e<r.length;e++){if(""==r[e])continue;let t=r[e];n=n.querySelectorAll(t),e<r.length-1&&(n=n.shadowRoot)}return n}_closest(e){var t,n;if(!(null===(t=null==this?void 0:this.rootNode)||void 0===t?void 0:t.length))return this;let r=[];for(let t=0;t<this.rootNode.length;t++){if(!(null===(n=this.rootNode[t])||void 0===n?void 0:n.closest))continue;let s=[this.rootNode[t].closest(e)];r=r.concat(s)}return new U(r)}_closestDeep(e){var t;if(!(null===(t=null==this?void 0:this.rootNode)||void 0===t?void 0:t.length))return this;let n=new U(this.rootNode),r=e.split(/\/shadow\//);for(let e=0;e<r.length;e++){if(""==r[e])continue;let t=r[e];n=n.closest(t),e<r.length-1&&(n=n.shadowRoot)}return n}_matchesSelector(e,t){if(e.matches)return e.matches(t);var n=(document||ownerDocument).querySelectorAll(t);return-1!==Array.prototype.indexOf.call(n,e)}_loadScriptEval(e,t,n=0,r){let s=this.createSourceNode(t,r),i=this.createSourceNode(null,r),l=`nonce_${Date.now()}_${Math.random()}`;i.innerHTML=`document.head["${l}"] = true`;let o=document.head;if(o.appendChild(i),o.removeChild(i),o[l]){try{n?setTimeout((()=>{o.appendChild(s),e||o.removeChild(s)}),n):(o.appendChild(s),e||o.removeChild(s))}finally{delete o[l]}return this}}resolveAttributeHolder(e="value"){let t=[];return t[e]=null,e in this.getAsElem(0).value?this.getAsElem(0).value:t}createSourceNode(e,t){let n=document.createElement("script");return n.type="text/javascript",t&&(void 0!==(null==n?void 0:n.nonce)?n.nonce=t:n.setAttribute("nonce",t)),e&&(n.src=e),n}applyNonce(e,t){e&&(void 0!==(null==t?void 0:t.nonce)?t.nonce=e:t.setAttribute("nonce",e))}}U.absent=new U,U.global=k;const z=U,W=U.querySelectorAll;var X;!function(e){e[e.PENDING=0]="PENDING",e[e.FULFILLED=1]="FULFILLED",e[e.REJECTED=2]="REJECTED"}(X||(X={}));const G=o.isString;class Q extends U{constructor(e,t="text/xml"){var n;G(e)?super(null==(n=e)?null:o.saveResolveLazy((()=>new(k().DOMParser)),(()=>(()=>{let e=new ActiveXObject("Microsoft.XMLDOM");return e.async=!1,{parseFromString:(t,n)=>e.loadXML(t)}})())).value.parseFromString(n,t)):super(e)}isXMLParserError(){return this.querySelectorAll("parsererror").isPresent()}toString(){let e=[];return this.eachElem((t=>{var n,r,s,i;let l=null!==(i=null===(s=null===(r=null===(n=k())||void 0===n?void 0:n.XMLSerializer)||void 0===r?void 0:r.constructor())||void 0===s?void 0:s.serializeToString(t))&&void 0!==i?i:null==t?void 0:t.xml;l&&e.push(l)})),e.join("")}parserErrorText(e){return this.querySelectorAll("parsererror").textContent(e)}static parseXML(e){return new Q(e)}static parseHTML(e){return new Q(e,"text/html")}static fromString(e,t="text/xml"){return new Q(e,t)}}class J{constructor(e,t){this.activeDataSource=null,this.walkedDataSources=[],this._currPos=0,this.mapFunc=e,this.inputDataSource=t}hasNext(){return this.resolveActiveHasNext()||this.resolveNextHasNext()}resolveActiveHasNext(){let e=!1;return this.activeDataSource&&(e=this.activeDataSource.hasNext()),e}lookAhead(e=1){var t;let n=null===(t=null==this?void 0:this.activeDataSource)||void 0===t?void 0:t.lookAhead(e);if((null==this?void 0:this.activeDataSource)&&n!=R.EO_STRM)return n;this.activeDataSource&&(e-=N(this.activeDataSource));for(let t=1;;t++){let n=this.inputDataSource.lookAhead(t);if(n===R.EO_STRM)return R.EO_STRM;let r=this.mapFunc(n),s=this.toDatasource(r),i=s.lookAhead(e);if(i!=R.EO_STRM)return i;e-=N(s)}}toDatasource(e){let t=Array.isArray(e)?C.ofArray(e):e;return this.walkedDataSources.push(t),t}resolveNextHasNext(){let e=!1;for(;!e&&this.inputDataSource.hasNext();){let t=this.mapFunc(this.inputDataSource.next());this.activeDataSource=this.toDatasource(t),e=this.activeDataSource.hasNext()}return e}next(){if(this.hasNext())return this._currPos++,this.activeDataSource.next()}reset(){this.inputDataSource.reset(),this.walkedDataSources.forEach((e=>e.reset())),this.walkedDataSources=[],this._currPos=0,this.activeDataSource=null}current(){return this.activeDataSource||this.hasNext(),this.activeDataSource.current()}}class K{constructor(...e){this._limits=-1,this.pos=-1,this.value=e}static of(...e){return K.ofArr(e)}static ofArr(e){const t=new K;return t.value=null!=e?e:[],t}static ofAssoc(e){return this.ofArr(Object.keys(e)).map((t=>[t,e[t]]))}static ofDataSource(e){let t=[];for(;e.hasNext();)t.push(e.next());return K.ofArr(t)}static ofDomQuery(e){return K.ofArr(e.asArray)}static ofConfig(e){return K.ofArr(Object.keys(e.value)).map((t=>[t,e.value[t]]))}current(){return-1==this.pos?R.BEF_STRM:this.pos>=this.value.length?R.EO_STRM:this.value[this.pos]}limits(e){return this._limits=e,this}concat(...e){let t=[this].concat(e);return K.ofArr(t).flatMap((e=>e))}onElem(e){for(let t=0;t<this.value.length&&(-1==this._limits||t<this._limits)&&!1!==e(this.value[t],t);t++);return this}each(e){this.onElem(e),this.reset()}map(e){e||(e=e=>e);let t=[];return this.each((n=>{t.push(e(n))})),K.ofArr(t)}flatMap(e){let t=[];return this.each((n=>{let r=e(n);t=Array.isArray(r)?t.concat(r):t.concat(r.value)})),K.ofArr(t)}filter(e){let t=[];return this.each((n=>{e(n)&&t.push(n)})),K.ofArr(t)}reduce(e,t=null){let n=null!=t?0:1,r=null!=t?t:this.value.length?this.value[0]:null;for(let t=n;t<this.value.length&&(-1==this._limits||t<this._limits);t++)r=e(r,this.value[t]);return this.reset(),h.fromNullable(r)}first(){return this.reset(),this.value&&this.value.length?h.fromNullable(this.value[0]):h.absent}last(){let e=this._limits>0?Math.min(this._limits,this.value.length):this.value.length;return this.reset(),h.fromNullable(e?this.value[e-1]:null)}anyMatch(e){for(let t=0;t<this.value.length&&(-1==this._limits||t<this._limits);t++)if(e(this.value[t]))return!0;return this.reset(),!1}allMatch(e){if(!this.value.length)return!1;let t=0;for(let n=0;n<this.value.length;n++)e(this.value[n])&&t++;return this.reset(),t==this.value.length}noneMatch(e){let t=0;for(let n=0;n<this.value.length;n++)e(this.value[n])||t++;return this.reset(),t==this.value.length}sort(e){let t=this.value.slice().sort(e);return K.ofArr(t)}collect(e){return this.each((t=>e.collect(t))),this.reset(),e.finalValue}hasNext(){let e=-1!=this._limits&&this.pos>=this._limits-1,t=this.pos>=this.value.length-1;return!(e||t)}next(){return this.hasNext()?(this.pos++,this.value[this.pos]):null}lookAhead(e=1){return this.pos+e>=this.value.length?R.EO_STRM:this.value[this.pos+e]}[Symbol.iterator](){return{next:()=>({done:!this.hasNext(),value:this.next()})}}reset(){this.pos=-1}}class Y{static of(...e){return Y.ofArr(e)}static ofArr(e){return new Y(C.ofArray(e))}static ofAssoc(e){return this.ofArr(Object.keys(e)).map((t=>[t,e[t]]))}static ofStreamDataSource(e){return new Y(e)}static ofDomQuery(e){return Y.ofArr(e.asArray)}static ofConfig(e){return Y.ofArr(Object.keys(e.value)).map((t=>[t,e.value[t]]))}constructor(e){this._limits=-1,this.pos=-1,this.dataSource=e}hasNext(){return!this.isOverLimits()&&this.dataSource.hasNext()}next(){let e=this.dataSource.next();return this.pos++,e}lookAhead(e=1){return this.dataSource.lookAhead(e)}current(){return this.dataSource.current()}reset(){this.dataSource.reset(),this.pos=-1,this._limits=-1}concat(...e){return Y.ofStreamDataSource(new I(this,e))}nextFilter(e){if(this.hasNext()){let t=this.next();return e(t)?t:this.nextFilter(e)}return null}limits(e){return this._limits=e,this}collect(e){for(;this.hasNext();){let t=this.next();e.collect(t)}return this.reset(),e.finalValue}onElem(e){return new Y(new O((t=>(!1===e(t,this.pos)&&this.stop(),t)),this))}filter(e){return new Y(new T(e,this))}map(e){return new Y(new O(e,this))}flatMap(e){return new Y(new J(e,this))}each(e){for(;this.hasNext();)!1===e(this.next())&&this.stop();this.reset()}reduce(e,t=null){if(!this.hasNext())return h.absent;let n,r=R.EO_STRM;if(null!=t)n=t,r=this.next();else{if(n=this.next(),!this.hasNext())return h.fromNullable(n);r=this.next()}for(n=e(n,r);this.hasNext();)r=this.next(),n=e(n,r);return this.reset(),h.fromNullable(n)}last(){return this.hasNext()?this.reduce(((e,t)=>t)):h.absent}first(){return this.reset(),this.hasNext()?h.fromNullable(this.next()):h.absent}anyMatch(e){for(;this.hasNext();)if(e(this.next()))return!0;return!1}allMatch(e){for(;this.hasNext();)if(!e(this.next()))return!1;return!0}noneMatch(e){for(;this.hasNext();)if(e(this.next()))return!1;return!0}sort(e){let t=this.collect(new M);return t=t.sort(e),Y.ofArr(t)}get value(){return this.collect(new M)}[Symbol.iterator](){return{next:()=>({done:!this.hasNext(),value:this.next()})}}stop(){this.pos=this._limits+1e9,this._limits=0}isOverLimits(){return-1!=this._limits&&this.pos>=this._limits-1}}Object.defineProperty(U.prototype,"stream",{get:function(){return K.ofDomQuery(this)}}),Object.defineProperty(U.prototype,"lazyStream",{get:function(){return Y.ofDomQuery(this)}}),void 0!==k&&function(){if(void 0===k().Reflect||void 0===k().customElements||k().customElements.polyfillWrapFlushCallback)return;const e=HTMLElement;k().HTMLElement={HTMLElement:function(){return Reflect.construct(e,[],this.constructor)}}.HTMLElement,HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}();const Z="namedViewRoot",ee="jakarta.faces.source",te="myfaces.NamingContainerId",ne="myfaces.viewId",re="jakarta.faces.ViewState",se="jakarta.faces.ClientWindow",ie=Object.freeze((()=>{})),le="",oe=(Object.freeze({}),["<input type='hidden'","name='",re,"' value='' />"].join(le)),ae=["<input type='hidden'","' name='",se,"' value='' />"].join(le),ue="@all",ce="@none",he="@this",de="jakarta.faces.partial.execute",ve="jakarta.faces.partial.render",fe="_myfaces.rendeOverride",pe="jakarta.faces.windowId",me="jakarta.faces.behavior.event",ge="render",ye="onerror",Ee="onevent",we="begin",be="source",Ae="error-name",Se="error-message",xe="responseXML",_e="httpError",Re="emptyResponse",Ne="malformedXML",Ie="params",Ce="timeout",Te="execute",Oe="myfaces.internal",Me="myfaces.source.formId",ke="myfaces.upload.progress",Pe="myfaces.upload.preinit",je="myfaces.upload.loadstart",De="myfaces.upload.loadend",Le="myfaces.upload.load",qe="myfaces.upload.error",Fe="myfaces.upload.abort",He="myfaces.upload.timeout",Ve="myfaces.source.controlId",$e="myfaces.request.passThrough",Be="myfaces.request.pps",Ue="jakarta.faces.encodedURL",ze="POST",We="HEAD",Xe="FORM",Ge="BODY",Qe="[name='"+re+"']",Je="[name='"+se+"']",Ke="processResponse",Ye="partial-response",Ze="changes",et="update",tt="delete",nt="insert",rt="eval",st="error",it="attributes",lt="extension",ot="redirect",at="before",ut="after",ct="myfaces.updateForms",ht="myfaces.updateElems",dt="myfaces.headElems",vt="myfaces",ft="myfaces.appliedViewState",pt="myfaces.appliedClientWindow";function mt(){var e;return null!==(e=null===window||void 0===window?void 0:window.faces)&&void 0!==e?e:null===window||void 0===window?void 0:window.jsf}function gt(e){return e&&(null==e?void 0:e.replace)?(null===window||void 0===window?void 0:window.faces)?e.replace(/javax\.faces/gi,"jakarta.faces"):e.replace(/jakarta\.faces/gi,"javax.faces"):e}class yt{constructor(){this.MSG_TEST="Testmessage",this.MSG_DEV_MODE="Note, this message is only sent, because project stage is development and no other error listeners are registered.",this.MSG_AFFECTED_CLASS="Affected Class=",this.MSG_AFFECTED_METHOD="Affected Method=",this.MSG_ERROR_NAME="Error Name=",this.MSG_ERROR_MESSAGE="Error Message=",this.MSG_SERVER_ERROR_NAME="Server Error Name=",this.MSG_ERROR_DESC="Error Description=",this.MSG_ERROR_NO="Error Number=",this.MSG_ERROR_LINENO="Error Line Number=",this.ERR_FORM="Sourceform could not be determined, either because element is not attached to a form or we have multiple forms with named elements of the same identifier or name, stopping the ajax processing",this.ERR_VIEWSTATE="faces.viewState= param value not of type form!",this.ERR_TRANSPORT="Transport type {0} does not exist",this.ERR_EVT_PASS="an event must be passed down (either an event object null or undefined) ",this.ERR_CONSTRUCT="Parts of the response couldn't be retrieved when constructing the event data= {0} ",this.ERR_MALFORMEDXML="The server response could not be parsed, the server has returned with a response which is not xml !",this.ERR_SOURCE_FUNC="source cannot be a function (probably source and event were not defined or set to null",this.ERR_EV_OR_UNKNOWN="An event object or unknown must be passed as second parameter",this.ERR_SOURCE_NOSTR="source cannot be a string",this.ERR_SOURCE_DEF_NULL="source must be defined or null",this.ERR_MUST_STRING="{0}: {1} namespace must be of type String",this.ERR_REF_OR_ID="{0}: {1} a reference node or identifier must be provided",this.ERR_PARAM_GENERIC="{0}: parameter {1} must be of type {2}",this.ERR_PARAM_STR="{0}: {1} param must be of type string",this.ERR_PARAM_STR_RE="{0}: {1} param must be of type string or a regular expression",this.ERR_PARAM_MIXMAPS="{0}: both a source as well as a destination map must be provided",this.ERR_MUST_BE_PROVIDED="{0}: an {1} and a {2} must be provided",this.ERR_MUST_BE_PROVIDED1="{0}: {1} must be set",this.ERR_REPLACE_EL="replaceElements called while evalNodes is not an array",this.ERR_EMPTY_RESPONSE="{0}: The response cannot be null or empty!",this.ERR_ITEM_ID_NOTFOUND="{0}: item with identifier {1} could not be found",this.ERR_PPR_IDREQ="{0}: Error in PPR Insert, id must be present",this.ERR_PPR_INSERTBEFID="{0}: Error in PPR Insert, before id or after id must be present",this.ERR_PPR_INSERTBEFID_1="{0}: Error in PPR Insert, before node of id {1} does not exist in document",this.ERR_PPR_INSERTBEFID_2="{0}: Error in PPR Insert, after node of id {1} does not exist in document",this.ERR_PPR_DELID="{0}: Error in delete, id not in xml markup",this.ERR_PPR_UNKNOWNCID="{0}: Unknown Html-Component-ID= {1}",this.ERR_NO_VIEWROOTATTR="{0}: Changing of ViewRoot attributes is not supported",this.ERR_NO_HEADATTR="{0}: Changing of Head attributes is not supported",this.ERR_RED_URL="{0}: Redirect without url",this.ERR_REQ_FAILED_UNKNOWN="Request failed with unknown status",this.ERR_REQU_FAILED="Request failed with status {0} and reason {1}",this.UNKNOWN="UNKNOWN"}}const Et=e=>!(!e||-1==e.search(/\/jakarta\.faces\.resource.*\/faces\.js.*/)&&-1==(null==e?void 0:e.search(/\/faces-development\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces-uncompressed\.js.*/))&&-1==(null==e?void 0:e.search(/\/faces[^.]*\.js.*ln=jakarta.faces.*/gi))&&-1==(null==e?void 0:e.search(/\/javax\.faces\.resource.*\/jsf\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf-development\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf-uncompressed\.js.*/))&&-1==(null==e?void 0:e.search(/\/jsf[^.]*\.js.*ln=javax.faces.*/gi))),wt="src";function bt(e){return null!=e&&e.length>1}class At extends z{static get windowId(){return new At(document.body).windowId}static get nonce(){return new At(document.body).nonce}get windowId(){const e=function(){let e=window.location.href,t=new RegExp("[\\?&]windowId=([^&#\\;]*)").exec(e);return null!=t?t[1]:null};if(this.value.isPresent()){let t=this.querySelectorAll("form input[name='"+pe+"']");if(t.length>1)throw Error("Multiple different windowIds found in document");return h.fromNullable(t.isPresent()?t.getAsElem(0).value.value:e())}return h.fromNullable(e())}get nonce(){var e;let t=new St(window.myfaces).getIf("config","cspMeta","nonce");if(t.value)return d.fromNullable(t);let n=new z(document.currentScript).nonce;if(n.isPresent())return d.fromNullable(n);let r=h.fromNullable(null===(e=z.querySelectorAll("script[src], link[src]").asArray.filter((e=>e.nonce.isPresent()&&null!=e.attr(wt).value)).filter((e=>{var t;return Et(null!==(t=e.attr(wt).value)&&void 0!==t?t:void 0)})))||void 0===e?void 0:e[0]);return(null==r?void 0:r.value)?new U(r.value).nonce:d.absent}static searchJsfJsFor(e){return new At(document).searchJsfJsFor(e)}searchJsfJsFor(e){var t;return h.fromNullable(null===(t=z.querySelectorAll("script[src], link[src]").asArray.filter((e=>{var t;return Et(null!==(t=e.attr(wt).value)&&void 0!==t?t:void 0)})).map((t=>{var n;return(null!==(n=t.attr(wt).value)&&void 0!==n?n:"").match(e)})).filter(bt).map((e=>decodeURIComponent(e[1]))))||void 0===t?void 0:t[0])}globalEvalSticky(e,t){return new At(super.globalEvalSticky(e,null!=t?t:this.nonce.value))}runScripts(e=!1,t){return super.runScripts(e,(e=>{var n,r;return(null===(n=null==t?void 0:t(e))||void 0===n||n)&&!Et(e)&&!(-1!=(r=e).search(/\/faces[^.]*\.js.*ln=myfaces.testscripts.*/gi)||-1!=r.search(/\/jsf[^.]*\.js.*ln=myfaces.testscripts.*/gi))}))}runHeadInserts(e=!0){let t=At.byId(document.head),n=[];this.filter((function(n){if(!e)return!0;const r=n.tagName.value;if(!r)return!0;let s=n.attr("href").orElseLazy((()=>n.attr("src").value)).orElseLazy((()=>n.attr("rel").value));return!s.isPresent()||!t.querySelectorAll(`${r}[href='${s.value}']`).length&&!t.querySelectorAll(`${r}[src='${s.value}']`).length&&!t.querySelectorAll(`${r}[rel='${s.value}']`).length})).each((e=>{"SCRIPT"!=e.tagName.value?(new At(...n).runScripts(!0),n=[],t.append(e)):n.push(e)})),new At(...n).runScripts(!0)}static byId(e,t=!1){var n,r,s;const i=U.byId(e,t);if("development"==mt().getProjectStage().toLowerCase()&&(null===window||void 0===window?void 0:window.console)&&i.isAbsent()&&e){let t=null!==(s=null!==(r=null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)&&void 0!==r?r:null==e?void 0:e.id)&&void 0!==s?s:e.toString();console.error("Element "+t+"not found")}return new At(i)}filter(e){return new At(super.filter(e))}}class St extends _{constructor(e){super(e),this.$nspEnabled=!0}assignIf(e,...t){const n=this.remap(t);return super.assignIf(e,...n)}assign(...e){const t=this.remap(e);return super.assign(...t)}append(...e){return super.append(...e)}appendIf(e,...t){const n=this.remap(t);return super.appendIf(e,...n)}getIf(...e){const t=this.remap(e);return super.getIf(...t)}get(e){return super.get(gt(e))}delete(e){return super.delete(gt(e))}static fromNullable(e){return new St(e)}getClass(){return St}shallowCopy$(){const e=super.shallowCopy$();return new St(e)}get deepCopy(){return new St(super.deepCopy$())}remap(e){return this.$nspEnabled?new a(...e).map((e=>gt(e))):e}}function xt(e,t,n){return(t=t||new _({})).getIf(n).orElseLazy((()=>e.getIf(n).value)).orElse(ie).value}function _t(e){if(!e.getIf(Z).isPresent())return(e,t)=>[e,t];const t=e.getIf(te).value+mt().separatorchar;return(e,n)=>0==e.indexOf(t)?[e,n]:[t+e,n]}function Rt(e){var t,n;return null!==(n=null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.windowId)&&void 0!==n?n:At.windowId.value}var Nt,It;!function(e){let t;function n(e,n,...r){var s,i;t=null!=t?t:new yt;let l=null!==(i=null!==(s=t[e])&&void 0!==s?s:n)&&void 0!==i?i:e;return r.forEach(((e,t)=>{l=l.replace(new RegExp(["\\{",t,"\\}"].join(le),"g"),e)})),l}function r(e,t,n,r,s,i){return new Error(i+(null!=r?r:"impl/util/Lang/")+s)}e.getLanguage=function(){var e,t,n;return(null!==(n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:null===navigator||void 0===navigator?void 0:navigator.language)&&void 0!==n?n:"en").split("-")[0]},e.failSaveResolve=function(e,t=null){return o.saveResolve(e,t)},e.failSaveExecute=function(e,t=null){o.saveResolve(e,t)},e.getMessage=n,e.keyValToStr=function(e,t,n="\n"){return[e,t].join(n)},e.makeException=r,e.getGlobalConfig=function(e,t){var n,r,s;return null!==(s=null===(r=null===(n=null===window||void 0===window?void 0:window.myfaces)||void 0===n?void 0:n.config)||void 0===r?void 0:r[e])&&void 0!==s?s:t},e.getForm=function(e,t){const s=new z(e),i=t?new z(function(e){var t,n;let r=e,s=null!==(n=null!==(t=null==r?void 0:r.srcElement)&&void 0!==t?t:null==r?void 0:r.target)&&void 0!==n?n:null==r?void 0:r.source;for(;s&&1!=s.nodeType;)s=s.parentNode;return s}(t)):U.absent;if(s.isTag(Xe))return s;if(s.attr(Xe).isPresent()){const e=s.attr(Xe).value,t=z.byId(e,!0);if(t.isPresent())return t}let l=s.firstParent(Xe).orElseLazy((()=>s.byTagName(Xe,!0))).orElseLazy((()=>i.firstParent(Xe))).orElseLazy((()=>i.byTagName(Xe))).first();return l=l.orElseLazy((()=>z.byTagName(Xe))),function(e){if(e.isAbsent()||e.length>1)throw r(new Error,0,0,"Impl","getForm",n("ERR_FORM"))}(l),l},e.getLocalOrGlobalConfig=function(e,t,n){var r,s,i,l,o,a,u;return null!==(u=null!==(l=null===(i=null===(s=null===(r=e.value)||void 0===r?void 0:r.myfaces)||void 0===s?void 0:s.config)||void 0===i?void 0:i[t])&&void 0!==l?l:null===(a=null===(o=null===window||void 0===window?void 0:window.myfaces)||void 0===o?void 0:o.config)||void 0===a?void 0:a[t])&&void 0!==u?u:n},e.ofAssoc=function(e){return new a(...Object.keys(e)).map((t=>[t,e[t]]))},e.collectAssoc=function(e,t){return e[t[0]]=t[1],e};let s={};e.debounce=function(e,t,n){function r(){clearTimeout(s[e]),delete s[e]}(null==s?void 0:s[e])&&r(),n>0?s[e]=setTimeout((()=>{try{t()}finally{r()}}),n):t()}}(Nt||(Nt={})),function(e){function t(t,n="",r="",s="Assertion Error"){if(!t)throw e.raiseError(new Error,n,r,s)}function n(t,n,r="",s="",i="Type Assertion Error"){if(t&&!o.assertType(t,n))throw e.raiseError(new Error,r,s,i)}function r(e,t="",r="",s="Assertion Error"){n(e,"function",t,r,s)}e.assertRequestIntegrity=function(e,n){r(e.getIf(ye).value),r(e.getIf(Ee).value),t(n.isPresent(),Nt.getMessage("ERR_MUST_BE_PROVIDED1","{0}: source must be provided or exist","source element id"),"faces.ajax.request","ArgNotSet")},e.assertUrlExists=function(t){if(t.attr("url").isAbsent())throw e.raiseError(new Error,Nt.getMessage("ERR_RED_URL",void 0,"processRedirect"),"processRedirect")},e.assertValidXMLResponse=function(e){t(!e.isAbsent(),Re,Ke),t(!e.isXMLParserError(),e.parserErrorText(le),Ke),t(e.querySelectorAll(Ye).isPresent(),"Partial response not set",Ke)},e.raiseError=function(e,t,n,r,s){let i=null!=r?r:Ne,l=null!=s?s:Ne,o=null!=t?t:le;return Nt.makeException(e,i,l,"Response",n||(arguments.caller?arguments.caller.toString():"_raiseError"),o)},e.assert=t,e.assertType=n,e.assertFunction=r,e.assertDelay=function(e){if(!(e>=0))throw new Error("Invalid delay value: "+e)}}(It||(It={}));class Ct{static createFromRequest(e,t,n,r){let s=new Ct;if(s.type="event",s.status=r,s.source=t.getIf("_source","_element").value,!s.source){let e=n.getIf(be).orElseLazy((()=>n.getIf(ee).value)).orElseLazy((()=>n.getIf($e,ee).value)).value;e&&(s.source=z.byId(e,!0).first().value.value),s.source&&(t.assign("_source","_element").value=s.source)}return r!==we&&(s.responseCode=null==e?void 0:e.status,s.responseText=null==e?void 0:e.responseText,s.responseXML=null==e?void 0:e.responseXML),s}}const Tt=Nt.getMessage;var Ot;!function(e){e.SERVER_ERROR="serverError",e.HTTP_ERROR="httpError",e.CLIENT_ERROR="clientError",e.TIMEOUT="timeout"}(Ot||(Ot={}));class Mt extends Ct{constructor(e,t,n,r=null,s=null,i=-1,l=null,o=Ot.CLIENT_ERROR){super(),this.type="error",this.source=z.byId(e).value.orElse(e).value,this.type="error",this.errorName=t,this.errorMessage=o==Ot.SERVER_ERROR?o+": "+n:n,this.responseCode=i,this.responseText=r,this.responseXML=s,this.status=l,this.description=`Status: ${this.status}\nResponse Code: ${this.responseCode}\nError Message: ${this.errorMessage}`,this.typeDetails=o,o==Ot.SERVER_ERROR&&(this.serverErrorName=this.errorName,this.serverErrorMessage=this.errorMessage)}static fromClient(e){var t,n,r,s;return new Mt(null!==(t=null==e?void 0:e.source)&&void 0!==t?t:"client",null!==(n=null==e?void 0:e.name)&&void 0!==n?n:le,null!==(r=null==e?void 0:e.message)&&void 0!==r?r:le,null!==(s=null==e?void 0:e.stack)&&void 0!==s?s:le)}static fromHttpConnection(e,t,n,r,s,i,l=""){return new Mt(e,t,n,r,s,i,l,Ot.HTTP_ERROR)}static fromGeneric(e,t,n=Ot.SERVER_ERROR){let r=this.getMsg,s=r(e,be),i=r(e,Ae),l=r(e,Se),o=r(e,"status"),a=r(e,"responseText"),u=e.getIf(xe).value;return new Mt(s,i,l,a,u,t,o,n)}static getMsg(e,t){return Tt(e.getIf(t).orElse(le).value)}static fromServerError(e){return this.fromGeneric(e,-1)}}class kt{constructor(e,t){this.id=e,this.value=t;let n=e.indexOf(re);this.nameSpace=n>0?e.substr(0,n-1):le}get hasNameSpace(){var e;return!!(null!==(e=null==this?void 0:this.nameSpace)&&void 0!==e?e:le).length}}class Pt{constructor(e){this.namedViewRoot=!1;const t=e.includes(gt(re));this.name=t?re:se,this.template=t?oe:ae}withNamingContainerId(e){return this.namingContainerId=e,this}withParent(e){return this.parent=e,this}withNamedViewRoot(e){return this.namedViewRoot=e,this}build(){var e;const t=z.fromMarkup(gt(this.template));return t.id.value=this.buildId(),t.name.value=this.buildName(),null===(e=this.parent)||void 0===e||e.append(t),t}buildId(){var e;const t=mt().separatorchar;return((null===(e=this.namingContainerId)||void 0===e?void 0:e.length)?[this.namingContainerId,gt(this.name),this.nextIndex()]:[gt(this.name),this.nextIndex()]).join(t)}buildName(){var e;return this.namedViewRoot&&(null===(e=this.namingContainerId)||void 0===e?void 0:e.length)?[this.namingContainerId,gt(this.name)].join(mt().separatorchar):gt(this.name)}nextIndex(){const e=mt().separatorchar;return W(`[name*='${gt(this.name)}']`).asArray.map((e=>e.id.orElse("0").value)).map((t=>t.substring(t.lastIndexOf(e)+1))).map((e=>parseInt(e))).filter((e=>!isNaN(e))).reduce(((e,t)=>Math.max(e,t)),0)+1}}const jt=o.trim,Dt=Nt.ofAssoc;class Lt{constructor(e,t,n){this.request=e,this.externalContext=t,this.internalContext=n}replaceHead(e){const t=e.querySelectorAll(We);if(!t.isPresent())return;const n=At.querySelectorAll(We);n.childNodes.delete(),this.addToHead(t),n.copyAttrs(t)}addToHead(e){const t=new At(e),n=["SCRIPT"];t.filter((e=>-1==n.indexOf(e.tagName.orElse("").value))).runHeadInserts(!0);const r="HEAD"===e.tagName.value?e.childNodes:e,s=new U(...r.asArray.filter((e=>-1!=n.indexOf(e.tagName.orElse("").value))));this.addToHeadDeferred(s)}addToHeadDeferred(e){this.internalContext.assign(dt).value.push(e)}replaceBody(e){const t=e.querySelectorAll(Ge);if(!t.isPresent())return;const n=t.innerHTML,r=At.querySelectorAll(Ge),s=r.querySelectorAll(Xe);r.html(n).copyAttrs(t),this.externalContext.assign(gt(fe)).value="@all",this.storeForPostProcessing(s,r)}eval(e){At.globalEval(e.cDATAAsString)}error(e){const t=new St({});t.assign(be).value=this.externalContext.getIf(ee).get(0).value,t.assign(Ae).value=e.querySelectorAll(Ae).textContent(le),t.assign(Se).value=e.querySelectorAll(Se).cDATAAsString;const n=this.internalContext.get(xe).isPresent();t.assignIf(n,xe).value=this.internalContext.getIf(xe).value.get(0).value;const r=Mt.fromServerError(t);this.triggerOnError(r),Kt.sendError(r)}redirect(e){It.assertUrlExists(e);const t=jt(e.attr("url").value);t!=le&&(window.location.href=t)}update(e,t){const n=At.byId(e.id.value,!0).outerHTML(t,!1,!1),r=null==n?void 0:n.firstParent(Xe).orElseLazy((()=>n.byTagName(Xe,!0)));r&&this.storeForPostProcessing(r,n)}delete(e){z.byId(e.id.value,!0).delete()}attributes(e){const t=z.byId(e.id.value,!0);e.byTagName("attribute").each((e=>{t.attr(e.attr("name").value).value=e.attr("value").value}))}replaceViewRoot(e){this.replaceHead(e),this.replaceBody(e)}insert(e){const t=e.attr(at),n=e.attr(ut),r=z.fromMarkup(e.cDATAAsString);t.isPresent()&&(z.byId(t.value,!0).insertBefore(r),this.internalContext.assign(ht).value.push(r)),n.isPresent()&&(z.byId(n.value,!0).insertAfter(r),this.internalContext.assign(ht).value.push(r))}insertWithSubTags(e){const t=e.querySelectorAll(at),n=e.querySelectorAll(ut);t.each((e=>{const t=e.attr("id"),n=z.fromMarkup(e.cDATAAsString);t.isPresent()&&(z.byId(t.value,!0).insertBefore(n),this.internalContext.assign(ht).value.push(n))})),n.each((e=>{const t=e.attr("id"),n=z.fromMarkup(e.cDATAAsString);t.isPresent()&&(z.byId(t.value,!0).insertAfter(n),this.internalContext.assign(ht).value.push(n))}))}processViewState(e){if(Lt.isViewStateNode(e)){const t=e.cDATAAsString;return this.internalContext.assign(ft,e.id.value).value=new kt(gt(e.id.value),t),!0}return!1}processClientWindow(e){if(Lt.isClientWindowNode(e)){const t=e.cDATAAsString;return this.internalContext.assign(pt,e.id.value).value=new kt(gt(e.id.value),t),!0}return!1}globalEval(){new At(...this.internalContext.getIf(dt).value).runHeadInserts(!0);let e=new At(...this.internalContext.getIf(ht).value);e.runCss(),e.runScripts()}fixViewStates(){Dt(this.internalContext.getIf(ft).orElse({}).value).forEach((([,e])=>{const t=this.internalContext.getIf(te),n=!!this.internalContext.getIf(Z).value,r=this.getContainerForms(t).filter((e=>this.isInExecuteOrRender(e)));this.appendViewStateToForms(r,n,e.value,t.orElse("").value)}))}fixClientWindow(){Dt(this.internalContext.getIf(pt).orElse({}).value).forEach((([,e])=>{const t=this.internalContext.getIf(te),n=!!this.internalContext.getIf(Z).value,r=this.getContainerForms(t).filter((e=>this.isInExecuteOrRender(e)));this.appendClientWindowToForms(r,n,e.value,t.orElse("").value)}))}updateNamedViewRootState(){let e=this.internalContext.getIf(te),t=this.internalContext.getIf(Z);if(e.isPresent()&&(t.isAbsent()||!t.value)){const t=mt().separatorchar;this.internalContext.assign(Z).value=!!document.getElementById(e.value)||W(`input[name*='${gt(re)}']`).filter((n=>0==n.attr("name").value.indexOf(e.value+t))).length>0}}done(){const e=Ct.createFromRequest(this.request.value,this.internalContext,this.externalContext,"success"),t=this.externalContext.getIf(Ee).orElseLazy((()=>this.internalContext.getIf(Ee).value)).orElse(ie).value;Kt.sendEvent(e,t)}appendViewStateToForms(e,t,n,r=""){this.assignState(e,gt(Qe),t,n,r)}appendClientWindowToForms(e,t,n,r=""){this.assignState(e,gt(Je),t,n,r)}assignState(e,t,n,r,s){e.each((e=>{e.querySelectorAll(t).orElseLazy((()=>(e=>new Pt(t).withNamingContainerId(s).withParent(e).withNamedViewRoot(n).build())(e))).val=r}))}storeForPostProcessing(e,t){this.storeForUpdate(e),this.storeForEval(t)}storeForUpdate(e){this.internalContext.assign(ct).value.push(e)}storeForEval(e){this.internalContext.assign(ht).value.push(e)}static isViewStateNode(e){var t,n,r,s,i,l;const o=mt().separatorchar;return void 0!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.value)&&((null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)==gt(re)||-1!=(null===(s=null===(r=null==e?void 0:e.id)||void 0===r?void 0:r.value)||void 0===s?void 0:s.indexOf([o,gt(re)].join(le)))||-1!=(null===(l=null===(i=null==e?void 0:e.id)||void 0===i?void 0:i.value)||void 0===l?void 0:l.indexOf([gt(re),o].join(le))))}static isClientWindowNode(e){var t,n,r,s,i,l;const o=mt().separatorchar;return void 0!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.value)&&((null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.value)==gt(se)||-1!=(null===(s=null===(r=null==e?void 0:e.id)||void 0===r?void 0:r.value)||void 0===s?void 0:s.indexOf([o,gt(se)].join(le)))||-1!=(null===(l=null===(i=null==e?void 0:e.id)||void 0===i?void 0:i.value)||void 0===l?void 0:l.indexOf([gt(se),o].join(le))))}triggerOnError(e){this.externalContext.getIf(ye).orElseLazy((()=>this.internalContext.getIf(ye).value)).orElse(ie).value(e)}isInExecuteOrRender(e){const t=this.externalContext.getIf(gt(de)).orElse("@none").value.split(/\s+/gi),n=this.externalContext.getIf(fe).orElseLazy((()=>this.externalContext.getIf(gt(ve)).value)).orElse(ce).value.split(/\s+/gi);return[...t.concat(...n)].filter((t=>{if(-1!=[ue,ce].indexOf(t))return!0;const n=this.getNameOrIdSelector(t);return e.matchesSelector(n)||e.querySelectorAll(n).isPresent()||e.firstParent(n).isPresent()})).length>0}getContainerForms(e){return e.isPresent()?W(this.getNameOrIdSelector(e.value)).orElseLazy((()=>z.byTagName(Ge))).byTagName(Xe,!0):z.byTagName(Xe)}getNameOrIdSelector(e){return`[id='${e}'], [name='${e}']`}}var qt;!function(e){e.processResponse=function(e,n){let r=St.fromNullable(e),{externalContext:s,internalContext:i}=function(e){let t=St.fromNullable(e),n=t.getIf(Oe);return n.isPresent()||(n=St.fromNullable({})),n.assign(dt).value=[],n.assign(ct).value=[],n.assign(ht).value=[],{externalContext:t,internalContext:n}}(n),l=function(e){let t=new Q(gt(e.getIf("responseXML").value));return It.assertValidXMLResponse(t),t}(r),o=new Lt(r,s,i);i.assign(xe).value=l,l.querySelectorAll(Ye).each((e=>function(e,n,r){var s;let i=null===(s=null==e?void 0:e.id)||void 0===s?void 0:s.value;r.assignIf(!!i,te).value=i,n.updateNamedViewRootState();const l=[st,ot,Ze].join(",");e.querySelectorAll(l).each((e=>{switch(e.tagName.value){case st:n.error(e);break;case ot:n.redirect(e);break;case Ze:!function(e,n){const r=[et,rt,nt,tt,it,lt].join(", ");e.querySelectorAll(r).each((e=>{switch(e.tagName.value){case et:!function(e,t){(function(e,t){return e.processViewState(t)||e.processClientWindow(t)})(t,e)||function(e,t){let n=e.cDATAAsString;switch(e.id.value){case gt("jakarta.faces.ViewRoot"):t.replaceViewRoot(z.fromMarkup(n.substring(n.indexOf("<html"))));break;case gt("jakarta.faces.ViewHead"):t.replaceHead(z.fromMarkup(n));break;case gt("jakarta.faces.ViewBody"):t.replaceBody(z.fromMarkup(n));break;case gt("jakarta.faces.Resource"):t.addToHead(z.fromMarkup(n));break;default:t.update(e,n)}}(e,t)}(e,n);break;case rt:n.eval(e);break;case nt:t(n,e);break;case tt:n.delete(e);break;case it:n.attributes(e)}}))}(e,n)}}))}(e,o,i))),o.updateNamedViewRootState(),o.fixViewStates(),o.fixClientWindow(),o.globalEval(),o.done()};let t=function(e,t){t.querySelectorAll([at,ut].join(",")).length?e.insertWithSubTags(t):e.insert(t)}}(qt||(qt={}));class Ft{constructor(){this.catchFunctions=[],this.thenFunctions=[]}resolve(e){this.thenFunctions.reduce(((e,t)=>t(e)),e)}reject(e){this.catchFunctions.reduce(((e,t)=>t(e)),e)}catch(e){return this.catchFunctions.push(e),this}finally(e){return this.catchFunctions.push(e),this.thenFunctions.push(e),this}then(e){return this.thenFunctions.push(e),this}}function Ht(e,t=(e,t)=>[e,t],n=""){if(e.isAbsent())return n;const r=e.value;return new a(...Object.keys(r)).filter((e=>r.hasOwnProperty(e))).flatMap((e=>r[e].map((n=>t(e,n))))).filter((([,e])=>!(e instanceof At.global().File))).map((e=>`${encodeURIComponent(e[0])}=${encodeURIComponent(e[1])}`)).join("&")}function Vt(e){var t,n;return e.length<3?[null!==(t=null==e?void 0:e[0])&&void 0!==t?t:[],null!==(n=null==e?void 0:e[1])&&void 0!==n?n:[]]:e}const $t=Nt.ofAssoc,Bt=(e,t)=>[e,t];class Ut extends _{constructor(e,t=Bt,n,r){super({}),this.paramsMapper=t,this.isMultipartRequest=!1,this.initFormData(e,n,r)}toFormData(){return this.buildFormData()}toString(e=""){return Ht(this,this.paramsMapper,e)}initFormData(e,t,n){this.detectMultipartRequest(e,t),this.encodeSubmittableFields(e,n),this.applyViewState(e)}detectMultipartRequest(e,t){t&&!t.includes(ce)&&(this.isMultipartRequest=e.isMultipartCandidate(!0))}applyViewState(e){if(this.getIf(gt(re)).isPresent())return;const t=e.querySelectorAllDeep(`[name*='${gt(re)}'`),n=t.inputValue;this.appendIf(n.isPresent(),this.remapKeyForNamingContainer(t.name.value)).value=n.value}encodeSubmittableFields(e,t=[]){const n=t.map((e=>this.remapKeyForNamingContainer(e)));(function(e){const t=function(e){return mt().getViewState(e.getAsElem(0).value).split("&").filter((e=>!!(e||"").replace(/\s+/g,""))).map((e=>{let t=decodeURIComponent(e),n=t.indexOf("=");return-1===n?[t]:[t.substring(0,n),t.substring(n+1)]}))}(e),n=e.querySelectorAllDeep("input[type='file']").asArray.map((e=>[e.name.value||e.id.value,e.filesFromElem(0)])).flatMap((([e,t])=>[...t].map((t=>[e,t]))));return t.concat(n)})(e).map(Vt).map((([e,t])=>this.paramsMapper(e,t))).filter((([e])=>this.isFieldIncluded(e,n))).forEach((([e,t])=>this.append(e).value=t))}isFieldIncluded(e,t){return!(t.length&&!e.startsWith("@"))||t.includes(e)}buildFormData(){return $t(this.value).flatMap((([e,t])=>Array.isArray(t)?new a(...t).map((t=>({key:e,value:t}))):[{key:e,value:t}])).map((({key:e,value:t})=>({key:this.remapKeyForNamingContainer(e),value:t}))).reduce(((e,{key:t,value:n})=>(e.append(t,n),e)),new FormData)}remapKeyForNamingContainer(e){const[t]=this.paramsMapper(e,le);return t}}const zt=Nt.failSaveExecute;class Wt extends Ft{constructor(e,t,n=0,r=ze,s="application/x-www-form-urlencoded"){super(),this.requestContext=e,this.internalContext=t,this.timeout=n,this.ajaxType=r,this.contentType=s,this.ERR_INVALID_RESPONSE="Invalid Response",this.ERR_EMPTY_RESPONSE="Empty Response",this.stopProgress=!1,this.xhrObject=new XMLHttpRequest,this.registerXhrCallbacks((e=>this.resolve(e)),(e=>this.reject(e)))}start(){const e=zt,t=this.xhrObject,n=z.byId(this.internalContext.getIf(Me).value);try{const r=this.requestContext.getIf($e,de).get(ce).value.split(/\s+/gi),s=!0===this.internalContext.getIf(Be).value?r:[],i=new Ut(n,_t(this.internalContext),r,s);this.requestContext.$nspEnabled=!1;const l=this.requestContext,o=l.getIf($e);o.$nspEnabled=!1;try{i.shallowMerge(o,!0,!0)}finally{this.requestContext.$nspEnabled=!0,o.$nspEnabled=!0}this.appendIssuingItem(i),this.responseContext=o.deepCopy;const a=this.responseContext;a.assign(Oe).value=this.internalContext.value,a.assign(Ee).value=l.getIf(Ee).value,a.assign(ye).value=l.getIf(ye).value,t.open(this.ajaxType,function(e,t,n=ze){return function(e){const t=e.elements;return void 0===t[Ue]?e.action:t[Ue].value}(e.getAsElem(0).value)+("GET"==n?"?"+t.toString():le)}(n,i,this.ajaxType),!0),this.timeout&&(t.timeout=this.timeout),i.isMultipartRequest||e((()=>t.setRequestHeader("Content-Type",`${this.contentType}; charset=utf-8`))),e((()=>t.setRequestHeader("Faces-Request","partial/ajax"))),e((()=>t.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"))),this.sendEvent(we),this.sendRequest(i)}catch(e){throw this.handleErrorAndClearQueue(e),e}return this}cancel(){try{this.xhrObject.abort()}catch(e){this.handleError(e)}}registerXhrCallbacks(e,t){const n=this.xhrObject;n.onabort=()=>{this.onAbort(e,t)},n.ontimeout=()=>{this.onTimeout(e,t)},n.onload=()=>{this.onResponseReceived(e)},n.onloadend=()=>{this.onResponseProcessed(this.xhrObject,e)},this.registerUploadCallbacks(n),n.onerror=e=>{if(this.isCancelledResponse(this.xhrObject))return this.stopProgress=!0,void t();this.stopProgress||this.handleError(e)}}registerUploadCallbacks(e){var t,n;(null==e?void 0:e.upload)&&(null===(n=(t=this.internalContext.getIf(Pe)).value)||void 0===n||n.call(t,e.upload),e.upload.addEventListener("progress",(t=>{var n,r;null===(r=(n=this.internalContext.getIf(ke)).value)||void 0===r||r.call(n,e.upload,t)})),e.upload.addEventListener("load",(t=>{var n,r;null===(r=(n=this.internalContext.getIf(Le)).value)||void 0===r||r.call(n,e.upload,t)})),e.upload.addEventListener("loadstart",(t=>{var n,r;null===(r=(n=this.internalContext.getIf(je)).value)||void 0===r||r.call(n,e.upload,t)})),e.upload.addEventListener("loadend",(t=>{var n,r;null===(r=(n=this.internalContext.getIf(De)).value)||void 0===r||r.call(n,e.upload,t)})),e.upload.addEventListener("abort",(t=>{var n,r;null===(r=(n=this.internalContext.getIf(Fe)).value)||void 0===r||r.call(n,e.upload,t)})),e.upload.addEventListener("timeout",(t=>{var n,r;null===(r=(n=this.internalContext.getIf(He)).value)||void 0===r||r.call(n,e.upload,t)})),e.upload.addEventListener("error",(t=>{var n,r;null===(r=(n=this.internalContext.getIf(qe)).value)||void 0===r||r.call(n,e.upload,t)})))}isCancelledResponse(e){return 0===(null==e?void 0:e.status)&&4===(null==e?void 0:e.readyState)&&""===(null==e?void 0:e.responseText)&&null===(null==e?void 0:e.responseXML)}onAbort(e,t){this.handleHttpError(t)}onTimeout(e,t){this.sendEvent("TIMEOUT_EVENT"),this.handleHttpError(e)}onResponseReceived(e){var t;this.sendEvent("complete"),this.processRequestErrors(e)||mt().ajax.response(this.xhrObject,null!==(t=this.responseContext.value)&&void 0!==t?t:{})}processRequestErrors(e){var t,n,r,s,i;const l=new Q(null===(t=this.xhrObject)||void 0===t?void 0:t.responseXML),o=null!==(r=null===(n=this.xhrObject)||void 0===n?void 0:n.responseText)&&void 0!==r?r:"",a=null!==(i=null===(s=this.xhrObject)||void 0===s?void 0:s.status)&&void 0!==i?i:-1;return a>=300||a<200?(this.handleHttpError(e),!0):l.isXMLParserError()||l.isAbsent()&&o.trim().length>0?(this.handleGenericResponseError(this.ERR_INVALID_RESPONSE,"The response xml is invalid",Ne,e),!0):!!l.isAbsent()&&(this.handleGenericResponseError(this.ERR_EMPTY_RESPONSE,"The response has provided no data",Re,e),!0)}handleGenericResponseError(e,t,n,r){var s,i,l,o;const a=new Mt(this.internalContext.getIf(Ve).value,e,t,null!==(i=null===(s=this.xhrObject)||void 0===s?void 0:s.responseText)&&void 0!==i?i:"",null!==(o=null===(l=this.xhrObject)||void 0===l?void 0:l.responseXML)&&void 0!==o?o:null,this.xhrObject.status,n);this.finalizeError(a,r)}handleHttpError(e,t="Generic HTTP Error"){var n,r,s,i,l,o;this.stopProgress=!0;const a=new Mt(this.internalContext.getIf(Ve).value,_e,t,null!==(r=null===(n=this.xhrObject)||void 0===n?void 0:n.responseText)&&void 0!==r?r:"",null!==(i=null===(s=this.xhrObject)||void 0===s?void 0:s.responseXML)&&void 0!==i?i:null,null!==(o=null===(l=this.xhrObject)||void 0===l?void 0:l.status)&&void 0!==o?o:-1,_e);this.finalizeError(a,e)}finalizeError(e,t){try{this.handleError(e,!0)}finally{t(e),this.stopProgress=!0}}onResponseProcessed(e,t){this.stopProgress||t(e)}sendRequest(e){"GET"!==this.ajaxType?this.xhrObject.send(e.isMultipartRequest?e.toFormData():e.toString()):this.xhrObject.send(null)}sendEvent(e){var t;const n=Ct.createFromRequest(this.xhrObject,this.internalContext,this.requestContext,e);try{const e=xt(this.requestContext,this.responseContext,Ee);Kt.sendEvent(n,e)}catch(e){throw e.source=null!==(t=null==e?void 0:e.source)&&void 0!==t?t:this.requestContext.getIf(be).value,this.handleErrorAndClearQueue(e),e}}handleErrorAndClearQueue(e,t=!1){this.handleError(e,t),this.reject(e)}handleError(e,t=!1){var n;const r=t?Mt.fromHttpConnection(e.source,e.type,null!==(n=e.message)&&void 0!==n?n:le,e.responseText,e.responseXML,e.responseCode,e.status):Mt.fromClient(e),s=xt(this.requestContext,this.responseContext,ye);Kt.sendError(r,s)}appendIssuingItem(e){var t,n;const r=this.internalContext.getIf(Ve).value,s=null!==(n=null===(t=e.getIf(gt(me)).value)||void 0===t?void 0:t[0])&&void 0!==n?n:null,i=!!s&&"click"!==s;if(r&&e.getIf(r).isAbsent()&&!i){const t=z.byId(r),n=t.inputValue,s=new St({}),i=t.type.orElse("").value.toLowerCase(),l=i===Wt.TYPE_CHECKBOX||i===Wt.TYPE_RADIO;if(l&&!t.checked)return;l?s.assign(r).value=n.orElse(!0).value:n.isPresent()&&(s.assign(r).value=n.value),e.shallowMerge(s,!0,!0)}}}Wt.TYPE_CHECKBOX="checkbox",Wt.TYPE_RADIO="radio";const Xt=Nt.debounce;class Gt{constructor(){this.queue=[],this.taskRunning=!1,this.debounceKey="xhrQueue_"+Gt.instanceCount++}enqueue(e,t=0){Xt(this.debounceKey,(()=>{const t=this.enrichRunnable(e);this.taskRunning?this.queue.push(t):(this.signalTaskRunning(),t.start())}),t)}next(){this.updateTaskRunning();const e=this.queue.shift();null==e||e.start()}clear(){this.queue.length=0,this.updateTaskRunning()}get isEmpty(){return!this.queue.length}enrichRunnable(e){return e.then((()=>this.next())).catch((()=>this.clear()))}signalTaskRunning(){this.taskRunning=!0}updateTaskRunning(){this.taskRunning=!this.isEmpty}}var Qt,Jt,Kt,Yt,Zt,en,tn;Gt.instanceCount=0,function(e){e.Production="Production",e.Development="Development",e.SystemTest="SystemTest",e.UnitTest="UnitTest"}(Qt||(Qt={})),function(e){e.onerror="onerror",e.onevent="onevent",e.render="render",e.execute="execute",e.myfaces="myfaces",e.delay="delay",e.timeout="timeout",e.resetValues="resetValues",e.windowId="windowId",e.params="params"}(Jt||(Jt={})),function(e){const t=o.trim,n=Nt.getMessage,r=Nt.getGlobalConfig;var s=It.assert;const i=Nt.ofAssoc,l=Nt.collectAssoc;let a=null,u=null,c=[],d=[];function v(){const e=At.searchJsfJsFor(/stage=([^&;]*)/).value;return e in Qt?e:Qt.Production}function f(e,t=function(e){}){t(e),d.forEach((t=>{t(e)})),r("defaultErrorOutput",console?console.error:alert)(e)}function p(e,t){const n=function(e){const t=e.querySelectorAll(`input[type='hidden'][name*='${gt(re)}']`).attr("name").orElse("").value,n=mt().separatorchar,r=t.split(n,2)[0];return-1===r.indexOf(gt(re))?r:""}(t);n&&(e.assign(Z).value=!0,e.assign(te).value=n)}function m(e,n,r,s,i,l=""){const o=mt().separatorchar;let a=r?t(r).split(/\s+/gi):[],u=[],c={};const h=e=>{const t=l.length?l+o:le;let n=s.id.value;const r=n.substring(0,n.lastIndexOf(o)),i=r.length?r+o:le,a=0===e.indexOf(o);let u;return a||l.length&&0==e.indexOf(t)?u=[t,e=0==(e=a?e.substring(1):e).indexOf(t)?e.substring(t.length):e].join(le):(0==n.indexOf(t)&&(n=n.substring(t.length)),u=0==e.indexOf(n)?[t,e].join(le):[i,e].join(le)),z.byId(u).isPresent()?u:e};for(let t=0;t<a.length;t++)if(!(a[t]in c))switch(a[t]){case ce:return e.delete(n);case ue:return e.assign(n).value=ue,e;case"@form":u.push(h(s.id.value)),c[s.id.value]=!0;break;case he:i in c||(u.push(h(i)),c[i]=!0);break;default:u.push(h(a[t])),c[a[t]]=!0}return e.assign(n).value=u.join(" "),e}function g(){var e,t;return null!==(t=null===(e=null===window||void 0===window?void 0:window[vt])||void 0===e?void 0:e.config)&&void 0!==t?t:{}}e.requestQueue=null,e.getSeparatorChar=function(){var e,t;return null!==(t=null===(e=g())||void 0===e?void 0:e.separator)&&void 0!==t?t:null!=u?u:u=At.searchJsfJsFor(/separator=([^&;]*)/).orElse(":").value},e.reset=function(){a=null,u=null,c=[],d=[],e.requestQueue=null},e.getProjectStage=function(){var e,t;return null!==(t=null===(e=g())||void 0===e?void 0:e.projectStage)&&void 0!==t?t:null!=a?a:a=v()},e.resolveProjectStateFromURL=v,e.chain=function(e,n,...r){let s=!0;return r.every((r=>{let i=function(e,n,r){if("string"!=typeof r)return!1!==r.call(e,n);{let s=t(r);return 0==s.indexOf("function ")&&(s=`return ${s} (event)`),!1!==new Function("event",s).call(e,n)}}(e,n,r);return!1===i&&(s=!1),s})),s},e.request=function(t,n,r){var s,o,a,u,c,h,d,v,f,g,y,E,w,b,A,S,x,R,N,I,C,T,O,M,k,P,j,D,L;const{options:q,elem:F,elementId:H,windowId:V,isResetValues:$}=function(e,t,n=null){var r;const s=z.byId(n||e.target,!0),i=new St(t).deepCopy;return{options:i,elem:s,elementId:s.id.value,windowId:Rt(i),isResetValues:!0===(null===(r=i.value)||void 0===r?void 0:r.resetValues)}}(n,r,t),B=new St({}),U=new St({});It.assertRequestIntegrity(q,F);const W=function(e,t){return Nt.getForm(e.getAsElem(0).value,t)}(F,n),X=function(e){const t=e.querySelectorAll(`input[type='hidden'][name*='${gt(re)}']`).id.orElse("").value,n=mt().separatorchar,r=t.split(n,2)[0],s=-1===r.indexOf(gt(re))?r:"";return 0===e.id.value.indexOf(s)?s:""}(W),G=W.id.value,Q=function(e){let t=e.getIf("delay").orElse(0).value;return t="none"===t?0:t,It.assertDelay(t),t}(q),J=function(e){var t;let n=Nt.getLocalOrGlobalConfig;return null!==(t=e.getIf(Ce).value)&&void 0!==t?t:n(e.value,Ce,0)}(q);var K;B.assignIf(!!V,pe).value=V,B.assign($e).value=(K=q.value,i(K).filter((e=>!(e[0]in Jt))).reduce(l,{}));const Y=(Z=q.getIf(Ie).orElse({}).value,Array.isArray(Z)?Z.reduce(l,{}):Z);var Z;let te=B.getIf($e);var ie,le,oe,ae;te.$nspEnabled=!1,te.shallowMerge(new _(Y),!0),te.$nspEnabled=!0,B.assignIf(!!n,$e,"jakarta.faces.partial.event").value=null==n?void 0:n.type,B.assign(be).value=H,B.assign(ne).value=X,B.assign(Ee).value=null===(s=q.value)||void 0===s?void 0:s.onevent,B.assign(ye).value=null===(o=q.value)||void 0===o?void 0:o.onerror,B.assign(vt).value=null===(a=q.value)||void 0===a?void 0:a.myfaces,B.assign($e,ee).value=H,B.assign($e,"jakarta.faces.partial.ajax").value=!0,B.assignIf($,$e,"jakarta.faces.partial.resetValues").value=!0,U.assign(Me).value=G,U.assign(Pe).value=null===(h=null===(c=null===(u=q.value)||void 0===u?void 0:u.myfaces)||void 0===c?void 0:c.upload)||void 0===h?void 0:h.preinit,U.assign(je).value=null===(f=null===(v=null===(d=q.value)||void 0===d?void 0:d.myfaces)||void 0===v?void 0:v.upload)||void 0===f?void 0:f.loadstart,U.assign(ke).value=null===(E=null===(y=null===(g=q.value)||void 0===g?void 0:g.myfaces)||void 0===y?void 0:y.upload)||void 0===E?void 0:E.progress,U.assign(De).value=null===(A=null===(b=null===(w=q.value)||void 0===w?void 0:w.myfaces)||void 0===b?void 0:b.upload)||void 0===A?void 0:A.loadend,U.assign(Le).value=null===(R=null===(x=null===(S=q.value)||void 0===S?void 0:S.myfaces)||void 0===x?void 0:x.upload)||void 0===R?void 0:R.load,U.assign(qe).value=null===(C=null===(I=null===(N=q.value)||void 0===N?void 0:N.myfaces)||void 0===I?void 0:I.upload)||void 0===C?void 0:C.error,U.assign(Fe).value=null===(M=null===(O=null===(T=q.value)||void 0===T?void 0:T.myfaces)||void 0===O?void 0:O.upload)||void 0===M?void 0:M.abort,U.assign(He).value=null===(j=null===(P=null===(k=q.value)||void 0===k?void 0:k.myfaces)||void 0===P?void 0:P.upload)||void 0===j?void 0:j.timeout,B.assign($e,G).value=G,U.assign(Ve).value=H,U.assign(Be).value=null!==(L=null===(D=function(e){var t;return null===(t=i(e).filter((e=>"myfaces"==e[0])).reduce(l,{}))||void 0===t?void 0:t[vt]}(q.value))||void 0===D?void 0:D.pps)&&void 0!==L&&L,function(e,t){let n=mt().getClientWindow(e.getAsElem(0).value);n&&(t.assign($e,se).value=n)}(W,B),le=B,oe=W,ae=H,(ie=q).getIf(Te).isPresent()?(ie.assign(Te).value=[ie.getIf(Te).value,he].join(" "),m(le.getIf($e).get({}),de,ie.getIf(Te).value,oe,ae,le.getIf(ne).value)):le.assign($e,de).value=ae,function(e,t,n,r){e.getIf(ge).isPresent()&&m(t.getIf($e).get({}),ve,e.getIf(ge).value,n,r,t.getIf(ne).value)}(q,B,W,H),p(U,W),e.queueHandler.addRequestToQueue(F,W,B,U,Q,J)},e.response=function(e,t){qt.processResponse(e,t)},e.addOnError=function(e){d.push(e)},e.addOnEvent=function(e){c.push(e)},e.sendEvent=function(e,t=function(e){}){t(e),c.forEach((t=>t(e)))},e.stdErrorHandler=function(t,n,r,s=!1){try{f(Mt.fromClient(r))}finally{s&&(null===e.requestQueue||void 0===e.requestQueue||e.requestQueue.clear())}},e.sendError=f,e.getClientWindow=function(e){const t="___mf_id_altered__",n="___init____";let r=e?z.byId(e):W("form"),i=r.filterSelector(`input[name='${gt(se)}']`).orElseLazy((()=>r.querySelectorAll(`input[name='${gt(se)}']`))).asArray.map((e=>e.val)).reduce(((e,r)=>e==n?r:e==t||e!=r?t:r),n);return s(t!=i,"Multiple different windowIds found in document"),i!=n?i:(function(){const e=window.location.href,t=new RegExp("[\\?&]jfwid=([^&#\\;]*)").exec(e);return null!=t?h.fromNullable(t[1]):h.fromNullable(null)}()||At.searchJsfJsFor(/jfwid=([^&;]*)/).orElse(null)).value},e.getViewState=function(e){let t=z.byId(e,!0);if(!t.isTag(Xe))throw new Error(n("ERR_VIEWSTATE"));const r=new _({});p(r,z.byId(e));let s=t.deepElements.encodeFormElement();return Ht(new St(s),_t(r))},e.queueHandler={addRequestToQueue:function(t,n,r,s,i=0,l=0){e.requestQueue=null!==e.requestQueue&&void 0!==e.requestQueue?e.requestQueue:new Gt,e.requestQueue.enqueue(new Wt(r,s,l),i)}}}(Kt||(Kt={})),function(e){const t=z.global().location.protocol.replace("http","ws")+"//";e.sockets={},e.components={},e.clientIdsByTokens={},e.reset=function(){Object.values(e.sockets).forEach((e=>{try{e.close()}catch(e){}})),e.sockets={},e.components={},e.clientIdsByTokens={}},e.init=function(r,i,l,o,a,u,c,h,d){var v,f,p;if(c=s(c),!z.global().WebSocket)return void c(-1,l);let m=i.substr(i.indexOf("?")+1);e.components[r]||(e.components[r]={channelToken:m,onopen:s(o),onmessage:s(a),onerror:s(u),onclose:c,behaviors:h,autoconnect:d},e.clientIdsByTokens[m]||(e.clientIdsByTokens[m]=[]),e.clientIdsByTokens[m].push(r),e.sockets[m]||(e.sockets[m]=new n(m,function(e){if(e.indexOf("://")<0){let n=z.global().location.hostname+":"+z.global().location.port;return t+n+e}return e}(i),l))),d&&(null!==(f=null===(v=z.global())||void 0===v?void 0:v.faces)&&void 0!==f?f:null===(p=z.global())||void 0===p?void 0:p.jsf).push.open(r)},e.open=function(t){var n;r(null===(n=e.components[t])||void 0===n?void 0:n.channelToken).open()},e.close=function(t){r(e.components[t].channelToken).close()};class n{constructor(e,t,n){this.channelToken=e,this.url=t,this.channel=n,this.socket=null,this.reconnectAttempts=0,this.hasEverConnected=!1,this.hasNotifiedInitialOpenAttempt=!1}open(){this.socket&&1===this.socket.readyState||(this.socket=new WebSocket(this.url),this.bindCallbacks(),this.notifyInitialOpenAttempt())}onopen(e){this.hasEverConnected=!0,this.reconnectAttempts=0}onerror(e){}onmessage(t){var n,r,s;let i=JSON.parse(t.data),l=e.clientIdsByTokens[this.channelToken];if(l){for(let o=l.length-1;o>=0;o--){let a=l[o];if(document.getElementById(a)){try{null===(r=null===(n=e.components[a])||void 0===n?void 0:n.onmessage)||void 0===r||r.call(n,i,this.channel,t)}catch(e){}let l=null===(s=null===e.components||void 0===e.components?void 0:e.components[a])||void 0===s?void 0:s.behaviors,o=null==l?void 0:l[i];if(o&&o.length)for(let e=0;e<o.length;e++)try{o[e](null)}catch(e){}}else l.splice(o,1)}0===l.length&&this.close()}}onclose(e){if(this.isTerminalClose(e))return this.notifyClose(e),void this.resetConnectionState();this.notifyErrorAndPruneMissingComponents(e)&&(this.closeIfChannelHasNoComponents()||this.scheduleReconnect())}close(){if(this.socket){let e=this.socket;this.socket=null,e.close()}}notifyInitialOpenAttempt(){var t,n;if(this.reconnectAttempts||this.hasNotifiedInitialOpenAttempt)return;this.hasNotifiedInitialOpenAttempt=!0;let r=e.clientIdsByTokens[this.channelToken];if(r)for(let s=r.length-1;s>=0;s--){let i=r[s];null===(n=null===(t=e.components[i])||void 0===t?void 0:t.onopen)||void 0===n||n.call(t,this.channel)}}isTerminalClose(e){return!this.socket||!this.hasEverConnected||1e3===e.code||1008===e.code||this.reconnectAttempts>=25}notifyClose(t){var n,r;let s=e.clientIdsByTokens[this.channelToken];if(s)for(let i=s.length-1;i>=0;i--){let l=s[i];null===(r=null===(n=null===e.components||void 0===e.components?void 0:e.components[l])||void 0===n?void 0:n.onclose)||void 0===r||r.call(n,null==t?void 0:t.code,null==this?void 0:this.channel,t)}}resetConnectionState(){this.reconnectAttempts=0,this.hasEverConnected=!1,this.hasNotifiedInitialOpenAttempt=!1}notifyErrorAndPruneMissingComponents(t){var n,r;let s=e.clientIdsByTokens[this.channelToken];if(!s)return!1;for(let i=s.length-1;i>=0;i--){let l=s[i];if(document.getElementById(l))try{null===(r=null===(n=null===e.components||void 0===e.components?void 0:e.components[l])||void 0===n?void 0:n.onerror)||void 0===r||r.call(n,null==t?void 0:t.code,null==this?void 0:this.channel,t)}catch(e){}else s.splice(i,1)}return!0}closeIfChannelHasNoComponents(){var t;return 0===(null===(t=e.clientIdsByTokens[this.channelToken])||void 0===t?void 0:t.length)&&(this.close(),!0)}scheduleReconnect(){const e=++this.reconnectAttempts;this.socket=null,setTimeout((()=>this.open()),500*e)}bindCallbacks(){this.socket.onopen=e=>this.onopen(e),this.socket.onmessage=e=>this.onmessage(e),this.socket.onclose=e=>this.onclose(e),this.socket.onerror=e=>this.onerror(e)}}function r(t){let n=e.sockets[t];if(n)return n;throw new Error("Unknown channelToken: "+t)}function s(e){return"function"==typeof e?e:"string"==typeof e&&"function"==typeof z.global()[e]?z.global()[e]:()=>{}}}(Yt||(Yt={})),function(e){const t=Nt.ofAssoc;e.setHiddenInput=function(e,t,n){const r=document.forms;z.byId(r[e]).each((e=>{const r=e.querySelectorAll(`input[type='hidden'][name='${t}']`);if(r.isPresent())r.inputValue.value=n;else{const r=z.fromMarkup(`<input type='hidden' id='${t}' name='${t}'>`);r.inputValue.value=n,r.appendTo(e)}}))},e.clearHiddenInput=function(e,t){var n;const r=document.forms,s=null===(n=null==r?void 0:r[e])||void 0===n?void 0:n.elements;let i=null==s?void 0:s[t];i&&z.byId(i).delete()},e.submitForm=function(e,n=null,r=null,s={}){var i,l,o,a,u;s=s||{};let c="clearFormHiddenParams_"+e.replace(/-/g,"$:").replace(/:/g,"_");null===(i=null===window||void 0===window?void 0:window[c])||void 0===i||i.call(window,e),(null===(a=null===(o=null===(l=null===window||void 0===window?void 0:window.myfaces)||void 0===l?void 0:l.core)||void 0===o?void 0:o.config)||void 0===a?void 0:a.autoScroll)&&(null===window||void 0===window?void 0:window.getScrolling)&&myfaces.oam.setHiddenInput(e,"autoScroll",null===window||void 0===window?void 0:window.getScrolling());let h=Array.isArray(s)?[...s]:t(s);h.forEach((([t,n])=>myfaces.oam.setHiddenInput(e,t,n))),myfaces.oam.setHiddenInput(e,`${e}:_idcl`,null!=n?n:"");const d=document.forms;return z.byId(null!==(u=null==d?void 0:d[e])&&void 0!==u?u:document.getElementById(e)).each((t=>{var n;const s=t.getAsElem(0).value,i=t.getAsElem(0).value.getAttribute("target");"null"!=r&&r&&t.getAsElem(0).value.setAttribute("target",r);const l=null===(n=null==s?void 0:s.onsubmit)||void 0===n?void 0:n.call(s,null);try{(l||void 0===l)&&s.submit()}catch(e){null===window||void 0===window||window.console.error(e)}finally{null==i||"null"==i?t.getAsElem(0).value.removeAttribute("target"):t.getAsElem(0).value.setAttribute("target",i),h.forEach((([t,n])=>{myfaces.oam.clearHiddenInput(e,t)})),myfaces.oam.clearHiddenInput(e,`${e}:_idcl`)}})),!1}}(Zt||(Zt={})),function(e){let t,n,r;e.specversion=4e5,e.implversion=0,e.separatorchar=function(){const e="#{facesContext.namingContainerSeparatorChar}";return e.match(/\#\{facesContext.namingContainerSeparatorChar\}/gi)?Kt.getSeparatorChar():e}(),e.contextpath="#{facesContext.externalContext.requestContextPath}",e.getProjectStage=function(){return Kt.getProjectStage()},e.getViewState=function(e){return Kt.getViewState(e)},e.getClientWindow=function(e){return Kt.getClientWindow(e)},function(e){e.request=function(e,t,n){Kt.request(e,t,n)},e.response=function(e,t){Kt.response(e,t)},e.addOnError=function(e){Kt.addOnError(e)},e.addOnEvent=function(e){Kt.addOnEvent(e)}}(t=e.ajax||(e.ajax={})),function(e){e.chain=function(e,t,...n){return Kt.chain(e,null!=t?t:null,...n)}}(n=e.util||(e.util={})),function(e){e.init=function(e,t,n,r,s,i,l,o,a){Yt.init(e,t,n,r,s,i,l,o,a)},e.open=function(e){Yt.open(e)},e.close=function(e){Yt.close(e)}}(r=e.push||(e.push={}))}(en||(en={})),function(e){e.ab=function(e,t,n,r,s,i={},l={}){var o,a;i||(i={}),l||(l={}),n&&(i[Ie]=null!==(o=null==i?void 0:i[Ie])&&void 0!==o?o:{},i[Ie][gt(me)]=n),r&&(i[Te]=r),s&&(i[ge]=s),i.params||(i.params={});for(let e in l)i.params[e]=l[e];(null!==(a=null===window||void 0===window?void 0:window.faces)&&void 0!==a?a:window.jsf).ajax.request(e,t,i)};const t=[];let n=null;e.onDomReady=function(e){"complete"!==document.readyState?(t.push(e),n||(n=()=>{window.removeEventListener("DOMContentLoaded",n),n=null;try{t.forEach((e=>e()))}finally{t.length=0}},window.addEventListener("DOMContentLoaded",n))):(n&&n(),e())},e.reserveNamespace=function(e){let t=window;const n=e.split(".");for(const e of n)t[e]=t[e]||{},t=t[e]},e.oam=Zt}(tn||(tn={}))}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r,s,i,l={};if(n.r(l),n.d(l,{faces:()=>o,myfaces:()=>a}),!window.faces){const e=n(563).J;window.faces=null!==(r=null===window||void 0===window?void 0:window.faces)&&void 0!==r?r:e}if(!(null===(s=null===window||void 0===window?void 0:window.myfaces)||void 0===s?void 0:s.ab)){const e=n(563).$;window.myfaces=null!==(i=null===window||void 0===window?void 0:window.myfaces)&&void 0!==i?i:{},Object.keys(e).forEach((t=>{var n,r;return window.myfaces[t]=null!==(r=null===(n=window.myfaces)||void 0===n?void 0:n[t])&&void 0!==r?r:e[t]}))}var o=window.faces,a=window.myfaces,u=window;for(var c in l)u[c]=l[c];l.__esModule&&Object.defineProperty(u,"__esModule",{value:!0})})();
3
3
  //# sourceMappingURL=faces.js.map
@@ -17,23 +17,6 @@
17
17
  * under the License.
18
18
  */
19
19
 
20
- /*!
21
- * Licensed to the Apache Software Foundation (ASF) under one or more
22
- * contributor license agreements. See the NOTICE file distributed with
23
- * this work for additional information regarding copyright ownership.
24
- * The ASF licenses this file to you under the Apache License, Version 2.0
25
- * (the "License"); you may not use this file except in compliance with
26
- * the License. You may obtain a copy of the License at
27
- *
28
- * http:// www.apache.org/licenses/LICENSE-2.0
29
- *
30
- * Unless required by applicable law or agreed to in writing, software
31
- * distributed under the License is distributed on an "AS IS" BASIS,
32
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33
- * See the License for the specific language governing permissions and
34
- * limitations under the License.
35
- */
36
-
37
20
  /*!
38
21
  * Licensed to the Apache Software Foundation (ASF) under one or more
39
22
  * contributor license agreements. See the NOTICE file distributed with