homebridge-config-ui-x 5.11.2-beta.2 → 5.11.2-beta.4

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 (246) hide show
  1. package/CHANGELOG.md +19 -2
  2. package/dist/core/auth/auth.controller.d.ts +4 -0
  3. package/dist/core/config/config.interfaces.d.ts +14 -0
  4. package/dist/core/config/config.service.d.ts +6 -0
  5. package/dist/core/config/config.service.js +8 -0
  6. package/dist/core/config/config.service.js.map +1 -1
  7. package/dist/core/config/config.startup.js +48 -17
  8. package/dist/core/config/config.startup.js.map +1 -1
  9. package/dist/core/feature-flags/feature-flags.registry.js +5 -0
  10. package/dist/core/feature-flags/feature-flags.registry.js.map +1 -1
  11. package/dist/core/homebridge-ipc/homebridge-ipc.service.js +1 -0
  12. package/dist/core/homebridge-ipc/homebridge-ipc.service.js.map +1 -1
  13. package/dist/core/spa/spa-html.service.d.ts +5 -0
  14. package/dist/core/spa/spa-html.service.js +32 -0
  15. package/dist/core/spa/spa-html.service.js.map +1 -0
  16. package/dist/core/spa/spa.filter.d.ts +3 -0
  17. package/dist/core/spa/spa.filter.js +22 -2
  18. package/dist/core/spa/spa.filter.js.map +1 -1
  19. package/dist/core/ssl/ssl-cert-generator.service.d.ts +15 -0
  20. package/dist/core/ssl/ssl-cert-generator.service.js +125 -0
  21. package/dist/core/ssl/ssl-cert-generator.service.js.map +1 -0
  22. package/dist/globalDefaults.js +3 -0
  23. package/dist/globalDefaults.js.map +1 -1
  24. package/dist/main.js +18 -4
  25. package/dist/main.js.map +1 -1
  26. package/dist/modules/accessories/accessories.controller.d.ts +1 -1
  27. package/dist/modules/accessories/accessories.interfaces.d.ts +94 -0
  28. package/dist/modules/accessories/accessories.interfaces.js +2 -0
  29. package/dist/modules/accessories/accessories.interfaces.js.map +1 -0
  30. package/dist/modules/accessories/accessories.module.js +2 -0
  31. package/dist/modules/accessories/accessories.module.js.map +1 -1
  32. package/dist/modules/accessories/accessories.service.d.ts +21 -3
  33. package/dist/modules/accessories/accessories.service.js +280 -17
  34. package/dist/modules/accessories/accessories.service.js.map +1 -1
  35. package/dist/modules/child-bridges/child-bridges.interfaces.d.ts +9 -0
  36. package/dist/modules/config-editor/config-editor.controller.d.ts +4 -0
  37. package/dist/modules/config-editor/config-editor.controller.js +64 -0
  38. package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
  39. package/dist/modules/config-editor/config-editor.service.d.ts +6 -1
  40. package/dist/modules/config-editor/config-editor.service.js +45 -1
  41. package/dist/modules/config-editor/config-editor.service.js.map +1 -1
  42. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +1 -1
  43. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
  44. package/dist/modules/plugins/plugins.service.js +15 -0
  45. package/dist/modules/plugins/plugins.service.js.map +1 -1
  46. package/dist/modules/server/server.controller.d.ts +50 -0
  47. package/dist/modules/server/server.controller.js +201 -2
  48. package/dist/modules/server/server.controller.js.map +1 -1
  49. package/dist/modules/server/server.service.d.ts +48 -0
  50. package/dist/modules/server/server.service.js +502 -14
  51. package/dist/modules/server/server.service.js.map +1 -1
  52. package/dist/modules/status/status.gateway.d.ts +2 -0
  53. package/dist/modules/status/status.interfaces.d.ts +11 -0
  54. package/dist/modules/status/status.service.d.ts +4 -1
  55. package/dist/modules/status/status.service.js +21 -2
  56. package/dist/modules/status/status.service.js.map +1 -1
  57. package/docs/matter-todo.md +15 -0
  58. package/docs/ssl-upload-pr.md +103 -0
  59. package/package.json +3 -1
  60. package/public/3rdpartylicenses.txt +595 -621
  61. package/public/assets/matter.svg +8 -0
  62. package/public/assets/plugin-ui-utils/ui.js +3 -0
  63. package/public/assets/plugin-ui-utils/ui.js.map +1 -1
  64. package/public/chunk-2TQEV57U.js +2 -0
  65. package/public/chunk-2Y6QBPFY.js +1 -0
  66. package/public/chunk-3LKYOCGJ.js +1 -0
  67. package/public/chunk-3YTNATAH.js +1 -0
  68. package/public/chunk-42Y35W3J.js +2 -0
  69. package/public/chunk-47QTMPRY.js +1 -0
  70. package/public/chunk-4KXPUEE3.js +4 -0
  71. package/public/chunk-4PQ5WRGK.js +1 -0
  72. package/public/chunk-4TAGCB7R.js +1 -0
  73. package/public/chunk-4VLAXCSY.js +1 -0
  74. package/public/chunk-5K3S6ZXB.js +1 -0
  75. package/public/chunk-6BRZAIW2.js +3 -0
  76. package/public/chunk-6QJUZNZL.js +1 -0
  77. package/public/chunk-6ZOSTYPR.js +1 -0
  78. package/public/{chunk-ZV26JTV7.js → chunk-7JNVXXNR.js} +1 -1
  79. package/public/chunk-7PPGGAHV.js +1 -0
  80. package/public/chunk-AM5CKSLZ.js +1 -0
  81. package/public/chunk-B4AJQJMI.js +1 -0
  82. package/public/chunk-BBRC6PRL.js +1 -0
  83. package/public/chunk-BGCYR25X.js +1 -0
  84. package/public/chunk-BHA7V2NQ.js +1 -0
  85. package/public/{chunk-KI6BE77G.js → chunk-BMOLDRJ3.js} +1 -1
  86. package/public/chunk-BVJS76CN.js +1 -0
  87. package/public/chunk-CNUIQJSO.js +1 -0
  88. package/public/chunk-CPECPTSN.js +1 -0
  89. package/public/{chunk-75KR2TK6.js → chunk-DBMKB5Z2.js} +1 -1
  90. package/public/chunk-DEM3FH7C.js +1 -0
  91. package/public/chunk-E35SHTFY.js +1 -0
  92. package/public/chunk-EAYA44IV.js +1 -0
  93. package/public/chunk-EBHP3YOF.js +1 -0
  94. package/public/chunk-EMF6ZINV.js +4 -0
  95. package/public/chunk-FJB6YCFU.js +1 -0
  96. package/public/chunk-FKJY3Z2V.js +1 -0
  97. package/public/chunk-FQDRGOO5.js +1 -0
  98. package/public/chunk-FRMRAPF2.js +1 -0
  99. package/public/chunk-FYHEIYSO.js +5 -0
  100. package/public/chunk-GEQRIXEF.js +1 -0
  101. package/public/chunk-GJ42U6LP.js +16 -0
  102. package/public/chunk-GT2YL2TI.js +1 -0
  103. package/public/chunk-GTIVJH6Y.js +1 -0
  104. package/public/chunk-GYMWB5SQ.js +1 -0
  105. package/public/chunk-H2D3SCVU.js +1 -0
  106. package/public/{chunk-OMFNURQZ.js → chunk-H7F7H5MW.js} +1 -1
  107. package/public/chunk-HKOUIAFO.js +1 -0
  108. package/public/chunk-I5V7VF5M.js +1 -0
  109. package/public/chunk-IBFLM7UM.js +1 -0
  110. package/public/chunk-IZHFI46L.js +2 -0
  111. package/public/chunk-JNSPIONO.js +1 -0
  112. package/public/chunk-JUCPYKUR.js +1 -0
  113. package/public/chunk-KJH2IPMR.js +1 -0
  114. package/public/chunk-KPSGNAPN.js +1 -0
  115. package/public/chunk-LH4WRTR2.js +1 -0
  116. package/public/chunk-LHXNE56J.js +1 -0
  117. package/public/chunk-LOEOVQRM.js +1 -0
  118. package/public/chunk-LRB7FQNQ.js +1 -0
  119. package/public/chunk-LTYAICHT.js +1 -0
  120. package/public/chunk-LVBVUIJY.js +12 -0
  121. package/public/chunk-MKV5RAJQ.js +4 -0
  122. package/public/chunk-MPQEE6FH.js +1 -0
  123. package/public/chunk-MRPQNEON.js +35 -0
  124. package/public/chunk-MS4K4KAK.js +5 -0
  125. package/public/chunk-N6AN65NK.js +3 -0
  126. package/public/chunk-NCLG2ZY5.js +1 -0
  127. package/public/chunk-OHJQJ73S.js +1 -0
  128. package/public/chunk-P3DOEH3R.js +1 -0
  129. package/public/chunk-PEOTW7KR.js +1 -0
  130. package/public/chunk-PQM33D72.js +1 -0
  131. package/public/chunk-Q4PUZM2R.js +1 -0
  132. package/public/chunk-QBG7SKRK.js +68 -0
  133. package/public/chunk-QGLAR7UC.js +1 -0
  134. package/public/chunk-QK4CWVVD.js +1 -0
  135. package/public/chunk-QPGHC7OK.js +1 -0
  136. package/public/chunk-RAG53DHZ.js +1 -0
  137. package/public/chunk-RHJRKBK2.js +1 -0
  138. package/public/chunk-RQ42YKAP.js +1 -0
  139. package/public/chunk-S4BMZ4C4.js +1 -0
  140. package/public/chunk-S4O5HRCM.js +1 -0
  141. package/public/chunk-SE6AXFTZ.js +1 -0
  142. package/public/chunk-SIODBMHU.js +1 -0
  143. package/public/chunk-SS725Q7L.js +1 -0
  144. package/public/chunk-STXA2UWR.js +1 -0
  145. package/public/chunk-SVEGWVQJ.js +1 -0
  146. package/public/chunk-T472BWYK.js +1 -0
  147. package/public/chunk-TPGJVI7J.js +1 -0
  148. package/public/chunk-TRDYZJYI.js +1 -0
  149. package/public/chunk-TTX3XSDC.js +1 -0
  150. package/public/chunk-TVEZZ2CK.js +1 -0
  151. package/public/chunk-UDXPJS32.js +1 -0
  152. package/public/chunk-UO7KCTHV.js +1 -0
  153. package/public/chunk-UOOJPKZJ.js +1 -0
  154. package/public/chunk-VAD47NOZ.js +1 -0
  155. package/public/chunk-VBQ2CSUE.js +1 -0
  156. package/public/chunk-VWBS6KRT.js +1 -0
  157. package/public/chunk-VYAAI7PY.js +1 -0
  158. package/public/chunk-WBTFILXV.js +19 -0
  159. package/public/chunk-WO6QHRQI.js +1 -0
  160. package/public/chunk-WOMMYJV2.js +1 -0
  161. package/public/chunk-WOXYSKNU.js +1 -0
  162. package/public/{chunk-BKCIVF4W.js → chunk-WX345PMX.js} +52 -2
  163. package/public/chunk-XGK5YFH6.js +19 -0
  164. package/public/chunk-XLJ6VVK3.js +8 -0
  165. package/public/chunk-XPSIQPO4.js +1 -0
  166. package/public/chunk-XQXAVYM6.js +1 -0
  167. package/public/chunk-YBGB3IOQ.js +1 -0
  168. package/public/chunk-YHH6UACV.js +1 -0
  169. package/public/chunk-YLRX4V4V.js +1 -0
  170. package/public/chunk-YM6RL7NW.js +1 -0
  171. package/public/chunk-YMEXNW5V.js +1 -0
  172. package/public/chunk-YSJHLHJ6.js +1 -0
  173. package/public/chunk-ZCGZM7LU.js +1 -0
  174. package/public/chunk-ZDUAXPNP.js +1 -0
  175. package/public/index.html +2 -2
  176. package/public/main-SPPQL5YI.js +1 -0
  177. package/public/media/matter-P563JGDL.svg +8 -0
  178. package/public/polyfills-34U4WL3Z.js +1 -0
  179. package/public/styles-CT2LPGES.css +1 -0
  180. package/scripts/extract-plugin-alias.js +53 -2
  181. package/public/chunk-2VYCMFLK.js +0 -1
  182. package/public/chunk-337WAYBF.js +0 -1
  183. package/public/chunk-3F6KNL45.js +0 -5
  184. package/public/chunk-3GUIMBZA.js +0 -50
  185. package/public/chunk-4BH7J5ZU.js +0 -1
  186. package/public/chunk-4MSKGZXZ.js +0 -1
  187. package/public/chunk-4STYOKXR.js +0 -1
  188. package/public/chunk-5GRM2PNI.js +0 -8
  189. package/public/chunk-6C5CYDDU.js +0 -1
  190. package/public/chunk-6T52JN5R.js +0 -1
  191. package/public/chunk-7EKDGIG7.js +0 -1
  192. package/public/chunk-7O3SPIWC.js +0 -1
  193. package/public/chunk-ACK5QKZR.js +0 -1
  194. package/public/chunk-ADJ6TEYQ.js +0 -5
  195. package/public/chunk-ADWZU2CD.js +0 -1
  196. package/public/chunk-AGDDSLXN.js +0 -1
  197. package/public/chunk-ASZKPQUN.js +0 -1
  198. package/public/chunk-AZY2DNUN.js +0 -1
  199. package/public/chunk-B6MBMYJR.js +0 -1
  200. package/public/chunk-BBLJIMXX.js +0 -1
  201. package/public/chunk-BON2K2BD.js +0 -2
  202. package/public/chunk-BRP3EHP7.js +0 -1
  203. package/public/chunk-C5VP7CRC.js +0 -1
  204. package/public/chunk-C6X7E5CS.js +0 -1
  205. package/public/chunk-CM3N3C3W.js +0 -1
  206. package/public/chunk-CV2KW5FI.js +0 -1
  207. package/public/chunk-EDQF53QR.js +0 -1
  208. package/public/chunk-EZJQ5APU.js +0 -1
  209. package/public/chunk-FRNPHIV3.js +0 -1
  210. package/public/chunk-GBTKBQ2X.js +0 -16
  211. package/public/chunk-HDF4JHFI.js +0 -4
  212. package/public/chunk-JEUVQW5P.js +0 -1
  213. package/public/chunk-KWAS7MXI.js +0 -1
  214. package/public/chunk-KWC5QURK.js +0 -8
  215. package/public/chunk-KXNC6WH6.js +0 -1
  216. package/public/chunk-MMBLECEN.js +0 -1
  217. package/public/chunk-NQB7BEZZ.js +0 -1
  218. package/public/chunk-OKAPP6YO.js +0 -1
  219. package/public/chunk-OM7GHRRK.js +0 -1
  220. package/public/chunk-OOM2PIRM.js +0 -5
  221. package/public/chunk-OZKGVJ4N.js +0 -1
  222. package/public/chunk-PT24GQ5K.js +0 -1
  223. package/public/chunk-QPI2YWGC.js +0 -1
  224. package/public/chunk-QQRM2O4S.js +0 -3
  225. package/public/chunk-QXD4RXA4.js +0 -1
  226. package/public/chunk-QZU43P2A.js +0 -1
  227. package/public/chunk-R3Y3VSF7.js +0 -4
  228. package/public/chunk-R7Q4CXAE.js +0 -1
  229. package/public/chunk-RAG7VYNH.js +0 -40
  230. package/public/chunk-RY3E4AUI.js +0 -1
  231. package/public/chunk-SCWBTFUY.js +0 -1
  232. package/public/chunk-SRFINKMY.js +0 -1
  233. package/public/chunk-TRDROX2J.js +0 -1
  234. package/public/chunk-UH7ZNLL5.js +0 -19
  235. package/public/chunk-V2WJ2SKN.js +0 -1
  236. package/public/chunk-VZ3XY34I.js +0 -2
  237. package/public/chunk-W663VLRG.js +0 -1
  238. package/public/chunk-WDXU4PPN.js +0 -1
  239. package/public/chunk-WEXOQCVG.js +0 -1
  240. package/public/chunk-XDFBUXFD.js +0 -1
  241. package/public/chunk-XPGJPK66.js +0 -4
  242. package/public/chunk-YXLLPJEL.js +0 -1
  243. package/public/chunk-ZXUIFQS4.js +0 -51
  244. package/public/main-YD5INHXP.js +0 -1
  245. package/public/polyfills-5KWHJ7II.js +0 -2
  246. package/public/styles-7EFV5QBG.css +0 -1
@@ -0,0 +1,35 @@
1
+ import{C as nf,D as rf,a as Zy,b as Yy,c as _s,e as Wr,f as Xy,h as Qy,i as e0,k as t0,l as Ul,m as n0,o as r0,p as i0,q as so,t as o0,u as Wl,v as tf,w as Gl}from"./chunk-UO7KCTHV.js";import{d as Br,e as xt,m as Ur,o as Ky,y as Jy}from"./chunk-2TQEV57U.js";import{$ as Fl,Aa as rr,C as Ud,Ca as zy,Ea as Hy,Fb as E,G as qy,Gb as ee,Hb as X,Ib as oe,Mb as Zd,Nb as Yd,Nc as zn,Oc as B,P as Al,Pc as Bl,Q as Wd,Qc as Uy,R as Ln,Rb as gt,S as jy,Sc as cn,Ua as $e,W as Gd,Wc as bi,X as Je,Xb as rt,Xc as Wy,Y as Cn,Yc as Gy,Za as L,Zb as j,_ as Vn,a as gi,aa as U,bc as jl,c as _i,cc as Ll,d as Ae,db as Kd,dc as Vl,e as no,ea as Ly,ec as zl,f as Bd,fc as Hl,ga as ct,gb as ro,h as Ry,ha as dt,hb as ql,hc as Dn,i as My,ib as gs,ic as wt,jc as Y,ka as ms,kb as ir,kc as un,la as yi,lc as io,m as Ny,mc as By,nb as Fe,o as Nl,oa as ln,ob as Sn,pa as Hr,pb as vi,rc as Xd,sa as nr,sc as Qd,tb as se,tc as ef,u as ky,wc as oo,x as Ay,xa as Kt,xb as Jd,xc as qt,y as kl,ya as Vy,yb as De,z as Fy}from"./chunk-MKV5RAJQ.js";import{a as ue,b as Ke,e as v,g as Gt,h as to}from"./chunk-B4AJQJMI.js";var p0=v(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.formatNames=sr.fastFormats=sr.fullFormats=void 0;function or(e,n){return{validate:e,compare:n}}sr.fullFormats={date:or(u0,lf),time:or(sf(!0),uf),"date-time":or(s0(!0),d0),"iso-time":or(sf(),c0),"iso-date-time":or(s0(),f0),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:SF,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:RF,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:DF,int32:{type:"number",validate:EF},int64:{type:"number",validate:TF},float:{type:"number",validate:l0},double:{type:"number",validate:l0},password:!0,binary:!0};sr.fastFormats=Ke(ue({},sr.fullFormats),{date:or(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,lf),time:or(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uf),"date-time":or(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,d0),"iso-time":or(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c0),"iso-date-time":or(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,f0),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i});sr.formatNames=Object.keys(sr.fullFormats);function bF(e){return e%4===0&&(e%100!==0||e%400===0)}var wF=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,xF=[0,31,28,31,30,31,30,31,31,30,31,30,31];function u0(e){let n=wF.exec(e);if(!n)return!1;let t=+n[1],r=+n[2],i=+n[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&bF(t)?29:xF[r])}function lf(e,n){if(e&&n)return e>n?1:e<n?-1:0}var of=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function sf(e){return function(t){let r=of.exec(t);if(!r)return!1;let i=+r[1],a=+r[2],l=+r[3],u=r[4],d=r[5]==="-"?-1:1,p=+(r[6]||0),m=+(r[7]||0);if(p>23||m>59||e&&!u)return!1;if(i<=23&&a<=59&&l<60)return!0;let _=a-m*d,w=i-p*d-(_<0?1:0);return(w===23||w===-1)&&(_===59||_===-1)&&l<61}}function uf(e,n){if(!(e&&n))return;let t=new Date("2020-01-01T"+e).valueOf(),r=new Date("2020-01-01T"+n).valueOf();if(t&&r)return t-r}function c0(e,n){if(!(e&&n))return;let t=of.exec(e),r=of.exec(n);if(t&&r)return e=t[1]+t[2]+t[3],n=r[1]+r[2]+r[3],e>n?1:e<n?-1:0}var af=/t|\s/i;function s0(e){let n=sf(e);return function(r){let i=r.split(af);return i.length===2&&u0(i[0])&&n(i[1])}}function d0(e,n){if(!(e&&n))return;let t=new Date(e).valueOf(),r=new Date(n).valueOf();if(t&&r)return t-r}function f0(e,n){if(!(e&&n))return;let[t,r]=e.split(af),[i,a]=n.split(af),l=lf(t,i);if(l!==void 0)return l||uf(r,a)}var IF=/\/|:/,CF=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function SF(e){return IF.test(e)&&CF.test(e)}var a0=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function DF(e){return a0.lastIndex=0,a0.test(e)}var OF=-(2**31),PF=2**31-1;function EF(e){return Number.isInteger(e)&&e<=PF&&e>=OF}function TF(e){return Number.isInteger(e)}function l0(){return!0}var $F=/[^\\]\\Z/;function RF(e){if($F.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var bs=v(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.regexpCode=Me.getEsmExportName=Me.getProperty=Me.safeStringify=Me.stringify=Me.strConcat=Me.addCodeArg=Me.str=Me._=Me.nil=Me._Code=Me.Name=Me.IDENTIFIER=Me._CodeOrName=void 0;var ys=class{};Me._CodeOrName=ys;Me.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var wi=class extends ys{constructor(n){if(super(),!Me.IDENTIFIER.test(n))throw new Error("CodeGen: name must be a valid identifier");this.str=n}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Me.Name=wi;var On=class extends ys{constructor(n){super(),this._items=typeof n=="string"?[n]:n}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let n=this._items[0];return n===""||n==='""'}get str(){var n;return(n=this._str)!==null&&n!==void 0?n:this._str=this._items.reduce((t,r)=>`${t}${r}`,"")}get names(){var n;return(n=this._names)!==null&&n!==void 0?n:this._names=this._items.reduce((t,r)=>(r instanceof wi&&(t[r.str]=(t[r.str]||0)+1),t),{})}};Me._Code=On;Me.nil=new On("");function h0(e,...n){let t=[e[0]],r=0;for(;r<n.length;)df(t,n[r]),t.push(e[++r]);return new On(t)}Me._=h0;var cf=new On("+");function m0(e,...n){let t=[vs(e[0])],r=0;for(;r<n.length;)t.push(cf),df(t,n[r]),t.push(cf,vs(e[++r]));return MF(t),new On(t)}Me.str=m0;function df(e,n){n instanceof On?e.push(...n._items):n instanceof wi?e.push(n):e.push(AF(n))}Me.addCodeArg=df;function MF(e){let n=1;for(;n<e.length-1;){if(e[n]===cf){let t=NF(e[n-1],e[n+1]);if(t!==void 0){e.splice(n-1,3,t);continue}e[n++]="+"}n++}}function NF(e,n){if(n==='""')return e;if(e==='""')return n;if(typeof e=="string")return n instanceof wi||e[e.length-1]!=='"'?void 0:typeof n!="string"?`${e.slice(0,-1)}${n}"`:n[0]==='"'?e.slice(0,-1)+n.slice(1):void 0;if(typeof n=="string"&&n[0]==='"'&&!(e instanceof wi))return`"${e}${n.slice(1)}`}function kF(e,n){return n.emptyStr()?e:e.emptyStr()?n:m0`${e}${n}`}Me.strConcat=kF;function AF(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:vs(Array.isArray(e)?e.join(","):e)}function FF(e){return new On(vs(e))}Me.stringify=FF;function vs(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Me.safeStringify=vs;function qF(e){return typeof e=="string"&&Me.IDENTIFIER.test(e)?new On(`.${e}`):h0`[${e}]`}Me.getProperty=qF;function jF(e){if(typeof e=="string"&&Me.IDENTIFIER.test(e))return new On(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Me.getEsmExportName=jF;function LF(e){return new On(e.toString())}Me.regexpCode=LF});var hf=v(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.ValueScope=Zt.ValueScopeName=Zt.Scope=Zt.varKinds=Zt.UsedValueState=void 0;var Jt=bs(),ff=class extends Error{constructor(n){super(`CodeGen: "code" for ${n} not defined`),this.value=n.value}},Kl=(function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e})(Kl||(Zt.UsedValueState=Kl={}));Zt.varKinds={const:new Jt.Name("const"),let:new Jt.Name("let"),var:new Jt.Name("var")};var Jl=class{constructor({prefixes:n,parent:t}={}){this._names={},this._prefixes=n,this._parent=t}toName(n){return n instanceof Jt.Name?n:this.name(n)}name(n){return new Jt.Name(this._newName(n))}_newName(n){let t=this._names[n]||this._nameGroup(n);return`${n}${t.index++}`}_nameGroup(n){var t,r;if(!((r=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||r===void 0)&&r.has(n)||this._prefixes&&!this._prefixes.has(n))throw new Error(`CodeGen: prefix "${n}" is not allowed in this scope`);return this._names[n]={prefix:n,index:0}}};Zt.Scope=Jl;var Zl=class extends Jt.Name{constructor(n,t){super(t),this.prefix=n}setValue(n,{property:t,itemIndex:r}){this.value=n,this.scopePath=(0,Jt._)`.${new Jt.Name(t)}[${r}]`}};Zt.ValueScopeName=Zl;var VF=(0,Jt._)`\n`,pf=class extends Jl{constructor(n){super(n),this._values={},this._scope=n.scope,this.opts=Ke(ue({},n),{_n:n.lines?VF:Jt.nil})}get(){return this._scope}name(n){return new Zl(n,this._newName(n))}value(n,t){var r;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(n),{prefix:a}=i,l=(r=t.key)!==null&&r!==void 0?r:t.ref,u=this._values[a];if(u){let m=u.get(l);if(m)return m}else u=this._values[a]=new Map;u.set(l,i);let d=this._scope[a]||(this._scope[a]=[]),p=d.length;return d[p]=t.ref,i.setValue(t,{property:a,itemIndex:p}),i}getValue(n,t){let r=this._values[n];if(r)return r.get(t)}scopeRefs(n,t=this._values){return this._reduceValues(t,r=>{if(r.scopePath===void 0)throw new Error(`CodeGen: name "${r}" has no value`);return(0,Jt._)`${n}${r.scopePath}`})}scopeCode(n=this._values,t,r){return this._reduceValues(n,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},t,r)}_reduceValues(n,t,r={},i){let a=Jt.nil;for(let l in n){let u=n[l];if(!u)continue;let d=r[l]=r[l]||new Map;u.forEach(p=>{if(d.has(p))return;d.set(p,Kl.Started);let m=t(p);if(m){let _=this.opts.es5?Zt.varKinds.var:Zt.varKinds.const;a=(0,Jt._)`${a}${_} ${p} = ${m};${this.opts._n}`}else if(m=i?.(p))a=(0,Jt._)`${a}${m}${this.opts._n}`;else throw new ff(p);d.set(p,Kl.Completed)})}return a}};Zt.ValueScope=pf});var ae=v(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.or=Ie.and=Ie.not=Ie.CodeGen=Ie.operators=Ie.varKinds=Ie.ValueScopeName=Ie.ValueScope=Ie.Scope=Ie.Name=Ie.regexpCode=Ie.stringify=Ie.getProperty=Ie.nil=Ie.strConcat=Ie.str=Ie._=void 0;var Te=bs(),Hn=hf(),Gr=bs();Object.defineProperty(Ie,"_",{enumerable:!0,get:function(){return Gr._}});Object.defineProperty(Ie,"str",{enumerable:!0,get:function(){return Gr.str}});Object.defineProperty(Ie,"strConcat",{enumerable:!0,get:function(){return Gr.strConcat}});Object.defineProperty(Ie,"nil",{enumerable:!0,get:function(){return Gr.nil}});Object.defineProperty(Ie,"getProperty",{enumerable:!0,get:function(){return Gr.getProperty}});Object.defineProperty(Ie,"stringify",{enumerable:!0,get:function(){return Gr.stringify}});Object.defineProperty(Ie,"regexpCode",{enumerable:!0,get:function(){return Gr.regexpCode}});Object.defineProperty(Ie,"Name",{enumerable:!0,get:function(){return Gr.Name}});var tu=hf();Object.defineProperty(Ie,"Scope",{enumerable:!0,get:function(){return tu.Scope}});Object.defineProperty(Ie,"ValueScope",{enumerable:!0,get:function(){return tu.ValueScope}});Object.defineProperty(Ie,"ValueScopeName",{enumerable:!0,get:function(){return tu.ValueScopeName}});Object.defineProperty(Ie,"varKinds",{enumerable:!0,get:function(){return tu.varKinds}});Ie.operators={GT:new Te._Code(">"),GTE:new Te._Code(">="),LT:new Te._Code("<"),LTE:new Te._Code("<="),EQ:new Te._Code("==="),NEQ:new Te._Code("!=="),NOT:new Te._Code("!"),OR:new Te._Code("||"),AND:new Te._Code("&&"),ADD:new Te._Code("+")};var xr=class{optimizeNodes(){return this}optimizeNames(n,t){return this}},mf=class extends xr{constructor(n,t,r){super(),this.varKind=n,this.name=t,this.rhs=r}render({es5:n,_n:t}){let r=n?Hn.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(n,t){if(n[this.name.str])return this.rhs&&(this.rhs=ao(this.rhs,n,t)),this}get names(){return this.rhs instanceof Te._CodeOrName?this.rhs.names:{}}},Xl=class extends xr{constructor(n,t,r){super(),this.lhs=n,this.rhs=t,this.sideEffects=r}render({_n:n}){return`${this.lhs} = ${this.rhs};`+n}optimizeNames(n,t){if(!(this.lhs instanceof Te.Name&&!n[this.lhs.str]&&!this.sideEffects))return this.rhs=ao(this.rhs,n,t),this}get names(){let n=this.lhs instanceof Te.Name?{}:ue({},this.lhs.names);return eu(n,this.rhs)}},gf=class extends Xl{constructor(n,t,r,i){super(n,r,i),this.op=t}render({_n:n}){return`${this.lhs} ${this.op}= ${this.rhs};`+n}},_f=class extends xr{constructor(n){super(),this.label=n,this.names={}}render({_n:n}){return`${this.label}:`+n}},yf=class extends xr{constructor(n){super(),this.label=n,this.names={}}render({_n:n}){return`break${this.label?` ${this.label}`:""};`+n}},vf=class extends xr{constructor(n){super(),this.error=n}render({_n:n}){return`throw ${this.error};`+n}get names(){return this.error.names}},bf=class extends xr{constructor(n){super(),this.code=n}render({_n:n}){return`${this.code};`+n}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(n,t){return this.code=ao(this.code,n,t),this}get names(){return this.code instanceof Te._CodeOrName?this.code.names:{}}},ws=class extends xr{constructor(n=[]){super(),this.nodes=n}render(n){return this.nodes.reduce((t,r)=>t+r.render(n),"")}optimizeNodes(){let{nodes:n}=this,t=n.length;for(;t--;){let r=n[t].optimizeNodes();Array.isArray(r)?n.splice(t,1,...r):r?n[t]=r:n.splice(t,1)}return n.length>0?this:void 0}optimizeNames(n,t){let{nodes:r}=this,i=r.length;for(;i--;){let a=r[i];a.optimizeNames(n,t)||(zF(n,a.names),r.splice(i,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((n,t)=>xi(n,t.names),{})}},Ir=class extends ws{render(n){return"{"+n._n+super.render(n)+"}"+n._n}},wf=class extends ws{},xf=(()=>{class e extends Ir{}return e.kind="else",e})(),Yl=(()=>{class e extends Ir{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let i=r.optimizeNodes();r=this.else=Array.isArray(i)?new xf(i):i}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(b0(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var i;if(this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=ao(this.condition,t,r),this}get names(){let t=super.names;return eu(t,this.condition),this.else&&xi(t,this.else.names),t}}return e.kind="if",e})(),nu=(()=>{class e extends Ir{}return e.kind="for",e})(),If=class extends nu{constructor(n){super(),this.iteration=n}render(n){return`for(${this.iteration})`+super.render(n)}optimizeNames(n,t){if(super.optimizeNames(n,t))return this.iteration=ao(this.iteration,n,t),this}get names(){return xi(super.names,this.iteration.names)}},Cf=class extends nu{constructor(n,t,r,i){super(),this.varKind=n,this.name=t,this.from=r,this.to=i}render(n){let t=n.es5?Hn.varKinds.var:this.varKind,{name:r,from:i,to:a}=this;return`for(${t} ${r}=${i}; ${r}<${a}; ${r}++)`+super.render(n)}get names(){let n=eu(super.names,this.from);return eu(n,this.to)}},Ql=class extends nu{constructor(n,t,r,i){super(),this.loop=n,this.varKind=t,this.name=r,this.iterable=i}render(n){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(n)}optimizeNames(n,t){if(super.optimizeNames(n,t))return this.iterable=ao(this.iterable,n,t),this}get names(){return xi(super.names,this.iterable.names)}},g0=(()=>{class e extends Ir{constructor(t,r,i){super(),this.name=t,this.args=r,this.async=i}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),_0=(()=>{class e extends ws{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Sf=class extends Ir{render(n){let t="try"+super.render(n);return this.catch&&(t+=this.catch.render(n)),this.finally&&(t+=this.finally.render(n)),t}optimizeNodes(){var n,t;return super.optimizeNodes(),(n=this.catch)===null||n===void 0||n.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(n,t){var r,i;return super.optimizeNames(n,t),(r=this.catch)===null||r===void 0||r.optimizeNames(n,t),(i=this.finally)===null||i===void 0||i.optimizeNames(n,t),this}get names(){let n=super.names;return this.catch&&xi(n,this.catch.names),this.finally&&xi(n,this.finally.names),n}},y0=(()=>{class e extends Ir{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),v0=(()=>{class e extends Ir{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Df=class{constructor(n,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Ke(ue({},t),{_n:t.lines?`
2
+ `:""}),this._extScope=n,this._scope=new Hn.Scope({parent:n}),this._nodes=[new wf]}toString(){return this._root.render(this.opts)}name(n){return this._scope.name(n)}scopeName(n){return this._extScope.name(n)}scopeValue(n,t){let r=this._extScope.value(n,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(n,t){return this._extScope.getValue(n,t)}scopeRefs(n){return this._extScope.scopeRefs(n,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(n,t,r,i){let a=this._scope.toName(t);return r!==void 0&&i&&(this._constants[a.str]=r),this._leafNode(new mf(n,a,r)),a}const(n,t,r){return this._def(Hn.varKinds.const,n,t,r)}let(n,t,r){return this._def(Hn.varKinds.let,n,t,r)}var(n,t,r){return this._def(Hn.varKinds.var,n,t,r)}assign(n,t,r){return this._leafNode(new Xl(n,t,r))}add(n,t){return this._leafNode(new gf(n,Ie.operators.ADD,t))}code(n){return typeof n=="function"?n():n!==Te.nil&&this._leafNode(new bf(n)),this}object(...n){let t=["{"];for(let[r,i]of n)t.length>1&&t.push(","),t.push(r),(r!==i||this.opts.es5)&&(t.push(":"),(0,Te.addCodeArg)(t,i));return t.push("}"),new Te._Code(t)}if(n,t,r){if(this._blockNode(new Yl(n)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(n){return this._elseNode(new Yl(n))}else(){return this._elseNode(new xf)}endIf(){return this._endBlockNode(Yl,xf)}_for(n,t){return this._blockNode(n),t&&this.code(t).endFor(),this}for(n,t){return this._for(new If(n),t)}forRange(n,t,r,i,a=this.opts.es5?Hn.varKinds.var:Hn.varKinds.let){let l=this._scope.toName(n);return this._for(new Cf(a,l,t,r),()=>i(l))}forOf(n,t,r,i=Hn.varKinds.const){let a=this._scope.toName(n);if(this.opts.es5){let l=t instanceof Te.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,Te._)`${l}.length`,u=>{this.var(a,(0,Te._)`${l}[${u}]`),r(a)})}return this._for(new Ql("of",i,a,t),()=>r(a))}forIn(n,t,r,i=this.opts.es5?Hn.varKinds.var:Hn.varKinds.const){if(this.opts.ownProperties)return this.forOf(n,(0,Te._)`Object.keys(${t})`,r);let a=this._scope.toName(n);return this._for(new Ql("in",i,a,t),()=>r(a))}endFor(){return this._endBlockNode(nu)}label(n){return this._leafNode(new _f(n))}break(n){return this._leafNode(new yf(n))}return(n){let t=new _0;if(this._blockNode(t),this.code(n),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_0)}try(n,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Sf;if(this._blockNode(i),this.code(n),t){let a=this.name("e");this._currNode=i.catch=new y0(a),t(a)}return r&&(this._currNode=i.finally=new v0,this.code(r)),this._endBlockNode(y0,v0)}throw(n){return this._leafNode(new vf(n))}block(n,t){return this._blockStarts.push(this._nodes.length),n&&this.code(n).endBlock(t),this}endBlock(n){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let r=this._nodes.length-t;if(r<0||n!==void 0&&r!==n)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${n} expected`);return this._nodes.length=t,this}func(n,t=Te.nil,r,i){return this._blockNode(new g0(n,t,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(g0)}optimize(n=1){for(;n-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(n){return this._currNode.nodes.push(n),this}_blockNode(n){this._currNode.nodes.push(n),this._nodes.push(n)}_endBlockNode(n,t){let r=this._currNode;if(r instanceof n||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${n.kind}/${t.kind}`:n.kind}"`)}_elseNode(n){let t=this._currNode;if(!(t instanceof Yl))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=n,this}get _root(){return this._nodes[0]}get _currNode(){let n=this._nodes;return n[n.length-1]}set _currNode(n){let t=this._nodes;t[t.length-1]=n}};Ie.CodeGen=Df;function xi(e,n){for(let t in n)e[t]=(e[t]||0)+(n[t]||0);return e}function eu(e,n){return n instanceof Te._CodeOrName?xi(e,n.names):e}function ao(e,n,t){if(e instanceof Te.Name)return r(e);if(!i(e))return e;return new Te._Code(e._items.reduce((a,l)=>(l instanceof Te.Name&&(l=r(l)),l instanceof Te._Code?a.push(...l._items):a.push(l),a),[]));function r(a){let l=t[a.str];return l===void 0||n[a.str]!==1?a:(delete n[a.str],l)}function i(a){return a instanceof Te._Code&&a._items.some(l=>l instanceof Te.Name&&n[l.str]===1&&t[l.str]!==void 0)}}function zF(e,n){for(let t in n)e[t]=(e[t]||0)-(n[t]||0)}function b0(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Te._)`!${Of(e)}`}Ie.not=b0;var HF=w0(Ie.operators.AND);function BF(...e){return e.reduce(HF)}Ie.and=BF;var UF=w0(Ie.operators.OR);function WF(...e){return e.reduce(UF)}Ie.or=WF;function w0(e){return(n,t)=>n===Te.nil?t:t===Te.nil?n:(0,Te._)`${Of(n)} ${e} ${Of(t)}`}function Of(e){return e instanceof Te.Name?e:(0,Te._)`(${e})`}});var Oe=v(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.checkStrictMode=Ce.getErrorPath=Ce.Type=Ce.useFunc=Ce.setEvaluated=Ce.evaluatedPropsToName=Ce.mergeEvaluated=Ce.eachItem=Ce.unescapeJsonPointer=Ce.escapeJsonPointer=Ce.escapeFragment=Ce.unescapeFragment=Ce.schemaRefOrVal=Ce.schemaHasRulesButRef=Ce.schemaHasRules=Ce.checkUnknownRules=Ce.alwaysValidSchema=Ce.toHash=void 0;var Ue=ae(),GF=bs();function KF(e){let n={};for(let t of e)n[t]=!0;return n}Ce.toHash=KF;function JF(e,n){return typeof n=="boolean"?n:Object.keys(n).length===0?!0:(C0(e,n),!S0(n,e.self.RULES.all))}Ce.alwaysValidSchema=JF;function C0(e,n=e.schema){let{opts:t,self:r}=e;if(!t.strictSchema||typeof n=="boolean")return;let i=r.RULES.keywords;for(let a in n)i[a]||P0(e,`unknown keyword: "${a}"`)}Ce.checkUnknownRules=C0;function S0(e,n){if(typeof e=="boolean")return!e;for(let t in e)if(n[t])return!0;return!1}Ce.schemaHasRules=S0;function ZF(e,n){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&n.all[t])return!0;return!1}Ce.schemaHasRulesButRef=ZF;function YF({topSchemaRef:e,schemaPath:n},t,r,i){if(!i){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,Ue._)`${t}`}return(0,Ue._)`${e}${n}${(0,Ue.getProperty)(r)}`}Ce.schemaRefOrVal=YF;function XF(e){return D0(decodeURIComponent(e))}Ce.unescapeFragment=XF;function QF(e){return encodeURIComponent(Ef(e))}Ce.escapeFragment=QF;function Ef(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Ce.escapeJsonPointer=Ef;function D0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Ce.unescapeJsonPointer=D0;function e2(e,n){if(Array.isArray(e))for(let t of e)n(t);else n(e)}Ce.eachItem=e2;function x0({mergeNames:e,mergeToName:n,mergeValues:t,resultToName:r}){return(i,a,l,u)=>{let d=l===void 0?a:l instanceof Ue.Name?(a instanceof Ue.Name?e(i,a,l):n(i,a,l),l):a instanceof Ue.Name?(n(i,l,a),a):t(a,l);return u===Ue.Name&&!(d instanceof Ue.Name)?r(i,d):d}}Ce.mergeEvaluated={props:x0({mergeNames:(e,n,t)=>e.if((0,Ue._)`${t} !== true && ${n} !== undefined`,()=>{e.if((0,Ue._)`${n} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,Ue._)`${t} || {}`).code((0,Ue._)`Object.assign(${t}, ${n})`))}),mergeToName:(e,n,t)=>e.if((0,Ue._)`${t} !== true`,()=>{n===!0?e.assign(t,!0):(e.assign(t,(0,Ue._)`${t} || {}`),Tf(e,t,n))}),mergeValues:(e,n)=>e===!0?!0:ue(ue({},e),n),resultToName:O0}),items:x0({mergeNames:(e,n,t)=>e.if((0,Ue._)`${t} !== true && ${n} !== undefined`,()=>e.assign(t,(0,Ue._)`${n} === true ? true : ${t} > ${n} ? ${t} : ${n}`)),mergeToName:(e,n,t)=>e.if((0,Ue._)`${t} !== true`,()=>e.assign(t,n===!0?!0:(0,Ue._)`${t} > ${n} ? ${t} : ${n}`)),mergeValues:(e,n)=>e===!0?!0:Math.max(e,n),resultToName:(e,n)=>e.var("items",n)})};function O0(e,n){if(n===!0)return e.var("props",!0);let t=e.var("props",(0,Ue._)`{}`);return n!==void 0&&Tf(e,t,n),t}Ce.evaluatedPropsToName=O0;function Tf(e,n,t){Object.keys(t).forEach(r=>e.assign((0,Ue._)`${n}${(0,Ue.getProperty)(r)}`,!0))}Ce.setEvaluated=Tf;var I0={};function t2(e,n){return e.scopeValue("func",{ref:n,code:I0[n.code]||(I0[n.code]=new GF._Code(n.code))})}Ce.useFunc=t2;var Pf=(function(e){return e[e.Num=0]="Num",e[e.Str=1]="Str",e})(Pf||(Ce.Type=Pf={}));function n2(e,n,t){if(e instanceof Ue.Name){let r=n===Pf.Num;return t?r?(0,Ue._)`"[" + ${e} + "]"`:(0,Ue._)`"['" + ${e} + "']"`:r?(0,Ue._)`"/" + ${e}`:(0,Ue._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,Ue.getProperty)(e).toString():"/"+Ef(e)}Ce.getErrorPath=n2;function P0(e,n,t=e.opts.strictSchema){if(t){if(n=`strict mode: ${n}`,t===!0)throw new Error(n);e.self.logger.warn(n)}}Ce.checkStrictMode=P0});var Pn=v($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var Tt=ae(),r2={data:new Tt.Name("data"),valCxt:new Tt.Name("valCxt"),instancePath:new Tt.Name("instancePath"),parentData:new Tt.Name("parentData"),parentDataProperty:new Tt.Name("parentDataProperty"),rootData:new Tt.Name("rootData"),dynamicAnchors:new Tt.Name("dynamicAnchors"),vErrors:new Tt.Name("vErrors"),errors:new Tt.Name("errors"),this:new Tt.Name("this"),self:new Tt.Name("self"),scope:new Tt.Name("scope"),json:new Tt.Name("json"),jsonPos:new Tt.Name("jsonPos"),jsonLen:new Tt.Name("jsonLen"),jsonPart:new Tt.Name("jsonPart")};$f.default=r2});var xs=v($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.extendErrors=$t.resetErrorsCount=$t.reportExtraError=$t.reportError=$t.keyword$DataError=$t.keywordError=void 0;var Re=ae(),ru=Oe(),jt=Pn();$t.keywordError={message:({keyword:e})=>(0,Re.str)`must pass "${e}" keyword validation`};$t.keyword$DataError={message:({keyword:e,schemaType:n})=>n?(0,Re.str)`"${e}" keyword must be ${n} ($data)`:(0,Re.str)`"${e}" keyword is invalid ($data)`};function i2(e,n=$t.keywordError,t,r){let{it:i}=e,{gen:a,compositeRule:l,allErrors:u}=i,d=$0(e,n,t);r??(l||u)?E0(a,d):T0(i,(0,Re._)`[${d}]`)}$t.reportError=i2;function o2(e,n=$t.keywordError,t){let{it:r}=e,{gen:i,compositeRule:a,allErrors:l}=r,u=$0(e,n,t);E0(i,u),a||l||T0(r,jt.default.vErrors)}$t.reportExtraError=o2;function s2(e,n){e.assign(jt.default.errors,n),e.if((0,Re._)`${jt.default.vErrors} !== null`,()=>e.if(n,()=>e.assign((0,Re._)`${jt.default.vErrors}.length`,n),()=>e.assign(jt.default.vErrors,null)))}$t.resetErrorsCount=s2;function a2({gen:e,keyword:n,schemaValue:t,data:r,errsCount:i,it:a}){if(i===void 0)throw new Error("ajv implementation error");let l=e.name("err");e.forRange("i",i,jt.default.errors,u=>{e.const(l,(0,Re._)`${jt.default.vErrors}[${u}]`),e.if((0,Re._)`${l}.instancePath === undefined`,()=>e.assign((0,Re._)`${l}.instancePath`,(0,Re.strConcat)(jt.default.instancePath,a.errorPath))),e.assign((0,Re._)`${l}.schemaPath`,(0,Re.str)`${a.errSchemaPath}/${n}`),a.opts.verbose&&(e.assign((0,Re._)`${l}.schema`,t),e.assign((0,Re._)`${l}.data`,r))})}$t.extendErrors=a2;function E0(e,n){let t=e.const("err",n);e.if((0,Re._)`${jt.default.vErrors} === null`,()=>e.assign(jt.default.vErrors,(0,Re._)`[${t}]`),(0,Re._)`${jt.default.vErrors}.push(${t})`),e.code((0,Re._)`${jt.default.errors}++`)}function T0(e,n){let{gen:t,validateName:r,schemaEnv:i}=e;i.$async?t.throw((0,Re._)`new ${e.ValidationError}(${n})`):(t.assign((0,Re._)`${r}.errors`,n),t.return(!1))}var Ii={keyword:new Re.Name("keyword"),schemaPath:new Re.Name("schemaPath"),params:new Re.Name("params"),propertyName:new Re.Name("propertyName"),message:new Re.Name("message"),schema:new Re.Name("schema"),parentSchema:new Re.Name("parentSchema")};function $0(e,n,t){let{createErrors:r}=e.it;return r===!1?(0,Re._)`{}`:l2(e,n,t)}function l2(e,n,t={}){let{gen:r,it:i}=e,a=[u2(i,t),c2(e,t)];return d2(e,n,a),r.object(...a)}function u2({errorPath:e},{instancePath:n}){let t=n?(0,Re.str)`${e}${(0,ru.getErrorPath)(n,ru.Type.Str)}`:e;return[jt.default.instancePath,(0,Re.strConcat)(jt.default.instancePath,t)]}function c2({keyword:e,it:{errSchemaPath:n}},{schemaPath:t,parentSchema:r}){let i=r?n:(0,Re.str)`${n}/${e}`;return t&&(i=(0,Re.str)`${i}${(0,ru.getErrorPath)(t,ru.Type.Str)}`),[Ii.schemaPath,i]}function d2(e,{params:n,message:t},r){let{keyword:i,data:a,schemaValue:l,it:u}=e,{opts:d,propertyName:p,topSchemaRef:m,schemaPath:_}=u;r.push([Ii.keyword,i],[Ii.params,typeof n=="function"?n(e):n||(0,Re._)`{}`]),d.messages&&r.push([Ii.message,typeof t=="function"?t(e):t]),d.verbose&&r.push([Ii.schema,l],[Ii.parentSchema,(0,Re._)`${m}${_}`],[jt.default.data,a]),p&&r.push([Ii.propertyName,p])}});var M0=v(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.boolOrEmptySchema=lo.topBoolOrEmptySchema=void 0;var f2=xs(),p2=ae(),h2=Pn(),m2={message:"boolean schema is false"};function g2(e){let{gen:n,schema:t,validateName:r}=e;t===!1?R0(e,!1):typeof t=="object"&&t.$async===!0?n.return(h2.default.data):(n.assign((0,p2._)`${r}.errors`,null),n.return(!0))}lo.topBoolOrEmptySchema=g2;function _2(e,n){let{gen:t,schema:r}=e;r===!1?(t.var(n,!1),R0(e)):t.var(n,!0)}lo.boolOrEmptySchema=_2;function R0(e,n){let{gen:t,data:r}=e,i={gen:t,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,f2.reportError)(i,m2,void 0,n)}});var Rf=v(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.getRules=uo.isJSONType=void 0;var y2=["string","number","integer","boolean","null","object","array"],v2=new Set(y2);function b2(e){return typeof e=="string"&&v2.has(e)}uo.isJSONType=b2;function w2(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Ke(ue({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}uo.getRules=w2});var Mf=v(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.shouldUseRule=Kr.shouldUseGroup=Kr.schemaHasRulesForType=void 0;function x2({schema:e,self:n},t){let r=n.RULES.types[t];return r&&r!==!0&&N0(e,r)}Kr.schemaHasRulesForType=x2;function N0(e,n){return n.rules.some(t=>k0(e,t))}Kr.shouldUseGroup=N0;function k0(e,n){var t;return e[n.keyword]!==void 0||((t=n.definition.implements)===null||t===void 0?void 0:t.some(r=>e[r]!==void 0))}Kr.shouldUseRule=k0});var Is=v(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.reportTypeError=Rt.checkDataTypes=Rt.checkDataType=Rt.coerceAndCheckDataType=Rt.getJSONTypes=Rt.getSchemaTypes=Rt.DataType=void 0;var I2=Rf(),C2=Mf(),S2=xs(),ve=ae(),A0=Oe(),co=(function(e){return e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong",e})(co||(Rt.DataType=co={}));function D2(e){let n=F0(e.type);if(n.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!n.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&n.push("null")}return n}Rt.getSchemaTypes=D2;function F0(e){let n=Array.isArray(e)?e:e?[e]:[];if(n.every(I2.isJSONType))return n;throw new Error("type must be JSONType or JSONType[]: "+n.join(","))}Rt.getJSONTypes=F0;function O2(e,n){let{gen:t,data:r,opts:i}=e,a=P2(n,i.coerceTypes),l=n.length>0&&!(a.length===0&&n.length===1&&(0,C2.schemaHasRulesForType)(e,n[0]));if(l){let u=kf(n,r,i.strictNumbers,co.Wrong);t.if(u,()=>{a.length?E2(e,n,a):Af(e)})}return l}Rt.coerceAndCheckDataType=O2;var q0=new Set(["string","number","integer","boolean","null"]);function P2(e,n){return n?e.filter(t=>q0.has(t)||n==="array"&&t==="array"):[]}function E2(e,n,t){let{gen:r,data:i,opts:a}=e,l=r.let("dataType",(0,ve._)`typeof ${i}`),u=r.let("coerced",(0,ve._)`undefined`);a.coerceTypes==="array"&&r.if((0,ve._)`${l} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>r.assign(i,(0,ve._)`${i}[0]`).assign(l,(0,ve._)`typeof ${i}`).if(kf(n,i,a.strictNumbers),()=>r.assign(u,i))),r.if((0,ve._)`${u} !== undefined`);for(let p of t)(q0.has(p)||p==="array"&&a.coerceTypes==="array")&&d(p);r.else(),Af(e),r.endIf(),r.if((0,ve._)`${u} !== undefined`,()=>{r.assign(i,u),T2(e,u)});function d(p){switch(p){case"string":r.elseIf((0,ve._)`${l} == "number" || ${l} == "boolean"`).assign(u,(0,ve._)`"" + ${i}`).elseIf((0,ve._)`${i} === null`).assign(u,(0,ve._)`""`);return;case"number":r.elseIf((0,ve._)`${l} == "boolean" || ${i} === null
3
+ || (${l} == "string" && ${i} && ${i} == +${i})`).assign(u,(0,ve._)`+${i}`);return;case"integer":r.elseIf((0,ve._)`${l} === "boolean" || ${i} === null
4
+ || (${l} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,(0,ve._)`+${i}`);return;case"boolean":r.elseIf((0,ve._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,!1).elseIf((0,ve._)`${i} === "true" || ${i} === 1`).assign(u,!0);return;case"null":r.elseIf((0,ve._)`${i} === "" || ${i} === 0 || ${i} === false`),r.assign(u,null);return;case"array":r.elseIf((0,ve._)`${l} === "string" || ${l} === "number"
5
+ || ${l} === "boolean" || ${i} === null`).assign(u,(0,ve._)`[${i}]`)}}}function T2({gen:e,parentData:n,parentDataProperty:t},r){e.if((0,ve._)`${n} !== undefined`,()=>e.assign((0,ve._)`${n}[${t}]`,r))}function Nf(e,n,t,r=co.Correct){let i=r===co.Correct?ve.operators.EQ:ve.operators.NEQ,a;switch(e){case"null":return(0,ve._)`${n} ${i} null`;case"array":a=(0,ve._)`Array.isArray(${n})`;break;case"object":a=(0,ve._)`${n} && typeof ${n} == "object" && !Array.isArray(${n})`;break;case"integer":a=l((0,ve._)`!(${n} % 1) && !isNaN(${n})`);break;case"number":a=l();break;default:return(0,ve._)`typeof ${n} ${i} ${e}`}return r===co.Correct?a:(0,ve.not)(a);function l(u=ve.nil){return(0,ve.and)((0,ve._)`typeof ${n} == "number"`,u,t?(0,ve._)`isFinite(${n})`:ve.nil)}}Rt.checkDataType=Nf;function kf(e,n,t,r){if(e.length===1)return Nf(e[0],n,t,r);let i,a=(0,A0.toHash)(e);if(a.array&&a.object){let l=(0,ve._)`typeof ${n} != "object"`;i=a.null?l:(0,ve._)`!${n} || ${l}`,delete a.null,delete a.array,delete a.object}else i=ve.nil;a.number&&delete a.integer;for(let l in a)i=(0,ve.and)(i,Nf(l,n,t,r));return i}Rt.checkDataTypes=kf;var $2={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:n})=>typeof e=="string"?(0,ve._)`{type: ${e}}`:(0,ve._)`{type: ${n}}`};function Af(e){let n=R2(e);(0,S2.reportError)(n,$2)}Rt.reportTypeError=Af;function R2(e){let{gen:n,data:t,schema:r}=e,i=(0,A0.schemaRefOrVal)(e,r,"type");return{gen:n,keyword:"type",data:t,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}});var L0=v(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.assignDefaults=void 0;var fo=ae(),M2=Oe();function N2(e,n){let{properties:t,items:r}=e.schema;if(n==="object"&&t)for(let i in t)j0(e,i,t[i].default);else n==="array"&&Array.isArray(r)&&r.forEach((i,a)=>j0(e,a,i.default))}iu.assignDefaults=N2;function j0(e,n,t){let{gen:r,compositeRule:i,data:a,opts:l}=e;if(t===void 0)return;let u=(0,fo._)`${a}${(0,fo.getProperty)(n)}`;if(i){(0,M2.checkStrictMode)(e,`default is ignored for: ${u}`);return}let d=(0,fo._)`${u} === undefined`;l.useDefaults==="empty"&&(d=(0,fo._)`${d} || ${u} === null || ${u} === ""`),r.if(d,(0,fo._)`${u} = ${(0,fo.stringify)(t)}`)}});var En=v(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.validateUnion=Ve.validateArray=Ve.usePattern=Ve.callValidateCode=Ve.schemaProperties=Ve.allSchemaProperties=Ve.noPropertyInData=Ve.propertyInData=Ve.isOwnProperty=Ve.hasPropFunc=Ve.reportMissingProp=Ve.checkMissingProp=Ve.checkReportMissingProp=void 0;var Xe=ae(),Ff=Oe(),Jr=Pn(),k2=Oe();function A2(e,n){let{gen:t,data:r,it:i}=e;t.if(jf(t,r,n,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Xe._)`${n}`},!0),e.error()})}Ve.checkReportMissingProp=A2;function F2({gen:e,data:n,it:{opts:t}},r,i){return(0,Xe.or)(...r.map(a=>(0,Xe.and)(jf(e,n,a,t.ownProperties),(0,Xe._)`${i} = ${a}`)))}Ve.checkMissingProp=F2;function q2(e,n){e.setParams({missingProperty:n},!0),e.error()}Ve.reportMissingProp=q2;function V0(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Xe._)`Object.prototype.hasOwnProperty`})}Ve.hasPropFunc=V0;function qf(e,n,t){return(0,Xe._)`${V0(e)}.call(${n}, ${t})`}Ve.isOwnProperty=qf;function j2(e,n,t,r){let i=(0,Xe._)`${n}${(0,Xe.getProperty)(t)} !== undefined`;return r?(0,Xe._)`${i} && ${qf(e,n,t)}`:i}Ve.propertyInData=j2;function jf(e,n,t,r){let i=(0,Xe._)`${n}${(0,Xe.getProperty)(t)} === undefined`;return r?(0,Xe.or)(i,(0,Xe.not)(qf(e,n,t))):i}Ve.noPropertyInData=jf;function z0(e){return e?Object.keys(e).filter(n=>n!=="__proto__"):[]}Ve.allSchemaProperties=z0;function L2(e,n){return z0(n).filter(t=>!(0,Ff.alwaysValidSchema)(e,n[t]))}Ve.schemaProperties=L2;function V2({schemaCode:e,data:n,it:{gen:t,topSchemaRef:r,schemaPath:i,errorPath:a},it:l},u,d,p){let m=p?(0,Xe._)`${e}, ${n}, ${r}${i}`:n,_=[[Jr.default.instancePath,(0,Xe.strConcat)(Jr.default.instancePath,a)],[Jr.default.parentData,l.parentData],[Jr.default.parentDataProperty,l.parentDataProperty],[Jr.default.rootData,Jr.default.rootData]];l.opts.dynamicRef&&_.push([Jr.default.dynamicAnchors,Jr.default.dynamicAnchors]);let w=(0,Xe._)`${m}, ${t.object(..._)}`;return d!==Xe.nil?(0,Xe._)`${u}.call(${d}, ${w})`:(0,Xe._)`${u}(${w})`}Ve.callValidateCode=V2;var z2=(0,Xe._)`new RegExp`;function H2({gen:e,it:{opts:n}},t){let r=n.unicodeRegExp?"u":"",{regExp:i}=n.code,a=i(t,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,Xe._)`${i.code==="new RegExp"?z2:(0,k2.useFunc)(e,i)}(${t}, ${r})`})}Ve.usePattern=H2;function B2(e){let{gen:n,data:t,keyword:r,it:i}=e,a=n.name("valid");if(i.allErrors){let u=n.let("valid",!0);return l(()=>n.assign(u,!1)),u}return n.var(a,!0),l(()=>n.break()),a;function l(u){let d=n.const("len",(0,Xe._)`${t}.length`);n.forRange("i",0,d,p=>{e.subschema({keyword:r,dataProp:p,dataPropType:Ff.Type.Num},a),n.if((0,Xe.not)(a),u)})}}Ve.validateArray=B2;function U2(e){let{gen:n,schema:t,keyword:r,it:i}=e;if(!Array.isArray(t))throw new Error("ajv implementation error");if(t.some(d=>(0,Ff.alwaysValidSchema)(i,d))&&!i.opts.unevaluated)return;let l=n.let("valid",!1),u=n.name("_valid");n.block(()=>t.forEach((d,p)=>{let m=e.subschema({keyword:r,schemaProp:p,compositeRule:!0},u);n.assign(l,(0,Xe._)`${l} || ${u}`),e.mergeValidEvaluated(m,u)||n.if((0,Xe.not)(l))})),e.result(l,()=>e.reset(),()=>e.error(!0))}Ve.validateUnion=U2});var U0=v(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.validateKeywordUsage=ar.validSchemaType=ar.funcKeywordCode=ar.macroKeywordCode=void 0;var Lt=ae(),Ci=Pn(),W2=En(),G2=xs();function K2(e,n){let{gen:t,keyword:r,schema:i,parentSchema:a,it:l}=e,u=n.macro.call(l.self,i,a,l),d=B0(t,r,u);l.opts.validateSchema!==!1&&l.self.validateSchema(u,!0);let p=t.name("valid");e.subschema({schema:u,schemaPath:Lt.nil,errSchemaPath:`${l.errSchemaPath}/${r}`,topSchemaRef:d,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}ar.macroKeywordCode=K2;function J2(e,n){var t;let{gen:r,keyword:i,schema:a,parentSchema:l,$data:u,it:d}=e;Y2(d,n);let p=!u&&n.compile?n.compile.call(d.self,a,l,d):n.validate,m=B0(r,i,p),_=r.let("valid");e.block$data(_,w),e.ok((t=n.valid)!==null&&t!==void 0?t:_);function w(){if(n.errors===!1)b(),n.modifying&&H0(e),T(()=>e.error());else{let R=n.async?x():S();n.modifying&&H0(e),T(()=>Z2(e,R))}}function x(){let R=r.let("ruleErrs",null);return r.try(()=>b((0,Lt._)`await `),Q=>r.assign(_,!1).if((0,Lt._)`${Q} instanceof ${d.ValidationError}`,()=>r.assign(R,(0,Lt._)`${Q}.errors`),()=>r.throw(Q))),R}function S(){let R=(0,Lt._)`${m}.errors`;return r.assign(R,null),b(Lt.nil),R}function b(R=n.async?(0,Lt._)`await `:Lt.nil){let Q=d.opts.passContext?Ci.default.this:Ci.default.self,K=!("compile"in n&&!u||n.schema===!1);r.assign(_,(0,Lt._)`${R}${(0,W2.callValidateCode)(e,m,Q,K)}`,n.modifying)}function T(R){var Q;r.if((0,Lt.not)((Q=n.valid)!==null&&Q!==void 0?Q:_),R)}}ar.funcKeywordCode=J2;function H0(e){let{gen:n,data:t,it:r}=e;n.if(r.parentData,()=>n.assign(t,(0,Lt._)`${r.parentData}[${r.parentDataProperty}]`))}function Z2(e,n){let{gen:t}=e;t.if((0,Lt._)`Array.isArray(${n})`,()=>{t.assign(Ci.default.vErrors,(0,Lt._)`${Ci.default.vErrors} === null ? ${n} : ${Ci.default.vErrors}.concat(${n})`).assign(Ci.default.errors,(0,Lt._)`${Ci.default.vErrors}.length`),(0,G2.extendErrors)(e)},()=>e.error())}function Y2({schemaEnv:e},n){if(n.async&&!e.$async)throw new Error("async keyword in sync schema")}function B0(e,n,t){if(t===void 0)throw new Error(`keyword "${n}" failed to compile`);return e.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,Lt.stringify)(t)})}function X2(e,n,t=!1){return!n.length||n.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||t&&typeof e>"u")}ar.validSchemaType=X2;function Q2({schema:e,opts:n,self:t,errSchemaPath:r},i,a){if(Array.isArray(i.keyword)?!i.keyword.includes(a):i.keyword!==a)throw new Error("ajv implementation error");let l=i.dependencies;if(l?.some(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${a}: ${l.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[a])){let d=`keyword "${a}" value is invalid at path "${r}": `+t.errorsText(i.validateSchema.errors);if(n.validateSchema==="log")t.logger.error(d);else throw new Error(d)}}ar.validateKeywordUsage=Q2});var G0=v(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.extendSubschemaMode=Zr.extendSubschemaData=Zr.getSubschema=void 0;var lr=ae(),W0=Oe();function eq(e,{keyword:n,schemaProp:t,schema:r,schemaPath:i,errSchemaPath:a,topSchemaRef:l}){if(n!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(n!==void 0){let u=e.schema[n];return t===void 0?{schema:u,schemaPath:(0,lr._)`${e.schemaPath}${(0,lr.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${n}`}:{schema:u[t],schemaPath:(0,lr._)`${e.schemaPath}${(0,lr.getProperty)(n)}${(0,lr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${n}/${(0,W0.escapeFragment)(t)}`}}if(r!==void 0){if(i===void 0||a===void 0||l===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:i,topSchemaRef:l,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}Zr.getSubschema=eq;function tq(e,n,{dataProp:t,dataPropType:r,data:i,dataTypes:a,propertyName:l}){if(i!==void 0&&t!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=n;if(t!==void 0){let{errorPath:p,dataPathArr:m,opts:_}=n,w=u.let("data",(0,lr._)`${n.data}${(0,lr.getProperty)(t)}`,!0);d(w),e.errorPath=(0,lr.str)`${p}${(0,W0.getErrorPath)(t,r,_.jsPropertySyntax)}`,e.parentDataProperty=(0,lr._)`${t}`,e.dataPathArr=[...m,e.parentDataProperty]}if(i!==void 0){let p=i instanceof lr.Name?i:u.let("data",i,!0);d(p),l!==void 0&&(e.propertyName=l)}a&&(e.dataTypes=a);function d(p){e.data=p,e.dataLevel=n.dataLevel+1,e.dataTypes=[],n.definedProperties=new Set,e.parentData=n.data,e.dataNames=[...n.dataNames,p]}}Zr.extendSubschemaData=tq;function nq(e,{jtdDiscriminator:n,jtdMetadata:t,compositeRule:r,createErrors:i,allErrors:a}){r!==void 0&&(e.compositeRule=r),i!==void 0&&(e.createErrors=i),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=n,e.jtdMetadata=t}Zr.extendSubschemaMode=nq});var ou=v((XX,K0)=>{"use strict";K0.exports=function e(n,t){if(n===t)return!0;if(n&&t&&typeof n=="object"&&typeof t=="object"){if(n.constructor!==t.constructor)return!1;var r,i,a;if(Array.isArray(n)){if(r=n.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!e(n[i],t[i]))return!1;return!0}if(n.constructor===RegExp)return n.source===t.source&&n.flags===t.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===t.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===t.toString();if(a=Object.keys(n),r=a.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;for(i=r;i--!==0;){var l=a[i];if(!e(n[l],t[l]))return!1}return!0}return n!==n&&t!==t}});var Z0=v((QX,J0)=>{"use strict";var Yr=J0.exports=function(e,n,t){typeof n=="function"&&(t=n,n={}),t=n.cb||t;var r=typeof t=="function"?t:t.pre||function(){},i=t.post||function(){};su(n,r,i,e,"",e)};Yr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Yr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Yr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Yr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function su(e,n,t,r,i,a,l,u,d,p){if(r&&typeof r=="object"&&!Array.isArray(r)){n(r,i,a,l,u,d,p);for(var m in r){var _=r[m];if(Array.isArray(_)){if(m in Yr.arrayKeywords)for(var w=0;w<_.length;w++)su(e,n,t,_[w],i+"/"+m+"/"+w,a,i,m,r,w)}else if(m in Yr.propsKeywords){if(_&&typeof _=="object")for(var x in _)su(e,n,t,_[x],i+"/"+m+"/"+rq(x),a,i,m,r,x)}else(m in Yr.keywords||e.allKeys&&!(m in Yr.skipKeywords))&&su(e,n,t,_,i+"/"+m,a,i,m,r)}t(r,i,a,l,u,d,p)}}function rq(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Cs=v(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.getSchemaRefs=Yt.resolveUrl=Yt.normalizeId=Yt._getFullPath=Yt.getFullPath=Yt.inlineRef=void 0;var iq=Oe(),oq=ou(),sq=Z0(),aq=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function lq(e,n=!0){return typeof e=="boolean"?!0:n===!0?!Lf(e):n?Y0(e)<=n:!1}Yt.inlineRef=lq;var uq=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Lf(e){for(let n in e){if(uq.has(n))return!0;let t=e[n];if(Array.isArray(t)&&t.some(Lf)||typeof t=="object"&&Lf(t))return!0}return!1}function Y0(e){let n=0;for(let t in e){if(t==="$ref")return 1/0;if(n++,!aq.has(t)&&(typeof e[t]=="object"&&(0,iq.eachItem)(e[t],r=>n+=Y0(r)),n===1/0))return 1/0}return n}function X0(e,n="",t){t!==!1&&(n=po(n));let r=e.parse(n);return Q0(e,r)}Yt.getFullPath=X0;function Q0(e,n){return e.serialize(n).split("#")[0]+"#"}Yt._getFullPath=Q0;var cq=/#\/?$/;function po(e){return e?e.replace(cq,""):""}Yt.normalizeId=po;function dq(e,n,t){return t=po(t),e.resolve(n,t)}Yt.resolveUrl=dq;var fq=/^[a-z_][-a-z0-9._]*$/i;function pq(e,n){if(typeof e=="boolean")return{};let{schemaId:t,uriResolver:r}=this.opts,i=po(e[t]||n),a={"":i},l=X0(r,i,!1),u={},d=new Set;return sq(e,{allKeys:!0},(_,w,x,S)=>{if(S===void 0)return;let b=l+w,T=a[S];typeof _[t]=="string"&&(T=R.call(this,_[t])),Q.call(this,_.$anchor),Q.call(this,_.$dynamicAnchor),a[w]=T;function R(K){let J=this.opts.uriResolver.resolve;if(K=po(T?J(T,K):K),d.has(K))throw m(K);d.add(K);let A=this.refs[K];return typeof A=="string"&&(A=this.refs[A]),typeof A=="object"?p(_,A.schema,K):K!==po(b)&&(K[0]==="#"?(p(_,u[K],K),u[K]=_):this.refs[K]=b),K}function Q(K){if(typeof K=="string"){if(!fq.test(K))throw new Error(`invalid anchor "${K}"`);R.call(this,`#${K}`)}}}),u;function p(_,w,x){if(w!==void 0&&!oq(_,w))throw m(x)}function m(_){return new Error(`reference "${_}" resolves to more than one schema`)}}Yt.getSchemaRefs=pq});var ho=v(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.getData=Xr.KeywordCxt=Xr.validateFunctionCode=void 0;var iv=M0(),ev=Is(),zf=Mf(),au=Is(),hq=L0(),Ds=U0(),Vf=G0(),ie=ae(),he=Pn(),mq=Cs(),Cr=Oe(),Ss=xs();function gq(e){if(av(e)&&(lv(e),sv(e))){vq(e);return}ov(e,()=>(0,iv.topBoolOrEmptySchema)(e))}Xr.validateFunctionCode=gq;function ov({gen:e,validateName:n,schema:t,schemaEnv:r,opts:i},a){i.code.es5?e.func(n,(0,ie._)`${he.default.data}, ${he.default.valCxt}`,r.$async,()=>{e.code((0,ie._)`"use strict"; ${tv(t,i)}`),yq(e,i),e.code(a)}):e.func(n,(0,ie._)`${he.default.data}, ${_q(i)}`,r.$async,()=>e.code(tv(t,i)).code(a))}function _q(e){return(0,ie._)`{${he.default.instancePath}="", ${he.default.parentData}, ${he.default.parentDataProperty}, ${he.default.rootData}=${he.default.data}${e.dynamicRef?(0,ie._)`, ${he.default.dynamicAnchors}={}`:ie.nil}}={}`}function yq(e,n){e.if(he.default.valCxt,()=>{e.var(he.default.instancePath,(0,ie._)`${he.default.valCxt}.${he.default.instancePath}`),e.var(he.default.parentData,(0,ie._)`${he.default.valCxt}.${he.default.parentData}`),e.var(he.default.parentDataProperty,(0,ie._)`${he.default.valCxt}.${he.default.parentDataProperty}`),e.var(he.default.rootData,(0,ie._)`${he.default.valCxt}.${he.default.rootData}`),n.dynamicRef&&e.var(he.default.dynamicAnchors,(0,ie._)`${he.default.valCxt}.${he.default.dynamicAnchors}`)},()=>{e.var(he.default.instancePath,(0,ie._)`""`),e.var(he.default.parentData,(0,ie._)`undefined`),e.var(he.default.parentDataProperty,(0,ie._)`undefined`),e.var(he.default.rootData,he.default.data),n.dynamicRef&&e.var(he.default.dynamicAnchors,(0,ie._)`{}`)})}function vq(e){let{schema:n,opts:t,gen:r}=e;ov(e,()=>{t.$comment&&n.$comment&&cv(e),Cq(e),r.let(he.default.vErrors,null),r.let(he.default.errors,0),t.unevaluated&&bq(e),uv(e),Oq(e)})}function bq(e){let{gen:n,validateName:t}=e;e.evaluated=n.const("evaluated",(0,ie._)`${t}.evaluated`),n.if((0,ie._)`${e.evaluated}.dynamicProps`,()=>n.assign((0,ie._)`${e.evaluated}.props`,(0,ie._)`undefined`)),n.if((0,ie._)`${e.evaluated}.dynamicItems`,()=>n.assign((0,ie._)`${e.evaluated}.items`,(0,ie._)`undefined`))}function tv(e,n){let t=typeof e=="object"&&e[n.schemaId];return t&&(n.code.source||n.code.process)?(0,ie._)`/*# sourceURL=${t} */`:ie.nil}function wq(e,n){if(av(e)&&(lv(e),sv(e))){xq(e,n);return}(0,iv.boolOrEmptySchema)(e,n)}function sv({schema:e,self:n}){if(typeof e=="boolean")return!e;for(let t in e)if(n.RULES.all[t])return!0;return!1}function av(e){return typeof e.schema!="boolean"}function xq(e,n){let{schema:t,gen:r,opts:i}=e;i.$comment&&t.$comment&&cv(e),Sq(e),Dq(e);let a=r.const("_errs",he.default.errors);uv(e,a),r.var(n,(0,ie._)`${a} === ${he.default.errors}`)}function lv(e){(0,Cr.checkUnknownRules)(e),Iq(e)}function uv(e,n){if(e.opts.jtd)return nv(e,[],!1,n);let t=(0,ev.getSchemaTypes)(e.schema),r=(0,ev.coerceAndCheckDataType)(e,t);nv(e,t,!r,n)}function Iq(e){let{schema:n,errSchemaPath:t,opts:r,self:i}=e;n.$ref&&r.ignoreKeywordsWithRef&&(0,Cr.schemaHasRulesButRef)(n,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function Cq(e){let{schema:n,opts:t}=e;n.default!==void 0&&t.useDefaults&&t.strictSchema&&(0,Cr.checkStrictMode)(e,"default is ignored in the schema root")}function Sq(e){let n=e.schema[e.opts.schemaId];n&&(e.baseId=(0,mq.resolveUrl)(e.opts.uriResolver,e.baseId,n))}function Dq(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function cv({gen:e,schemaEnv:n,schema:t,errSchemaPath:r,opts:i}){let a=t.$comment;if(i.$comment===!0)e.code((0,ie._)`${he.default.self}.logger.log(${a})`);else if(typeof i.$comment=="function"){let l=(0,ie.str)`${r}/$comment`,u=e.scopeValue("root",{ref:n.root});e.code((0,ie._)`${he.default.self}.opts.$comment(${a}, ${l}, ${u}.schema)`)}}function Oq(e){let{gen:n,schemaEnv:t,validateName:r,ValidationError:i,opts:a}=e;t.$async?n.if((0,ie._)`${he.default.errors} === 0`,()=>n.return(he.default.data),()=>n.throw((0,ie._)`new ${i}(${he.default.vErrors})`)):(n.assign((0,ie._)`${r}.errors`,he.default.vErrors),a.unevaluated&&Pq(e),n.return((0,ie._)`${he.default.errors} === 0`))}function Pq({gen:e,evaluated:n,props:t,items:r}){t instanceof ie.Name&&e.assign((0,ie._)`${n}.props`,t),r instanceof ie.Name&&e.assign((0,ie._)`${n}.items`,r)}function nv(e,n,t,r){let{gen:i,schema:a,data:l,allErrors:u,opts:d,self:p}=e,{RULES:m}=p;if(a.$ref&&(d.ignoreKeywordsWithRef||!(0,Cr.schemaHasRulesButRef)(a,m))){i.block(()=>fv(e,"$ref",m.all.$ref.definition));return}d.jtd||Eq(e,n),i.block(()=>{for(let w of m.rules)_(w);_(m.post)});function _(w){(0,zf.shouldUseGroup)(a,w)&&(w.type?(i.if((0,au.checkDataType)(w.type,l,d.strictNumbers)),rv(e,w),n.length===1&&n[0]===w.type&&t&&(i.else(),(0,au.reportTypeError)(e)),i.endIf()):rv(e,w),u||i.if((0,ie._)`${he.default.errors} === ${r||0}`))}}function rv(e,n){let{gen:t,schema:r,opts:{useDefaults:i}}=e;i&&(0,hq.assignDefaults)(e,n.type),t.block(()=>{for(let a of n.rules)(0,zf.shouldUseRule)(r,a)&&fv(e,a.keyword,a.definition,n.type)})}function Eq(e,n){e.schemaEnv.meta||!e.opts.strictTypes||(Tq(e,n),e.opts.allowUnionTypes||$q(e,n),Rq(e,e.dataTypes))}function Tq(e,n){if(n.length){if(!e.dataTypes.length){e.dataTypes=n;return}n.forEach(t=>{dv(e.dataTypes,t)||Hf(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),Nq(e,n)}}function $q(e,n){n.length>1&&!(n.length===2&&n.includes("null"))&&Hf(e,"use allowUnionTypes to allow union type keyword")}function Rq(e,n){let t=e.self.RULES.all;for(let r in t){let i=t[r];if(typeof i=="object"&&(0,zf.shouldUseRule)(e.schema,i)){let{type:a}=i.definition;a.length&&!a.some(l=>Mq(n,l))&&Hf(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Mq(e,n){return e.includes(n)||n==="number"&&e.includes("integer")}function dv(e,n){return e.includes(n)||n==="integer"&&e.includes("number")}function Nq(e,n){let t=[];for(let r of e.dataTypes)dv(n,r)?t.push(r):n.includes("integer")&&r==="number"&&t.push("integer");e.dataTypes=t}function Hf(e,n){let t=e.schemaEnv.baseId+e.errSchemaPath;n+=` at "${t}" (strictTypes)`,(0,Cr.checkStrictMode)(e,n,e.opts.strictTypes)}var lu=class{constructor(n,t,r){if((0,Ds.validateKeywordUsage)(n,t,r),this.gen=n.gen,this.allErrors=n.allErrors,this.keyword=r,this.data=n.data,this.schema=n.schema[r],this.$data=t.$data&&n.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Cr.schemaRefOrVal)(n,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=n.schema,this.params={},this.it=n,this.def=t,this.$data)this.schemaCode=n.gen.const("vSchema",pv(this.$data,n));else if(this.schemaCode=this.schemaValue,!(0,Ds.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=n.gen.const("_errs",he.default.errors))}result(n,t,r){this.failResult((0,ie.not)(n),t,r)}failResult(n,t,r){this.gen.if(n),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(n,t){this.failResult((0,ie.not)(n),void 0,t)}fail(n){if(n===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(n),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(n){if(!this.$data)return this.fail(n);let{schemaCode:t}=this;this.fail((0,ie._)`${t} !== undefined && (${(0,ie.or)(this.invalid$data(),n)})`)}error(n,t,r){if(t){this.setParams(t),this._error(n,r),this.setParams({});return}this._error(n,r)}_error(n,t){(n?Ss.reportExtraError:Ss.reportError)(this,this.def.error,t)}$dataError(){(0,Ss.reportError)(this,this.def.$dataError||Ss.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ss.resetErrorsCount)(this.gen,this.errsCount)}ok(n){this.allErrors||this.gen.if(n)}setParams(n,t){t?Object.assign(this.params,n):this.params=n}block$data(n,t,r=ie.nil){this.gen.block(()=>{this.check$data(n,r),t()})}check$data(n=ie.nil,t=ie.nil){if(!this.$data)return;let{gen:r,schemaCode:i,schemaType:a,def:l}=this;r.if((0,ie.or)((0,ie._)`${i} === undefined`,t)),n!==ie.nil&&r.assign(n,!0),(a.length||l.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),n!==ie.nil&&r.assign(n,!1)),r.else()}invalid$data(){let{gen:n,schemaCode:t,schemaType:r,def:i,it:a}=this;return(0,ie.or)(l(),u());function l(){if(r.length){if(!(t instanceof ie.Name))throw new Error("ajv implementation error");let d=Array.isArray(r)?r:[r];return(0,ie._)`${(0,au.checkDataTypes)(d,t,a.opts.strictNumbers,au.DataType.Wrong)}`}return ie.nil}function u(){if(i.validateSchema){let d=n.scopeValue("validate$data",{ref:i.validateSchema});return(0,ie._)`!${d}(${t})`}return ie.nil}}subschema(n,t){let r=(0,Vf.getSubschema)(this.it,n);(0,Vf.extendSubschemaData)(r,this.it,n),(0,Vf.extendSubschemaMode)(r,n);let i=Ke(ue(ue({},this.it),r),{items:void 0,props:void 0});return wq(i,t),i}mergeEvaluated(n,t){let{it:r,gen:i}=this;r.opts.unevaluated&&(r.props!==!0&&n.props!==void 0&&(r.props=Cr.mergeEvaluated.props(i,n.props,r.props,t)),r.items!==!0&&n.items!==void 0&&(r.items=Cr.mergeEvaluated.items(i,n.items,r.items,t)))}mergeValidEvaluated(n,t){let{it:r,gen:i}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return i.if(t,()=>this.mergeEvaluated(n,ie.Name)),!0}};Xr.KeywordCxt=lu;function fv(e,n,t,r){let i=new lu(e,t,n);"code"in t?t.code(i,r):i.$data&&t.validate?(0,Ds.funcKeywordCode)(i,t):"macro"in t?(0,Ds.macroKeywordCode)(i,t):(t.compile||t.validate)&&(0,Ds.funcKeywordCode)(i,t)}var kq=/^\/(?:[^~]|~0|~1)*$/,Aq=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function pv(e,{dataLevel:n,dataNames:t,dataPathArr:r}){let i,a;if(e==="")return he.default.rootData;if(e[0]==="/"){if(!kq.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,a=he.default.rootData}else{let p=Aq.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);let m=+p[1];if(i=p[2],i==="#"){if(m>=n)throw new Error(d("property/index",m));return r[n-m]}if(m>n)throw new Error(d("data",m));if(a=t[n-m],!i)return a}let l=a,u=i.split("/");for(let p of u)p&&(a=(0,ie._)`${a}${(0,ie.getProperty)((0,Cr.unescapeJsonPointer)(p))}`,l=(0,ie._)`${l} && ${a}`);return l;function d(p,m){return`Cannot access ${p} ${m} levels up, current level is ${n}`}}Xr.getData=pv});var Os=v(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var Bf=class extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}};Uf.default=Bf});var mo=v(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var Wf=Cs(),Gf=class extends Error{constructor(n,t,r,i){super(i||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,Wf.resolveUrl)(n,t,r),this.missingSchema=(0,Wf.normalizeId)((0,Wf.getFullPath)(n,this.missingRef))}};Kf.default=Gf});var Ps=v(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.resolveSchema=Tn.getCompilingSchema=Tn.resolveRef=Tn.compileSchema=Tn.SchemaEnv=void 0;var Bn=ae(),Fq=Os(),Si=Pn(),Un=Cs(),hv=Oe(),qq=ho(),go=class{constructor(n){var t;this.refs={},this.dynamicAnchors={};let r;typeof n.schema=="object"&&(r=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=(t=n.baseId)!==null&&t!==void 0?t:(0,Un.normalizeId)(r?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=r?.$async,this.refs={}}};Tn.SchemaEnv=go;function Zf(e){let n=mv.call(this,e);if(n)return n;let t=(0,Un.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:i}=this.opts.code,{ownProperties:a}=this.opts,l=new Bn.CodeGen(this.scope,{es5:r,lines:i,ownProperties:a}),u;e.$async&&(u=l.scopeValue("Error",{ref:Fq.default,code:(0,Bn._)`require("ajv/dist/runtime/validation_error").default`}));let d=l.scopeName("validate");e.validateName=d;let p={gen:l,allErrors:this.opts.allErrors,data:Si.default.data,parentData:Si.default.parentData,parentDataProperty:Si.default.parentDataProperty,dataNames:[Si.default.data],dataPathArr:[Bn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Bn.stringify)(e.schema)}:{ref:e.schema}),validateName:d,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:t,baseId:e.baseId||t,schemaPath:Bn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Bn._)`""`,opts:this.opts,self:this},m;try{this._compilations.add(e),(0,qq.validateFunctionCode)(p),l.optimize(this.opts.code.optimize);let _=l.toString();m=`${l.scopeRefs(Si.default.scope)}return ${_}`,this.opts.code.process&&(m=this.opts.code.process(m,e));let x=new Function(`${Si.default.self}`,`${Si.default.scope}`,m)(this,this.scope.get());if(this.scope.value(d,{ref:x}),x.errors=null,x.schema=e.schema,x.schemaEnv=e,e.$async&&(x.$async=!0),this.opts.code.source===!0&&(x.source={validateName:d,validateCode:_,scopeValues:l._values}),this.opts.unevaluated){let{props:S,items:b}=p;x.evaluated={props:S instanceof Bn.Name?void 0:S,items:b instanceof Bn.Name?void 0:b,dynamicProps:S instanceof Bn.Name,dynamicItems:b instanceof Bn.Name},x.source&&(x.source.evaluated=(0,Bn.stringify)(x.evaluated))}return e.validate=x,e}catch(_){throw delete e.validate,delete e.validateName,m&&this.logger.error("Error compiling schema, function code:",m),_}finally{this._compilations.delete(e)}}Tn.compileSchema=Zf;function jq(e,n,t){var r;t=(0,Un.resolveUrl)(this.opts.uriResolver,n,t);let i=e.refs[t];if(i)return i;let a=zq.call(this,e,t);if(a===void 0){let l=(r=e.localRefs)===null||r===void 0?void 0:r[t],{schemaId:u}=this.opts;l&&(a=new go({schema:l,schemaId:u,root:e,baseId:n}))}if(a!==void 0)return e.refs[t]=Lq.call(this,a)}Tn.resolveRef=jq;function Lq(e){return(0,Un.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Zf.call(this,e)}function mv(e){for(let n of this._compilations)if(Vq(n,e))return n}Tn.getCompilingSchema=mv;function Vq(e,n){return e.schema===n.schema&&e.root===n.root&&e.baseId===n.baseId}function zq(e,n){let t;for(;typeof(t=this.refs[n])=="string";)n=t;return t||this.schemas[n]||uu.call(this,e,n)}function uu(e,n){let t=this.opts.uriResolver.parse(n),r=(0,Un._getFullPath)(this.opts.uriResolver,t),i=(0,Un.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return Jf.call(this,t,e);let a=(0,Un.normalizeId)(r),l=this.refs[a]||this.schemas[a];if(typeof l=="string"){let u=uu.call(this,e,l);return typeof u?.schema!="object"?void 0:Jf.call(this,t,u)}if(typeof l?.schema=="object"){if(l.validate||Zf.call(this,l),a===(0,Un.normalizeId)(n)){let{schema:u}=l,{schemaId:d}=this.opts,p=u[d];return p&&(i=(0,Un.resolveUrl)(this.opts.uriResolver,i,p)),new go({schema:u,schemaId:d,root:e,baseId:i})}return Jf.call(this,t,l)}}Tn.resolveSchema=uu;var Hq=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Jf(e,{baseId:n,schema:t,root:r}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let u of e.fragment.slice(1).split("/")){if(typeof t=="boolean")return;let d=t[(0,hv.unescapeFragment)(u)];if(d===void 0)return;t=d;let p=typeof t=="object"&&t[this.opts.schemaId];!Hq.has(u)&&p&&(n=(0,Un.resolveUrl)(this.opts.uriResolver,n,p))}let a;if(typeof t!="boolean"&&t.$ref&&!(0,hv.schemaHasRulesButRef)(t,this.RULES)){let u=(0,Un.resolveUrl)(this.opts.uriResolver,n,t.$ref);a=uu.call(this,r,u)}let{schemaId:l}=this.opts;if(a=a||new go({schema:t,schemaId:l,root:r,baseId:n}),a.schema!==a.root.schema)return a}});var gv=v((sQ,Bq)=>{Bq.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Xf=v((aQ,bv)=>{"use strict";var Uq=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),yv=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function Yf(e){let n="",t=0,r=0;for(r=0;r<e.length;r++)if(t=e[r].charCodeAt(0),t!==48){if(!(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return"";n+=e[r];break}for(r+=1;r<e.length;r++){if(t=e[r].charCodeAt(0),!(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return"";n+=e[r]}return n}var Wq=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function _v(e){return e.length=0,!0}function Gq(e,n,t){if(e.length){let r=Yf(e);if(r!=="")n.push(r);else return t.error=!0,!1;e.length=0}return!0}function Kq(e){let n=0,t={error:!1,address:"",zone:""},r=[],i=[],a=!1,l=!1,u=Gq;for(let d=0;d<e.length;d++){let p=e[d];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(l=!0),!u(i,r,t))break;if(++n>7){t.error=!0;break}d>0&&e[d-1]===":"&&(a=!0),r.push(":");continue}else if(p==="%"){if(!u(i,r,t))break;u=_v}else{i.push(p);continue}}return i.length&&(u===_v?t.zone=i.join(""):l?r.push(i.join("")):r.push(Yf(i))),t.address=r.join(""),t}function vv(e){if(Jq(e,":")<2)return{host:e,isIPV6:!1};let n=Kq(e);if(n.error)return{host:e,isIPV6:!1};{let t=n.address,r=n.address;return n.zone&&(t+="%"+n.zone,r+="%25"+n.zone),{host:t,isIPV6:!0,escapedHost:r}}}function Jq(e,n){let t=0;for(let r=0;r<e.length;r++)e[r]===n&&t++;return t}function Zq(e){let n=e,t=[],r=-1,i=0;for(;i=n.length;){if(i===1){if(n===".")break;if(n==="/"){t.push("/");break}else{t.push(n);break}}else if(i===2){if(n[0]==="."){if(n[1]===".")break;if(n[1]==="/"){n=n.slice(2);continue}}else if(n[0]==="/"&&(n[1]==="."||n[1]==="/")){t.push("/");break}}else if(i===3&&n==="/.."){t.length!==0&&t.pop(),t.push("/");break}if(n[0]==="."){if(n[1]==="."){if(n[2]==="/"){n=n.slice(3);continue}}else if(n[1]==="/"){n=n.slice(2);continue}}else if(n[0]==="/"&&n[1]==="."){if(n[2]==="/"){n=n.slice(2);continue}else if(n[2]==="."&&n[3]==="/"){n=n.slice(3),t.length!==0&&t.pop();continue}}if((r=n.indexOf("/",1))===-1){t.push(n);break}else t.push(n.slice(0,r)),n=n.slice(r)}return t.join("")}function Yq(e,n){let t=n!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=t(e.scheme)),e.userinfo!==void 0&&(e.userinfo=t(e.userinfo)),e.host!==void 0&&(e.host=t(e.host)),e.path!==void 0&&(e.path=t(e.path)),e.query!==void 0&&(e.query=t(e.query)),e.fragment!==void 0&&(e.fragment=t(e.fragment)),e}function Xq(e){let n=[];if(e.userinfo!==void 0&&(n.push(e.userinfo),n.push("@")),e.host!==void 0){let t=unescape(e.host);if(!yv(t)){let r=vv(t);r.isIPV6===!0?t=`[${r.escapedHost}]`:t=e.host}n.push(t)}return(typeof e.port=="number"||typeof e.port=="string")&&(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}bv.exports={nonSimpleDomain:Wq,recomposeAuthority:Xq,normalizeComponentEncoding:Yq,removeDotSegments:Zq,isIPv4:yv,isUUID:Uq,normalizeIPv6:vv,stringArrayToHexStripped:Yf}});var Sv=v((lQ,Cv)=>{"use strict";var{isUUID:Qq}=Xf(),ej=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,tj=["http","https","ws","wss","urn","urn:uuid"];function nj(e){return tj.indexOf(e)!==-1}function Qf(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function wv(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function xv(e){let n=String(e.scheme).toLowerCase()==="https";return(e.port===(n?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function rj(e){return e.secure=Qf(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function ij(e){if((e.port===(Qf(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[n,t]=e.resourceName.split("?");e.path=n&&n!=="/"?n:void 0,e.query=t,e.resourceName=void 0}return e.fragment=void 0,e}function oj(e,n){if(!e.path)return e.error="URN can not be parsed",e;let t=e.path.match(ej);if(t){let r=n.scheme||e.scheme||"urn";e.nid=t[1].toLowerCase(),e.nss=t[2];let i=`${r}:${n.nid||e.nid}`,a=ep(i);e.path=void 0,a&&(e=a.parse(e,n))}else e.error=e.error||"URN can not be parsed.";return e}function sj(e,n){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let t=n.scheme||e.scheme||"urn",r=e.nid.toLowerCase(),i=`${t}:${n.nid||r}`,a=ep(i);a&&(e=a.serialize(e,n));let l=e,u=e.nss;return l.path=`${r||n.nid}:${u}`,n.skipEscape=!0,l}function aj(e,n){let t=e;return t.uuid=t.nss,t.nss=void 0,!n.tolerant&&(!t.uuid||!Qq(t.uuid))&&(t.error=t.error||"UUID is not valid."),t}function lj(e){let n=e;return n.nss=(e.uuid||"").toLowerCase(),n}var Iv={scheme:"http",domainHost:!0,parse:wv,serialize:xv},uj={scheme:"https",domainHost:Iv.domainHost,parse:wv,serialize:xv},cu={scheme:"ws",domainHost:!0,parse:rj,serialize:ij},cj={scheme:"wss",domainHost:cu.domainHost,parse:cu.parse,serialize:cu.serialize},dj={scheme:"urn",parse:oj,serialize:sj,skipNormalize:!0},fj={scheme:"urn:uuid",parse:aj,serialize:lj,skipNormalize:!0},du={http:Iv,https:uj,ws:cu,wss:cj,urn:dj,"urn:uuid":fj};Object.setPrototypeOf(du,null);function ep(e){return e&&(du[e]||du[e.toLowerCase()])||void 0}Cv.exports={wsIsSecure:Qf,SCHEMES:du,isValidSchemeName:nj,getSchemeHandler:ep}});var Pv=v((uQ,pu)=>{"use strict";var{normalizeIPv6:pj,removeDotSegments:Es,recomposeAuthority:hj,normalizeComponentEncoding:fu,isIPv4:mj,nonSimpleDomain:gj}=Xf(),{SCHEMES:_j,getSchemeHandler:Dv}=Sv();function yj(e,n){return typeof e=="string"?e=ur(Sr(e,n),n):typeof e=="object"&&(e=Sr(ur(e,n),n)),e}function vj(e,n,t){let r=t?Object.assign({scheme:"null"},t):{scheme:"null"},i=Ov(Sr(e,r),Sr(n,r),r,!0);return r.skipEscape=!0,ur(i,r)}function Ov(e,n,t,r){let i={};return r||(e=Sr(ur(e,t),t),n=Sr(ur(n,t),t)),t=t||{},!t.tolerant&&n.scheme?(i.scheme=n.scheme,i.userinfo=n.userinfo,i.host=n.host,i.port=n.port,i.path=Es(n.path||""),i.query=n.query):(n.userinfo!==void 0||n.host!==void 0||n.port!==void 0?(i.userinfo=n.userinfo,i.host=n.host,i.port=n.port,i.path=Es(n.path||""),i.query=n.query):(n.path?(n.path[0]==="/"?i.path=Es(n.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+n.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+n.path:i.path=n.path,i.path=Es(i.path)),i.query=n.query):(i.path=e.path,n.query!==void 0?i.query=n.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=n.fragment,i}function bj(e,n,t){return typeof e=="string"?(e=unescape(e),e=ur(fu(Sr(e,t),!0),Ke(ue({},t),{skipEscape:!0}))):typeof e=="object"&&(e=ur(fu(e,!0),Ke(ue({},t),{skipEscape:!0}))),typeof n=="string"?(n=unescape(n),n=ur(fu(Sr(n,t),!0),Ke(ue({},t),{skipEscape:!0}))):typeof n=="object"&&(n=ur(fu(n,!0),Ke(ue({},t),{skipEscape:!0}))),e.toLowerCase()===n.toLowerCase()}function ur(e,n){let t={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},r=Object.assign({},n),i=[],a=Dv(r.scheme||t.scheme);a&&a.serialize&&a.serialize(t,r),t.path!==void 0&&(r.skipEscape?t.path=unescape(t.path):(t.path=escape(t.path),t.scheme!==void 0&&(t.path=t.path.split("%3A").join(":")))),r.reference!=="suffix"&&t.scheme&&i.push(t.scheme,":");let l=hj(t);if(l!==void 0&&(r.reference!=="suffix"&&i.push("//"),i.push(l),t.path&&t.path[0]!=="/"&&i.push("/")),t.path!==void 0){let u=t.path;!r.absolutePath&&(!a||!a.absolutePath)&&(u=Es(u)),l===void 0&&u[0]==="/"&&u[1]==="/"&&(u="/%2F"+u.slice(2)),i.push(u)}return t.query!==void 0&&i.push("?",t.query),t.fragment!==void 0&&i.push("#",t.fragment),i.join("")}var wj=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Sr(e,n){let t=Object.assign({},n),r={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=!1;t.reference==="suffix"&&(t.scheme?e=t.scheme+":"+e:e="//"+e);let a=e.match(wj);if(a){if(r.scheme=a[1],r.userinfo=a[3],r.host=a[4],r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=a[7],r.fragment=a[8],isNaN(r.port)&&(r.port=a[5]),r.host)if(mj(r.host)===!1){let d=pj(r.host);r.host=d.host.toLowerCase(),i=d.isIPV6}else i=!0;r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&r.query===void 0&&!r.path?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",t.reference&&t.reference!=="suffix"&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");let l=Dv(t.scheme||r.scheme);if(!t.unicodeSupport&&(!l||!l.unicodeSupport)&&r.host&&(t.domainHost||l&&l.domainHost)&&i===!1&&gj(r.host))try{r.host=URL.domainToASCII(r.host.toLowerCase())}catch(u){r.error=r.error||"Host's domain name can not be converted to ASCII: "+u}(!l||l&&!l.skipNormalize)&&(e.indexOf("%")!==-1&&(r.scheme!==void 0&&(r.scheme=unescape(r.scheme)),r.host!==void 0&&(r.host=unescape(r.host))),r.path&&(r.path=escape(unescape(r.path))),r.fragment&&(r.fragment=encodeURI(decodeURIComponent(r.fragment)))),l&&l.parse&&l.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}var tp={SCHEMES:_j,normalize:yj,resolve:vj,resolveComponent:Ov,equal:bj,serialize:ur,parse:Sr};pu.exports=tp;pu.exports.default=tp;pu.exports.fastUri=tp});var Tv=v(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});var Ev=Pv();Ev.code='require("ajv/dist/runtime/uri").default';np.default=Ev});var op=v(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.CodeGen=Ct.Name=Ct.nil=Ct.stringify=Ct.str=Ct._=Ct.KeywordCxt=void 0;var xj=ho();Object.defineProperty(Ct,"KeywordCxt",{enumerable:!0,get:function(){return xj.KeywordCxt}});var _o=ae();Object.defineProperty(Ct,"_",{enumerable:!0,get:function(){return _o._}});Object.defineProperty(Ct,"str",{enumerable:!0,get:function(){return _o.str}});Object.defineProperty(Ct,"stringify",{enumerable:!0,get:function(){return _o.stringify}});Object.defineProperty(Ct,"nil",{enumerable:!0,get:function(){return _o.nil}});Object.defineProperty(Ct,"Name",{enumerable:!0,get:function(){return _o.Name}});Object.defineProperty(Ct,"CodeGen",{enumerable:!0,get:function(){return _o.CodeGen}});var Ij=Os(),kv=mo(),Cj=Rf(),Ts=Ps(),Sj=ae(),$s=Cs(),hu=Is(),ip=Oe(),$v=gv(),Dj=Tv(),Av=(e,n)=>new RegExp(e,n);Av.code="new RegExp";var Oj=["removeAdditional","useDefaults","coerceTypes"],Pj=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Ej={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},Tj={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Rv=200;function $j(e){var n,t,r,i,a,l,u,d,p,m,_,w,x,S,b,T,R,Q,K,J,A,W,z,G,ne;let de=e.strict,Ne=(n=e.code)===null||n===void 0?void 0:n.optimize,He=Ne===!0||Ne===void 0?1:Ne||0,ot=(r=(t=e.code)===null||t===void 0?void 0:t.regExp)!==null&&r!==void 0?r:Av,Xn=(i=e.uriResolver)!==null&&i!==void 0?i:Dj.default;return{strictSchema:(l=(a=e.strictSchema)!==null&&a!==void 0?a:de)!==null&&l!==void 0?l:!0,strictNumbers:(d=(u=e.strictNumbers)!==null&&u!==void 0?u:de)!==null&&d!==void 0?d:!0,strictTypes:(m=(p=e.strictTypes)!==null&&p!==void 0?p:de)!==null&&m!==void 0?m:"log",strictTuples:(w=(_=e.strictTuples)!==null&&_!==void 0?_:de)!==null&&w!==void 0?w:"log",strictRequired:(S=(x=e.strictRequired)!==null&&x!==void 0?x:de)!==null&&S!==void 0?S:!1,code:e.code?Ke(ue({},e.code),{optimize:He,regExp:ot}):{optimize:He,regExp:ot},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:Rv,loopEnum:(T=e.loopEnum)!==null&&T!==void 0?T:Rv,meta:(R=e.meta)!==null&&R!==void 0?R:!0,messages:(Q=e.messages)!==null&&Q!==void 0?Q:!0,inlineRefs:(K=e.inlineRefs)!==null&&K!==void 0?K:!0,schemaId:(J=e.schemaId)!==null&&J!==void 0?J:"$id",addUsedSchema:(A=e.addUsedSchema)!==null&&A!==void 0?A:!0,validateSchema:(W=e.validateSchema)!==null&&W!==void 0?W:!0,validateFormats:(z=e.validateFormats)!==null&&z!==void 0?z:!0,unicodeRegExp:(G=e.unicodeRegExp)!==null&&G!==void 0?G:!0,int32range:(ne=e.int32range)!==null&&ne!==void 0?ne:!0,uriResolver:Xn}}var Rs=class{constructor(n={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,n=this.opts=ue(ue({},n),$j(n));let{es5:t,lines:r}=this.opts.code;this.scope=new Sj.ValueScope({scope:{},prefixes:Pj,es5:t,lines:r}),this.logger=Fj(n.logger);let i=n.validateFormats;n.validateFormats=!1,this.RULES=(0,Cj.getRules)(),Mv.call(this,Ej,n,"NOT SUPPORTED"),Mv.call(this,Tj,n,"DEPRECATED","warn"),this._metaOpts=kj.call(this),n.formats&&Mj.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),n.keywords&&Nj.call(this,n.keywords),typeof n.meta=="object"&&this.addMetaSchema(n.meta),Rj.call(this),n.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:n,meta:t,schemaId:r}=this.opts,i=$v;r==="id"&&(i=ue({},$v),i.id=i.$id,delete i.$id),t&&n&&this.addMetaSchema(i,i[r],!1)}defaultMeta(){let{meta:n,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof n=="object"?n[t]||n:void 0}validate(n,t){let r;if(typeof n=="string"){if(r=this.getSchema(n),!r)throw new Error(`no schema with key or ref "${n}"`)}else r=this.compile(n);let i=r(t);return"$async"in r||(this.errors=r.errors),i}compile(n,t){let r=this._addSchema(n,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(n,t){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return i.call(this,n,t);function i(m,_){return to(this,null,function*(){yield a.call(this,m.$schema);let w=this._addSchema(m,_);return w.validate||l.call(this,w)})}function a(m){return to(this,null,function*(){m&&!this.getSchema(m)&&(yield i.call(this,{$ref:m},!0))})}function l(m){return to(this,null,function*(){try{return this._compileSchemaEnv(m)}catch(_){if(!(_ instanceof kv.default))throw _;return u.call(this,_),yield d.call(this,_.missingSchema),l.call(this,m)}})}function u({missingSchema:m,missingRef:_}){if(this.refs[m])throw new Error(`AnySchema ${m} is loaded but ${_} cannot be resolved`)}function d(m){return to(this,null,function*(){let _=yield p.call(this,m);this.refs[m]||(yield a.call(this,_.$schema)),this.refs[m]||this.addSchema(_,m,t)})}function p(m){return to(this,null,function*(){let _=this._loading[m];if(_)return _;try{return yield this._loading[m]=r(m)}finally{delete this._loading[m]}})}}addSchema(n,t,r,i=this.opts.validateSchema){if(Array.isArray(n)){for(let l of n)this.addSchema(l,void 0,r,i);return this}let a;if(typeof n=="object"){let{schemaId:l}=this.opts;if(a=n[l],a!==void 0&&typeof a!="string")throw new Error(`schema ${l} must be string`)}return t=(0,$s.normalizeId)(t||a),this._checkUnique(t),this.schemas[t]=this._addSchema(n,r,t,i,!0),this}addMetaSchema(n,t,r=this.opts.validateSchema){return this.addSchema(n,t,!0,r),this}validateSchema(n,t){if(typeof n=="boolean")return!0;let r;if(r=n.$schema,r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(r,n);if(!i&&t){let a="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(a);else throw new Error(a)}return i}getSchema(n){let t;for(;typeof(t=Nv.call(this,n))=="string";)n=t;if(t===void 0){let{schemaId:r}=this.opts,i=new Ts.SchemaEnv({schema:{},schemaId:r});if(t=Ts.resolveSchema.call(this,i,n),!t)return;this.refs[n]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(n){if(n instanceof RegExp)return this._removeAllSchemas(this.schemas,n),this._removeAllSchemas(this.refs,n),this;switch(typeof n){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let t=Nv.call(this,n);return typeof t=="object"&&this._cache.delete(t.schema),delete this.schemas[n],delete this.refs[n],this}case"object":{let t=n;this._cache.delete(t);let r=n[this.opts.schemaId];return r&&(r=(0,$s.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(n){for(let t of n)this.addKeyword(t);return this}addKeyword(n,t){let r;if(typeof n=="string")r=n,typeof t=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else if(typeof n=="object"&&t===void 0){if(t=n,r=t.keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(jj.call(this,r,t),!t)return(0,ip.eachItem)(r,a=>rp.call(this,a)),this;Vj.call(this,t);let i=Ke(ue({},t),{type:(0,hu.getJSONTypes)(t.type),schemaType:(0,hu.getJSONTypes)(t.schemaType)});return(0,ip.eachItem)(r,i.type.length===0?a=>rp.call(this,a,i):a=>i.type.forEach(l=>rp.call(this,a,i,l))),this}getKeyword(n){let t=this.RULES.all[n];return typeof t=="object"?t.definition:!!t}removeKeyword(n){let{RULES:t}=this;delete t.keywords[n],delete t.all[n];for(let r of t.rules){let i=r.rules.findIndex(a=>a.keyword===n);i>=0&&r.rules.splice(i,1)}return this}addFormat(n,t){return typeof t=="string"&&(t=new RegExp(t)),this.formats[n]=t,this}errorsText(n=this.errors,{separator:t=", ",dataVar:r="data"}={}){return!n||n.length===0?"No errors":n.map(i=>`${r}${i.instancePath} ${i.message}`).reduce((i,a)=>i+t+a)}$dataMetaSchema(n,t){let r=this.RULES.all;n=JSON.parse(JSON.stringify(n));for(let i of t){let a=i.split("/").slice(1),l=n;for(let u of a)l=l[u];for(let u in r){let d=r[u];if(typeof d!="object")continue;let{$data:p}=d.definition,m=l[u];p&&m&&(l[u]=Fv(m))}}return n}_removeAllSchemas(n,t){for(let r in n){let i=n[r];(!t||t.test(r))&&(typeof i=="string"?delete n[r]:i&&!i.meta&&(this._cache.delete(i.schema),delete n[r]))}}_addSchema(n,t,r,i=this.opts.validateSchema,a=this.opts.addUsedSchema){let l,{schemaId:u}=this.opts;if(typeof n=="object")l=n[u];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof n!="boolean")throw new Error("schema must be object or boolean")}let d=this._cache.get(n);if(d!==void 0)return d;r=(0,$s.normalizeId)(l||r);let p=$s.getSchemaRefs.call(this,n,r);return d=new Ts.SchemaEnv({schema:n,schemaId:u,meta:t,baseId:r,localRefs:p}),this._cache.set(d.schema,d),a&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=d),i&&this.validateSchema(n,!0),d}_checkUnique(n){if(this.schemas[n]||this.refs[n])throw new Error(`schema with key or id "${n}" already exists`)}_compileSchemaEnv(n){if(n.meta?this._compileMetaSchema(n):Ts.compileSchema.call(this,n),!n.validate)throw new Error("ajv implementation error");return n.validate}_compileMetaSchema(n){let t=this.opts;this.opts=this._metaOpts;try{Ts.compileSchema.call(this,n)}finally{this.opts=t}}};Rs.ValidationError=Ij.default;Rs.MissingRefError=kv.default;Ct.default=Rs;function Mv(e,n,t,r="error"){for(let i in e){let a=i;a in n&&this.logger[r](`${t}: option ${i}. ${e[a]}`)}}function Nv(e){return e=(0,$s.normalizeId)(e),this.schemas[e]||this.refs[e]}function Rj(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let n in e)this.addSchema(e[n],n)}function Mj(){for(let e in this.opts.formats){let n=this.opts.formats[e];n&&this.addFormat(e,n)}}function Nj(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let n in e){let t=e[n];t.keyword||(t.keyword=n),this.addKeyword(t)}}function kj(){let e=ue({},this.opts);for(let n of Oj)delete e[n];return e}var Aj={log(){},warn(){},error(){}};function Fj(e){if(e===!1)return Aj;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var qj=/^[a-z_$][a-z0-9_$:-]*$/i;function jj(e,n){let{RULES:t}=this;if((0,ip.eachItem)(e,r=>{if(t.keywords[r])throw new Error(`Keyword ${r} is already defined`);if(!qj.test(r))throw new Error(`Keyword ${r} has invalid name`)}),!!n&&n.$data&&!("code"in n||"validate"in n))throw new Error('$data keyword must have "code" or "validate" function')}function rp(e,n,t){var r;let i=n?.post;if(t&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:a}=this,l=i?a.post:a.rules.find(({type:d})=>d===t);if(l||(l={type:t,rules:[]},a.rules.push(l)),a.keywords[e]=!0,!n)return;let u={keyword:e,definition:Ke(ue({},n),{type:(0,hu.getJSONTypes)(n.type),schemaType:(0,hu.getJSONTypes)(n.schemaType)})};n.before?Lj.call(this,l,u,n.before):l.rules.push(u),a.all[e]=u,(r=n.implements)===null||r===void 0||r.forEach(d=>this.addKeyword(d))}function Lj(e,n,t){let r=e.rules.findIndex(i=>i.keyword===t);r>=0?e.rules.splice(r,0,n):(e.rules.push(n),this.logger.warn(`rule ${t} is not defined`))}function Vj(e){let{metaSchema:n}=e;n!==void 0&&(e.$data&&this.opts.$data&&(n=Fv(n)),e.validateSchema=this.compile(n,!0))}var zj={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Fv(e){return{anyOf:[e,zj]}}});var qv=v(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});var Hj={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};sp.default=Hj});var _u=v(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.callRef=Di.getValidate=void 0;var Bj=mo(),jv=En(),Xt=ae(),yo=Pn(),Lv=Ps(),mu=Oe(),Uj={keyword:"$ref",schemaType:"string",code(e){let{gen:n,schema:t,it:r}=e,{baseId:i,schemaEnv:a,validateName:l,opts:u,self:d}=r,{root:p}=a;if((t==="#"||t==="#/")&&i===p.baseId)return _();let m=Lv.resolveRef.call(d,p,i,t);if(m===void 0)throw new Bj.default(r.opts.uriResolver,i,t);if(m instanceof Lv.SchemaEnv)return w(m);return x(m);function _(){if(a===p)return gu(e,l,a,a.$async);let S=n.scopeValue("root",{ref:p});return gu(e,(0,Xt._)`${S}.validate`,p,p.$async)}function w(S){let b=Vv(e,S);gu(e,b,S,S.$async)}function x(S){let b=n.scopeValue("schema",u.code.source===!0?{ref:S,code:(0,Xt.stringify)(S)}:{ref:S}),T=n.name("valid"),R=e.subschema({schema:S,dataTypes:[],schemaPath:Xt.nil,topSchemaRef:b,errSchemaPath:t},T);e.mergeEvaluated(R),e.ok(T)}}};function Vv(e,n){let{gen:t}=e;return n.validate?t.scopeValue("validate",{ref:n.validate}):(0,Xt._)`${t.scopeValue("wrapper",{ref:n})}.validate`}Di.getValidate=Vv;function gu(e,n,t,r){let{gen:i,it:a}=e,{allErrors:l,schemaEnv:u,opts:d}=a,p=d.passContext?yo.default.this:Xt.nil;r?m():_();function m(){if(!u.$async)throw new Error("async schema referenced by sync schema");let S=i.let("valid");i.try(()=>{i.code((0,Xt._)`await ${(0,jv.callValidateCode)(e,n,p)}`),x(n),l||i.assign(S,!0)},b=>{i.if((0,Xt._)`!(${b} instanceof ${a.ValidationError})`,()=>i.throw(b)),w(b),l||i.assign(S,!1)}),e.ok(S)}function _(){e.result((0,jv.callValidateCode)(e,n,p),()=>x(n),()=>w(n))}function w(S){let b=(0,Xt._)`${S}.errors`;i.assign(yo.default.vErrors,(0,Xt._)`${yo.default.vErrors} === null ? ${b} : ${yo.default.vErrors}.concat(${b})`),i.assign(yo.default.errors,(0,Xt._)`${yo.default.vErrors}.length`)}function x(S){var b;if(!a.opts.unevaluated)return;let T=(b=t?.validate)===null||b===void 0?void 0:b.evaluated;if(a.props!==!0)if(T&&!T.dynamicProps)T.props!==void 0&&(a.props=mu.mergeEvaluated.props(i,T.props,a.props));else{let R=i.var("props",(0,Xt._)`${S}.evaluated.props`);a.props=mu.mergeEvaluated.props(i,R,a.props,Xt.Name)}if(a.items!==!0)if(T&&!T.dynamicItems)T.items!==void 0&&(a.items=mu.mergeEvaluated.items(i,T.items,a.items));else{let R=i.var("items",(0,Xt._)`${S}.evaluated.items`);a.items=mu.mergeEvaluated.items(i,R,a.items,Xt.Name)}}}Di.callRef=gu;Di.default=Uj});var zv=v(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});var Wj=qv(),Gj=_u(),Kj=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Wj.default,Gj.default];ap.default=Kj});var Hv=v(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var yu=ae(),Qr=yu.operators,vu={maximum:{okStr:"<=",ok:Qr.LTE,fail:Qr.GT},minimum:{okStr:">=",ok:Qr.GTE,fail:Qr.LT},exclusiveMaximum:{okStr:"<",ok:Qr.LT,fail:Qr.GTE},exclusiveMinimum:{okStr:">",ok:Qr.GT,fail:Qr.LTE}},Jj={message:({keyword:e,schemaCode:n})=>(0,yu.str)`must be ${vu[e].okStr} ${n}`,params:({keyword:e,schemaCode:n})=>(0,yu._)`{comparison: ${vu[e].okStr}, limit: ${n}}`},Zj={keyword:Object.keys(vu),type:"number",schemaType:"number",$data:!0,error:Jj,code(e){let{keyword:n,data:t,schemaCode:r}=e;e.fail$data((0,yu._)`${t} ${vu[n].fail} ${r} || isNaN(${t})`)}};lp.default=Zj});var Bv=v(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});var Ms=ae(),Yj={message:({schemaCode:e})=>(0,Ms.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ms._)`{multipleOf: ${e}}`},Xj={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Yj,code(e){let{gen:n,data:t,schemaCode:r,it:i}=e,a=i.opts.multipleOfPrecision,l=n.let("res"),u=a?(0,Ms._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${a}`:(0,Ms._)`${l} !== parseInt(${l})`;e.fail$data((0,Ms._)`(${r} === 0 || (${l} = ${t}/${r}, ${u}))`)}};up.default=Xj});var Wv=v(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});function Uv(e){let n=e.length,t=0,r=0,i;for(;r<n;)t++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<n&&(i=e.charCodeAt(r),(i&64512)===56320&&r++);return t}cp.default=Uv;Uv.code='require("ajv/dist/runtime/ucs2length").default'});var Gv=v(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var Oi=ae(),Qj=Oe(),eL=Wv(),tL={message({keyword:e,schemaCode:n}){let t=e==="maxLength"?"more":"fewer";return(0,Oi.str)`must NOT have ${t} than ${n} characters`},params:({schemaCode:e})=>(0,Oi._)`{limit: ${e}}`},nL={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:tL,code(e){let{keyword:n,data:t,schemaCode:r,it:i}=e,a=n==="maxLength"?Oi.operators.GT:Oi.operators.LT,l=i.opts.unicode===!1?(0,Oi._)`${t}.length`:(0,Oi._)`${(0,Qj.useFunc)(e.gen,eL.default)}(${t})`;e.fail$data((0,Oi._)`${l} ${a} ${r}`)}};dp.default=nL});var Kv=v(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});var rL=En(),bu=ae(),iL={message:({schemaCode:e})=>(0,bu.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,bu._)`{pattern: ${e}}`},oL={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:iL,code(e){let{data:n,$data:t,schema:r,schemaCode:i,it:a}=e,l=a.opts.unicodeRegExp?"u":"",u=t?(0,bu._)`(new RegExp(${i}, ${l}))`:(0,rL.usePattern)(e,r);e.fail$data((0,bu._)`!${u}.test(${n})`)}};fp.default=oL});var Jv=v(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});var Ns=ae(),sL={message({keyword:e,schemaCode:n}){let t=e==="maxProperties"?"more":"fewer";return(0,Ns.str)`must NOT have ${t} than ${n} properties`},params:({schemaCode:e})=>(0,Ns._)`{limit: ${e}}`},aL={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:sL,code(e){let{keyword:n,data:t,schemaCode:r}=e,i=n==="maxProperties"?Ns.operators.GT:Ns.operators.LT;e.fail$data((0,Ns._)`Object.keys(${t}).length ${i} ${r}`)}};pp.default=aL});var Zv=v(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var ks=En(),As=ae(),lL=Oe(),uL={message:({params:{missingProperty:e}})=>(0,As.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,As._)`{missingProperty: ${e}}`},cL={keyword:"required",type:"object",schemaType:"array",$data:!0,error:uL,code(e){let{gen:n,schema:t,schemaCode:r,data:i,$data:a,it:l}=e,{opts:u}=l;if(!a&&t.length===0)return;let d=t.length>=u.loopRequired;if(l.allErrors?p():m(),u.strictRequired){let x=e.parentSchema.properties,{definedProperties:S}=e.it;for(let b of t)if(x?.[b]===void 0&&!S.has(b)){let T=l.schemaEnv.baseId+l.errSchemaPath,R=`required property "${b}" is not defined at "${T}" (strictRequired)`;(0,lL.checkStrictMode)(l,R,l.opts.strictRequired)}}function p(){if(d||a)e.block$data(As.nil,_);else for(let x of t)(0,ks.checkReportMissingProp)(e,x)}function m(){let x=n.let("missing");if(d||a){let S=n.let("valid",!0);e.block$data(S,()=>w(x,S)),e.ok(S)}else n.if((0,ks.checkMissingProp)(e,t,x)),(0,ks.reportMissingProp)(e,x),n.else()}function _(){n.forOf("prop",r,x=>{e.setParams({missingProperty:x}),n.if((0,ks.noPropertyInData)(n,i,x,u.ownProperties),()=>e.error())})}function w(x,S){e.setParams({missingProperty:x}),n.forOf(x,r,()=>{n.assign(S,(0,ks.propertyInData)(n,i,x,u.ownProperties)),n.if((0,As.not)(S),()=>{e.error(),n.break()})},As.nil)}}};hp.default=cL});var Yv=v(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});var Fs=ae(),dL={message({keyword:e,schemaCode:n}){let t=e==="maxItems"?"more":"fewer";return(0,Fs.str)`must NOT have ${t} than ${n} items`},params:({schemaCode:e})=>(0,Fs._)`{limit: ${e}}`},fL={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:dL,code(e){let{keyword:n,data:t,schemaCode:r}=e,i=n==="maxItems"?Fs.operators.GT:Fs.operators.LT;e.fail$data((0,Fs._)`${t}.length ${i} ${r}`)}};mp.default=fL});var wu=v(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});var Xv=ou();Xv.code='require("ajv/dist/runtime/equal").default';gp.default=Xv});var Qv=v(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});var _p=Is(),St=ae(),pL=Oe(),hL=wu(),mL={message:({params:{i:e,j:n}})=>(0,St.str)`must NOT have duplicate items (items ## ${n} and ${e} are identical)`,params:({params:{i:e,j:n}})=>(0,St._)`{i: ${e}, j: ${n}}`},gL={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:mL,code(e){let{gen:n,data:t,$data:r,schema:i,parentSchema:a,schemaCode:l,it:u}=e;if(!r&&!i)return;let d=n.let("valid"),p=a.items?(0,_p.getSchemaTypes)(a.items):[];e.block$data(d,m,(0,St._)`${l} === false`),e.ok(d);function m(){let S=n.let("i",(0,St._)`${t}.length`),b=n.let("j");e.setParams({i:S,j:b}),n.assign(d,!0),n.if((0,St._)`${S} > 1`,()=>(_()?w:x)(S,b))}function _(){return p.length>0&&!p.some(S=>S==="object"||S==="array")}function w(S,b){let T=n.name("item"),R=(0,_p.checkDataTypes)(p,T,u.opts.strictNumbers,_p.DataType.Wrong),Q=n.const("indices",(0,St._)`{}`);n.for((0,St._)`;${S}--;`,()=>{n.let(T,(0,St._)`${t}[${S}]`),n.if(R,(0,St._)`continue`),p.length>1&&n.if((0,St._)`typeof ${T} == "string"`,(0,St._)`${T} += "_"`),n.if((0,St._)`typeof ${Q}[${T}] == "number"`,()=>{n.assign(b,(0,St._)`${Q}[${T}]`),e.error(),n.assign(d,!1).break()}).code((0,St._)`${Q}[${T}] = ${S}`)})}function x(S,b){let T=(0,pL.useFunc)(n,hL.default),R=n.name("outer");n.label(R).for((0,St._)`;${S}--;`,()=>n.for((0,St._)`${b} = ${S}; ${b}--;`,()=>n.if((0,St._)`${T}(${t}[${S}], ${t}[${b}])`,()=>{e.error(),n.assign(d,!1).break(R)})))}}};yp.default=gL});var eb=v(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var vp=ae(),_L=Oe(),yL=wu(),vL={message:"must be equal to constant",params:({schemaCode:e})=>(0,vp._)`{allowedValue: ${e}}`},bL={keyword:"const",$data:!0,error:vL,code(e){let{gen:n,data:t,$data:r,schemaCode:i,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,vp._)`!${(0,_L.useFunc)(n,yL.default)}(${t}, ${i})`):e.fail((0,vp._)`${a} !== ${t}`)}};bp.default=bL});var tb=v(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});var qs=ae(),wL=Oe(),xL=wu(),IL={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,qs._)`{allowedValues: ${e}}`},CL={keyword:"enum",schemaType:"array",$data:!0,error:IL,code(e){let{gen:n,data:t,$data:r,schema:i,schemaCode:a,it:l}=e;if(!r&&i.length===0)throw new Error("enum must have non-empty array");let u=i.length>=l.opts.loopEnum,d,p=()=>d??(d=(0,wL.useFunc)(n,xL.default)),m;if(u||r)m=n.let("valid"),e.block$data(m,_);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let x=n.const("vSchema",a);m=(0,qs.or)(...i.map((S,b)=>w(x,b)))}e.pass(m);function _(){n.assign(m,!1),n.forOf("v",a,x=>n.if((0,qs._)`${p()}(${t}, ${x})`,()=>n.assign(m,!0).break()))}function w(x,S){let b=i[S];return typeof b=="object"&&b!==null?(0,qs._)`${p()}(${t}, ${x}[${S}])`:(0,qs._)`${t} === ${b}`}}};wp.default=CL});var nb=v(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var SL=Hv(),DL=Bv(),OL=Gv(),PL=Kv(),EL=Jv(),TL=Zv(),$L=Yv(),RL=Qv(),ML=eb(),NL=tb(),kL=[SL.default,DL.default,OL.default,PL.default,EL.default,TL.default,$L.default,RL.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ML.default,NL.default];xp.default=kL});var Cp=v(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.validateAdditionalItems=void 0;var Pi=ae(),Ip=Oe(),AL={message:({params:{len:e}})=>(0,Pi.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Pi._)`{limit: ${e}}`},FL={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:AL,code(e){let{parentSchema:n,it:t}=e,{items:r}=n;if(!Array.isArray(r)){(0,Ip.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}rb(e,r)}};function rb(e,n){let{gen:t,schema:r,data:i,keyword:a,it:l}=e;l.items=!0;let u=t.const("len",(0,Pi._)`${i}.length`);if(r===!1)e.setParams({len:n.length}),e.pass((0,Pi._)`${u} <= ${n.length}`);else if(typeof r=="object"&&!(0,Ip.alwaysValidSchema)(l,r)){let p=t.var("valid",(0,Pi._)`${u} <= ${n.length}`);t.if((0,Pi.not)(p),()=>d(p)),e.ok(p)}function d(p){t.forRange("i",n.length,u,m=>{e.subschema({keyword:a,dataProp:m,dataPropType:Ip.Type.Num},p),l.allErrors||t.if((0,Pi.not)(p),()=>t.break())})}}js.validateAdditionalItems=rb;js.default=FL});var Sp=v(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.validateTuple=void 0;var ib=ae(),xu=Oe(),qL=En(),jL={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:n,it:t}=e;if(Array.isArray(n))return ob(e,"additionalItems",n);t.items=!0,!(0,xu.alwaysValidSchema)(t,n)&&e.ok((0,qL.validateArray)(e))}};function ob(e,n,t=e.schema){let{gen:r,parentSchema:i,data:a,keyword:l,it:u}=e;m(i),u.opts.unevaluated&&t.length&&u.items!==!0&&(u.items=xu.mergeEvaluated.items(r,t.length,u.items));let d=r.name("valid"),p=r.const("len",(0,ib._)`${a}.length`);t.forEach((_,w)=>{(0,xu.alwaysValidSchema)(u,_)||(r.if((0,ib._)`${p} > ${w}`,()=>e.subschema({keyword:l,schemaProp:w,dataProp:w},d)),e.ok(d))});function m(_){let{opts:w,errSchemaPath:x}=u,S=t.length,b=S===_.minItems&&(S===_.maxItems||_[n]===!1);if(w.strictTuples&&!b){let T=`"${l}" is ${S}-tuple, but minItems or maxItems/${n} are not specified or different at path "${x}"`;(0,xu.checkStrictMode)(u,T,w.strictTuples)}}}Ls.validateTuple=ob;Ls.default=jL});var sb=v(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var LL=Sp(),VL={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,LL.validateTuple)(e,"items")};Dp.default=VL});var lb=v(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});var ab=ae(),zL=Oe(),HL=En(),BL=Cp(),UL={message:({params:{len:e}})=>(0,ab.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ab._)`{limit: ${e}}`},WL={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:UL,code(e){let{schema:n,parentSchema:t,it:r}=e,{prefixItems:i}=t;r.items=!0,!(0,zL.alwaysValidSchema)(r,n)&&(i?(0,BL.validateAdditionalItems)(e,i):e.ok((0,HL.validateArray)(e)))}};Op.default=WL});var ub=v(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var $n=ae(),Iu=Oe(),GL={message:({params:{min:e,max:n}})=>n===void 0?(0,$n.str)`must contain at least ${e} valid item(s)`:(0,$n.str)`must contain at least ${e} and no more than ${n} valid item(s)`,params:({params:{min:e,max:n}})=>n===void 0?(0,$n._)`{minContains: ${e}}`:(0,$n._)`{minContains: ${e}, maxContains: ${n}}`},KL={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:GL,code(e){let{gen:n,schema:t,parentSchema:r,data:i,it:a}=e,l,u,{minContains:d,maxContains:p}=r;a.opts.next?(l=d===void 0?1:d,u=p):l=1;let m=n.const("len",(0,$n._)`${i}.length`);if(e.setParams({min:l,max:u}),u===void 0&&l===0){(0,Iu.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&l>u){(0,Iu.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Iu.alwaysValidSchema)(a,t)){let b=(0,$n._)`${m} >= ${l}`;u!==void 0&&(b=(0,$n._)`${b} && ${m} <= ${u}`),e.pass(b);return}a.items=!0;let _=n.name("valid");u===void 0&&l===1?x(_,()=>n.if(_,()=>n.break())):l===0?(n.let(_,!0),u!==void 0&&n.if((0,$n._)`${i}.length > 0`,w)):(n.let(_,!1),w()),e.result(_,()=>e.reset());function w(){let b=n.name("_valid"),T=n.let("count",0);x(b,()=>n.if(b,()=>S(T)))}function x(b,T){n.forRange("i",0,m,R=>{e.subschema({keyword:"contains",dataProp:R,dataPropType:Iu.Type.Num,compositeRule:!0},b),T()})}function S(b){n.code((0,$n._)`${b}++`),u===void 0?n.if((0,$n._)`${b} >= ${l}`,()=>n.assign(_,!0).break()):(n.if((0,$n._)`${b} > ${u}`,()=>n.assign(_,!1).break()),l===1?n.assign(_,!0):n.if((0,$n._)`${b} >= ${l}`,()=>n.assign(_,!0)))}}};Pp.default=KL});var Cu=v(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.validateSchemaDeps=cr.validatePropertyDeps=cr.error=void 0;var Ep=ae(),JL=Oe(),Vs=En();cr.error={message:({params:{property:e,depsCount:n,deps:t}})=>{let r=n===1?"property":"properties";return(0,Ep.str)`must have ${r} ${t} when property ${e} is present`},params:({params:{property:e,depsCount:n,deps:t,missingProperty:r}})=>(0,Ep._)`{property: ${e},
6
+ missingProperty: ${r},
7
+ depsCount: ${n},
8
+ deps: ${t}}`};var ZL={keyword:"dependencies",type:"object",schemaType:"object",error:cr.error,code(e){let[n,t]=YL(e);cb(e,n),db(e,t)}};function YL({schema:e}){let n={},t={};for(let r in e){if(r==="__proto__")continue;let i=Array.isArray(e[r])?n:t;i[r]=e[r]}return[n,t]}function cb(e,n=e.schema){let{gen:t,data:r,it:i}=e;if(Object.keys(n).length===0)return;let a=t.let("missing");for(let l in n){let u=n[l];if(u.length===0)continue;let d=(0,Vs.propertyInData)(t,r,l,i.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),i.allErrors?t.if(d,()=>{for(let p of u)(0,Vs.checkReportMissingProp)(e,p)}):(t.if((0,Ep._)`${d} && (${(0,Vs.checkMissingProp)(e,u,a)})`),(0,Vs.reportMissingProp)(e,a),t.else())}}cr.validatePropertyDeps=cb;function db(e,n=e.schema){let{gen:t,data:r,keyword:i,it:a}=e,l=t.name("valid");for(let u in n)(0,JL.alwaysValidSchema)(a,n[u])||(t.if((0,Vs.propertyInData)(t,r,u,a.opts.ownProperties),()=>{let d=e.subschema({keyword:i,schemaProp:u},l);e.mergeValidEvaluated(d,l)},()=>t.var(l,!0)),e.ok(l))}cr.validateSchemaDeps=db;cr.default=ZL});var pb=v(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var fb=ae(),XL=Oe(),QL={message:"property name must be valid",params:({params:e})=>(0,fb._)`{propertyName: ${e.propertyName}}`},eV={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:QL,code(e){let{gen:n,schema:t,data:r,it:i}=e;if((0,XL.alwaysValidSchema)(i,t))return;let a=n.name("valid");n.forIn("key",r,l=>{e.setParams({propertyName:l}),e.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},a),n.if((0,fb.not)(a),()=>{e.error(!0),i.allErrors||n.break()})}),e.ok(a)}};Tp.default=eV});var Rp=v($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var Su=En(),Wn=ae(),tV=Pn(),Du=Oe(),nV={message:"must NOT have additional properties",params:({params:e})=>(0,Wn._)`{additionalProperty: ${e.additionalProperty}}`},rV={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:nV,code(e){let{gen:n,schema:t,parentSchema:r,data:i,errsCount:a,it:l}=e;if(!a)throw new Error("ajv implementation error");let{allErrors:u,opts:d}=l;if(l.props=!0,d.removeAdditional!=="all"&&(0,Du.alwaysValidSchema)(l,t))return;let p=(0,Su.allSchemaProperties)(r.properties),m=(0,Su.allSchemaProperties)(r.patternProperties);_(),e.ok((0,Wn._)`${a} === ${tV.default.errors}`);function _(){n.forIn("key",i,T=>{!p.length&&!m.length?S(T):n.if(w(T),()=>S(T))})}function w(T){let R;if(p.length>8){let Q=(0,Du.schemaRefOrVal)(l,r.properties,"properties");R=(0,Su.isOwnProperty)(n,Q,T)}else p.length?R=(0,Wn.or)(...p.map(Q=>(0,Wn._)`${T} === ${Q}`)):R=Wn.nil;return m.length&&(R=(0,Wn.or)(R,...m.map(Q=>(0,Wn._)`${(0,Su.usePattern)(e,Q)}.test(${T})`))),(0,Wn.not)(R)}function x(T){n.code((0,Wn._)`delete ${i}[${T}]`)}function S(T){if(d.removeAdditional==="all"||d.removeAdditional&&t===!1){x(T);return}if(t===!1){e.setParams({additionalProperty:T}),e.error(),u||n.break();return}if(typeof t=="object"&&!(0,Du.alwaysValidSchema)(l,t)){let R=n.name("valid");d.removeAdditional==="failing"?(b(T,R,!1),n.if((0,Wn.not)(R),()=>{e.reset(),x(T)})):(b(T,R),u||n.if((0,Wn.not)(R),()=>n.break()))}}function b(T,R,Q){let K={keyword:"additionalProperties",dataProp:T,dataPropType:Du.Type.Str};Q===!1&&Object.assign(K,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(K,R)}}};$p.default=rV});var gb=v(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var iV=ho(),hb=En(),Mp=Oe(),mb=Rp(),oV={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:n,schema:t,parentSchema:r,data:i,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&mb.default.code(new iV.KeywordCxt(a,mb.default,"additionalProperties"));let l=(0,hb.allSchemaProperties)(t);for(let _ of l)a.definedProperties.add(_);a.opts.unevaluated&&l.length&&a.props!==!0&&(a.props=Mp.mergeEvaluated.props(n,(0,Mp.toHash)(l),a.props));let u=l.filter(_=>!(0,Mp.alwaysValidSchema)(a,t[_]));if(u.length===0)return;let d=n.name("valid");for(let _ of u)p(_)?m(_):(n.if((0,hb.propertyInData)(n,i,_,a.opts.ownProperties)),m(_),a.allErrors||n.else().var(d,!0),n.endIf()),e.it.definedProperties.add(_),e.ok(d);function p(_){return a.opts.useDefaults&&!a.compositeRule&&t[_].default!==void 0}function m(_){e.subschema({keyword:"properties",schemaProp:_,dataProp:_},d)}}};Np.default=oV});var bb=v(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});var _b=En(),Ou=ae(),yb=Oe(),vb=Oe(),sV={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:n,schema:t,data:r,parentSchema:i,it:a}=e,{opts:l}=a,u=(0,_b.allSchemaProperties)(t),d=u.filter(b=>(0,yb.alwaysValidSchema)(a,t[b]));if(u.length===0||d.length===u.length&&(!a.opts.unevaluated||a.props===!0))return;let p=l.strictSchema&&!l.allowMatchingProperties&&i.properties,m=n.name("valid");a.props!==!0&&!(a.props instanceof Ou.Name)&&(a.props=(0,vb.evaluatedPropsToName)(n,a.props));let{props:_}=a;w();function w(){for(let b of u)p&&x(b),a.allErrors?S(b):(n.var(m,!0),S(b),n.if(m))}function x(b){for(let T in p)new RegExp(b).test(T)&&(0,yb.checkStrictMode)(a,`property ${T} matches pattern ${b} (use allowMatchingProperties)`)}function S(b){n.forIn("key",r,T=>{n.if((0,Ou._)`${(0,_b.usePattern)(e,b)}.test(${T})`,()=>{let R=d.includes(b);R||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:T,dataPropType:vb.Type.Str},m),a.opts.unevaluated&&_!==!0?n.assign((0,Ou._)`${_}[${T}]`,!0):!R&&!a.allErrors&&n.if((0,Ou.not)(m),()=>n.break())})})}}};kp.default=sV});var wb=v(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var aV=Oe(),lV={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:n,schema:t,it:r}=e;if((0,aV.alwaysValidSchema)(r,t)){e.fail();return}let i=n.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Ap.default=lV});var xb=v(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var uV=En(),cV={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:uV.validateUnion,error:{message:"must match a schema in anyOf"}};Fp.default=cV});var Ib=v(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var Pu=ae(),dV=Oe(),fV={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Pu._)`{passingSchemas: ${e.passing}}`},pV={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:fV,code(e){let{gen:n,schema:t,parentSchema:r,it:i}=e;if(!Array.isArray(t))throw new Error("ajv implementation error");if(i.opts.discriminator&&r.discriminator)return;let a=t,l=n.let("valid",!1),u=n.let("passing",null),d=n.name("_valid");e.setParams({passing:u}),n.block(p),e.result(l,()=>e.reset(),()=>e.error(!0));function p(){a.forEach((m,_)=>{let w;(0,dV.alwaysValidSchema)(i,m)?n.var(d,!0):w=e.subschema({keyword:"oneOf",schemaProp:_,compositeRule:!0},d),_>0&&n.if((0,Pu._)`${d} && ${l}`).assign(l,!1).assign(u,(0,Pu._)`[${u}, ${_}]`).else(),n.if(d,()=>{n.assign(l,!0),n.assign(u,_),w&&e.mergeEvaluated(w,Pu.Name)})})}}};qp.default=pV});var Cb=v(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var hV=Oe(),mV={keyword:"allOf",schemaType:"array",code(e){let{gen:n,schema:t,it:r}=e;if(!Array.isArray(t))throw new Error("ajv implementation error");let i=n.name("valid");t.forEach((a,l)=>{if((0,hV.alwaysValidSchema)(r,a))return;let u=e.subschema({keyword:"allOf",schemaProp:l},i);e.ok(i),e.mergeEvaluated(u)})}};jp.default=mV});var Ob=v(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var Eu=ae(),Db=Oe(),gV={message:({params:e})=>(0,Eu.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Eu._)`{failingKeyword: ${e.ifClause}}`},_V={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:gV,code(e){let{gen:n,parentSchema:t,it:r}=e;t.then===void 0&&t.else===void 0&&(0,Db.checkStrictMode)(r,'"if" without "then" and "else" is ignored');let i=Sb(r,"then"),a=Sb(r,"else");if(!i&&!a)return;let l=n.let("valid",!0),u=n.name("_valid");if(d(),e.reset(),i&&a){let m=n.let("ifClause");e.setParams({ifClause:m}),n.if(u,p("then",m),p("else",m))}else i?n.if(u,p("then")):n.if((0,Eu.not)(u),p("else"));e.pass(l,()=>e.error(!0));function d(){let m=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(m)}function p(m,_){return()=>{let w=e.subschema({keyword:m},u);n.assign(l,u),e.mergeValidEvaluated(w,l),_?n.assign(_,(0,Eu._)`${m}`):e.setParams({ifClause:m})}}}};function Sb(e,n){let t=e.schema[n];return t!==void 0&&!(0,Db.alwaysValidSchema)(e,t)}Lp.default=_V});var Pb=v(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var yV=Oe(),vV={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:n,it:t}){n.if===void 0&&(0,yV.checkStrictMode)(t,`"${e}" without "if" is ignored`)}};Vp.default=vV});var Eb=v(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var bV=Cp(),wV=sb(),xV=Sp(),IV=lb(),CV=ub(),SV=Cu(),DV=pb(),OV=Rp(),PV=gb(),EV=bb(),TV=wb(),$V=xb(),RV=Ib(),MV=Cb(),NV=Ob(),kV=Pb();function AV(e=!1){let n=[TV.default,$V.default,RV.default,MV.default,NV.default,kV.default,DV.default,OV.default,SV.default,PV.default,EV.default];return e?n.push(wV.default,IV.default):n.push(bV.default,xV.default),n.push(CV.default),n}zp.default=AV});var Tb=v(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var mt=ae(),FV={message:({schemaCode:e})=>(0,mt.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,mt._)`{format: ${e}}`},qV={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:FV,code(e,n){let{gen:t,data:r,$data:i,schema:a,schemaCode:l,it:u}=e,{opts:d,errSchemaPath:p,schemaEnv:m,self:_}=u;if(!d.validateFormats)return;i?w():x();function w(){let S=t.scopeValue("formats",{ref:_.formats,code:d.code.formats}),b=t.const("fDef",(0,mt._)`${S}[${l}]`),T=t.let("fType"),R=t.let("format");t.if((0,mt._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>t.assign(T,(0,mt._)`${b}.type || "string"`).assign(R,(0,mt._)`${b}.validate`),()=>t.assign(T,(0,mt._)`"string"`).assign(R,b)),e.fail$data((0,mt.or)(Q(),K()));function Q(){return d.strictSchema===!1?mt.nil:(0,mt._)`${l} && !${R}`}function K(){let J=m.$async?(0,mt._)`(${b}.async ? await ${R}(${r}) : ${R}(${r}))`:(0,mt._)`${R}(${r})`,A=(0,mt._)`(typeof ${R} == "function" ? ${J} : ${R}.test(${r}))`;return(0,mt._)`${R} && ${R} !== true && ${T} === ${n} && !${A}`}}function x(){let S=_.formats[a];if(!S){Q();return}if(S===!0)return;let[b,T,R]=K(S);b===n&&e.pass(J());function Q(){if(d.strictSchema===!1){_.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${a}" ignored in schema at path "${p}"`}}function K(A){let W=A instanceof RegExp?(0,mt.regexpCode)(A):d.code.formats?(0,mt._)`${d.code.formats}${(0,mt.getProperty)(a)}`:void 0,z=t.scopeValue("formats",{key:a,ref:A,code:W});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,mt._)`${z}.validate`]:["string",A,z]}function J(){if(typeof S=="object"&&!(S instanceof RegExp)&&S.async){if(!m.$async)throw new Error("async format in sync schema");return(0,mt._)`await ${R}(${r})`}return typeof T=="function"?(0,mt._)`${R}(${r})`:(0,mt._)`${R}.test(${r})`}}}};Hp.default=qV});var $b=v(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var jV=Tb(),LV=[jV.default];Bp.default=LV});var Rb=v(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.contentVocabulary=vo.metadataVocabulary=void 0;vo.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];vo.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Wp=v(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var VV=zv(),zV=nb(),HV=Eb(),BV=$b(),Mb=Rb(),UV=[VV.default,zV.default,(0,HV.default)(),BV.default,Mb.metadataVocabulary,Mb.contentVocabulary];Up.default=UV});var kb=v(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.DiscrError=void 0;var Nb=(function(e){return e.Tag="tag",e.Mapping="mapping",e})(Nb||(Tu.DiscrError=Nb={}))});var Jp=v(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var bo=ae(),Gp=kb(),Ab=Ps(),WV=mo(),GV=Oe(),KV={message:({params:{discrError:e,tagName:n}})=>e===Gp.DiscrError.Tag?`tag "${n}" must be string`:`value of tag "${n}" must be in oneOf`,params:({params:{discrError:e,tag:n,tagName:t}})=>(0,bo._)`{error: ${e}, tag: ${t}, tagValue: ${n}}`},JV={keyword:"discriminator",type:"object",schemaType:"object",error:KV,code(e){let{gen:n,data:t,schema:r,parentSchema:i,it:a}=e,{oneOf:l}=i;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");let u=r.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");let d=n.let("valid",!1),p=n.const("tag",(0,bo._)`${t}${(0,bo.getProperty)(u)}`);n.if((0,bo._)`typeof ${p} == "string"`,()=>m(),()=>e.error(!1,{discrError:Gp.DiscrError.Tag,tag:p,tagName:u})),e.ok(d);function m(){let x=w();n.if(!1);for(let S in x)n.elseIf((0,bo._)`${p} === ${S}`),n.assign(d,_(x[S]));n.else(),e.error(!1,{discrError:Gp.DiscrError.Mapping,tag:p,tagName:u}),n.endIf()}function _(x){let S=n.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:x},S);return e.mergeEvaluated(b,bo.Name),S}function w(){var x;let S={},b=R(i),T=!0;for(let J=0;J<l.length;J++){let A=l[J];if(A?.$ref&&!(0,GV.schemaHasRulesButRef)(A,a.self.RULES)){let z=A.$ref;if(A=Ab.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,z),A instanceof Ab.SchemaEnv&&(A=A.schema),A===void 0)throw new WV.default(a.opts.uriResolver,a.baseId,z)}let W=(x=A?.properties)===null||x===void 0?void 0:x[u];if(typeof W!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);T=T&&(b||R(A)),Q(W,J)}if(!T)throw new Error(`discriminator: "${u}" must be required`);return S;function R({required:J}){return Array.isArray(J)&&J.includes(u)}function Q(J,A){if(J.const)K(J.const,A);else if(J.enum)for(let W of J.enum)K(W,A);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function K(J,A){if(typeof J!="string"||J in S)throw new Error(`discriminator: "${u}" values must be unique strings`);S[J]=A}}}};Kp.default=JV});var Fb=v((QQ,ZV)=>{ZV.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var jb=v((Qe,Zp)=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.MissingRefError=Qe.ValidationError=Qe.CodeGen=Qe.Name=Qe.nil=Qe.stringify=Qe.str=Qe._=Qe.KeywordCxt=Qe.Ajv=void 0;var YV=op(),XV=Wp(),QV=Jp(),qb=Fb(),e3=["/properties"],$u="http://json-schema.org/draft-07/schema",wo=class extends YV.default{_addVocabularies(){super._addVocabularies(),XV.default.forEach(n=>this.addVocabulary(n)),this.opts.discriminator&&this.addKeyword(QV.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let n=this.opts.$data?this.$dataMetaSchema(qb,e3):qb;this.addMetaSchema(n,$u,!1),this.refs["http://json-schema.org/schema"]=$u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema($u)?$u:void 0)}};Qe.Ajv=wo;Zp.exports=Qe=wo;Zp.exports.Ajv=wo;Object.defineProperty(Qe,"__esModule",{value:!0});Qe.default=wo;var t3=ho();Object.defineProperty(Qe,"KeywordCxt",{enumerable:!0,get:function(){return t3.KeywordCxt}});var xo=ae();Object.defineProperty(Qe,"_",{enumerable:!0,get:function(){return xo._}});Object.defineProperty(Qe,"str",{enumerable:!0,get:function(){return xo.str}});Object.defineProperty(Qe,"stringify",{enumerable:!0,get:function(){return xo.stringify}});Object.defineProperty(Qe,"nil",{enumerable:!0,get:function(){return xo.nil}});Object.defineProperty(Qe,"Name",{enumerable:!0,get:function(){return xo.Name}});Object.defineProperty(Qe,"CodeGen",{enumerable:!0,get:function(){return xo.CodeGen}});var n3=Os();Object.defineProperty(Qe,"ValidationError",{enumerable:!0,get:function(){return n3.default}});var r3=mo();Object.defineProperty(Qe,"MissingRefError",{enumerable:!0,get:function(){return r3.default}})});var Lb=v(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.formatLimitDefinition=void 0;var i3=jb(),Gn=ae(),ei=Gn.operators,Ru={formatMaximum:{okStr:"<=",ok:ei.LTE,fail:ei.GT},formatMinimum:{okStr:">=",ok:ei.GTE,fail:ei.LT},formatExclusiveMaximum:{okStr:"<",ok:ei.LT,fail:ei.GTE},formatExclusiveMinimum:{okStr:">",ok:ei.GT,fail:ei.LTE}},o3={message:({keyword:e,schemaCode:n})=>(0,Gn.str)`should be ${Ru[e].okStr} ${n}`,params:({keyword:e,schemaCode:n})=>(0,Gn._)`{comparison: ${Ru[e].okStr}, limit: ${n}}`};Io.formatLimitDefinition={keyword:Object.keys(Ru),type:"string",schemaType:"string",$data:!0,error:o3,code(e){let{gen:n,data:t,schemaCode:r,keyword:i,it:a}=e,{opts:l,self:u}=a;if(!l.validateFormats)return;let d=new i3.KeywordCxt(a,u.RULES.all.format.definition,"format");d.$data?p():m();function p(){let w=n.scopeValue("formats",{ref:u.formats,code:l.code.formats}),x=n.const("fmt",(0,Gn._)`${w}[${d.schemaCode}]`);e.fail$data((0,Gn.or)((0,Gn._)`typeof ${x} != "object"`,(0,Gn._)`${x} instanceof RegExp`,(0,Gn._)`typeof ${x}.compare != "function"`,_(x)))}function m(){let w=d.schema,x=u.formats[w];if(!x||x===!0)return;if(typeof x!="object"||x instanceof RegExp||typeof x.compare!="function")throw new Error(`"${i}": format "${w}" does not define "compare" function`);let S=n.scopeValue("formats",{key:w,ref:x,code:l.code.formats?(0,Gn._)`${l.code.formats}${(0,Gn.getProperty)(w)}`:void 0});e.fail$data(_(S))}function _(w){return(0,Gn._)`${w}.compare(${t}, ${r}) ${Ru[i].fail} 0`}},dependencies:["format"]};var s3=e=>(e.addKeyword(Io.formatLimitDefinition),e);Io.default=s3});var Bb=v((zs,Hb)=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var Co=p0(),a3=Lb(),Yp=ae(),Vb=new Yp.Name("fullFormats"),l3=new Yp.Name("fastFormats"),Xp=(e,n={keywords:!0})=>{if(Array.isArray(n))return zb(e,n,Co.fullFormats,Vb),e;let[t,r]=n.mode==="fast"?[Co.fastFormats,l3]:[Co.fullFormats,Vb],i=n.formats||Co.formatNames;return zb(e,i,t,r),n.keywords&&(0,a3.default)(e),e};Xp.get=(e,n="full")=>{let r=(n==="fast"?Co.fastFormats:Co.fullFormats)[e];if(!r)throw new Error(`Unknown format "${e}"`);return r};function zb(e,n,t,r){var i,a;(i=(a=e.opts.code).formats)!==null&&i!==void 0||(a.formats=(0,Yp._)`require("ajv-formats/dist/formats").${r}`);for(let l of n)e.addFormat(l,t[l])}Hb.exports=zs=Xp;Object.defineProperty(zs,"__esModule",{value:!0});zs.default=Xp});var eh=v(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.dynamicAnchor=void 0;var Qp=ae(),u3=Pn(),Ub=Ps(),c3=_u(),d3={keyword:"$dynamicAnchor",schemaType:"string",code:e=>Wb(e,e.schema)};function Wb(e,n){let{gen:t,it:r}=e;r.schemaEnv.root.dynamicAnchors[n]=!0;let i=(0,Qp._)`${u3.default.dynamicAnchors}${(0,Qp.getProperty)(n)}`,a=r.errSchemaPath==="#"?r.validateName:f3(e);t.if((0,Qp._)`!${i}`,()=>t.assign(i,a))}Hs.dynamicAnchor=Wb;function f3(e){let{schemaEnv:n,schema:t,self:r}=e.it,{root:i,baseId:a,localRefs:l,meta:u}=n.root,{schemaId:d}=r.opts,p=new Ub.SchemaEnv({schema:t,schemaId:d,root:i,baseId:a,localRefs:l,meta:u});return Ub.compileSchema.call(r,p),(0,c3.getValidate)(e,p)}Hs.default=d3});var th=v(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.dynamicRef=void 0;var Gb=ae(),p3=Pn(),Kb=_u(),h3={keyword:"$dynamicRef",schemaType:"string",code:e=>Jb(e,e.schema)};function Jb(e,n){let{gen:t,keyword:r,it:i}=e;if(n[0]!=="#")throw new Error(`"${r}" only supports hash fragment reference`);let a=n.slice(1);if(i.allErrors)l();else{let d=t.let("valid",!1);l(d),e.ok(d)}function l(d){if(i.schemaEnv.root.dynamicAnchors[a]){let p=t.let("_v",(0,Gb._)`${p3.default.dynamicAnchors}${(0,Gb.getProperty)(a)}`);t.if(p,u(p,d),u(i.validateName,d))}else u(i.validateName,d)()}function u(d,p){return p?()=>t.block(()=>{(0,Kb.callRef)(e,d),t.let(p,!0)}):()=>(0,Kb.callRef)(e,d)}}Bs.dynamicRef=Jb;Bs.default=h3});var Zb=v(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var m3=eh(),g3=Oe(),_3={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,m3.dynamicAnchor)(e,""):(0,g3.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};nh.default=_3});var Yb=v(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var y3=th(),v3={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,y3.dynamicRef)(e,e.schema)};rh.default=v3});var Xb=v(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var b3=eh(),w3=th(),x3=Zb(),I3=Yb(),C3=[b3.default,w3.default,x3.default,I3.default];ih.default=C3});var ew=v(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var Qb=Cu(),S3={keyword:"dependentRequired",type:"object",schemaType:"object",error:Qb.error,code:e=>(0,Qb.validatePropertyDeps)(e)};oh.default=S3});var tw=v(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var D3=Cu(),O3={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,D3.validateSchemaDeps)(e)};sh.default=O3});var nw=v(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var P3=Oe(),E3={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:n,it:t}){n.contains===void 0&&(0,P3.checkStrictMode)(t,`"${e}" without "contains" is ignored`)}};ah.default=E3});var rw=v(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});var T3=ew(),$3=tw(),R3=nw(),M3=[T3.default,$3.default,R3.default];lh.default=M3});var ow=v(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var ti=ae(),iw=Oe(),N3=Pn(),k3={message:"must NOT have unevaluated properties",params:({params:e})=>(0,ti._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},A3={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:k3,code(e){let{gen:n,schema:t,data:r,errsCount:i,it:a}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:l,props:u}=a;u instanceof ti.Name?n.if((0,ti._)`${u} !== true`,()=>n.forIn("key",r,_=>n.if(p(u,_),()=>d(_)))):u!==!0&&n.forIn("key",r,_=>u===void 0?d(_):n.if(m(u,_),()=>d(_))),a.props=!0,e.ok((0,ti._)`${i} === ${N3.default.errors}`);function d(_){if(t===!1){e.setParams({unevaluatedProperty:_}),e.error(),l||n.break();return}if(!(0,iw.alwaysValidSchema)(a,t)){let w=n.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:_,dataPropType:iw.Type.Str},w),l||n.if((0,ti.not)(w),()=>n.break())}}function p(_,w){return(0,ti._)`!${_} || !${_}[${w}]`}function m(_,w){let x=[];for(let S in _)_[S]===!0&&x.push((0,ti._)`${w} !== ${S}`);return(0,ti.and)(...x)}}};uh.default=A3});var aw=v(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var Ei=ae(),sw=Oe(),F3={message:({params:{len:e}})=>(0,Ei.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ei._)`{limit: ${e}}`},q3={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:F3,code(e){let{gen:n,schema:t,data:r,it:i}=e,a=i.items||0;if(a===!0)return;let l=n.const("len",(0,Ei._)`${r}.length`);if(t===!1)e.setParams({len:a}),e.fail((0,Ei._)`${l} > ${a}`);else if(typeof t=="object"&&!(0,sw.alwaysValidSchema)(i,t)){let d=n.var("valid",(0,Ei._)`${l} <= ${a}`);n.if((0,Ei.not)(d),()=>u(d,a)),e.ok(d)}i.items=!0;function u(d,p){n.forRange("i",p,l,m=>{e.subschema({keyword:"unevaluatedItems",dataProp:m,dataPropType:sw.Type.Num},d),i.allErrors||n.if((0,Ei.not)(d),()=>n.break())})}}};ch.default=q3});var lw=v(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var j3=ow(),L3=aw(),V3=[j3.default,L3.default];dh.default=V3});var uw=v((pee,z3)=>{z3.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/schema",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0,"https://json-schema.org/draft/2019-09/vocab/applicator":!0,"https://json-schema.org/draft/2019-09/vocab/validation":!0,"https://json-schema.org/draft/2019-09/vocab/meta-data":!0,"https://json-schema.org/draft/2019-09/vocab/format":!1,"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format"},{$ref:"meta/content"}],type:["object","boolean"],properties:{definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$recursiveRef:"#"},{$ref:"meta/validation#/$defs/stringArray"}]}}}}});var cw=v((hee,H3)=>{H3.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/applicator":!0},$recursiveAnchor:!0,title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{additionalItems:{$recursiveRef:"#"},unevaluatedItems:{$recursiveRef:"#"},items:{anyOf:[{$recursiveRef:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$recursiveRef:"#"},additionalProperties:{$recursiveRef:"#"},unevaluatedProperties:{$recursiveRef:"#"},properties:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$recursiveRef:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$recursiveRef:"#"}},propertyNames:{$recursiveRef:"#"},if:{$recursiveRef:"#"},then:{$recursiveRef:"#"},else:{$recursiveRef:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$recursiveRef:"#"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$recursiveRef:"#"}}}}});var dw=v((mee,B3)=>{B3.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/content",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$recursiveRef:"#"}}}});var fw=v((gee,U3)=>{U3.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/core",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0},$recursiveAnchor:!0,title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveRef:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}}}}});var pw=v((_ee,W3)=>{W3.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/format",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/format":!0},$recursiveAnchor:!0,title:"Format vocabulary meta-schema",type:["object","boolean"],properties:{format:{type:"string"}}}});var hw=v((yee,G3)=>{G3.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/meta-data":!0},$recursiveAnchor:!0,title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var mw=v((vee,K3)=>{K3.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/validation",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/validation":!0},$recursiveAnchor:!0,title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var gw=v(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var J3=uw(),Z3=cw(),Y3=dw(),X3=fw(),Q3=pw(),ez=hw(),tz=mw(),nz=["/properties"];function rz(e){return[J3,Z3,Y3,X3,n(this,Q3),ez,n(this,tz)].forEach(t=>this.addMetaSchema(t,void 0,!1)),this;function n(t,r){return e?t.$dataMetaSchema(r,nz):r}}fh.default=rz});var _w=v((et,hh)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.MissingRefError=et.ValidationError=et.CodeGen=et.Name=et.nil=et.stringify=et.str=et._=et.KeywordCxt=et.Ajv2019=void 0;var iz=op(),oz=Wp(),sz=Xb(),az=rw(),lz=lw(),uz=Jp(),cz=gw(),ph="https://json-schema.org/draft/2019-09/schema",So=class extends iz.default{constructor(n={}){super(Ke(ue({},n),{dynamicRef:!0,next:!0,unevaluated:!0}))}_addVocabularies(){super._addVocabularies(),this.addVocabulary(sz.default),oz.default.forEach(n=>this.addVocabulary(n)),this.addVocabulary(az.default),this.addVocabulary(lz.default),this.opts.discriminator&&this.addKeyword(uz.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:n,meta:t}=this.opts;t&&(cz.default.call(this,n),this.refs["http://json-schema.org/schema"]=ph)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ph)?ph:void 0)}};et.Ajv2019=So;hh.exports=et=So;hh.exports.Ajv2019=So;Object.defineProperty(et,"__esModule",{value:!0});et.default=So;var dz=ho();Object.defineProperty(et,"KeywordCxt",{enumerable:!0,get:function(){return dz.KeywordCxt}});var Do=ae();Object.defineProperty(et,"_",{enumerable:!0,get:function(){return Do._}});Object.defineProperty(et,"str",{enumerable:!0,get:function(){return Do.str}});Object.defineProperty(et,"stringify",{enumerable:!0,get:function(){return Do.stringify}});Object.defineProperty(et,"nil",{enumerable:!0,get:function(){return Do.nil}});Object.defineProperty(et,"Name",{enumerable:!0,get:function(){return Do.Name}});Object.defineProperty(et,"CodeGen",{enumerable:!0,get:function(){return Do.CodeGen}});var fz=Os();Object.defineProperty(et,"ValidationError",{enumerable:!0,get:function(){return fz.default}});var pz=mo();Object.defineProperty(et,"MissingRefError",{enumerable:!0,get:function(){return pz.default}})});var vw=v((Cee,yw)=>{function gz(){this.__data__=[],this.size=0}yw.exports=gz});var Mu=v((See,bw)=>{function _z(e,n){return e===n||e!==e&&n!==n}bw.exports=_z});var Us=v((Dee,ww)=>{var yz=Mu();function vz(e,n){for(var t=e.length;t--;)if(yz(e[t][0],n))return t;return-1}ww.exports=vz});var Iw=v((Oee,xw)=>{var bz=Us(),wz=Array.prototype,xz=wz.splice;function Iz(e){var n=this.__data__,t=bz(n,e);if(t<0)return!1;var r=n.length-1;return t==r?n.pop():xz.call(n,t,1),--this.size,!0}xw.exports=Iz});var Sw=v((Pee,Cw)=>{var Cz=Us();function Sz(e){var n=this.__data__,t=Cz(n,e);return t<0?void 0:n[t][1]}Cw.exports=Sz});var Ow=v((Eee,Dw)=>{var Dz=Us();function Oz(e){return Dz(this.__data__,e)>-1}Dw.exports=Oz});var Ew=v((Tee,Pw)=>{var Pz=Us();function Ez(e,n){var t=this.__data__,r=Pz(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this}Pw.exports=Ez});var Ws=v(($ee,Tw)=>{var Tz=vw(),$z=Iw(),Rz=Sw(),Mz=Ow(),Nz=Ew();function Oo(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}Oo.prototype.clear=Tz;Oo.prototype.delete=$z;Oo.prototype.get=Rz;Oo.prototype.has=Mz;Oo.prototype.set=Nz;Tw.exports=Oo});var Rw=v((Ree,$w)=>{var kz=Ws();function Az(){this.__data__=new kz,this.size=0}$w.exports=Az});var Nw=v((Mee,Mw)=>{function Fz(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}Mw.exports=Fz});var Aw=v((Nee,kw)=>{function qz(e){return this.__data__.get(e)}kw.exports=qz});var qw=v((kee,Fw)=>{function jz(e){return this.__data__.has(e)}Fw.exports=jz});var _h=v((Aee,jw)=>{var Lz=typeof global=="object"&&global&&global.Object===Object&&global;jw.exports=Lz});var Kn=v((Fee,Lw)=>{var Vz=_h(),zz=typeof self=="object"&&self&&self.Object===Object&&self,Hz=Vz||zz||Function("return this")();Lw.exports=Hz});var Ti=v((qee,Vw)=>{var Bz=Kn(),Uz=Bz.Symbol;Vw.exports=Uz});var Uw=v((jee,Bw)=>{var zw=Ti(),Hw=Object.prototype,Wz=Hw.hasOwnProperty,Gz=Hw.toString,Gs=zw?zw.toStringTag:void 0;function Kz(e){var n=Wz.call(e,Gs),t=e[Gs];try{e[Gs]=void 0;var r=!0}catch{}var i=Gz.call(e);return r&&(n?e[Gs]=t:delete e[Gs]),i}Bw.exports=Kz});var Gw=v((Lee,Ww)=>{var Jz=Object.prototype,Zz=Jz.toString;function Yz(e){return Zz.call(e)}Ww.exports=Yz});var $i=v((Vee,Zw)=>{var Kw=Ti(),Xz=Uw(),Qz=Gw(),e9="[object Null]",t9="[object Undefined]",Jw=Kw?Kw.toStringTag:void 0;function n9(e){return e==null?e===void 0?t9:e9:Jw&&Jw in Object(e)?Xz(e):Qz(e)}Zw.exports=n9});var Ri=v((zee,Yw)=>{function r9(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}Yw.exports=r9});var yh=v((Hee,Xw)=>{var i9=$i(),o9=Ri(),s9="[object AsyncFunction]",a9="[object Function]",l9="[object GeneratorFunction]",u9="[object Proxy]";function c9(e){if(!o9(e))return!1;var n=i9(e);return n==a9||n==l9||n==s9||n==u9}Xw.exports=c9});var e1=v((Bee,Qw)=>{var d9=Kn(),f9=d9["__core-js_shared__"];Qw.exports=f9});var r1=v((Uee,n1)=>{var vh=e1(),t1=(function(){var e=/[^.]+$/.exec(vh&&vh.keys&&vh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function p9(e){return!!t1&&t1 in e}n1.exports=p9});var bh=v((Wee,i1)=>{var h9=Function.prototype,m9=h9.toString;function g9(e){if(e!=null){try{return m9.call(e)}catch{}try{return e+""}catch{}}return""}i1.exports=g9});var s1=v((Gee,o1)=>{var _9=yh(),y9=r1(),v9=Ri(),b9=bh(),w9=/[\\^$.*+?()[\]{}|]/g,x9=/^\[object .+?Constructor\]$/,I9=Function.prototype,C9=Object.prototype,S9=I9.toString,D9=C9.hasOwnProperty,O9=RegExp("^"+S9.call(D9).replace(w9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function P9(e){if(!v9(e)||y9(e))return!1;var n=_9(e)?O9:x9;return n.test(b9(e))}o1.exports=P9});var l1=v((Kee,a1)=>{function E9(e,n){return e?.[n]}a1.exports=E9});var ni=v((Jee,u1)=>{var T9=s1(),$9=l1();function R9(e,n){var t=$9(e,n);return T9(t)?t:void 0}u1.exports=R9});var Nu=v((Zee,c1)=>{var M9=ni(),N9=Kn(),k9=M9(N9,"Map");c1.exports=k9});var Ks=v((Yee,d1)=>{var A9=ni(),F9=A9(Object,"create");d1.exports=F9});var h1=v((Xee,p1)=>{var f1=Ks();function q9(){this.__data__=f1?f1(null):{},this.size=0}p1.exports=q9});var g1=v((Qee,m1)=>{function j9(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}m1.exports=j9});var y1=v((ete,_1)=>{var L9=Ks(),V9="__lodash_hash_undefined__",z9=Object.prototype,H9=z9.hasOwnProperty;function B9(e){var n=this.__data__;if(L9){var t=n[e];return t===V9?void 0:t}return H9.call(n,e)?n[e]:void 0}_1.exports=B9});var b1=v((tte,v1)=>{var U9=Ks(),W9=Object.prototype,G9=W9.hasOwnProperty;function K9(e){var n=this.__data__;return U9?n[e]!==void 0:G9.call(n,e)}v1.exports=K9});var x1=v((nte,w1)=>{var J9=Ks(),Z9="__lodash_hash_undefined__";function Y9(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=J9&&n===void 0?Z9:n,this}w1.exports=Y9});var C1=v((rte,I1)=>{var X9=h1(),Q9=g1(),e4=y1(),t4=b1(),n4=x1();function Po(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}Po.prototype.clear=X9;Po.prototype.delete=Q9;Po.prototype.get=e4;Po.prototype.has=t4;Po.prototype.set=n4;I1.exports=Po});var O1=v((ite,D1)=>{var S1=C1(),r4=Ws(),i4=Nu();function o4(){this.size=0,this.__data__={hash:new S1,map:new(i4||r4),string:new S1}}D1.exports=o4});var E1=v((ote,P1)=>{function s4(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}P1.exports=s4});var Js=v((ste,T1)=>{var a4=E1();function l4(e,n){var t=e.__data__;return a4(n)?t[typeof n=="string"?"string":"hash"]:t.map}T1.exports=l4});var R1=v((ate,$1)=>{var u4=Js();function c4(e){var n=u4(this,e).delete(e);return this.size-=n?1:0,n}$1.exports=c4});var N1=v((lte,M1)=>{var d4=Js();function f4(e){return d4(this,e).get(e)}M1.exports=f4});var A1=v((ute,k1)=>{var p4=Js();function h4(e){return p4(this,e).has(e)}k1.exports=h4});var q1=v((cte,F1)=>{var m4=Js();function g4(e,n){var t=m4(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this}F1.exports=g4});var ku=v((dte,j1)=>{var _4=O1(),y4=R1(),v4=N1(),b4=A1(),w4=q1();function Eo(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}Eo.prototype.clear=_4;Eo.prototype.delete=y4;Eo.prototype.get=v4;Eo.prototype.has=b4;Eo.prototype.set=w4;j1.exports=Eo});var V1=v((fte,L1)=>{var x4=Ws(),I4=Nu(),C4=ku(),S4=200;function D4(e,n){var t=this.__data__;if(t instanceof x4){var r=t.__data__;if(!I4||r.length<S4-1)return r.push([e,n]),this.size=++t.size,this;t=this.__data__=new C4(r)}return t.set(e,n),this.size=t.size,this}L1.exports=D4});var Au=v((pte,z1)=>{var O4=Ws(),P4=Rw(),E4=Nw(),T4=Aw(),$4=qw(),R4=V1();function To(e){var n=this.__data__=new O4(e);this.size=n.size}To.prototype.clear=P4;To.prototype.delete=E4;To.prototype.get=T4;To.prototype.has=$4;To.prototype.set=R4;z1.exports=To});var B1=v((hte,H1)=>{function M4(e,n){for(var t=-1,r=e==null?0:e.length;++t<r&&n(e[t],t,e)!==!1;);return e}H1.exports=M4});var wh=v((mte,U1)=>{var N4=ni(),k4=(function(){try{var e=N4(Object,"defineProperty");return e({},"",{}),e}catch{}})();U1.exports=k4});var xh=v((gte,G1)=>{var W1=wh();function A4(e,n,t){n=="__proto__"&&W1?W1(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}G1.exports=A4});var Ih=v((_te,K1)=>{var F4=xh(),q4=Mu(),j4=Object.prototype,L4=j4.hasOwnProperty;function V4(e,n,t){var r=e[n];(!(L4.call(e,n)&&q4(r,t))||t===void 0&&!(n in e))&&F4(e,n,t)}K1.exports=V4});var $o=v((yte,J1)=>{var z4=Ih(),H4=xh();function B4(e,n,t,r){var i=!t;t||(t={});for(var a=-1,l=n.length;++a<l;){var u=n[a],d=r?r(t[u],e[u],u,t,e):void 0;d===void 0&&(d=e[u]),i?H4(t,u,d):z4(t,u,d)}return t}J1.exports=B4});var Y1=v((vte,Z1)=>{function U4(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}Z1.exports=U4});var Dr=v((bte,X1)=>{function W4(e){return e!=null&&typeof e=="object"}X1.exports=W4});var ex=v((wte,Q1)=>{var G4=$i(),K4=Dr(),J4="[object Arguments]";function Z4(e){return K4(e)&&G4(e)==J4}Q1.exports=Z4});var Fu=v((xte,rx)=>{var tx=ex(),Y4=Dr(),nx=Object.prototype,X4=nx.hasOwnProperty,Q4=nx.propertyIsEnumerable,eH=tx((function(){return arguments})())?tx:function(e){return Y4(e)&&X4.call(e,"callee")&&!Q4.call(e,"callee")};rx.exports=eH});var Qt=v((Ite,ix)=>{var tH=Array.isArray;ix.exports=tH});var sx=v((Cte,ox)=>{function nH(){return!1}ox.exports=nH});var qu=v((Zs,Ro)=>{var rH=Kn(),iH=sx(),ux=typeof Zs=="object"&&Zs&&!Zs.nodeType&&Zs,ax=ux&&typeof Ro=="object"&&Ro&&!Ro.nodeType&&Ro,oH=ax&&ax.exports===ux,lx=oH?rH.Buffer:void 0,sH=lx?lx.isBuffer:void 0,aH=sH||iH;Ro.exports=aH});var Ch=v((Ste,cx)=>{var lH=9007199254740991,uH=/^(?:0|[1-9]\d*)$/;function cH(e,n){var t=typeof e;return n=n??lH,!!n&&(t=="number"||t!="symbol"&&uH.test(e))&&e>-1&&e%1==0&&e<n}cx.exports=cH});var ju=v((Dte,dx)=>{var dH=9007199254740991;function fH(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dH}dx.exports=fH});var px=v((Ote,fx)=>{var pH=$i(),hH=ju(),mH=Dr(),gH="[object Arguments]",_H="[object Array]",yH="[object Boolean]",vH="[object Date]",bH="[object Error]",wH="[object Function]",xH="[object Map]",IH="[object Number]",CH="[object Object]",SH="[object RegExp]",DH="[object Set]",OH="[object String]",PH="[object WeakMap]",EH="[object ArrayBuffer]",TH="[object DataView]",$H="[object Float32Array]",RH="[object Float64Array]",MH="[object Int8Array]",NH="[object Int16Array]",kH="[object Int32Array]",AH="[object Uint8Array]",FH="[object Uint8ClampedArray]",qH="[object Uint16Array]",jH="[object Uint32Array]",tt={};tt[$H]=tt[RH]=tt[MH]=tt[NH]=tt[kH]=tt[AH]=tt[FH]=tt[qH]=tt[jH]=!0;tt[gH]=tt[_H]=tt[EH]=tt[yH]=tt[TH]=tt[vH]=tt[bH]=tt[wH]=tt[xH]=tt[IH]=tt[CH]=tt[SH]=tt[DH]=tt[OH]=tt[PH]=!1;function LH(e){return mH(e)&&hH(e.length)&&!!tt[pH(e)]}fx.exports=LH});var Lu=v((Pte,hx)=>{function VH(e){return function(n){return e(n)}}hx.exports=VH});var Vu=v((Ys,Mo)=>{var zH=_h(),mx=typeof Ys=="object"&&Ys&&!Ys.nodeType&&Ys,Xs=mx&&typeof Mo=="object"&&Mo&&!Mo.nodeType&&Mo,HH=Xs&&Xs.exports===mx,Sh=HH&&zH.process,BH=(function(){try{var e=Xs&&Xs.require&&Xs.require("util").types;return e||Sh&&Sh.binding&&Sh.binding("util")}catch{}})();Mo.exports=BH});var Dh=v((Ete,yx)=>{var UH=px(),WH=Lu(),gx=Vu(),_x=gx&&gx.isTypedArray,GH=_x?WH(_x):UH;yx.exports=GH});var Oh=v((Tte,vx)=>{var KH=Y1(),JH=Fu(),ZH=Qt(),YH=qu(),XH=Ch(),QH=Dh(),eB=Object.prototype,tB=eB.hasOwnProperty;function nB(e,n){var t=ZH(e),r=!t&&JH(e),i=!t&&!r&&YH(e),a=!t&&!r&&!i&&QH(e),l=t||r||i||a,u=l?KH(e.length,String):[],d=u.length;for(var p in e)(n||tB.call(e,p))&&!(l&&(p=="length"||i&&(p=="offset"||p=="parent")||a&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||XH(p,d)))&&u.push(p);return u}vx.exports=nB});var zu=v(($te,bx)=>{var rB=Object.prototype;function iB(e){var n=e&&e.constructor,t=typeof n=="function"&&n.prototype||rB;return e===t}bx.exports=iB});var Ph=v((Rte,wx)=>{function oB(e,n){return function(t){return e(n(t))}}wx.exports=oB});var Ix=v((Mte,xx)=>{var sB=Ph(),aB=sB(Object.keys,Object);xx.exports=aB});var Sx=v((Nte,Cx)=>{var lB=zu(),uB=Ix(),cB=Object.prototype,dB=cB.hasOwnProperty;function fB(e){if(!lB(e))return uB(e);var n=[];for(var t in Object(e))dB.call(e,t)&&t!="constructor"&&n.push(t);return n}Cx.exports=fB});var Qs=v((kte,Dx)=>{var pB=yh(),hB=ju();function mB(e){return e!=null&&hB(e.length)&&!pB(e)}Dx.exports=mB});var No=v((Ate,Ox)=>{var gB=Oh(),_B=Sx(),yB=Qs();function vB(e){return yB(e)?gB(e):_B(e)}Ox.exports=vB});var Ex=v((Fte,Px)=>{var bB=$o(),wB=No();function xB(e,n){return e&&bB(n,wB(n),e)}Px.exports=xB});var $x=v((qte,Tx)=>{function IB(e){var n=[];if(e!=null)for(var t in Object(e))n.push(t);return n}Tx.exports=IB});var Mx=v((jte,Rx)=>{var CB=Ri(),SB=zu(),DB=$x(),OB=Object.prototype,PB=OB.hasOwnProperty;function EB(e){if(!CB(e))return DB(e);var n=SB(e),t=[];for(var r in e)r=="constructor"&&(n||!PB.call(e,r))||t.push(r);return t}Rx.exports=EB});var Hu=v((Lte,Nx)=>{var TB=Oh(),$B=Mx(),RB=Qs();function MB(e){return RB(e)?TB(e,!0):$B(e)}Nx.exports=MB});var Ax=v((Vte,kx)=>{var NB=$o(),kB=Hu();function AB(e,n){return e&&NB(n,kB(n),e)}kx.exports=AB});var Vx=v((ea,ko)=>{var FB=Kn(),Lx=typeof ea=="object"&&ea&&!ea.nodeType&&ea,Fx=Lx&&typeof ko=="object"&&ko&&!ko.nodeType&&ko,qB=Fx&&Fx.exports===Lx,qx=qB?FB.Buffer:void 0,jx=qx?qx.allocUnsafe:void 0;function jB(e,n){if(n)return e.slice();var t=e.length,r=jx?jx(t):new e.constructor(t);return e.copy(r),r}ko.exports=jB});var Hx=v((zte,zx)=>{function LB(e,n){var t=-1,r=e.length;for(n||(n=Array(r));++t<r;)n[t]=e[t];return n}zx.exports=LB});var Eh=v((Hte,Bx)=>{function VB(e,n){for(var t=-1,r=e==null?0:e.length,i=0,a=[];++t<r;){var l=e[t];n(l,t,e)&&(a[i++]=l)}return a}Bx.exports=VB});var Th=v((Bte,Ux)=>{function zB(){return[]}Ux.exports=zB});var Bu=v((Ute,Gx)=>{var HB=Eh(),BB=Th(),UB=Object.prototype,WB=UB.propertyIsEnumerable,Wx=Object.getOwnPropertySymbols,GB=Wx?function(e){return e==null?[]:(e=Object(e),HB(Wx(e),function(n){return WB.call(e,n)}))}:BB;Gx.exports=GB});var Jx=v((Wte,Kx)=>{var KB=$o(),JB=Bu();function ZB(e,n){return KB(e,JB(e),n)}Kx.exports=ZB});var Uu=v((Gte,Zx)=>{function YB(e,n){for(var t=-1,r=n.length,i=e.length;++t<r;)e[i+t]=n[t];return e}Zx.exports=YB});var Wu=v((Kte,Yx)=>{var XB=Ph(),QB=XB(Object.getPrototypeOf,Object);Yx.exports=QB});var $h=v((Jte,Xx)=>{var e5=Uu(),t5=Wu(),n5=Bu(),r5=Th(),i5=Object.getOwnPropertySymbols,o5=i5?function(e){for(var n=[];e;)e5(n,n5(e)),e=t5(e);return n}:r5;Xx.exports=o5});var eI=v((Zte,Qx)=>{var s5=$o(),a5=$h();function l5(e,n){return s5(e,a5(e),n)}Qx.exports=l5});var Rh=v((Yte,tI)=>{var u5=Uu(),c5=Qt();function d5(e,n,t){var r=n(e);return c5(e)?r:u5(r,t(e))}tI.exports=d5});var Mh=v((Xte,nI)=>{var f5=Rh(),p5=Bu(),h5=No();function m5(e){return f5(e,h5,p5)}nI.exports=m5});var Nh=v((Qte,rI)=>{var g5=Rh(),_5=$h(),y5=Hu();function v5(e){return g5(e,y5,_5)}rI.exports=v5});var oI=v((ene,iI)=>{var b5=ni(),w5=Kn(),x5=b5(w5,"DataView");iI.exports=x5});var aI=v((tne,sI)=>{var I5=ni(),C5=Kn(),S5=I5(C5,"Promise");sI.exports=S5});var uI=v((nne,lI)=>{var D5=ni(),O5=Kn(),P5=D5(O5,"Set");lI.exports=P5});var dI=v((rne,cI)=>{var E5=ni(),T5=Kn(),$5=E5(T5,"WeakMap");cI.exports=$5});var ta=v((ine,yI)=>{var kh=oI(),Ah=Nu(),Fh=aI(),qh=uI(),jh=dI(),_I=$i(),Ao=bh(),fI="[object Map]",R5="[object Object]",pI="[object Promise]",hI="[object Set]",mI="[object WeakMap]",gI="[object DataView]",M5=Ao(kh),N5=Ao(Ah),k5=Ao(Fh),A5=Ao(qh),F5=Ao(jh),Mi=_I;(kh&&Mi(new kh(new ArrayBuffer(1)))!=gI||Ah&&Mi(new Ah)!=fI||Fh&&Mi(Fh.resolve())!=pI||qh&&Mi(new qh)!=hI||jh&&Mi(new jh)!=mI)&&(Mi=function(e){var n=_I(e),t=n==R5?e.constructor:void 0,r=t?Ao(t):"";if(r)switch(r){case M5:return gI;case N5:return fI;case k5:return pI;case A5:return hI;case F5:return mI}return n});yI.exports=Mi});var bI=v((one,vI)=>{var q5=Object.prototype,j5=q5.hasOwnProperty;function L5(e){var n=e.length,t=new e.constructor(n);return n&&typeof e[0]=="string"&&j5.call(e,"index")&&(t.index=e.index,t.input=e.input),t}vI.exports=L5});var Lh=v((sne,wI)=>{var V5=Kn(),z5=V5.Uint8Array;wI.exports=z5});var Gu=v((ane,II)=>{var xI=Lh();function H5(e){var n=new e.constructor(e.byteLength);return new xI(n).set(new xI(e)),n}II.exports=H5});var SI=v((lne,CI)=>{var B5=Gu();function U5(e,n){var t=n?B5(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}CI.exports=U5});var OI=v((une,DI)=>{var W5=/\w*$/;function G5(e){var n=new e.constructor(e.source,W5.exec(e));return n.lastIndex=e.lastIndex,n}DI.exports=G5});var RI=v((cne,$I)=>{var PI=Ti(),EI=PI?PI.prototype:void 0,TI=EI?EI.valueOf:void 0;function K5(e){return TI?Object(TI.call(e)):{}}$I.exports=K5});var NI=v((dne,MI)=>{var J5=Gu();function Z5(e,n){var t=n?J5(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}MI.exports=Z5});var AI=v((fne,kI)=>{var Y5=Gu(),X5=SI(),Q5=OI(),eU=RI(),tU=NI(),nU="[object Boolean]",rU="[object Date]",iU="[object Map]",oU="[object Number]",sU="[object RegExp]",aU="[object Set]",lU="[object String]",uU="[object Symbol]",cU="[object ArrayBuffer]",dU="[object DataView]",fU="[object Float32Array]",pU="[object Float64Array]",hU="[object Int8Array]",mU="[object Int16Array]",gU="[object Int32Array]",_U="[object Uint8Array]",yU="[object Uint8ClampedArray]",vU="[object Uint16Array]",bU="[object Uint32Array]";function wU(e,n,t){var r=e.constructor;switch(n){case cU:return Y5(e);case nU:case rU:return new r(+e);case dU:return X5(e,t);case fU:case pU:case hU:case mU:case gU:case _U:case yU:case vU:case bU:return tU(e,t);case iU:return new r;case oU:case lU:return new r(e);case sU:return Q5(e);case aU:return new r;case uU:return eU(e)}}kI.exports=wU});var jI=v((pne,qI)=>{var xU=Ri(),FI=Object.create,IU=(function(){function e(){}return function(n){if(!xU(n))return{};if(FI)return FI(n);e.prototype=n;var t=new e;return e.prototype=void 0,t}})();qI.exports=IU});var VI=v((hne,LI)=>{var CU=jI(),SU=Wu(),DU=zu();function OU(e){return typeof e.constructor=="function"&&!DU(e)?CU(SU(e)):{}}LI.exports=OU});var HI=v((mne,zI)=>{var PU=ta(),EU=Dr(),TU="[object Map]";function $U(e){return EU(e)&&PU(e)==TU}zI.exports=$U});var GI=v((gne,WI)=>{var RU=HI(),MU=Lu(),BI=Vu(),UI=BI&&BI.isMap,NU=UI?MU(UI):RU;WI.exports=NU});var JI=v((_ne,KI)=>{var kU=ta(),AU=Dr(),FU="[object Set]";function qU(e){return AU(e)&&kU(e)==FU}KI.exports=qU});var QI=v((yne,XI)=>{var jU=JI(),LU=Lu(),ZI=Vu(),YI=ZI&&ZI.isSet,VU=YI?LU(YI):jU;XI.exports=VU});var Vh=v((vne,rC)=>{var zU=Au(),HU=B1(),BU=Ih(),UU=Ex(),WU=Ax(),GU=Vx(),KU=Hx(),JU=Jx(),ZU=eI(),YU=Mh(),XU=Nh(),QU=ta(),eW=bI(),tW=AI(),nW=VI(),rW=Qt(),iW=qu(),oW=GI(),sW=Ri(),aW=QI(),lW=No(),uW=Hu(),cW=1,dW=2,fW=4,eC="[object Arguments]",pW="[object Array]",hW="[object Boolean]",mW="[object Date]",gW="[object Error]",tC="[object Function]",_W="[object GeneratorFunction]",yW="[object Map]",vW="[object Number]",nC="[object Object]",bW="[object RegExp]",wW="[object Set]",xW="[object String]",IW="[object Symbol]",CW="[object WeakMap]",SW="[object ArrayBuffer]",DW="[object DataView]",OW="[object Float32Array]",PW="[object Float64Array]",EW="[object Int8Array]",TW="[object Int16Array]",$W="[object Int32Array]",RW="[object Uint8Array]",MW="[object Uint8ClampedArray]",NW="[object Uint16Array]",kW="[object Uint32Array]",Ze={};Ze[eC]=Ze[pW]=Ze[SW]=Ze[DW]=Ze[hW]=Ze[mW]=Ze[OW]=Ze[PW]=Ze[EW]=Ze[TW]=Ze[$W]=Ze[yW]=Ze[vW]=Ze[nC]=Ze[bW]=Ze[wW]=Ze[xW]=Ze[IW]=Ze[RW]=Ze[MW]=Ze[NW]=Ze[kW]=!0;Ze[gW]=Ze[tC]=Ze[CW]=!1;function Ku(e,n,t,r,i,a){var l,u=n&cW,d=n&dW,p=n&fW;if(t&&(l=i?t(e,r,i,a):t(e)),l!==void 0)return l;if(!sW(e))return e;var m=rW(e);if(m){if(l=eW(e),!u)return KU(e,l)}else{var _=QU(e),w=_==tC||_==_W;if(iW(e))return GU(e,u);if(_==nC||_==eC||w&&!i){if(l=d||w?{}:nW(e),!u)return d?ZU(e,WU(l,e)):JU(e,UU(l,e))}else{if(!Ze[_])return i?e:{};l=tW(e,_,u)}}a||(a=new zU);var x=a.get(e);if(x)return x;a.set(e,l),aW(e)?e.forEach(function(T){l.add(Ku(T,n,t,T,e,a))}):oW(e)&&e.forEach(function(T,R){l.set(R,Ku(T,n,t,R,e,a))});var S=p?d?XU:YU:d?uW:lW,b=m?void 0:S(e);return HU(b||e,function(T,R){b&&(R=T,T=e[R]),BU(l,R,Ku(T,n,t,R,e,a))}),l}rC.exports=Ku});var oC=v((bne,iC)=>{var AW=Vh(),FW=1,qW=4;function jW(e){return AW(e,FW|qW)}iC.exports=jW});var zh=v((Fo,na)=>{(function(){var e,n="4.17.21",t=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",p=1,m=2,_=4,w=1,x=2,S=1,b=2,T=4,R=8,Q=16,K=32,J=64,A=128,W=256,z=512,G=30,ne="...",de=800,Ne=16,He=1,ot=2,Xn=3,mn=1/0,Ot=9007199254740991,Va=17976931348623157e292,dr=NaN,lt=4294967295,eg=lt-1,za=lt>>>1,si=[["ary",A],["bind",S],["bindKey",b],["curry",R],["curryRight",Q],["flip",z],["partial",K],["partialRight",J],["rearg",W]],Rr="[object Arguments]",Li="[object Array]",Wo="[object AsyncFunction]",Go="[object Boolean]",Ko="[object Date]",AE="[object DOMException]",Ha="[object Error]",Ba="[object Function]",tg="[object GeneratorFunction]",Nn="[object Map]",Jo="[object Number]",FE="[object Null]",fr="[object Object]",ng="[object Promise]",qE="[object Proxy]",Zo="[object RegExp]",kn="[object Set]",Yo="[object String]",Ua="[object Symbol]",jE="[object Undefined]",Xo="[object WeakMap]",LE="[object WeakSet]",Qo="[object ArrayBuffer]",Vi="[object DataView]",Ic="[object Float32Array]",Cc="[object Float64Array]",Sc="[object Int8Array]",Dc="[object Int16Array]",Oc="[object Int32Array]",Pc="[object Uint8Array]",Ec="[object Uint8ClampedArray]",Tc="[object Uint16Array]",$c="[object Uint32Array]",VE=/\b__p \+= '';/g,zE=/\b(__p \+=) '' \+/g,HE=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rg=/&(?:amp|lt|gt|quot|#39);/g,ig=/[&<>"']/g,BE=RegExp(rg.source),UE=RegExp(ig.source),WE=/<%-([\s\S]+?)%>/g,GE=/<%([\s\S]+?)%>/g,og=/<%=([\s\S]+?)%>/g,KE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JE=/^\w*$/,ZE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rc=/[\\^$.*+?()[\]{}|]/g,YE=RegExp(Rc.source),Mc=/^\s+/,XE=/\s/,QE=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eT=/\{\n\/\* \[wrapped with (.+)\] \*/,tT=/,? & /,nT=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rT=/[()=,{}\[\]\/\s]/,iT=/\\(\\)?/g,oT=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sg=/\w*$/,sT=/^[-+]0x[0-9a-f]+$/i,aT=/^0b[01]+$/i,lT=/^\[object .+?Constructor\]$/,uT=/^0o[0-7]+$/i,cT=/^(?:0|[1-9]\d*)$/,dT=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wa=/($^)/,fT=/['\n\r\u2028\u2029\\]/g,Ga="\\ud800-\\udfff",pT="\\u0300-\\u036f",hT="\\ufe20-\\ufe2f",mT="\\u20d0-\\u20ff",ag=pT+hT+mT,lg="\\u2700-\\u27bf",ug="a-z\\xdf-\\xf6\\xf8-\\xff",gT="\\xac\\xb1\\xd7\\xf7",_T="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yT="\\u2000-\\u206f",vT=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cg="A-Z\\xc0-\\xd6\\xd8-\\xde",dg="\\ufe0e\\ufe0f",fg=gT+_T+yT+vT,Nc="['\u2019]",bT="["+Ga+"]",pg="["+fg+"]",Ka="["+ag+"]",hg="\\d+",wT="["+lg+"]",mg="["+ug+"]",gg="[^"+Ga+fg+hg+lg+ug+cg+"]",kc="\\ud83c[\\udffb-\\udfff]",xT="(?:"+Ka+"|"+kc+")",_g="[^"+Ga+"]",Ac="(?:\\ud83c[\\udde6-\\uddff]){2}",Fc="[\\ud800-\\udbff][\\udc00-\\udfff]",zi="["+cg+"]",yg="\\u200d",vg="(?:"+mg+"|"+gg+")",IT="(?:"+zi+"|"+gg+")",bg="(?:"+Nc+"(?:d|ll|m|re|s|t|ve))?",wg="(?:"+Nc+"(?:D|LL|M|RE|S|T|VE))?",xg=xT+"?",Ig="["+dg+"]?",CT="(?:"+yg+"(?:"+[_g,Ac,Fc].join("|")+")"+Ig+xg+")*",ST="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",DT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cg=Ig+xg+CT,OT="(?:"+[wT,Ac,Fc].join("|")+")"+Cg,PT="(?:"+[_g+Ka+"?",Ka,Ac,Fc,bT].join("|")+")",ET=RegExp(Nc,"g"),TT=RegExp(Ka,"g"),qc=RegExp(kc+"(?="+kc+")|"+PT+Cg,"g"),$T=RegExp([zi+"?"+mg+"+"+bg+"(?="+[pg,zi,"$"].join("|")+")",IT+"+"+wg+"(?="+[pg,zi+vg,"$"].join("|")+")",zi+"?"+vg+"+"+bg,zi+"+"+wg,DT,ST,hg,OT].join("|"),"g"),RT=RegExp("["+yg+Ga+ag+dg+"]"),MT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,NT=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kT=-1,Ye={};Ye[Ic]=Ye[Cc]=Ye[Sc]=Ye[Dc]=Ye[Oc]=Ye[Pc]=Ye[Ec]=Ye[Tc]=Ye[$c]=!0,Ye[Rr]=Ye[Li]=Ye[Qo]=Ye[Go]=Ye[Vi]=Ye[Ko]=Ye[Ha]=Ye[Ba]=Ye[Nn]=Ye[Jo]=Ye[fr]=Ye[Zo]=Ye[kn]=Ye[Yo]=Ye[Xo]=!1;var Ge={};Ge[Rr]=Ge[Li]=Ge[Qo]=Ge[Vi]=Ge[Go]=Ge[Ko]=Ge[Ic]=Ge[Cc]=Ge[Sc]=Ge[Dc]=Ge[Oc]=Ge[Nn]=Ge[Jo]=Ge[fr]=Ge[Zo]=Ge[kn]=Ge[Yo]=Ge[Ua]=Ge[Pc]=Ge[Ec]=Ge[Tc]=Ge[$c]=!0,Ge[Ha]=Ge[Ba]=Ge[Xo]=!1;var AT={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},FT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qT={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},jT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},LT=parseFloat,VT=parseInt,Sg=typeof global=="object"&&global&&global.Object===Object&&global,zT=typeof self=="object"&&self&&self.Object===Object&&self,vt=Sg||zT||Function("return this")(),jc=typeof Fo=="object"&&Fo&&!Fo.nodeType&&Fo,ai=jc&&typeof na=="object"&&na&&!na.nodeType&&na,Dg=ai&&ai.exports===jc,Lc=Dg&&Sg.process,gn=(function(){try{var D=ai&&ai.require&&ai.require("util").types;return D||Lc&&Lc.binding&&Lc.binding("util")}catch{}})(),Og=gn&&gn.isArrayBuffer,Pg=gn&&gn.isDate,Eg=gn&&gn.isMap,Tg=gn&&gn.isRegExp,$g=gn&&gn.isSet,Rg=gn&&gn.isTypedArray;function tn(D,k,$){switch($.length){case 0:return D.call(k);case 1:return D.call(k,$[0]);case 2:return D.call(k,$[0],$[1]);case 3:return D.call(k,$[0],$[1],$[2])}return D.apply(k,$)}function HT(D,k,$,te){for(var me=-1,ke=D==null?0:D.length;++me<ke;){var _t=D[me];k(te,_t,$(_t),D)}return te}function _n(D,k){for(var $=-1,te=D==null?0:D.length;++$<te&&k(D[$],$,D)!==!1;);return D}function BT(D,k){for(var $=D==null?0:D.length;$--&&k(D[$],$,D)!==!1;);return D}function Mg(D,k){for(var $=-1,te=D==null?0:D.length;++$<te;)if(!k(D[$],$,D))return!1;return!0}function Mr(D,k){for(var $=-1,te=D==null?0:D.length,me=0,ke=[];++$<te;){var _t=D[$];k(_t,$,D)&&(ke[me++]=_t)}return ke}function Ja(D,k){var $=D==null?0:D.length;return!!$&&Hi(D,k,0)>-1}function Vc(D,k,$){for(var te=-1,me=D==null?0:D.length;++te<me;)if($(k,D[te]))return!0;return!1}function nt(D,k){for(var $=-1,te=D==null?0:D.length,me=Array(te);++$<te;)me[$]=k(D[$],$,D);return me}function Nr(D,k){for(var $=-1,te=k.length,me=D.length;++$<te;)D[me+$]=k[$];return D}function zc(D,k,$,te){var me=-1,ke=D==null?0:D.length;for(te&&ke&&($=D[++me]);++me<ke;)$=k($,D[me],me,D);return $}function UT(D,k,$,te){var me=D==null?0:D.length;for(te&&me&&($=D[--me]);me--;)$=k($,D[me],me,D);return $}function Hc(D,k){for(var $=-1,te=D==null?0:D.length;++$<te;)if(k(D[$],$,D))return!0;return!1}var WT=Bc("length");function GT(D){return D.split("")}function KT(D){return D.match(nT)||[]}function Ng(D,k,$){var te;return $(D,function(me,ke,_t){if(k(me,ke,_t))return te=ke,!1}),te}function Za(D,k,$,te){for(var me=D.length,ke=$+(te?1:-1);te?ke--:++ke<me;)if(k(D[ke],ke,D))return ke;return-1}function Hi(D,k,$){return k===k?s$(D,k,$):Za(D,kg,$)}function JT(D,k,$,te){for(var me=$-1,ke=D.length;++me<ke;)if(te(D[me],k))return me;return-1}function kg(D){return D!==D}function Ag(D,k){var $=D==null?0:D.length;return $?Wc(D,k)/$:dr}function Bc(D){return function(k){return k==null?e:k[D]}}function Uc(D){return function(k){return D==null?e:D[k]}}function Fg(D,k,$,te,me){return me(D,function(ke,_t,Be){$=te?(te=!1,ke):k($,ke,_t,Be)}),$}function ZT(D,k){var $=D.length;for(D.sort(k);$--;)D[$]=D[$].value;return D}function Wc(D,k){for(var $,te=-1,me=D.length;++te<me;){var ke=k(D[te]);ke!==e&&($=$===e?ke:$+ke)}return $}function Gc(D,k){for(var $=-1,te=Array(D);++$<D;)te[$]=k($);return te}function YT(D,k){return nt(k,function($){return[$,D[$]]})}function qg(D){return D&&D.slice(0,zg(D)+1).replace(Mc,"")}function nn(D){return function(k){return D(k)}}function Kc(D,k){return nt(k,function($){return D[$]})}function es(D,k){return D.has(k)}function jg(D,k){for(var $=-1,te=D.length;++$<te&&Hi(k,D[$],0)>-1;);return $}function Lg(D,k){for(var $=D.length;$--&&Hi(k,D[$],0)>-1;);return $}function XT(D,k){for(var $=D.length,te=0;$--;)D[$]===k&&++te;return te}var QT=Uc(AT),e$=Uc(FT);function t$(D){return"\\"+jT[D]}function n$(D,k){return D==null?e:D[k]}function Bi(D){return RT.test(D)}function r$(D){return MT.test(D)}function i$(D){for(var k,$=[];!(k=D.next()).done;)$.push(k.value);return $}function Jc(D){var k=-1,$=Array(D.size);return D.forEach(function(te,me){$[++k]=[me,te]}),$}function Vg(D,k){return function($){return D(k($))}}function kr(D,k){for(var $=-1,te=D.length,me=0,ke=[];++$<te;){var _t=D[$];(_t===k||_t===d)&&(D[$]=d,ke[me++]=$)}return ke}function Ya(D){var k=-1,$=Array(D.size);return D.forEach(function(te){$[++k]=te}),$}function o$(D){var k=-1,$=Array(D.size);return D.forEach(function(te){$[++k]=[te,te]}),$}function s$(D,k,$){for(var te=$-1,me=D.length;++te<me;)if(D[te]===k)return te;return-1}function a$(D,k,$){for(var te=$+1;te--;)if(D[te]===k)return te;return te}function Ui(D){return Bi(D)?u$(D):WT(D)}function An(D){return Bi(D)?c$(D):GT(D)}function zg(D){for(var k=D.length;k--&&XE.test(D.charAt(k)););return k}var l$=Uc(qT);function u$(D){for(var k=qc.lastIndex=0;qc.test(D);)++k;return k}function c$(D){return D.match(qc)||[]}function d$(D){return D.match($T)||[]}var f$=function D(k){k=k==null?vt:Ar.defaults(vt.Object(),k,Ar.pick(vt,NT));var $=k.Array,te=k.Date,me=k.Error,ke=k.Function,_t=k.Math,Be=k.Object,Zc=k.RegExp,p$=k.String,yn=k.TypeError,Xa=$.prototype,h$=ke.prototype,Wi=Be.prototype,Qa=k["__core-js_shared__"],el=h$.toString,Le=Wi.hasOwnProperty,m$=0,Hg=(function(){var o=/[^.]+$/.exec(Qa&&Qa.keys&&Qa.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),tl=Wi.toString,g$=el.call(Be),_$=vt._,y$=Zc("^"+el.call(Le).replace(Rc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nl=Dg?k.Buffer:e,Fr=k.Symbol,rl=k.Uint8Array,Bg=nl?nl.allocUnsafe:e,il=Vg(Be.getPrototypeOf,Be),Ug=Be.create,Wg=Wi.propertyIsEnumerable,ol=Xa.splice,Gg=Fr?Fr.isConcatSpreadable:e,ts=Fr?Fr.iterator:e,li=Fr?Fr.toStringTag:e,sl=(function(){try{var o=pi(Be,"defineProperty");return o({},"",{}),o}catch{}})(),v$=k.clearTimeout!==vt.clearTimeout&&k.clearTimeout,b$=te&&te.now!==vt.Date.now&&te.now,w$=k.setTimeout!==vt.setTimeout&&k.setTimeout,al=_t.ceil,ll=_t.floor,Yc=Be.getOwnPropertySymbols,x$=nl?nl.isBuffer:e,Kg=k.isFinite,I$=Xa.join,C$=Vg(Be.keys,Be),yt=_t.max,Pt=_t.min,S$=te.now,D$=k.parseInt,Jg=_t.random,O$=Xa.reverse,Xc=pi(k,"DataView"),ns=pi(k,"Map"),Qc=pi(k,"Promise"),Gi=pi(k,"Set"),rs=pi(k,"WeakMap"),is=pi(Be,"create"),ul=rs&&new rs,Ki={},P$=hi(Xc),E$=hi(ns),T$=hi(Qc),$$=hi(Gi),R$=hi(rs),cl=Fr?Fr.prototype:e,os=cl?cl.valueOf:e,Zg=cl?cl.toString:e;function g(o){if(ut(o)&&!_e(o)&&!(o instanceof Pe)){if(o instanceof vn)return o;if(Le.call(o,"__wrapped__"))return Y_(o)}return new vn(o)}var Ji=(function(){function o(){}return function(s){if(!st(s))return{};if(Ug)return Ug(s);o.prototype=s;var c=new o;return o.prototype=e,c}})();function dl(){}function vn(o,s){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=e}g.templateSettings={escape:WE,evaluate:GE,interpolate:og,variable:"",imports:{_:g}},g.prototype=dl.prototype,g.prototype.constructor=g,vn.prototype=Ji(dl.prototype),vn.prototype.constructor=vn;function Pe(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=lt,this.__views__=[]}function M$(){var o=new Pe(this.__wrapped__);return o.__actions__=Ht(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Ht(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Ht(this.__views__),o}function N$(){if(this.__filtered__){var o=new Pe(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function k$(){var o=this.__wrapped__.value(),s=this.__dir__,c=_e(o),f=s<0,h=c?o.length:0,y=GR(0,h,this.__views__),I=y.start,C=y.end,P=C-I,F=f?C:I-1,q=this.__iteratees__,V=q.length,Z=0,re=Pt(P,this.__takeCount__);if(!c||!f&&h==P&&re==P)return b_(o,this.__actions__);var fe=[];e:for(;P--&&Z<re;){F+=s;for(var be=-1,pe=o[F];++be<V;){var Se=q[be],Ee=Se.iteratee,sn=Se.type,Ft=Ee(pe);if(sn==ot)pe=Ft;else if(!Ft){if(sn==He)continue e;break e}}fe[Z++]=pe}return fe}Pe.prototype=Ji(dl.prototype),Pe.prototype.constructor=Pe;function ui(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var f=o[s];this.set(f[0],f[1])}}function A$(){this.__data__=is?is(null):{},this.size=0}function F$(o){var s=this.has(o)&&delete this.__data__[o];return this.size-=s?1:0,s}function q$(o){var s=this.__data__;if(is){var c=s[o];return c===l?e:c}return Le.call(s,o)?s[o]:e}function j$(o){var s=this.__data__;return is?s[o]!==e:Le.call(s,o)}function L$(o,s){var c=this.__data__;return this.size+=this.has(o)?0:1,c[o]=is&&s===e?l:s,this}ui.prototype.clear=A$,ui.prototype.delete=F$,ui.prototype.get=q$,ui.prototype.has=j$,ui.prototype.set=L$;function pr(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var f=o[s];this.set(f[0],f[1])}}function V$(){this.__data__=[],this.size=0}function z$(o){var s=this.__data__,c=fl(s,o);if(c<0)return!1;var f=s.length-1;return c==f?s.pop():ol.call(s,c,1),--this.size,!0}function H$(o){var s=this.__data__,c=fl(s,o);return c<0?e:s[c][1]}function B$(o){return fl(this.__data__,o)>-1}function U$(o,s){var c=this.__data__,f=fl(c,o);return f<0?(++this.size,c.push([o,s])):c[f][1]=s,this}pr.prototype.clear=V$,pr.prototype.delete=z$,pr.prototype.get=H$,pr.prototype.has=B$,pr.prototype.set=U$;function hr(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var f=o[s];this.set(f[0],f[1])}}function W$(){this.size=0,this.__data__={hash:new ui,map:new(ns||pr),string:new ui}}function G$(o){var s=Cl(this,o).delete(o);return this.size-=s?1:0,s}function K$(o){return Cl(this,o).get(o)}function J$(o){return Cl(this,o).has(o)}function Z$(o,s){var c=Cl(this,o),f=c.size;return c.set(o,s),this.size+=c.size==f?0:1,this}hr.prototype.clear=W$,hr.prototype.delete=G$,hr.prototype.get=K$,hr.prototype.has=J$,hr.prototype.set=Z$;function ci(o){var s=-1,c=o==null?0:o.length;for(this.__data__=new hr;++s<c;)this.add(o[s])}function Y$(o){return this.__data__.set(o,l),this}function X$(o){return this.__data__.has(o)}ci.prototype.add=ci.prototype.push=Y$,ci.prototype.has=X$;function Fn(o){var s=this.__data__=new pr(o);this.size=s.size}function Q$(){this.__data__=new pr,this.size=0}function eR(o){var s=this.__data__,c=s.delete(o);return this.size=s.size,c}function tR(o){return this.__data__.get(o)}function nR(o){return this.__data__.has(o)}function rR(o,s){var c=this.__data__;if(c instanceof pr){var f=c.__data__;if(!ns||f.length<t-1)return f.push([o,s]),this.size=++c.size,this;c=this.__data__=new hr(f)}return c.set(o,s),this.size=c.size,this}Fn.prototype.clear=Q$,Fn.prototype.delete=eR,Fn.prototype.get=tR,Fn.prototype.has=nR,Fn.prototype.set=rR;function Yg(o,s){var c=_e(o),f=!c&&mi(o),h=!c&&!f&&zr(o),y=!c&&!f&&!h&&Qi(o),I=c||f||h||y,C=I?Gc(o.length,p$):[],P=C.length;for(var F in o)(s||Le.call(o,F))&&!(I&&(F=="length"||h&&(F=="offset"||F=="parent")||y&&(F=="buffer"||F=="byteLength"||F=="byteOffset")||yr(F,P)))&&C.push(F);return C}function Xg(o){var s=o.length;return s?o[cd(0,s-1)]:e}function iR(o,s){return Sl(Ht(o),di(s,0,o.length))}function oR(o){return Sl(Ht(o))}function ed(o,s,c){(c!==e&&!qn(o[s],c)||c===e&&!(s in o))&&mr(o,s,c)}function ss(o,s,c){var f=o[s];(!(Le.call(o,s)&&qn(f,c))||c===e&&!(s in o))&&mr(o,s,c)}function fl(o,s){for(var c=o.length;c--;)if(qn(o[c][0],s))return c;return-1}function sR(o,s,c,f){return qr(o,function(h,y,I){s(f,h,c(h),I)}),f}function Qg(o,s){return o&&er(s,bt(s),o)}function aR(o,s){return o&&er(s,Ut(s),o)}function mr(o,s,c){s=="__proto__"&&sl?sl(o,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):o[s]=c}function td(o,s){for(var c=-1,f=s.length,h=$(f),y=o==null;++c<f;)h[c]=y?e:kd(o,s[c]);return h}function di(o,s,c){return o===o&&(c!==e&&(o=o<=c?o:c),s!==e&&(o=o>=s?o:s)),o}function bn(o,s,c,f,h,y){var I,C=s&p,P=s&m,F=s&_;if(c&&(I=h?c(o,f,h,y):c(o)),I!==e)return I;if(!st(o))return o;var q=_e(o);if(q){if(I=JR(o),!C)return Ht(o,I)}else{var V=Et(o),Z=V==Ba||V==tg;if(zr(o))return I_(o,C);if(V==fr||V==Rr||Z&&!h){if(I=P||Z?{}:z_(o),!C)return P?qR(o,aR(I,o)):FR(o,Qg(I,o))}else{if(!Ge[V])return h?o:{};I=ZR(o,V,C)}}y||(y=new Fn);var re=y.get(o);if(re)return re;y.set(o,I),_y(o)?o.forEach(function(pe){I.add(bn(pe,s,c,pe,o,y))}):my(o)&&o.forEach(function(pe,Se){I.set(Se,bn(pe,s,c,Se,o,y))});var fe=F?P?wd:bd:P?Ut:bt,be=q?e:fe(o);return _n(be||o,function(pe,Se){be&&(Se=pe,pe=o[Se]),ss(I,Se,bn(pe,s,c,Se,o,y))}),I}function lR(o){var s=bt(o);return function(c){return e_(c,o,s)}}function e_(o,s,c){var f=c.length;if(o==null)return!f;for(o=Be(o);f--;){var h=c[f],y=s[h],I=o[h];if(I===e&&!(h in o)||!y(I))return!1}return!0}function t_(o,s,c){if(typeof o!="function")throw new yn(i);return ps(function(){o.apply(e,c)},s)}function as(o,s,c,f){var h=-1,y=Ja,I=!0,C=o.length,P=[],F=s.length;if(!C)return P;c&&(s=nt(s,nn(c))),f?(y=Vc,I=!1):s.length>=t&&(y=es,I=!1,s=new ci(s));e:for(;++h<C;){var q=o[h],V=c==null?q:c(q);if(q=f||q!==0?q:0,I&&V===V){for(var Z=F;Z--;)if(s[Z]===V)continue e;P.push(q)}else y(s,V,f)||P.push(q)}return P}var qr=P_(Qn),n_=P_(rd,!0);function uR(o,s){var c=!0;return qr(o,function(f,h,y){return c=!!s(f,h,y),c}),c}function pl(o,s,c){for(var f=-1,h=o.length;++f<h;){var y=o[f],I=s(y);if(I!=null&&(C===e?I===I&&!on(I):c(I,C)))var C=I,P=y}return P}function cR(o,s,c,f){var h=o.length;for(c=ye(c),c<0&&(c=-c>h?0:h+c),f=f===e||f>h?h:ye(f),f<0&&(f+=h),f=c>f?0:vy(f);c<f;)o[c++]=s;return o}function r_(o,s){var c=[];return qr(o,function(f,h,y){s(f,h,y)&&c.push(f)}),c}function It(o,s,c,f,h){var y=-1,I=o.length;for(c||(c=XR),h||(h=[]);++y<I;){var C=o[y];s>0&&c(C)?s>1?It(C,s-1,c,f,h):Nr(h,C):f||(h[h.length]=C)}return h}var nd=E_(),i_=E_(!0);function Qn(o,s){return o&&nd(o,s,bt)}function rd(o,s){return o&&i_(o,s,bt)}function hl(o,s){return Mr(s,function(c){return vr(o[c])})}function fi(o,s){s=Lr(s,o);for(var c=0,f=s.length;o!=null&&c<f;)o=o[tr(s[c++])];return c&&c==f?o:e}function o_(o,s,c){var f=s(o);return _e(o)?f:Nr(f,c(o))}function kt(o){return o==null?o===e?jE:FE:li&&li in Be(o)?WR(o):oM(o)}function id(o,s){return o>s}function dR(o,s){return o!=null&&Le.call(o,s)}function fR(o,s){return o!=null&&s in Be(o)}function pR(o,s,c){return o>=Pt(s,c)&&o<yt(s,c)}function od(o,s,c){for(var f=c?Vc:Ja,h=o[0].length,y=o.length,I=y,C=$(y),P=1/0,F=[];I--;){var q=o[I];I&&s&&(q=nt(q,nn(s))),P=Pt(q.length,P),C[I]=!c&&(s||h>=120&&q.length>=120)?new ci(I&&q):e}q=o[0];var V=-1,Z=C[0];e:for(;++V<h&&F.length<P;){var re=q[V],fe=s?s(re):re;if(re=c||re!==0?re:0,!(Z?es(Z,fe):f(F,fe,c))){for(I=y;--I;){var be=C[I];if(!(be?es(be,fe):f(o[I],fe,c)))continue e}Z&&Z.push(fe),F.push(re)}}return F}function hR(o,s,c,f){return Qn(o,function(h,y,I){s(f,c(h),y,I)}),f}function ls(o,s,c){s=Lr(s,o),o=W_(o,s);var f=o==null?o:o[tr(xn(s))];return f==null?e:tn(f,o,c)}function s_(o){return ut(o)&&kt(o)==Rr}function mR(o){return ut(o)&&kt(o)==Qo}function gR(o){return ut(o)&&kt(o)==Ko}function us(o,s,c,f,h){return o===s?!0:o==null||s==null||!ut(o)&&!ut(s)?o!==o&&s!==s:_R(o,s,c,f,us,h)}function _R(o,s,c,f,h,y){var I=_e(o),C=_e(s),P=I?Li:Et(o),F=C?Li:Et(s);P=P==Rr?fr:P,F=F==Rr?fr:F;var q=P==fr,V=F==fr,Z=P==F;if(Z&&zr(o)){if(!zr(s))return!1;I=!0,q=!1}if(Z&&!q)return y||(y=new Fn),I||Qi(o)?j_(o,s,c,f,h,y):BR(o,s,P,c,f,h,y);if(!(c&w)){var re=q&&Le.call(o,"__wrapped__"),fe=V&&Le.call(s,"__wrapped__");if(re||fe){var be=re?o.value():o,pe=fe?s.value():s;return y||(y=new Fn),h(be,pe,c,f,y)}}return Z?(y||(y=new Fn),UR(o,s,c,f,h,y)):!1}function yR(o){return ut(o)&&Et(o)==Nn}function sd(o,s,c,f){var h=c.length,y=h,I=!f;if(o==null)return!y;for(o=Be(o);h--;){var C=c[h];if(I&&C[2]?C[1]!==o[C[0]]:!(C[0]in o))return!1}for(;++h<y;){C=c[h];var P=C[0],F=o[P],q=C[1];if(I&&C[2]){if(F===e&&!(P in o))return!1}else{var V=new Fn;if(f)var Z=f(F,q,P,o,s,V);if(!(Z===e?us(q,F,w|x,f,V):Z))return!1}}return!0}function a_(o){if(!st(o)||eM(o))return!1;var s=vr(o)?y$:lT;return s.test(hi(o))}function vR(o){return ut(o)&&kt(o)==Zo}function bR(o){return ut(o)&&Et(o)==kn}function wR(o){return ut(o)&&$l(o.length)&&!!Ye[kt(o)]}function l_(o){return typeof o=="function"?o:o==null?Wt:typeof o=="object"?_e(o)?d_(o[0],o[1]):c_(o):Ty(o)}function ad(o){if(!fs(o))return C$(o);var s=[];for(var c in Be(o))Le.call(o,c)&&c!="constructor"&&s.push(c);return s}function xR(o){if(!st(o))return iM(o);var s=fs(o),c=[];for(var f in o)f=="constructor"&&(s||!Le.call(o,f))||c.push(f);return c}function ld(o,s){return o<s}function u_(o,s){var c=-1,f=Bt(o)?$(o.length):[];return qr(o,function(h,y,I){f[++c]=s(h,y,I)}),f}function c_(o){var s=Id(o);return s.length==1&&s[0][2]?B_(s[0][0],s[0][1]):function(c){return c===o||sd(c,o,s)}}function d_(o,s){return Sd(o)&&H_(s)?B_(tr(o),s):function(c){var f=kd(c,o);return f===e&&f===s?Ad(c,o):us(s,f,w|x)}}function ml(o,s,c,f,h){o!==s&&nd(s,function(y,I){if(h||(h=new Fn),st(y))IR(o,s,I,c,ml,f,h);else{var C=f?f(Od(o,I),y,I+"",o,s,h):e;C===e&&(C=y),ed(o,I,C)}},Ut)}function IR(o,s,c,f,h,y,I){var C=Od(o,c),P=Od(s,c),F=I.get(P);if(F){ed(o,c,F);return}var q=y?y(C,P,c+"",o,s,I):e,V=q===e;if(V){var Z=_e(P),re=!Z&&zr(P),fe=!Z&&!re&&Qi(P);q=P,Z||re||fe?_e(C)?q=C:pt(C)?q=Ht(C):re?(V=!1,q=I_(P,!0)):fe?(V=!1,q=C_(P,!0)):q=[]:hs(P)||mi(P)?(q=C,mi(C)?q=by(C):(!st(C)||vr(C))&&(q=z_(P))):V=!1}V&&(I.set(P,q),h(q,P,f,y,I),I.delete(P)),ed(o,c,q)}function f_(o,s){var c=o.length;if(c)return s+=s<0?c:0,yr(s,c)?o[s]:e}function p_(o,s,c){s.length?s=nt(s,function(y){return _e(y)?function(I){return fi(I,y.length===1?y[0]:y)}:y}):s=[Wt];var f=-1;s=nt(s,nn(le()));var h=u_(o,function(y,I,C){var P=nt(s,function(F){return F(y)});return{criteria:P,index:++f,value:y}});return ZT(h,function(y,I){return AR(y,I,c)})}function CR(o,s){return h_(o,s,function(c,f){return Ad(o,f)})}function h_(o,s,c){for(var f=-1,h=s.length,y={};++f<h;){var I=s[f],C=fi(o,I);c(C,I)&&cs(y,Lr(I,o),C)}return y}function SR(o){return function(s){return fi(s,o)}}function ud(o,s,c,f){var h=f?JT:Hi,y=-1,I=s.length,C=o;for(o===s&&(s=Ht(s)),c&&(C=nt(o,nn(c)));++y<I;)for(var P=0,F=s[y],q=c?c(F):F;(P=h(C,q,P,f))>-1;)C!==o&&ol.call(C,P,1),ol.call(o,P,1);return o}function m_(o,s){for(var c=o?s.length:0,f=c-1;c--;){var h=s[c];if(c==f||h!==y){var y=h;yr(h)?ol.call(o,h,1):pd(o,h)}}return o}function cd(o,s){return o+ll(Jg()*(s-o+1))}function DR(o,s,c,f){for(var h=-1,y=yt(al((s-o)/(c||1)),0),I=$(y);y--;)I[f?y:++h]=o,o+=c;return I}function dd(o,s){var c="";if(!o||s<1||s>Ot)return c;do s%2&&(c+=o),s=ll(s/2),s&&(o+=o);while(s);return c}function xe(o,s){return Pd(U_(o,s,Wt),o+"")}function OR(o){return Xg(eo(o))}function PR(o,s){var c=eo(o);return Sl(c,di(s,0,c.length))}function cs(o,s,c,f){if(!st(o))return o;s=Lr(s,o);for(var h=-1,y=s.length,I=y-1,C=o;C!=null&&++h<y;){var P=tr(s[h]),F=c;if(P==="__proto__"||P==="constructor"||P==="prototype")return o;if(h!=I){var q=C[P];F=f?f(q,P,C):e,F===e&&(F=st(q)?q:yr(s[h+1])?[]:{})}ss(C,P,F),C=C[P]}return o}var g_=ul?function(o,s){return ul.set(o,s),o}:Wt,ER=sl?function(o,s){return sl(o,"toString",{configurable:!0,enumerable:!1,value:qd(s),writable:!0})}:Wt;function TR(o){return Sl(eo(o))}function wn(o,s,c){var f=-1,h=o.length;s<0&&(s=-s>h?0:h+s),c=c>h?h:c,c<0&&(c+=h),h=s>c?0:c-s>>>0,s>>>=0;for(var y=$(h);++f<h;)y[f]=o[f+s];return y}function $R(o,s){var c;return qr(o,function(f,h,y){return c=s(f,h,y),!c}),!!c}function gl(o,s,c){var f=0,h=o==null?f:o.length;if(typeof s=="number"&&s===s&&h<=za){for(;f<h;){var y=f+h>>>1,I=o[y];I!==null&&!on(I)&&(c?I<=s:I<s)?f=y+1:h=y}return h}return fd(o,s,Wt,c)}function fd(o,s,c,f){var h=0,y=o==null?0:o.length;if(y===0)return 0;s=c(s);for(var I=s!==s,C=s===null,P=on(s),F=s===e;h<y;){var q=ll((h+y)/2),V=c(o[q]),Z=V!==e,re=V===null,fe=V===V,be=on(V);if(I)var pe=f||fe;else F?pe=fe&&(f||Z):C?pe=fe&&Z&&(f||!re):P?pe=fe&&Z&&!re&&(f||!be):re||be?pe=!1:pe=f?V<=s:V<s;pe?h=q+1:y=q}return Pt(y,eg)}function __(o,s){for(var c=-1,f=o.length,h=0,y=[];++c<f;){var I=o[c],C=s?s(I):I;if(!c||!qn(C,P)){var P=C;y[h++]=I===0?0:I}}return y}function y_(o){return typeof o=="number"?o:on(o)?dr:+o}function rn(o){if(typeof o=="string")return o;if(_e(o))return nt(o,rn)+"";if(on(o))return Zg?Zg.call(o):"";var s=o+"";return s=="0"&&1/o==-mn?"-0":s}function jr(o,s,c){var f=-1,h=Ja,y=o.length,I=!0,C=[],P=C;if(c)I=!1,h=Vc;else if(y>=t){var F=s?null:zR(o);if(F)return Ya(F);I=!1,h=es,P=new ci}else P=s?[]:C;e:for(;++f<y;){var q=o[f],V=s?s(q):q;if(q=c||q!==0?q:0,I&&V===V){for(var Z=P.length;Z--;)if(P[Z]===V)continue e;s&&P.push(V),C.push(q)}else h(P,V,c)||(P!==C&&P.push(V),C.push(q))}return C}function pd(o,s){return s=Lr(s,o),o=W_(o,s),o==null||delete o[tr(xn(s))]}function v_(o,s,c,f){return cs(o,s,c(fi(o,s)),f)}function _l(o,s,c,f){for(var h=o.length,y=f?h:-1;(f?y--:++y<h)&&s(o[y],y,o););return c?wn(o,f?0:y,f?y+1:h):wn(o,f?y+1:0,f?h:y)}function b_(o,s){var c=o;return c instanceof Pe&&(c=c.value()),zc(s,function(f,h){return h.func.apply(h.thisArg,Nr([f],h.args))},c)}function hd(o,s,c){var f=o.length;if(f<2)return f?jr(o[0]):[];for(var h=-1,y=$(f);++h<f;)for(var I=o[h],C=-1;++C<f;)C!=h&&(y[h]=as(y[h]||I,o[C],s,c));return jr(It(y,1),s,c)}function w_(o,s,c){for(var f=-1,h=o.length,y=s.length,I={};++f<h;){var C=f<y?s[f]:e;c(I,o[f],C)}return I}function md(o){return pt(o)?o:[]}function gd(o){return typeof o=="function"?o:Wt}function Lr(o,s){return _e(o)?o:Sd(o,s)?[o]:Z_(je(o))}var RR=xe;function Vr(o,s,c){var f=o.length;return c=c===e?f:c,!s&&c>=f?o:wn(o,s,c)}var x_=v$||function(o){return vt.clearTimeout(o)};function I_(o,s){if(s)return o.slice();var c=o.length,f=Bg?Bg(c):new o.constructor(c);return o.copy(f),f}function _d(o){var s=new o.constructor(o.byteLength);return new rl(s).set(new rl(o)),s}function MR(o,s){var c=s?_d(o.buffer):o.buffer;return new o.constructor(c,o.byteOffset,o.byteLength)}function NR(o){var s=new o.constructor(o.source,sg.exec(o));return s.lastIndex=o.lastIndex,s}function kR(o){return os?Be(os.call(o)):{}}function C_(o,s){var c=s?_d(o.buffer):o.buffer;return new o.constructor(c,o.byteOffset,o.length)}function S_(o,s){if(o!==s){var c=o!==e,f=o===null,h=o===o,y=on(o),I=s!==e,C=s===null,P=s===s,F=on(s);if(!C&&!F&&!y&&o>s||y&&I&&P&&!C&&!F||f&&I&&P||!c&&P||!h)return 1;if(!f&&!y&&!F&&o<s||F&&c&&h&&!f&&!y||C&&c&&h||!I&&h||!P)return-1}return 0}function AR(o,s,c){for(var f=-1,h=o.criteria,y=s.criteria,I=h.length,C=c.length;++f<I;){var P=S_(h[f],y[f]);if(P){if(f>=C)return P;var F=c[f];return P*(F=="desc"?-1:1)}}return o.index-s.index}function D_(o,s,c,f){for(var h=-1,y=o.length,I=c.length,C=-1,P=s.length,F=yt(y-I,0),q=$(P+F),V=!f;++C<P;)q[C]=s[C];for(;++h<I;)(V||h<y)&&(q[c[h]]=o[h]);for(;F--;)q[C++]=o[h++];return q}function O_(o,s,c,f){for(var h=-1,y=o.length,I=-1,C=c.length,P=-1,F=s.length,q=yt(y-C,0),V=$(q+F),Z=!f;++h<q;)V[h]=o[h];for(var re=h;++P<F;)V[re+P]=s[P];for(;++I<C;)(Z||h<y)&&(V[re+c[I]]=o[h++]);return V}function Ht(o,s){var c=-1,f=o.length;for(s||(s=$(f));++c<f;)s[c]=o[c];return s}function er(o,s,c,f){var h=!c;c||(c={});for(var y=-1,I=s.length;++y<I;){var C=s[y],P=f?f(c[C],o[C],C,c,o):e;P===e&&(P=o[C]),h?mr(c,C,P):ss(c,C,P)}return c}function FR(o,s){return er(o,Cd(o),s)}function qR(o,s){return er(o,L_(o),s)}function yl(o,s){return function(c,f){var h=_e(c)?HT:sR,y=s?s():{};return h(c,o,le(f,2),y)}}function Zi(o){return xe(function(s,c){var f=-1,h=c.length,y=h>1?c[h-1]:e,I=h>2?c[2]:e;for(y=o.length>3&&typeof y=="function"?(h--,y):e,I&&At(c[0],c[1],I)&&(y=h<3?e:y,h=1),s=Be(s);++f<h;){var C=c[f];C&&o(s,C,f,y)}return s})}function P_(o,s){return function(c,f){if(c==null)return c;if(!Bt(c))return o(c,f);for(var h=c.length,y=s?h:-1,I=Be(c);(s?y--:++y<h)&&f(I[y],y,I)!==!1;);return c}}function E_(o){return function(s,c,f){for(var h=-1,y=Be(s),I=f(s),C=I.length;C--;){var P=I[o?C:++h];if(c(y[P],P,y)===!1)break}return s}}function jR(o,s,c){var f=s&S,h=ds(o);function y(){var I=this&&this!==vt&&this instanceof y?h:o;return I.apply(f?c:this,arguments)}return y}function T_(o){return function(s){s=je(s);var c=Bi(s)?An(s):e,f=c?c[0]:s.charAt(0),h=c?Vr(c,1).join(""):s.slice(1);return f[o]()+h}}function Yi(o){return function(s){return zc(Py(Oy(s).replace(ET,"")),o,"")}}function ds(o){return function(){var s=arguments;switch(s.length){case 0:return new o;case 1:return new o(s[0]);case 2:return new o(s[0],s[1]);case 3:return new o(s[0],s[1],s[2]);case 4:return new o(s[0],s[1],s[2],s[3]);case 5:return new o(s[0],s[1],s[2],s[3],s[4]);case 6:return new o(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new o(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var c=Ji(o.prototype),f=o.apply(c,s);return st(f)?f:c}}function LR(o,s,c){var f=ds(o);function h(){for(var y=arguments.length,I=$(y),C=y,P=Xi(h);C--;)I[C]=arguments[C];var F=y<3&&I[0]!==P&&I[y-1]!==P?[]:kr(I,P);if(y-=F.length,y<c)return k_(o,s,vl,h.placeholder,e,I,F,e,e,c-y);var q=this&&this!==vt&&this instanceof h?f:o;return tn(q,this,I)}return h}function $_(o){return function(s,c,f){var h=Be(s);if(!Bt(s)){var y=le(c,3);s=bt(s),c=function(C){return y(h[C],C,h)}}var I=o(s,c,f);return I>-1?h[y?s[I]:I]:e}}function R_(o){return _r(function(s){var c=s.length,f=c,h=vn.prototype.thru;for(o&&s.reverse();f--;){var y=s[f];if(typeof y!="function")throw new yn(i);if(h&&!I&&Il(y)=="wrapper")var I=new vn([],!0)}for(f=I?f:c;++f<c;){y=s[f];var C=Il(y),P=C=="wrapper"?xd(y):e;P&&Dd(P[0])&&P[1]==(A|R|K|W)&&!P[4].length&&P[9]==1?I=I[Il(P[0])].apply(I,P[3]):I=y.length==1&&Dd(y)?I[C]():I.thru(y)}return function(){var F=arguments,q=F[0];if(I&&F.length==1&&_e(q))return I.plant(q).value();for(var V=0,Z=c?s[V].apply(this,F):q;++V<c;)Z=s[V].call(this,Z);return Z}})}function vl(o,s,c,f,h,y,I,C,P,F){var q=s&A,V=s&S,Z=s&b,re=s&(R|Q),fe=s&z,be=Z?e:ds(o);function pe(){for(var Se=arguments.length,Ee=$(Se),sn=Se;sn--;)Ee[sn]=arguments[sn];if(re)var Ft=Xi(pe),an=XT(Ee,Ft);if(f&&(Ee=D_(Ee,f,h,re)),y&&(Ee=O_(Ee,y,I,re)),Se-=an,re&&Se<F){var ht=kr(Ee,Ft);return k_(o,s,vl,pe.placeholder,c,Ee,ht,C,P,F-Se)}var jn=V?c:this,wr=Z?jn[o]:o;return Se=Ee.length,C?Ee=sM(Ee,C):fe&&Se>1&&Ee.reverse(),q&&P<Se&&(Ee.length=P),this&&this!==vt&&this instanceof pe&&(wr=be||ds(wr)),wr.apply(jn,Ee)}return pe}function M_(o,s){return function(c,f){return hR(c,o,s(f),{})}}function bl(o,s){return function(c,f){var h;if(c===e&&f===e)return s;if(c!==e&&(h=c),f!==e){if(h===e)return f;typeof c=="string"||typeof f=="string"?(c=rn(c),f=rn(f)):(c=y_(c),f=y_(f)),h=o(c,f)}return h}}function yd(o){return _r(function(s){return s=nt(s,nn(le())),xe(function(c){var f=this;return o(s,function(h){return tn(h,f,c)})})})}function wl(o,s){s=s===e?" ":rn(s);var c=s.length;if(c<2)return c?dd(s,o):s;var f=dd(s,al(o/Ui(s)));return Bi(s)?Vr(An(f),0,o).join(""):f.slice(0,o)}function VR(o,s,c,f){var h=s&S,y=ds(o);function I(){for(var C=-1,P=arguments.length,F=-1,q=f.length,V=$(q+P),Z=this&&this!==vt&&this instanceof I?y:o;++F<q;)V[F]=f[F];for(;P--;)V[F++]=arguments[++C];return tn(Z,h?c:this,V)}return I}function N_(o){return function(s,c,f){return f&&typeof f!="number"&&At(s,c,f)&&(c=f=e),s=br(s),c===e?(c=s,s=0):c=br(c),f=f===e?s<c?1:-1:br(f),DR(s,c,f,o)}}function xl(o){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=In(s),c=In(c)),o(s,c)}}function k_(o,s,c,f,h,y,I,C,P,F){var q=s&R,V=q?I:e,Z=q?e:I,re=q?y:e,fe=q?e:y;s|=q?K:J,s&=~(q?J:K),s&T||(s&=~(S|b));var be=[o,s,h,re,V,fe,Z,C,P,F],pe=c.apply(e,be);return Dd(o)&&G_(pe,be),pe.placeholder=f,K_(pe,o,s)}function vd(o){var s=_t[o];return function(c,f){if(c=In(c),f=f==null?0:Pt(ye(f),292),f&&Kg(c)){var h=(je(c)+"e").split("e"),y=s(h[0]+"e"+(+h[1]+f));return h=(je(y)+"e").split("e"),+(h[0]+"e"+(+h[1]-f))}return s(c)}}var zR=Gi&&1/Ya(new Gi([,-0]))[1]==mn?function(o){return new Gi(o)}:Vd;function A_(o){return function(s){var c=Et(s);return c==Nn?Jc(s):c==kn?o$(s):YT(s,o(s))}}function gr(o,s,c,f,h,y,I,C){var P=s&b;if(!P&&typeof o!="function")throw new yn(i);var F=f?f.length:0;if(F||(s&=~(K|J),f=h=e),I=I===e?I:yt(ye(I),0),C=C===e?C:ye(C),F-=h?h.length:0,s&J){var q=f,V=h;f=h=e}var Z=P?e:xd(o),re=[o,s,c,f,h,q,V,y,I,C];if(Z&&rM(re,Z),o=re[0],s=re[1],c=re[2],f=re[3],h=re[4],C=re[9]=re[9]===e?P?0:o.length:yt(re[9]-F,0),!C&&s&(R|Q)&&(s&=~(R|Q)),!s||s==S)var fe=jR(o,s,c);else s==R||s==Q?fe=LR(o,s,C):(s==K||s==(S|K))&&!h.length?fe=VR(o,s,c,f):fe=vl.apply(e,re);var be=Z?g_:G_;return K_(be(fe,re),o,s)}function F_(o,s,c,f){return o===e||qn(o,Wi[c])&&!Le.call(f,c)?s:o}function q_(o,s,c,f,h,y){return st(o)&&st(s)&&(y.set(s,o),ml(o,s,e,q_,y),y.delete(s)),o}function HR(o){return hs(o)?e:o}function j_(o,s,c,f,h,y){var I=c&w,C=o.length,P=s.length;if(C!=P&&!(I&&P>C))return!1;var F=y.get(o),q=y.get(s);if(F&&q)return F==s&&q==o;var V=-1,Z=!0,re=c&x?new ci:e;for(y.set(o,s),y.set(s,o);++V<C;){var fe=o[V],be=s[V];if(f)var pe=I?f(be,fe,V,s,o,y):f(fe,be,V,o,s,y);if(pe!==e){if(pe)continue;Z=!1;break}if(re){if(!Hc(s,function(Se,Ee){if(!es(re,Ee)&&(fe===Se||h(fe,Se,c,f,y)))return re.push(Ee)})){Z=!1;break}}else if(!(fe===be||h(fe,be,c,f,y))){Z=!1;break}}return y.delete(o),y.delete(s),Z}function BR(o,s,c,f,h,y,I){switch(c){case Vi:if(o.byteLength!=s.byteLength||o.byteOffset!=s.byteOffset)return!1;o=o.buffer,s=s.buffer;case Qo:return!(o.byteLength!=s.byteLength||!y(new rl(o),new rl(s)));case Go:case Ko:case Jo:return qn(+o,+s);case Ha:return o.name==s.name&&o.message==s.message;case Zo:case Yo:return o==s+"";case Nn:var C=Jc;case kn:var P=f&w;if(C||(C=Ya),o.size!=s.size&&!P)return!1;var F=I.get(o);if(F)return F==s;f|=x,I.set(o,s);var q=j_(C(o),C(s),f,h,y,I);return I.delete(o),q;case Ua:if(os)return os.call(o)==os.call(s)}return!1}function UR(o,s,c,f,h,y){var I=c&w,C=bd(o),P=C.length,F=bd(s),q=F.length;if(P!=q&&!I)return!1;for(var V=P;V--;){var Z=C[V];if(!(I?Z in s:Le.call(s,Z)))return!1}var re=y.get(o),fe=y.get(s);if(re&&fe)return re==s&&fe==o;var be=!0;y.set(o,s),y.set(s,o);for(var pe=I;++V<P;){Z=C[V];var Se=o[Z],Ee=s[Z];if(f)var sn=I?f(Ee,Se,Z,s,o,y):f(Se,Ee,Z,o,s,y);if(!(sn===e?Se===Ee||h(Se,Ee,c,f,y):sn)){be=!1;break}pe||(pe=Z=="constructor")}if(be&&!pe){var Ft=o.constructor,an=s.constructor;Ft!=an&&"constructor"in o&&"constructor"in s&&!(typeof Ft=="function"&&Ft instanceof Ft&&typeof an=="function"&&an instanceof an)&&(be=!1)}return y.delete(o),y.delete(s),be}function _r(o){return Pd(U_(o,e,ey),o+"")}function bd(o){return o_(o,bt,Cd)}function wd(o){return o_(o,Ut,L_)}var xd=ul?function(o){return ul.get(o)}:Vd;function Il(o){for(var s=o.name+"",c=Ki[s],f=Le.call(Ki,s)?c.length:0;f--;){var h=c[f],y=h.func;if(y==null||y==o)return h.name}return s}function Xi(o){var s=Le.call(g,"placeholder")?g:o;return s.placeholder}function le(){var o=g.iteratee||jd;return o=o===jd?l_:o,arguments.length?o(arguments[0],arguments[1]):o}function Cl(o,s){var c=o.__data__;return QR(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Id(o){for(var s=bt(o),c=s.length;c--;){var f=s[c],h=o[f];s[c]=[f,h,H_(h)]}return s}function pi(o,s){var c=n$(o,s);return a_(c)?c:e}function WR(o){var s=Le.call(o,li),c=o[li];try{o[li]=e;var f=!0}catch{}var h=tl.call(o);return f&&(s?o[li]=c:delete o[li]),h}var Cd=Yc?function(o){return o==null?[]:(o=Be(o),Mr(Yc(o),function(s){return Wg.call(o,s)}))}:zd,L_=Yc?function(o){for(var s=[];o;)Nr(s,Cd(o)),o=il(o);return s}:zd,Et=kt;(Xc&&Et(new Xc(new ArrayBuffer(1)))!=Vi||ns&&Et(new ns)!=Nn||Qc&&Et(Qc.resolve())!=ng||Gi&&Et(new Gi)!=kn||rs&&Et(new rs)!=Xo)&&(Et=function(o){var s=kt(o),c=s==fr?o.constructor:e,f=c?hi(c):"";if(f)switch(f){case P$:return Vi;case E$:return Nn;case T$:return ng;case $$:return kn;case R$:return Xo}return s});function GR(o,s,c){for(var f=-1,h=c.length;++f<h;){var y=c[f],I=y.size;switch(y.type){case"drop":o+=I;break;case"dropRight":s-=I;break;case"take":s=Pt(s,o+I);break;case"takeRight":o=yt(o,s-I);break}}return{start:o,end:s}}function KR(o){var s=o.match(eT);return s?s[1].split(tT):[]}function V_(o,s,c){s=Lr(s,o);for(var f=-1,h=s.length,y=!1;++f<h;){var I=tr(s[f]);if(!(y=o!=null&&c(o,I)))break;o=o[I]}return y||++f!=h?y:(h=o==null?0:o.length,!!h&&$l(h)&&yr(I,h)&&(_e(o)||mi(o)))}function JR(o){var s=o.length,c=new o.constructor(s);return s&&typeof o[0]=="string"&&Le.call(o,"index")&&(c.index=o.index,c.input=o.input),c}function z_(o){return typeof o.constructor=="function"&&!fs(o)?Ji(il(o)):{}}function ZR(o,s,c){var f=o.constructor;switch(s){case Qo:return _d(o);case Go:case Ko:return new f(+o);case Vi:return MR(o,c);case Ic:case Cc:case Sc:case Dc:case Oc:case Pc:case Ec:case Tc:case $c:return C_(o,c);case Nn:return new f;case Jo:case Yo:return new f(o);case Zo:return NR(o);case kn:return new f;case Ua:return kR(o)}}function YR(o,s){var c=s.length;if(!c)return o;var f=c-1;return s[f]=(c>1?"& ":"")+s[f],s=s.join(c>2?", ":" "),o.replace(QE,`{
9
+ /* [wrapped with `+s+`] */
10
+ `)}function XR(o){return _e(o)||mi(o)||!!(Gg&&o&&o[Gg])}function yr(o,s){var c=typeof o;return s=s??Ot,!!s&&(c=="number"||c!="symbol"&&cT.test(o))&&o>-1&&o%1==0&&o<s}function At(o,s,c){if(!st(c))return!1;var f=typeof s;return(f=="number"?Bt(c)&&yr(s,c.length):f=="string"&&s in c)?qn(c[s],o):!1}function Sd(o,s){if(_e(o))return!1;var c=typeof o;return c=="number"||c=="symbol"||c=="boolean"||o==null||on(o)?!0:JE.test(o)||!KE.test(o)||s!=null&&o in Be(s)}function QR(o){var s=typeof o;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?o!=="__proto__":o===null}function Dd(o){var s=Il(o),c=g[s];if(typeof c!="function"||!(s in Pe.prototype))return!1;if(o===c)return!0;var f=xd(c);return!!f&&o===f[0]}function eM(o){return!!Hg&&Hg in o}var tM=Qa?vr:Hd;function fs(o){var s=o&&o.constructor,c=typeof s=="function"&&s.prototype||Wi;return o===c}function H_(o){return o===o&&!st(o)}function B_(o,s){return function(c){return c==null?!1:c[o]===s&&(s!==e||o in Be(c))}}function nM(o){var s=El(o,function(f){return c.size===u&&c.clear(),f}),c=s.cache;return s}function rM(o,s){var c=o[1],f=s[1],h=c|f,y=h<(S|b|A),I=f==A&&c==R||f==A&&c==W&&o[7].length<=s[8]||f==(A|W)&&s[7].length<=s[8]&&c==R;if(!(y||I))return o;f&S&&(o[2]=s[2],h|=c&S?0:T);var C=s[3];if(C){var P=o[3];o[3]=P?D_(P,C,s[4]):C,o[4]=P?kr(o[3],d):s[4]}return C=s[5],C&&(P=o[5],o[5]=P?O_(P,C,s[6]):C,o[6]=P?kr(o[5],d):s[6]),C=s[7],C&&(o[7]=C),f&A&&(o[8]=o[8]==null?s[8]:Pt(o[8],s[8])),o[9]==null&&(o[9]=s[9]),o[0]=s[0],o[1]=h,o}function iM(o){var s=[];if(o!=null)for(var c in Be(o))s.push(c);return s}function oM(o){return tl.call(o)}function U_(o,s,c){return s=yt(s===e?o.length-1:s,0),function(){for(var f=arguments,h=-1,y=yt(f.length-s,0),I=$(y);++h<y;)I[h]=f[s+h];h=-1;for(var C=$(s+1);++h<s;)C[h]=f[h];return C[s]=c(I),tn(o,this,C)}}function W_(o,s){return s.length<2?o:fi(o,wn(s,0,-1))}function sM(o,s){for(var c=o.length,f=Pt(s.length,c),h=Ht(o);f--;){var y=s[f];o[f]=yr(y,c)?h[y]:e}return o}function Od(o,s){if(!(s==="constructor"&&typeof o[s]=="function")&&s!="__proto__")return o[s]}var G_=J_(g_),ps=w$||function(o,s){return vt.setTimeout(o,s)},Pd=J_(ER);function K_(o,s,c){var f=s+"";return Pd(o,YR(f,aM(KR(f),c)))}function J_(o){var s=0,c=0;return function(){var f=S$(),h=Ne-(f-c);if(c=f,h>0){if(++s>=de)return arguments[0]}else s=0;return o.apply(e,arguments)}}function Sl(o,s){var c=-1,f=o.length,h=f-1;for(s=s===e?f:s;++c<s;){var y=cd(c,h),I=o[y];o[y]=o[c],o[c]=I}return o.length=s,o}var Z_=nM(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(ZE,function(c,f,h,y){s.push(h?y.replace(iT,"$1"):f||c)}),s});function tr(o){if(typeof o=="string"||on(o))return o;var s=o+"";return s=="0"&&1/o==-mn?"-0":s}function hi(o){if(o!=null){try{return el.call(o)}catch{}try{return o+""}catch{}}return""}function aM(o,s){return _n(si,function(c){var f="_."+c[0];s&c[1]&&!Ja(o,f)&&o.push(f)}),o.sort()}function Y_(o){if(o instanceof Pe)return o.clone();var s=new vn(o.__wrapped__,o.__chain__);return s.__actions__=Ht(o.__actions__),s.__index__=o.__index__,s.__values__=o.__values__,s}function lM(o,s,c){(c?At(o,s,c):s===e)?s=1:s=yt(ye(s),0);var f=o==null?0:o.length;if(!f||s<1)return[];for(var h=0,y=0,I=$(al(f/s));h<f;)I[y++]=wn(o,h,h+=s);return I}function uM(o){for(var s=-1,c=o==null?0:o.length,f=0,h=[];++s<c;){var y=o[s];y&&(h[f++]=y)}return h}function cM(){var o=arguments.length;if(!o)return[];for(var s=$(o-1),c=arguments[0],f=o;f--;)s[f-1]=arguments[f];return Nr(_e(c)?Ht(c):[c],It(s,1))}var dM=xe(function(o,s){return pt(o)?as(o,It(s,1,pt,!0)):[]}),fM=xe(function(o,s){var c=xn(s);return pt(c)&&(c=e),pt(o)?as(o,It(s,1,pt,!0),le(c,2)):[]}),pM=xe(function(o,s){var c=xn(s);return pt(c)&&(c=e),pt(o)?as(o,It(s,1,pt,!0),e,c):[]});function hM(o,s,c){var f=o==null?0:o.length;return f?(s=c||s===e?1:ye(s),wn(o,s<0?0:s,f)):[]}function mM(o,s,c){var f=o==null?0:o.length;return f?(s=c||s===e?1:ye(s),s=f-s,wn(o,0,s<0?0:s)):[]}function gM(o,s){return o&&o.length?_l(o,le(s,3),!0,!0):[]}function _M(o,s){return o&&o.length?_l(o,le(s,3),!0):[]}function yM(o,s,c,f){var h=o==null?0:o.length;return h?(c&&typeof c!="number"&&At(o,s,c)&&(c=0,f=h),cR(o,s,c,f)):[]}function X_(o,s,c){var f=o==null?0:o.length;if(!f)return-1;var h=c==null?0:ye(c);return h<0&&(h=yt(f+h,0)),Za(o,le(s,3),h)}function Q_(o,s,c){var f=o==null?0:o.length;if(!f)return-1;var h=f-1;return c!==e&&(h=ye(c),h=c<0?yt(f+h,0):Pt(h,f-1)),Za(o,le(s,3),h,!0)}function ey(o){var s=o==null?0:o.length;return s?It(o,1):[]}function vM(o){var s=o==null?0:o.length;return s?It(o,mn):[]}function bM(o,s){var c=o==null?0:o.length;return c?(s=s===e?1:ye(s),It(o,s)):[]}function wM(o){for(var s=-1,c=o==null?0:o.length,f={};++s<c;){var h=o[s];f[h[0]]=h[1]}return f}function ty(o){return o&&o.length?o[0]:e}function xM(o,s,c){var f=o==null?0:o.length;if(!f)return-1;var h=c==null?0:ye(c);return h<0&&(h=yt(f+h,0)),Hi(o,s,h)}function IM(o){var s=o==null?0:o.length;return s?wn(o,0,-1):[]}var CM=xe(function(o){var s=nt(o,md);return s.length&&s[0]===o[0]?od(s):[]}),SM=xe(function(o){var s=xn(o),c=nt(o,md);return s===xn(c)?s=e:c.pop(),c.length&&c[0]===o[0]?od(c,le(s,2)):[]}),DM=xe(function(o){var s=xn(o),c=nt(o,md);return s=typeof s=="function"?s:e,s&&c.pop(),c.length&&c[0]===o[0]?od(c,e,s):[]});function OM(o,s){return o==null?"":I$.call(o,s)}function xn(o){var s=o==null?0:o.length;return s?o[s-1]:e}function PM(o,s,c){var f=o==null?0:o.length;if(!f)return-1;var h=f;return c!==e&&(h=ye(c),h=h<0?yt(f+h,0):Pt(h,f-1)),s===s?a$(o,s,h):Za(o,kg,h,!0)}function EM(o,s){return o&&o.length?f_(o,ye(s)):e}var TM=xe(ny);function ny(o,s){return o&&o.length&&s&&s.length?ud(o,s):o}function $M(o,s,c){return o&&o.length&&s&&s.length?ud(o,s,le(c,2)):o}function RM(o,s,c){return o&&o.length&&s&&s.length?ud(o,s,e,c):o}var MM=_r(function(o,s){var c=o==null?0:o.length,f=td(o,s);return m_(o,nt(s,function(h){return yr(h,c)?+h:h}).sort(S_)),f});function NM(o,s){var c=[];if(!(o&&o.length))return c;var f=-1,h=[],y=o.length;for(s=le(s,3);++f<y;){var I=o[f];s(I,f,o)&&(c.push(I),h.push(f))}return m_(o,h),c}function Ed(o){return o==null?o:O$.call(o)}function kM(o,s,c){var f=o==null?0:o.length;return f?(c&&typeof c!="number"&&At(o,s,c)?(s=0,c=f):(s=s==null?0:ye(s),c=c===e?f:ye(c)),wn(o,s,c)):[]}function AM(o,s){return gl(o,s)}function FM(o,s,c){return fd(o,s,le(c,2))}function qM(o,s){var c=o==null?0:o.length;if(c){var f=gl(o,s);if(f<c&&qn(o[f],s))return f}return-1}function jM(o,s){return gl(o,s,!0)}function LM(o,s,c){return fd(o,s,le(c,2),!0)}function VM(o,s){var c=o==null?0:o.length;if(c){var f=gl(o,s,!0)-1;if(qn(o[f],s))return f}return-1}function zM(o){return o&&o.length?__(o):[]}function HM(o,s){return o&&o.length?__(o,le(s,2)):[]}function BM(o){var s=o==null?0:o.length;return s?wn(o,1,s):[]}function UM(o,s,c){return o&&o.length?(s=c||s===e?1:ye(s),wn(o,0,s<0?0:s)):[]}function WM(o,s,c){var f=o==null?0:o.length;return f?(s=c||s===e?1:ye(s),s=f-s,wn(o,s<0?0:s,f)):[]}function GM(o,s){return o&&o.length?_l(o,le(s,3),!1,!0):[]}function KM(o,s){return o&&o.length?_l(o,le(s,3)):[]}var JM=xe(function(o){return jr(It(o,1,pt,!0))}),ZM=xe(function(o){var s=xn(o);return pt(s)&&(s=e),jr(It(o,1,pt,!0),le(s,2))}),YM=xe(function(o){var s=xn(o);return s=typeof s=="function"?s:e,jr(It(o,1,pt,!0),e,s)});function XM(o){return o&&o.length?jr(o):[]}function QM(o,s){return o&&o.length?jr(o,le(s,2)):[]}function eN(o,s){return s=typeof s=="function"?s:e,o&&o.length?jr(o,e,s):[]}function Td(o){if(!(o&&o.length))return[];var s=0;return o=Mr(o,function(c){if(pt(c))return s=yt(c.length,s),!0}),Gc(s,function(c){return nt(o,Bc(c))})}function ry(o,s){if(!(o&&o.length))return[];var c=Td(o);return s==null?c:nt(c,function(f){return tn(s,e,f)})}var tN=xe(function(o,s){return pt(o)?as(o,s):[]}),nN=xe(function(o){return hd(Mr(o,pt))}),rN=xe(function(o){var s=xn(o);return pt(s)&&(s=e),hd(Mr(o,pt),le(s,2))}),iN=xe(function(o){var s=xn(o);return s=typeof s=="function"?s:e,hd(Mr(o,pt),e,s)}),oN=xe(Td);function sN(o,s){return w_(o||[],s||[],ss)}function aN(o,s){return w_(o||[],s||[],cs)}var lN=xe(function(o){var s=o.length,c=s>1?o[s-1]:e;return c=typeof c=="function"?(o.pop(),c):e,ry(o,c)});function iy(o){var s=g(o);return s.__chain__=!0,s}function uN(o,s){return s(o),o}function Dl(o,s){return s(o)}var cN=_r(function(o){var s=o.length,c=s?o[0]:0,f=this.__wrapped__,h=function(y){return td(y,o)};return s>1||this.__actions__.length||!(f instanceof Pe)||!yr(c)?this.thru(h):(f=f.slice(c,+c+(s?1:0)),f.__actions__.push({func:Dl,args:[h],thisArg:e}),new vn(f,this.__chain__).thru(function(y){return s&&!y.length&&y.push(e),y}))});function dN(){return iy(this)}function fN(){return new vn(this.value(),this.__chain__)}function pN(){this.__values__===e&&(this.__values__=yy(this.value()));var o=this.__index__>=this.__values__.length,s=o?e:this.__values__[this.__index__++];return{done:o,value:s}}function hN(){return this}function mN(o){for(var s,c=this;c instanceof dl;){var f=Y_(c);f.__index__=0,f.__values__=e,s?h.__wrapped__=f:s=f;var h=f;c=c.__wrapped__}return h.__wrapped__=o,s}function gN(){var o=this.__wrapped__;if(o instanceof Pe){var s=o;return this.__actions__.length&&(s=new Pe(this)),s=s.reverse(),s.__actions__.push({func:Dl,args:[Ed],thisArg:e}),new vn(s,this.__chain__)}return this.thru(Ed)}function _N(){return b_(this.__wrapped__,this.__actions__)}var yN=yl(function(o,s,c){Le.call(o,c)?++o[c]:mr(o,c,1)});function vN(o,s,c){var f=_e(o)?Mg:uR;return c&&At(o,s,c)&&(s=e),f(o,le(s,3))}function bN(o,s){var c=_e(o)?Mr:r_;return c(o,le(s,3))}var wN=$_(X_),xN=$_(Q_);function IN(o,s){return It(Ol(o,s),1)}function CN(o,s){return It(Ol(o,s),mn)}function SN(o,s,c){return c=c===e?1:ye(c),It(Ol(o,s),c)}function oy(o,s){var c=_e(o)?_n:qr;return c(o,le(s,3))}function sy(o,s){var c=_e(o)?BT:n_;return c(o,le(s,3))}var DN=yl(function(o,s,c){Le.call(o,c)?o[c].push(s):mr(o,c,[s])});function ON(o,s,c,f){o=Bt(o)?o:eo(o),c=c&&!f?ye(c):0;var h=o.length;return c<0&&(c=yt(h+c,0)),Rl(o)?c<=h&&o.indexOf(s,c)>-1:!!h&&Hi(o,s,c)>-1}var PN=xe(function(o,s,c){var f=-1,h=typeof s=="function",y=Bt(o)?$(o.length):[];return qr(o,function(I){y[++f]=h?tn(s,I,c):ls(I,s,c)}),y}),EN=yl(function(o,s,c){mr(o,c,s)});function Ol(o,s){var c=_e(o)?nt:u_;return c(o,le(s,3))}function TN(o,s,c,f){return o==null?[]:(_e(s)||(s=s==null?[]:[s]),c=f?e:c,_e(c)||(c=c==null?[]:[c]),p_(o,s,c))}var $N=yl(function(o,s,c){o[c?0:1].push(s)},function(){return[[],[]]});function RN(o,s,c){var f=_e(o)?zc:Fg,h=arguments.length<3;return f(o,le(s,4),c,h,qr)}function MN(o,s,c){var f=_e(o)?UT:Fg,h=arguments.length<3;return f(o,le(s,4),c,h,n_)}function NN(o,s){var c=_e(o)?Mr:r_;return c(o,Tl(le(s,3)))}function kN(o){var s=_e(o)?Xg:OR;return s(o)}function AN(o,s,c){(c?At(o,s,c):s===e)?s=1:s=ye(s);var f=_e(o)?iR:PR;return f(o,s)}function FN(o){var s=_e(o)?oR:TR;return s(o)}function qN(o){if(o==null)return 0;if(Bt(o))return Rl(o)?Ui(o):o.length;var s=Et(o);return s==Nn||s==kn?o.size:ad(o).length}function jN(o,s,c){var f=_e(o)?Hc:$R;return c&&At(o,s,c)&&(s=e),f(o,le(s,3))}var LN=xe(function(o,s){if(o==null)return[];var c=s.length;return c>1&&At(o,s[0],s[1])?s=[]:c>2&&At(s[0],s[1],s[2])&&(s=[s[0]]),p_(o,It(s,1),[])}),Pl=b$||function(){return vt.Date.now()};function VN(o,s){if(typeof s!="function")throw new yn(i);return o=ye(o),function(){if(--o<1)return s.apply(this,arguments)}}function ay(o,s,c){return s=c?e:s,s=o&&s==null?o.length:s,gr(o,A,e,e,e,e,s)}function ly(o,s){var c;if(typeof s!="function")throw new yn(i);return o=ye(o),function(){return--o>0&&(c=s.apply(this,arguments)),o<=1&&(s=e),c}}var $d=xe(function(o,s,c){var f=S;if(c.length){var h=kr(c,Xi($d));f|=K}return gr(o,f,s,c,h)}),uy=xe(function(o,s,c){var f=S|b;if(c.length){var h=kr(c,Xi(uy));f|=K}return gr(s,f,o,c,h)});function cy(o,s,c){s=c?e:s;var f=gr(o,R,e,e,e,e,e,s);return f.placeholder=cy.placeholder,f}function dy(o,s,c){s=c?e:s;var f=gr(o,Q,e,e,e,e,e,s);return f.placeholder=dy.placeholder,f}function fy(o,s,c){var f,h,y,I,C,P,F=0,q=!1,V=!1,Z=!0;if(typeof o!="function")throw new yn(i);s=In(s)||0,st(c)&&(q=!!c.leading,V="maxWait"in c,y=V?yt(In(c.maxWait)||0,s):y,Z="trailing"in c?!!c.trailing:Z);function re(ht){var jn=f,wr=h;return f=h=e,F=ht,I=o.apply(wr,jn),I}function fe(ht){return F=ht,C=ps(Se,s),q?re(ht):I}function be(ht){var jn=ht-P,wr=ht-F,$y=s-jn;return V?Pt($y,y-wr):$y}function pe(ht){var jn=ht-P,wr=ht-F;return P===e||jn>=s||jn<0||V&&wr>=y}function Se(){var ht=Pl();if(pe(ht))return Ee(ht);C=ps(Se,be(ht))}function Ee(ht){return C=e,Z&&f?re(ht):(f=h=e,I)}function sn(){C!==e&&x_(C),F=0,f=P=h=C=e}function Ft(){return C===e?I:Ee(Pl())}function an(){var ht=Pl(),jn=pe(ht);if(f=arguments,h=this,P=ht,jn){if(C===e)return fe(P);if(V)return x_(C),C=ps(Se,s),re(P)}return C===e&&(C=ps(Se,s)),I}return an.cancel=sn,an.flush=Ft,an}var zN=xe(function(o,s){return t_(o,1,s)}),HN=xe(function(o,s,c){return t_(o,In(s)||0,c)});function BN(o){return gr(o,z)}function El(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new yn(i);var c=function(){var f=arguments,h=s?s.apply(this,f):f[0],y=c.cache;if(y.has(h))return y.get(h);var I=o.apply(this,f);return c.cache=y.set(h,I)||y,I};return c.cache=new(El.Cache||hr),c}El.Cache=hr;function Tl(o){if(typeof o!="function")throw new yn(i);return function(){var s=arguments;switch(s.length){case 0:return!o.call(this);case 1:return!o.call(this,s[0]);case 2:return!o.call(this,s[0],s[1]);case 3:return!o.call(this,s[0],s[1],s[2])}return!o.apply(this,s)}}function UN(o){return ly(2,o)}var WN=RR(function(o,s){s=s.length==1&&_e(s[0])?nt(s[0],nn(le())):nt(It(s,1),nn(le()));var c=s.length;return xe(function(f){for(var h=-1,y=Pt(f.length,c);++h<y;)f[h]=s[h].call(this,f[h]);return tn(o,this,f)})}),Rd=xe(function(o,s){var c=kr(s,Xi(Rd));return gr(o,K,e,s,c)}),py=xe(function(o,s){var c=kr(s,Xi(py));return gr(o,J,e,s,c)}),GN=_r(function(o,s){return gr(o,W,e,e,e,s)});function KN(o,s){if(typeof o!="function")throw new yn(i);return s=s===e?s:ye(s),xe(o,s)}function JN(o,s){if(typeof o!="function")throw new yn(i);return s=s==null?0:yt(ye(s),0),xe(function(c){var f=c[s],h=Vr(c,0,s);return f&&Nr(h,f),tn(o,this,h)})}function ZN(o,s,c){var f=!0,h=!0;if(typeof o!="function")throw new yn(i);return st(c)&&(f="leading"in c?!!c.leading:f,h="trailing"in c?!!c.trailing:h),fy(o,s,{leading:f,maxWait:s,trailing:h})}function YN(o){return ay(o,1)}function XN(o,s){return Rd(gd(s),o)}function QN(){if(!arguments.length)return[];var o=arguments[0];return _e(o)?o:[o]}function ek(o){return bn(o,_)}function tk(o,s){return s=typeof s=="function"?s:e,bn(o,_,s)}function nk(o){return bn(o,p|_)}function rk(o,s){return s=typeof s=="function"?s:e,bn(o,p|_,s)}function ik(o,s){return s==null||e_(o,s,bt(s))}function qn(o,s){return o===s||o!==o&&s!==s}var ok=xl(id),sk=xl(function(o,s){return o>=s}),mi=s_((function(){return arguments})())?s_:function(o){return ut(o)&&Le.call(o,"callee")&&!Wg.call(o,"callee")},_e=$.isArray,ak=Og?nn(Og):mR;function Bt(o){return o!=null&&$l(o.length)&&!vr(o)}function pt(o){return ut(o)&&Bt(o)}function lk(o){return o===!0||o===!1||ut(o)&&kt(o)==Go}var zr=x$||Hd,uk=Pg?nn(Pg):gR;function ck(o){return ut(o)&&o.nodeType===1&&!hs(o)}function dk(o){if(o==null)return!0;if(Bt(o)&&(_e(o)||typeof o=="string"||typeof o.splice=="function"||zr(o)||Qi(o)||mi(o)))return!o.length;var s=Et(o);if(s==Nn||s==kn)return!o.size;if(fs(o))return!ad(o).length;for(var c in o)if(Le.call(o,c))return!1;return!0}function fk(o,s){return us(o,s)}function pk(o,s,c){c=typeof c=="function"?c:e;var f=c?c(o,s):e;return f===e?us(o,s,e,c):!!f}function Md(o){if(!ut(o))return!1;var s=kt(o);return s==Ha||s==AE||typeof o.message=="string"&&typeof o.name=="string"&&!hs(o)}function hk(o){return typeof o=="number"&&Kg(o)}function vr(o){if(!st(o))return!1;var s=kt(o);return s==Ba||s==tg||s==Wo||s==qE}function hy(o){return typeof o=="number"&&o==ye(o)}function $l(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=Ot}function st(o){var s=typeof o;return o!=null&&(s=="object"||s=="function")}function ut(o){return o!=null&&typeof o=="object"}var my=Eg?nn(Eg):yR;function mk(o,s){return o===s||sd(o,s,Id(s))}function gk(o,s,c){return c=typeof c=="function"?c:e,sd(o,s,Id(s),c)}function _k(o){return gy(o)&&o!=+o}function yk(o){if(tM(o))throw new me(r);return a_(o)}function vk(o){return o===null}function bk(o){return o==null}function gy(o){return typeof o=="number"||ut(o)&&kt(o)==Jo}function hs(o){if(!ut(o)||kt(o)!=fr)return!1;var s=il(o);if(s===null)return!0;var c=Le.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&el.call(c)==g$}var Nd=Tg?nn(Tg):vR;function wk(o){return hy(o)&&o>=-Ot&&o<=Ot}var _y=$g?nn($g):bR;function Rl(o){return typeof o=="string"||!_e(o)&&ut(o)&&kt(o)==Yo}function on(o){return typeof o=="symbol"||ut(o)&&kt(o)==Ua}var Qi=Rg?nn(Rg):wR;function xk(o){return o===e}function Ik(o){return ut(o)&&Et(o)==Xo}function Ck(o){return ut(o)&&kt(o)==LE}var Sk=xl(ld),Dk=xl(function(o,s){return o<=s});function yy(o){if(!o)return[];if(Bt(o))return Rl(o)?An(o):Ht(o);if(ts&&o[ts])return i$(o[ts]());var s=Et(o),c=s==Nn?Jc:s==kn?Ya:eo;return c(o)}function br(o){if(!o)return o===0?o:0;if(o=In(o),o===mn||o===-mn){var s=o<0?-1:1;return s*Va}return o===o?o:0}function ye(o){var s=br(o),c=s%1;return s===s?c?s-c:s:0}function vy(o){return o?di(ye(o),0,lt):0}function In(o){if(typeof o=="number")return o;if(on(o))return dr;if(st(o)){var s=typeof o.valueOf=="function"?o.valueOf():o;o=st(s)?s+"":s}if(typeof o!="string")return o===0?o:+o;o=qg(o);var c=aT.test(o);return c||uT.test(o)?VT(o.slice(2),c?2:8):sT.test(o)?dr:+o}function by(o){return er(o,Ut(o))}function Ok(o){return o?di(ye(o),-Ot,Ot):o===0?o:0}function je(o){return o==null?"":rn(o)}var Pk=Zi(function(o,s){if(fs(s)||Bt(s)){er(s,bt(s),o);return}for(var c in s)Le.call(s,c)&&ss(o,c,s[c])}),wy=Zi(function(o,s){er(s,Ut(s),o)}),Ml=Zi(function(o,s,c,f){er(s,Ut(s),o,f)}),Ek=Zi(function(o,s,c,f){er(s,bt(s),o,f)}),Tk=_r(td);function $k(o,s){var c=Ji(o);return s==null?c:Qg(c,s)}var Rk=xe(function(o,s){o=Be(o);var c=-1,f=s.length,h=f>2?s[2]:e;for(h&&At(s[0],s[1],h)&&(f=1);++c<f;)for(var y=s[c],I=Ut(y),C=-1,P=I.length;++C<P;){var F=I[C],q=o[F];(q===e||qn(q,Wi[F])&&!Le.call(o,F))&&(o[F]=y[F])}return o}),Mk=xe(function(o){return o.push(e,q_),tn(xy,e,o)});function Nk(o,s){return Ng(o,le(s,3),Qn)}function kk(o,s){return Ng(o,le(s,3),rd)}function Ak(o,s){return o==null?o:nd(o,le(s,3),Ut)}function Fk(o,s){return o==null?o:i_(o,le(s,3),Ut)}function qk(o,s){return o&&Qn(o,le(s,3))}function jk(o,s){return o&&rd(o,le(s,3))}function Lk(o){return o==null?[]:hl(o,bt(o))}function Vk(o){return o==null?[]:hl(o,Ut(o))}function kd(o,s,c){var f=o==null?e:fi(o,s);return f===e?c:f}function zk(o,s){return o!=null&&V_(o,s,dR)}function Ad(o,s){return o!=null&&V_(o,s,fR)}var Hk=M_(function(o,s,c){s!=null&&typeof s.toString!="function"&&(s=tl.call(s)),o[s]=c},qd(Wt)),Bk=M_(function(o,s,c){s!=null&&typeof s.toString!="function"&&(s=tl.call(s)),Le.call(o,s)?o[s].push(c):o[s]=[c]},le),Uk=xe(ls);function bt(o){return Bt(o)?Yg(o):ad(o)}function Ut(o){return Bt(o)?Yg(o,!0):xR(o)}function Wk(o,s){var c={};return s=le(s,3),Qn(o,function(f,h,y){mr(c,s(f,h,y),f)}),c}function Gk(o,s){var c={};return s=le(s,3),Qn(o,function(f,h,y){mr(c,h,s(f,h,y))}),c}var Kk=Zi(function(o,s,c){ml(o,s,c)}),xy=Zi(function(o,s,c,f){ml(o,s,c,f)}),Jk=_r(function(o,s){var c={};if(o==null)return c;var f=!1;s=nt(s,function(y){return y=Lr(y,o),f||(f=y.length>1),y}),er(o,wd(o),c),f&&(c=bn(c,p|m|_,HR));for(var h=s.length;h--;)pd(c,s[h]);return c});function Zk(o,s){return Iy(o,Tl(le(s)))}var Yk=_r(function(o,s){return o==null?{}:CR(o,s)});function Iy(o,s){if(o==null)return{};var c=nt(wd(o),function(f){return[f]});return s=le(s),h_(o,c,function(f,h){return s(f,h[0])})}function Xk(o,s,c){s=Lr(s,o);var f=-1,h=s.length;for(h||(h=1,o=e);++f<h;){var y=o==null?e:o[tr(s[f])];y===e&&(f=h,y=c),o=vr(y)?y.call(o):y}return o}function Qk(o,s,c){return o==null?o:cs(o,s,c)}function eA(o,s,c,f){return f=typeof f=="function"?f:e,o==null?o:cs(o,s,c,f)}var Cy=A_(bt),Sy=A_(Ut);function tA(o,s,c){var f=_e(o),h=f||zr(o)||Qi(o);if(s=le(s,4),c==null){var y=o&&o.constructor;h?c=f?new y:[]:st(o)?c=vr(y)?Ji(il(o)):{}:c={}}return(h?_n:Qn)(o,function(I,C,P){return s(c,I,C,P)}),c}function nA(o,s){return o==null?!0:pd(o,s)}function rA(o,s,c){return o==null?o:v_(o,s,gd(c))}function iA(o,s,c,f){return f=typeof f=="function"?f:e,o==null?o:v_(o,s,gd(c),f)}function eo(o){return o==null?[]:Kc(o,bt(o))}function oA(o){return o==null?[]:Kc(o,Ut(o))}function sA(o,s,c){return c===e&&(c=s,s=e),c!==e&&(c=In(c),c=c===c?c:0),s!==e&&(s=In(s),s=s===s?s:0),di(In(o),s,c)}function aA(o,s,c){return s=br(s),c===e?(c=s,s=0):c=br(c),o=In(o),pR(o,s,c)}function lA(o,s,c){if(c&&typeof c!="boolean"&&At(o,s,c)&&(s=c=e),c===e&&(typeof s=="boolean"?(c=s,s=e):typeof o=="boolean"&&(c=o,o=e)),o===e&&s===e?(o=0,s=1):(o=br(o),s===e?(s=o,o=0):s=br(s)),o>s){var f=o;o=s,s=f}if(c||o%1||s%1){var h=Jg();return Pt(o+h*(s-o+LT("1e-"+((h+"").length-1))),s)}return cd(o,s)}var uA=Yi(function(o,s,c){return s=s.toLowerCase(),o+(c?Dy(s):s)});function Dy(o){return Fd(je(o).toLowerCase())}function Oy(o){return o=je(o),o&&o.replace(dT,QT).replace(TT,"")}function cA(o,s,c){o=je(o),s=rn(s);var f=o.length;c=c===e?f:di(ye(c),0,f);var h=c;return c-=s.length,c>=0&&o.slice(c,h)==s}function dA(o){return o=je(o),o&&UE.test(o)?o.replace(ig,e$):o}function fA(o){return o=je(o),o&&YE.test(o)?o.replace(Rc,"\\$&"):o}var pA=Yi(function(o,s,c){return o+(c?"-":"")+s.toLowerCase()}),hA=Yi(function(o,s,c){return o+(c?" ":"")+s.toLowerCase()}),mA=T_("toLowerCase");function gA(o,s,c){o=je(o),s=ye(s);var f=s?Ui(o):0;if(!s||f>=s)return o;var h=(s-f)/2;return wl(ll(h),c)+o+wl(al(h),c)}function _A(o,s,c){o=je(o),s=ye(s);var f=s?Ui(o):0;return s&&f<s?o+wl(s-f,c):o}function yA(o,s,c){o=je(o),s=ye(s);var f=s?Ui(o):0;return s&&f<s?wl(s-f,c)+o:o}function vA(o,s,c){return c||s==null?s=0:s&&(s=+s),D$(je(o).replace(Mc,""),s||0)}function bA(o,s,c){return(c?At(o,s,c):s===e)?s=1:s=ye(s),dd(je(o),s)}function wA(){var o=arguments,s=je(o[0]);return o.length<3?s:s.replace(o[1],o[2])}var xA=Yi(function(o,s,c){return o+(c?"_":"")+s.toLowerCase()});function IA(o,s,c){return c&&typeof c!="number"&&At(o,s,c)&&(s=c=e),c=c===e?lt:c>>>0,c?(o=je(o),o&&(typeof s=="string"||s!=null&&!Nd(s))&&(s=rn(s),!s&&Bi(o))?Vr(An(o),0,c):o.split(s,c)):[]}var CA=Yi(function(o,s,c){return o+(c?" ":"")+Fd(s)});function SA(o,s,c){return o=je(o),c=c==null?0:di(ye(c),0,o.length),s=rn(s),o.slice(c,c+s.length)==s}function DA(o,s,c){var f=g.templateSettings;c&&At(o,s,c)&&(s=e),o=je(o),s=Ml({},s,f,F_);var h=Ml({},s.imports,f.imports,F_),y=bt(h),I=Kc(h,y),C,P,F=0,q=s.interpolate||Wa,V="__p += '",Z=Zc((s.escape||Wa).source+"|"+q.source+"|"+(q===og?oT:Wa).source+"|"+(s.evaluate||Wa).source+"|$","g"),re="//# sourceURL="+(Le.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kT+"]")+`
11
+ `;o.replace(Z,function(pe,Se,Ee,sn,Ft,an){return Ee||(Ee=sn),V+=o.slice(F,an).replace(fT,t$),Se&&(C=!0,V+=`' +
12
+ __e(`+Se+`) +
13
+ '`),Ft&&(P=!0,V+=`';
14
+ `+Ft+`;
15
+ __p += '`),Ee&&(V+=`' +
16
+ ((__t = (`+Ee+`)) == null ? '' : __t) +
17
+ '`),F=an+pe.length,pe}),V+=`';
18
+ `;var fe=Le.call(s,"variable")&&s.variable;if(!fe)V=`with (obj) {
19
+ `+V+`
20
+ }
21
+ `;else if(rT.test(fe))throw new me(a);V=(P?V.replace(VE,""):V).replace(zE,"$1").replace(HE,"$1;"),V="function("+(fe||"obj")+`) {
22
+ `+(fe?"":`obj || (obj = {});
23
+ `)+"var __t, __p = ''"+(C?", __e = _.escape":"")+(P?`, __j = Array.prototype.join;
24
+ function print() { __p += __j.call(arguments, '') }
25
+ `:`;
26
+ `)+V+`return __p
27
+ }`;var be=Ey(function(){return ke(y,re+"return "+V).apply(e,I)});if(be.source=V,Md(be))throw be;return be}function OA(o){return je(o).toLowerCase()}function PA(o){return je(o).toUpperCase()}function EA(o,s,c){if(o=je(o),o&&(c||s===e))return qg(o);if(!o||!(s=rn(s)))return o;var f=An(o),h=An(s),y=jg(f,h),I=Lg(f,h)+1;return Vr(f,y,I).join("")}function TA(o,s,c){if(o=je(o),o&&(c||s===e))return o.slice(0,zg(o)+1);if(!o||!(s=rn(s)))return o;var f=An(o),h=Lg(f,An(s))+1;return Vr(f,0,h).join("")}function $A(o,s,c){if(o=je(o),o&&(c||s===e))return o.replace(Mc,"");if(!o||!(s=rn(s)))return o;var f=An(o),h=jg(f,An(s));return Vr(f,h).join("")}function RA(o,s){var c=G,f=ne;if(st(s)){var h="separator"in s?s.separator:h;c="length"in s?ye(s.length):c,f="omission"in s?rn(s.omission):f}o=je(o);var y=o.length;if(Bi(o)){var I=An(o);y=I.length}if(c>=y)return o;var C=c-Ui(f);if(C<1)return f;var P=I?Vr(I,0,C).join(""):o.slice(0,C);if(h===e)return P+f;if(I&&(C+=P.length-C),Nd(h)){if(o.slice(C).search(h)){var F,q=P;for(h.global||(h=Zc(h.source,je(sg.exec(h))+"g")),h.lastIndex=0;F=h.exec(q);)var V=F.index;P=P.slice(0,V===e?C:V)}}else if(o.indexOf(rn(h),C)!=C){var Z=P.lastIndexOf(h);Z>-1&&(P=P.slice(0,Z))}return P+f}function MA(o){return o=je(o),o&&BE.test(o)?o.replace(rg,l$):o}var NA=Yi(function(o,s,c){return o+(c?" ":"")+s.toUpperCase()}),Fd=T_("toUpperCase");function Py(o,s,c){return o=je(o),s=c?e:s,s===e?r$(o)?d$(o):KT(o):o.match(s)||[]}var Ey=xe(function(o,s){try{return tn(o,e,s)}catch(c){return Md(c)?c:new me(c)}}),kA=_r(function(o,s){return _n(s,function(c){c=tr(c),mr(o,c,$d(o[c],o))}),o});function AA(o){var s=o==null?0:o.length,c=le();return o=s?nt(o,function(f){if(typeof f[1]!="function")throw new yn(i);return[c(f[0]),f[1]]}):[],xe(function(f){for(var h=-1;++h<s;){var y=o[h];if(tn(y[0],this,f))return tn(y[1],this,f)}})}function FA(o){return lR(bn(o,p))}function qd(o){return function(){return o}}function qA(o,s){return o==null||o!==o?s:o}var jA=R_(),LA=R_(!0);function Wt(o){return o}function jd(o){return l_(typeof o=="function"?o:bn(o,p))}function VA(o){return c_(bn(o,p))}function zA(o,s){return d_(o,bn(s,p))}var HA=xe(function(o,s){return function(c){return ls(c,o,s)}}),BA=xe(function(o,s){return function(c){return ls(o,c,s)}});function Ld(o,s,c){var f=bt(s),h=hl(s,f);c==null&&!(st(s)&&(h.length||!f.length))&&(c=s,s=o,o=this,h=hl(s,bt(s)));var y=!(st(c)&&"chain"in c)||!!c.chain,I=vr(o);return _n(h,function(C){var P=s[C];o[C]=P,I&&(o.prototype[C]=function(){var F=this.__chain__;if(y||F){var q=o(this.__wrapped__),V=q.__actions__=Ht(this.__actions__);return V.push({func:P,args:arguments,thisArg:o}),q.__chain__=F,q}return P.apply(o,Nr([this.value()],arguments))})}),o}function UA(){return vt._===this&&(vt._=_$),this}function Vd(){}function WA(o){return o=ye(o),xe(function(s){return f_(s,o)})}var GA=yd(nt),KA=yd(Mg),JA=yd(Hc);function Ty(o){return Sd(o)?Bc(tr(o)):SR(o)}function ZA(o){return function(s){return o==null?e:fi(o,s)}}var YA=N_(),XA=N_(!0);function zd(){return[]}function Hd(){return!1}function QA(){return{}}function eF(){return""}function tF(){return!0}function nF(o,s){if(o=ye(o),o<1||o>Ot)return[];var c=lt,f=Pt(o,lt);s=le(s),o-=lt;for(var h=Gc(f,s);++c<o;)s(c);return h}function rF(o){return _e(o)?nt(o,tr):on(o)?[o]:Ht(Z_(je(o)))}function iF(o){var s=++m$;return je(o)+s}var oF=bl(function(o,s){return o+s},0),sF=vd("ceil"),aF=bl(function(o,s){return o/s},1),lF=vd("floor");function uF(o){return o&&o.length?pl(o,Wt,id):e}function cF(o,s){return o&&o.length?pl(o,le(s,2),id):e}function dF(o){return Ag(o,Wt)}function fF(o,s){return Ag(o,le(s,2))}function pF(o){return o&&o.length?pl(o,Wt,ld):e}function hF(o,s){return o&&o.length?pl(o,le(s,2),ld):e}var mF=bl(function(o,s){return o*s},1),gF=vd("round"),_F=bl(function(o,s){return o-s},0);function yF(o){return o&&o.length?Wc(o,Wt):0}function vF(o,s){return o&&o.length?Wc(o,le(s,2)):0}return g.after=VN,g.ary=ay,g.assign=Pk,g.assignIn=wy,g.assignInWith=Ml,g.assignWith=Ek,g.at=Tk,g.before=ly,g.bind=$d,g.bindAll=kA,g.bindKey=uy,g.castArray=QN,g.chain=iy,g.chunk=lM,g.compact=uM,g.concat=cM,g.cond=AA,g.conforms=FA,g.constant=qd,g.countBy=yN,g.create=$k,g.curry=cy,g.curryRight=dy,g.debounce=fy,g.defaults=Rk,g.defaultsDeep=Mk,g.defer=zN,g.delay=HN,g.difference=dM,g.differenceBy=fM,g.differenceWith=pM,g.drop=hM,g.dropRight=mM,g.dropRightWhile=gM,g.dropWhile=_M,g.fill=yM,g.filter=bN,g.flatMap=IN,g.flatMapDeep=CN,g.flatMapDepth=SN,g.flatten=ey,g.flattenDeep=vM,g.flattenDepth=bM,g.flip=BN,g.flow=jA,g.flowRight=LA,g.fromPairs=wM,g.functions=Lk,g.functionsIn=Vk,g.groupBy=DN,g.initial=IM,g.intersection=CM,g.intersectionBy=SM,g.intersectionWith=DM,g.invert=Hk,g.invertBy=Bk,g.invokeMap=PN,g.iteratee=jd,g.keyBy=EN,g.keys=bt,g.keysIn=Ut,g.map=Ol,g.mapKeys=Wk,g.mapValues=Gk,g.matches=VA,g.matchesProperty=zA,g.memoize=El,g.merge=Kk,g.mergeWith=xy,g.method=HA,g.methodOf=BA,g.mixin=Ld,g.negate=Tl,g.nthArg=WA,g.omit=Jk,g.omitBy=Zk,g.once=UN,g.orderBy=TN,g.over=GA,g.overArgs=WN,g.overEvery=KA,g.overSome=JA,g.partial=Rd,g.partialRight=py,g.partition=$N,g.pick=Yk,g.pickBy=Iy,g.property=Ty,g.propertyOf=ZA,g.pull=TM,g.pullAll=ny,g.pullAllBy=$M,g.pullAllWith=RM,g.pullAt=MM,g.range=YA,g.rangeRight=XA,g.rearg=GN,g.reject=NN,g.remove=NM,g.rest=KN,g.reverse=Ed,g.sampleSize=AN,g.set=Qk,g.setWith=eA,g.shuffle=FN,g.slice=kM,g.sortBy=LN,g.sortedUniq=zM,g.sortedUniqBy=HM,g.split=IA,g.spread=JN,g.tail=BM,g.take=UM,g.takeRight=WM,g.takeRightWhile=GM,g.takeWhile=KM,g.tap=uN,g.throttle=ZN,g.thru=Dl,g.toArray=yy,g.toPairs=Cy,g.toPairsIn=Sy,g.toPath=rF,g.toPlainObject=by,g.transform=tA,g.unary=YN,g.union=JM,g.unionBy=ZM,g.unionWith=YM,g.uniq=XM,g.uniqBy=QM,g.uniqWith=eN,g.unset=nA,g.unzip=Td,g.unzipWith=ry,g.update=rA,g.updateWith=iA,g.values=eo,g.valuesIn=oA,g.without=tN,g.words=Py,g.wrap=XN,g.xor=nN,g.xorBy=rN,g.xorWith=iN,g.zip=oN,g.zipObject=sN,g.zipObjectDeep=aN,g.zipWith=lN,g.entries=Cy,g.entriesIn=Sy,g.extend=wy,g.extendWith=Ml,Ld(g,g),g.add=oF,g.attempt=Ey,g.camelCase=uA,g.capitalize=Dy,g.ceil=sF,g.clamp=sA,g.clone=ek,g.cloneDeep=nk,g.cloneDeepWith=rk,g.cloneWith=tk,g.conformsTo=ik,g.deburr=Oy,g.defaultTo=qA,g.divide=aF,g.endsWith=cA,g.eq=qn,g.escape=dA,g.escapeRegExp=fA,g.every=vN,g.find=wN,g.findIndex=X_,g.findKey=Nk,g.findLast=xN,g.findLastIndex=Q_,g.findLastKey=kk,g.floor=lF,g.forEach=oy,g.forEachRight=sy,g.forIn=Ak,g.forInRight=Fk,g.forOwn=qk,g.forOwnRight=jk,g.get=kd,g.gt=ok,g.gte=sk,g.has=zk,g.hasIn=Ad,g.head=ty,g.identity=Wt,g.includes=ON,g.indexOf=xM,g.inRange=aA,g.invoke=Uk,g.isArguments=mi,g.isArray=_e,g.isArrayBuffer=ak,g.isArrayLike=Bt,g.isArrayLikeObject=pt,g.isBoolean=lk,g.isBuffer=zr,g.isDate=uk,g.isElement=ck,g.isEmpty=dk,g.isEqual=fk,g.isEqualWith=pk,g.isError=Md,g.isFinite=hk,g.isFunction=vr,g.isInteger=hy,g.isLength=$l,g.isMap=my,g.isMatch=mk,g.isMatchWith=gk,g.isNaN=_k,g.isNative=yk,g.isNil=bk,g.isNull=vk,g.isNumber=gy,g.isObject=st,g.isObjectLike=ut,g.isPlainObject=hs,g.isRegExp=Nd,g.isSafeInteger=wk,g.isSet=_y,g.isString=Rl,g.isSymbol=on,g.isTypedArray=Qi,g.isUndefined=xk,g.isWeakMap=Ik,g.isWeakSet=Ck,g.join=OM,g.kebabCase=pA,g.last=xn,g.lastIndexOf=PM,g.lowerCase=hA,g.lowerFirst=mA,g.lt=Sk,g.lte=Dk,g.max=uF,g.maxBy=cF,g.mean=dF,g.meanBy=fF,g.min=pF,g.minBy=hF,g.stubArray=zd,g.stubFalse=Hd,g.stubObject=QA,g.stubString=eF,g.stubTrue=tF,g.multiply=mF,g.nth=EM,g.noConflict=UA,g.noop=Vd,g.now=Pl,g.pad=gA,g.padEnd=_A,g.padStart=yA,g.parseInt=vA,g.random=lA,g.reduce=RN,g.reduceRight=MN,g.repeat=bA,g.replace=wA,g.result=Xk,g.round=gF,g.runInContext=D,g.sample=kN,g.size=qN,g.snakeCase=xA,g.some=jN,g.sortedIndex=AM,g.sortedIndexBy=FM,g.sortedIndexOf=qM,g.sortedLastIndex=jM,g.sortedLastIndexBy=LM,g.sortedLastIndexOf=VM,g.startCase=CA,g.startsWith=SA,g.subtract=_F,g.sum=yF,g.sumBy=vF,g.template=DA,g.times=nF,g.toFinite=br,g.toInteger=ye,g.toLength=vy,g.toLower=OA,g.toNumber=In,g.toSafeInteger=Ok,g.toString=je,g.toUpper=PA,g.trim=EA,g.trimEnd=TA,g.trimStart=$A,g.truncate=RA,g.unescape=MA,g.uniqueId=iF,g.upperCase=NA,g.upperFirst=Fd,g.each=oy,g.eachRight=sy,g.first=ty,Ld(g,(function(){var o={};return Qn(g,function(s,c){Le.call(g.prototype,c)||(o[c]=s)}),o})(),{chain:!1}),g.VERSION=n,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){g[o].placeholder=g}),_n(["drop","take"],function(o,s){Pe.prototype[o]=function(c){c=c===e?1:yt(ye(c),0);var f=this.__filtered__&&!s?new Pe(this):this.clone();return f.__filtered__?f.__takeCount__=Pt(c,f.__takeCount__):f.__views__.push({size:Pt(c,lt),type:o+(f.__dir__<0?"Right":"")}),f},Pe.prototype[o+"Right"]=function(c){return this.reverse()[o](c).reverse()}}),_n(["filter","map","takeWhile"],function(o,s){var c=s+1,f=c==He||c==Xn;Pe.prototype[o]=function(h){var y=this.clone();return y.__iteratees__.push({iteratee:le(h,3),type:c}),y.__filtered__=y.__filtered__||f,y}}),_n(["head","last"],function(o,s){var c="take"+(s?"Right":"");Pe.prototype[o]=function(){return this[c](1).value()[0]}}),_n(["initial","tail"],function(o,s){var c="drop"+(s?"":"Right");Pe.prototype[o]=function(){return this.__filtered__?new Pe(this):this[c](1)}}),Pe.prototype.compact=function(){return this.filter(Wt)},Pe.prototype.find=function(o){return this.filter(o).head()},Pe.prototype.findLast=function(o){return this.reverse().find(o)},Pe.prototype.invokeMap=xe(function(o,s){return typeof o=="function"?new Pe(this):this.map(function(c){return ls(c,o,s)})}),Pe.prototype.reject=function(o){return this.filter(Tl(le(o)))},Pe.prototype.slice=function(o,s){o=ye(o);var c=this;return c.__filtered__&&(o>0||s<0)?new Pe(c):(o<0?c=c.takeRight(-o):o&&(c=c.drop(o)),s!==e&&(s=ye(s),c=s<0?c.dropRight(-s):c.take(s-o)),c)},Pe.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Pe.prototype.toArray=function(){return this.take(lt)},Qn(Pe.prototype,function(o,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),f=/^(?:head|last)$/.test(s),h=g[f?"take"+(s=="last"?"Right":""):s],y=f||/^find/.test(s);h&&(g.prototype[s]=function(){var I=this.__wrapped__,C=f?[1]:arguments,P=I instanceof Pe,F=C[0],q=P||_e(I),V=function(Se){var Ee=h.apply(g,Nr([Se],C));return f&&Z?Ee[0]:Ee};q&&c&&typeof F=="function"&&F.length!=1&&(P=q=!1);var Z=this.__chain__,re=!!this.__actions__.length,fe=y&&!Z,be=P&&!re;if(!y&&q){I=be?I:new Pe(this);var pe=o.apply(I,C);return pe.__actions__.push({func:Dl,args:[V],thisArg:e}),new vn(pe,Z)}return fe&&be?o.apply(this,C):(pe=this.thru(V),fe?f?pe.value()[0]:pe.value():pe)})}),_n(["pop","push","shift","sort","splice","unshift"],function(o){var s=Xa[o],c=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",f=/^(?:pop|shift)$/.test(o);g.prototype[o]=function(){var h=arguments;if(f&&!this.__chain__){var y=this.value();return s.apply(_e(y)?y:[],h)}return this[c](function(I){return s.apply(_e(I)?I:[],h)})}}),Qn(Pe.prototype,function(o,s){var c=g[s];if(c){var f=c.name+"";Le.call(Ki,f)||(Ki[f]=[]),Ki[f].push({name:s,func:c})}}),Ki[vl(e,b).name]=[{name:"wrapper",func:e}],Pe.prototype.clone=M$,Pe.prototype.reverse=N$,Pe.prototype.value=k$,g.prototype.at=cN,g.prototype.chain=dN,g.prototype.commit=fN,g.prototype.next=pN,g.prototype.plant=mN,g.prototype.reverse=gN,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=_N,g.prototype.first=g.prototype.head,ts&&(g.prototype[ts]=hN),g},Ar=f$();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(vt._=Ar,define(function(){return Ar})):ai?((ai.exports=Ar)._=Ar,jc._=Ar):vt._=Ar}).call(Fo)});var aC=v((wne,sC)=>{var LW="__lodash_hash_undefined__";function VW(e){return this.__data__.set(e,LW),this}sC.exports=VW});var uC=v((xne,lC)=>{function zW(e){return this.__data__.has(e)}lC.exports=zW});var dC=v((Ine,cC)=>{var HW=ku(),BW=aC(),UW=uC();function Ju(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new HW;++n<t;)this.add(e[n])}Ju.prototype.add=Ju.prototype.push=BW;Ju.prototype.has=UW;cC.exports=Ju});var pC=v((Cne,fC)=>{function WW(e,n){for(var t=-1,r=e==null?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}fC.exports=WW});var mC=v((Sne,hC)=>{function GW(e,n){return e.has(n)}hC.exports=GW});var Hh=v((Dne,gC)=>{var KW=dC(),JW=pC(),ZW=mC(),YW=1,XW=2;function QW(e,n,t,r,i,a){var l=t&YW,u=e.length,d=n.length;if(u!=d&&!(l&&d>u))return!1;var p=a.get(e),m=a.get(n);if(p&&m)return p==n&&m==e;var _=-1,w=!0,x=t&XW?new KW:void 0;for(a.set(e,n),a.set(n,e);++_<u;){var S=e[_],b=n[_];if(r)var T=l?r(b,S,_,n,e,a):r(S,b,_,e,n,a);if(T!==void 0){if(T)continue;w=!1;break}if(x){if(!JW(n,function(R,Q){if(!ZW(x,Q)&&(S===R||i(S,R,t,r,a)))return x.push(Q)})){w=!1;break}}else if(!(S===b||i(S,b,t,r,a))){w=!1;break}}return a.delete(e),a.delete(n),w}gC.exports=QW});var yC=v((One,_C)=>{function e6(e){var n=-1,t=Array(e.size);return e.forEach(function(r,i){t[++n]=[i,r]}),t}_C.exports=e6});var bC=v((Pne,vC)=>{function t6(e){var n=-1,t=Array(e.size);return e.forEach(function(r){t[++n]=r}),t}vC.exports=t6});var SC=v((Ene,CC)=>{var wC=Ti(),xC=Lh(),n6=Mu(),r6=Hh(),i6=yC(),o6=bC(),s6=1,a6=2,l6="[object Boolean]",u6="[object Date]",c6="[object Error]",d6="[object Map]",f6="[object Number]",p6="[object RegExp]",h6="[object Set]",m6="[object String]",g6="[object Symbol]",_6="[object ArrayBuffer]",y6="[object DataView]",IC=wC?wC.prototype:void 0,Bh=IC?IC.valueOf:void 0;function v6(e,n,t,r,i,a,l){switch(t){case y6:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case _6:return!(e.byteLength!=n.byteLength||!a(new xC(e),new xC(n)));case l6:case u6:case f6:return n6(+e,+n);case c6:return e.name==n.name&&e.message==n.message;case p6:case m6:return e==n+"";case d6:var u=i6;case h6:var d=r&s6;if(u||(u=o6),e.size!=n.size&&!d)return!1;var p=l.get(e);if(p)return p==n;r|=a6,l.set(e,n);var m=r6(u(e),u(n),r,i,a,l);return l.delete(e),m;case g6:if(Bh)return Bh.call(e)==Bh.call(n)}return!1}CC.exports=v6});var PC=v((Tne,OC)=>{var DC=Mh(),b6=1,w6=Object.prototype,x6=w6.hasOwnProperty;function I6(e,n,t,r,i,a){var l=t&b6,u=DC(e),d=u.length,p=DC(n),m=p.length;if(d!=m&&!l)return!1;for(var _=d;_--;){var w=u[_];if(!(l?w in n:x6.call(n,w)))return!1}var x=a.get(e),S=a.get(n);if(x&&S)return x==n&&S==e;var b=!0;a.set(e,n),a.set(n,e);for(var T=l;++_<d;){w=u[_];var R=e[w],Q=n[w];if(r)var K=l?r(Q,R,w,n,e,a):r(R,Q,w,e,n,a);if(!(K===void 0?R===Q||i(R,Q,t,r,a):K)){b=!1;break}T||(T=w=="constructor")}if(b&&!T){var J=e.constructor,A=n.constructor;J!=A&&"constructor"in e&&"constructor"in n&&!(typeof J=="function"&&J instanceof J&&typeof A=="function"&&A instanceof A)&&(b=!1)}return a.delete(e),a.delete(n),b}OC.exports=I6});var AC=v(($ne,kC)=>{var Uh=Au(),C6=Hh(),S6=SC(),D6=PC(),EC=ta(),TC=Qt(),$C=qu(),O6=Dh(),P6=1,RC="[object Arguments]",MC="[object Array]",Zu="[object Object]",E6=Object.prototype,NC=E6.hasOwnProperty;function T6(e,n,t,r,i,a){var l=TC(e),u=TC(n),d=l?MC:EC(e),p=u?MC:EC(n);d=d==RC?Zu:d,p=p==RC?Zu:p;var m=d==Zu,_=p==Zu,w=d==p;if(w&&$C(e)){if(!$C(n))return!1;l=!0,m=!1}if(w&&!m)return a||(a=new Uh),l||O6(e)?C6(e,n,t,r,i,a):S6(e,n,d,t,r,i,a);if(!(t&P6)){var x=m&&NC.call(e,"__wrapped__"),S=_&&NC.call(n,"__wrapped__");if(x||S){var b=x?e.value():e,T=S?n.value():n;return a||(a=new Uh),i(b,T,t,r,a)}}return w?(a||(a=new Uh),D6(e,n,t,r,i,a)):!1}kC.exports=T6});var Yu=v((Rne,jC)=>{var $6=AC(),FC=Dr();function qC(e,n,t,r,i){return e===n?!0:e==null||n==null||!FC(e)&&!FC(n)?e!==e&&n!==n:$6(e,n,t,r,qC,i)}jC.exports=qC});var VC=v((Mne,LC)=>{var R6=Yu();function M6(e,n){return R6(e,n)}LC.exports=M6});var Xu=v((Nne,zC)=>{function N6(e,n){for(var t=-1,r=e==null?0:e.length,i=Array(r);++t<r;)i[t]=n(e[t],t,e);return i}zC.exports=N6});var Qu=v((kne,HC)=>{var k6=$i(),A6=Dr(),F6="[object Symbol]";function q6(e){return typeof e=="symbol"||A6(e)&&k6(e)==F6}HC.exports=q6});var ec=v((Ane,BC)=>{var j6=Qt(),L6=Qu(),V6=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z6=/^\w*$/;function H6(e,n){if(j6(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||L6(e)?!0:z6.test(e)||!V6.test(e)||n!=null&&e in Object(n)}BC.exports=H6});var GC=v((Fne,WC)=>{var UC=ku(),B6="Expected a function";function Wh(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(B6);var t=function(){var r=arguments,i=n?n.apply(this,r):r[0],a=t.cache;if(a.has(i))return a.get(i);var l=e.apply(this,r);return t.cache=a.set(i,l)||a,l};return t.cache=new(Wh.Cache||UC),t}Wh.Cache=UC;WC.exports=Wh});var JC=v((qne,KC)=>{var U6=GC(),W6=500;function G6(e){var n=U6(e,function(r){return t.size===W6&&t.clear(),r}),t=n.cache;return n}KC.exports=G6});var YC=v((jne,ZC)=>{var K6=JC(),J6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z6=/\\(\\)?/g,Y6=K6(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(J6,function(t,r,i,a){n.push(i?a.replace(Z6,"$1"):r||t)}),n});ZC.exports=Y6});var rS=v((Lne,nS)=>{var XC=Ti(),X6=Xu(),Q6=Qt(),eG=Qu(),tG=1/0,QC=XC?XC.prototype:void 0,eS=QC?QC.toString:void 0;function tS(e){if(typeof e=="string")return e;if(Q6(e))return X6(e,tS)+"";if(eG(e))return eS?eS.call(e):"";var n=e+"";return n=="0"&&1/e==-tG?"-0":n}nS.exports=tS});var Gh=v((Vne,iS)=>{var nG=rS();function rG(e){return e==null?"":nG(e)}iS.exports=rG});var ra=v((zne,oS)=>{var iG=Qt(),oG=ec(),sG=YC(),aG=Gh();function lG(e,n){return iG(e)?e:oG(e,n)?[e]:sG(aG(e))}oS.exports=lG});var aS=v((Hne,sS)=>{function uG(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}sS.exports=uG});var qo=v((Bne,lS)=>{var cG=Qu(),dG=1/0;function fG(e){if(typeof e=="string"||cG(e))return e;var n=e+"";return n=="0"&&1/e==-dG?"-0":n}lS.exports=fG});var tc=v((Une,uS)=>{var pG=ra(),hG=qo();function mG(e,n){n=pG(n,e);for(var t=0,r=n.length;e!=null&&t<r;)e=e[hG(n[t++])];return t&&t==r?e:void 0}uS.exports=mG});var dS=v((Wne,cS)=>{function gG(e,n,t){var r=-1,i=e.length;n<0&&(n=-n>i?0:i+n),t=t>i?i:t,t<0&&(t+=i),i=n>t?0:t-n>>>0,n>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+n];return a}cS.exports=gG});var pS=v((Gne,fS)=>{var _G=tc(),yG=dS();function vG(e,n){return n.length<2?e:_G(e,yG(n,0,-1))}fS.exports=vG});var mS=v((Kne,hS)=>{var bG=ra(),wG=aS(),xG=pS(),IG=qo();function CG(e,n){return n=bG(n,e),e=xG(e,n),e==null||delete e[IG(wG(n))]}hS.exports=CG});var Kh=v((Jne,_S)=>{var SG=$i(),DG=Wu(),OG=Dr(),PG="[object Object]",EG=Function.prototype,TG=Object.prototype,gS=EG.toString,$G=TG.hasOwnProperty,RG=gS.call(Object);function MG(e){if(!OG(e)||SG(e)!=PG)return!1;var n=DG(e);if(n===null)return!0;var t=$G.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&gS.call(t)==RG}_S.exports=MG});var vS=v((Zne,yS)=>{var NG=Kh();function kG(e){return NG(e)?void 0:e}yS.exports=kG});var IS=v((Yne,xS)=>{var bS=Ti(),AG=Fu(),FG=Qt(),wS=bS?bS.isConcatSpreadable:void 0;function qG(e){return FG(e)||AG(e)||!!(wS&&e&&e[wS])}xS.exports=qG});var DS=v((Xne,SS)=>{var jG=Uu(),LG=IS();function CS(e,n,t,r,i){var a=-1,l=e.length;for(t||(t=LG),i||(i=[]);++a<l;){var u=e[a];n>0&&t(u)?n>1?CS(u,n-1,t,r,i):jG(i,u):r||(i[i.length]=u)}return i}SS.exports=CS});var PS=v((Qne,OS)=>{var VG=DS();function zG(e){var n=e==null?0:e.length;return n?VG(e,1):[]}OS.exports=zG});var TS=v((ere,ES)=>{function HG(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}ES.exports=HG});var MS=v((tre,RS)=>{var BG=TS(),$S=Math.max;function UG(e,n,t){return n=$S(n===void 0?e.length-1:n,0),function(){for(var r=arguments,i=-1,a=$S(r.length-n,0),l=Array(a);++i<a;)l[i]=r[n+i];i=-1;for(var u=Array(n+1);++i<n;)u[i]=r[i];return u[n]=t(l),BG(e,this,u)}}RS.exports=UG});var kS=v((nre,NS)=>{function WG(e){return function(){return e}}NS.exports=WG});var Jh=v((rre,AS)=>{function GG(e){return e}AS.exports=GG});var jS=v((ire,qS)=>{var KG=kS(),FS=wh(),JG=Jh(),ZG=FS?function(e,n){return FS(e,"toString",{configurable:!0,enumerable:!1,value:KG(n),writable:!0})}:JG;qS.exports=ZG});var VS=v((ore,LS)=>{var YG=800,XG=16,QG=Date.now;function eK(e){var n=0,t=0;return function(){var r=QG(),i=XG-(r-t);if(t=r,i>0){if(++n>=YG)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}LS.exports=eK});var HS=v((sre,zS)=>{var tK=jS(),nK=VS(),rK=nK(tK);zS.exports=rK});var US=v((are,BS)=>{var iK=PS(),oK=MS(),sK=HS();function aK(e){return sK(oK(e,void 0,iK),e+"")}BS.exports=aK});var GS=v((lre,WS)=>{var lK=Xu(),uK=Vh(),cK=mS(),dK=ra(),fK=$o(),pK=vS(),hK=US(),mK=Nh(),gK=1,_K=2,yK=4,vK=hK(function(e,n){var t={};if(e==null)return t;var r=!1;n=lK(n,function(a){return a=dK(a,e),r||(r=a.length>1),a}),fK(e,mK(e),t),r&&(t=uK(t,gK|_K|yK,pK));for(var i=n.length;i--;)cK(t,n[i]);return t});WS.exports=vK});var JS=v((ure,KS)=>{function bK(e){return function(n,t,r){for(var i=-1,a=Object(n),l=r(n),u=l.length;u--;){var d=l[e?u:++i];if(t(a[d],d,a)===!1)break}return n}}KS.exports=bK});var YS=v((cre,ZS)=>{var wK=JS(),xK=wK();ZS.exports=xK});var QS=v((dre,XS)=>{var IK=YS(),CK=No();function SK(e,n){return e&&IK(e,n,CK)}XS.exports=SK});var tD=v((fre,eD)=>{var DK=Qs();function OK(e,n){return function(t,r){if(t==null)return t;if(!DK(t))return e(t,r);for(var i=t.length,a=n?i:-1,l=Object(t);(n?a--:++a<i)&&r(l[a],a,l)!==!1;);return t}}eD.exports=OK});var Zh=v((pre,nD)=>{var PK=QS(),EK=tD(),TK=EK(PK);nD.exports=TK});var iD=v((hre,rD)=>{var $K=Zh();function RK(e,n){var t=[];return $K(e,function(r,i,a){n(r,i,a)&&t.push(r)}),t}rD.exports=RK});var sD=v((mre,oD)=>{var MK=Au(),NK=Yu(),kK=1,AK=2;function FK(e,n,t,r){var i=t.length,a=i,l=!r;if(e==null)return!a;for(e=Object(e);i--;){var u=t[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=t[i];var d=u[0],p=e[d],m=u[1];if(l&&u[2]){if(p===void 0&&!(d in e))return!1}else{var _=new MK;if(r)var w=r(p,m,d,e,n,_);if(!(w===void 0?NK(m,p,kK|AK,r,_):w))return!1}}return!0}oD.exports=FK});var Yh=v((gre,aD)=>{var qK=Ri();function jK(e){return e===e&&!qK(e)}aD.exports=jK});var uD=v((_re,lD)=>{var LK=Yh(),VK=No();function zK(e){for(var n=VK(e),t=n.length;t--;){var r=n[t],i=e[r];n[t]=[r,i,LK(i)]}return n}lD.exports=zK});var Xh=v((yre,cD)=>{function HK(e,n){return function(t){return t==null?!1:t[e]===n&&(n!==void 0||e in Object(t))}}cD.exports=HK});var fD=v((vre,dD)=>{var BK=sD(),UK=uD(),WK=Xh();function GK(e){var n=UK(e);return n.length==1&&n[0][2]?WK(n[0][0],n[0][1]):function(t){return t===e||BK(t,e,n)}}dD.exports=GK});var hD=v((bre,pD)=>{var KK=tc();function JK(e,n,t){var r=e==null?void 0:KK(e,n);return r===void 0?t:r}pD.exports=JK});var gD=v((wre,mD)=>{function ZK(e,n){return e!=null&&n in Object(e)}mD.exports=ZK});var yD=v((xre,_D)=>{var YK=ra(),XK=Fu(),QK=Qt(),e8=Ch(),t8=ju(),n8=qo();function r8(e,n,t){n=YK(n,e);for(var r=-1,i=n.length,a=!1;++r<i;){var l=n8(n[r]);if(!(a=e!=null&&t(e,l)))break;e=e[l]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&t8(i)&&e8(l,i)&&(QK(e)||XK(e)))}_D.exports=r8});var bD=v((Ire,vD)=>{var i8=gD(),o8=yD();function s8(e,n){return e!=null&&o8(e,n,i8)}vD.exports=s8});var xD=v((Cre,wD)=>{var a8=Yu(),l8=hD(),u8=bD(),c8=ec(),d8=Yh(),f8=Xh(),p8=qo(),h8=1,m8=2;function g8(e,n){return c8(e)&&d8(n)?f8(p8(e),n):function(t){var r=l8(t,e);return r===void 0&&r===n?u8(t,e):a8(n,r,h8|m8)}}wD.exports=g8});var CD=v((Sre,ID)=>{function _8(e){return function(n){return n?.[e]}}ID.exports=_8});var DD=v((Dre,SD)=>{var y8=tc();function v8(e){return function(n){return y8(n,e)}}SD.exports=v8});var PD=v((Ore,OD)=>{var b8=CD(),w8=DD(),x8=ec(),I8=qo();function C8(e){return x8(e)?b8(I8(e)):w8(e)}OD.exports=C8});var Qh=v((Pre,ED)=>{var S8=fD(),D8=xD(),O8=Jh(),P8=Qt(),E8=PD();function T8(e){return typeof e=="function"?e:e==null?O8:typeof e=="object"?P8(e)?D8(e[0],e[1]):S8(e):E8(e)}ED.exports=T8});var $D=v((Ere,TD)=>{var $8=Eh(),R8=iD(),M8=Qh(),N8=Qt();function k8(e,n){var t=N8(e)?$8:R8;return t(e,M8(n,3))}TD.exports=k8});var MD=v((Tre,RD)=>{var A8=Zh(),F8=Qs();function q8(e,n){var t=-1,r=F8(e)?Array(e.length):[];return A8(e,function(i,a,l){r[++t]=n(i,a,l)}),r}RD.exports=q8});var kD=v(($re,ND)=>{var j8=Xu(),L8=Qh(),V8=MD(),z8=Qt();function H8(e,n){var t=z8(e)?j8:V8;return t(e,L8(n,3))}ND.exports=H8});var FD=v((Rre,AD)=>{var B8=Gh(),U8=0;function W8(e){var n=++U8;return B8(e)+n}AD.exports=W8});var IO=v((gm,xO)=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});var vO=ae(),bO=["undefined","string","number","object","function","boolean","symbol"];function wO(){return{keyword:"typeof",schemaType:["string","array"],code(e){let{data:n,schema:t,schemaValue:r}=e;e.fail(typeof t=="string"?(0,vO._)`typeof ${n} != ${t}`:(0,vO._)`${r}.indexOf(typeof ${n}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:bO},{type:"array",items:{type:"string",enum:bO}}]}}}gm.default=wO;xO.exports=wO});var DO=v((ua,SO)=>{"use strict";var m7=ua&&ua.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ua,"__esModule",{value:!0});var g7=m7(IO()),CO=e=>e.addKeyword((0,g7.default)());ua.default=CO;SO.exports=CO});var TO=v((_m,EO)=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var lc={Object,Array,Function,Number,String,Date,RegExp};typeof Buffer<"u"&&(lc.Buffer=Buffer);typeof Promise<"u"&&(lc.Promise=Promise);var PO=Object.assign(_7,{CONSTRUCTORS:lc});function _7(){return{keyword:"instanceof",schemaType:["string","array"],compile(e){if(typeof e=="string"){let n=OO(e);return t=>t instanceof n}if(Array.isArray(e)){let n=e.map(OO);return t=>{for(let r of n)if(t instanceof r)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}function OO(e){let n=lc[e];if(n)return n;throw new Error(`invalid "instanceof" keyword value ${e}`)}_m.default=PO;EO.exports=PO});var MO=v((ca,RO)=>{"use strict";var y7=ca&&ca.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ca,"__esModule",{value:!0});var v7=y7(TO()),$O=e=>e.addKeyword((0,v7.default)());ca.default=$O;RO.exports=$O});var vm=v(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});function b7(e){return()=>({keyword:e,type:"number",schemaType:"array",macro:function([t,r]){return n(t,r),e==="range"?{minimum:t,maximum:r}:{exclusiveMinimum:t,exclusiveMaximum:r}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}});function n(t,r){if(t>r||e==="exclusiveRange"&&t===r)throw new Error("There are no numbers in range")}}ym.default=b7});var AO=v((da,kO)=>{"use strict";var w7=da&&da.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(da,"__esModule",{value:!0});var x7=w7(vm()),NO=(0,x7.default)("range");da.default=NO;kO.exports=NO});var jO=v((fa,qO)=>{"use strict";var I7=fa&&fa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fa,"__esModule",{value:!0});var C7=I7(AO()),FO=e=>e.addKeyword((0,C7.default)());fa.default=FO;qO.exports=FO});var zO=v((pa,VO)=>{"use strict";var S7=pa&&pa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pa,"__esModule",{value:!0});var D7=S7(vm()),LO=(0,D7.default)("exclusiveRange");pa.default=LO;VO.exports=LO});var UO=v((ha,BO)=>{"use strict";var O7=ha&&ha.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ha,"__esModule",{value:!0});var P7=O7(zO()),HO=e=>e.addKeyword((0,P7.default)());ha.default=HO;BO.exports=HO});var ma=v(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.usePattern=Lo.metaSchemaRef=void 0;var E7=ae(),T7="http://json-schema.org/schema";function $7({defaultMeta:e}={}){return e===!1?{}:{$ref:e||T7}}Lo.metaSchemaRef=$7;function R7({gen:e,it:{opts:n}},t,r=n.unicodeRegExp?"u":""){let i=new RegExp(t,r);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,E7._)`new RegExp(${t}, ${r})`})}Lo.usePattern=R7});var JO=v((bm,KO)=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var M7=ae(),WO=ma(),N7={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},k7=/^\/(.*)\/([gimuy]*)$/;function GO(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(e){let{data:n,schema:t}=e,r=i(t);e.pass((0,M7._)`${r}.test(${n})`);function i(a){if(typeof a=="object")return(0,WO.usePattern)(e,a.pattern,a.flags);let l=k7.exec(a);if(l)return(0,WO.usePattern)(e,l[1],l[2]);throw new Error("cannot parse string into RegExp")}},metaSchema:{anyOf:[{type:"string"},N7]}}}bm.default=GO;KO.exports=GO});var XO=v((ga,YO)=>{"use strict";var A7=ga&&ga.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ga,"__esModule",{value:!0});var F7=A7(JO()),ZO=e=>e.addKeyword((0,F7.default)());ga.default=ZO;YO.exports=ZO});var nP=v((wm,tP)=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});var Ni=ae(),uc={trimStart:e=>e.trimStart(),trimEnd:e=>e.trimEnd(),trimLeft:e=>e.trimStart(),trimRight:e=>e.trimEnd(),trim:e=>e.trim(),toLowerCase:e=>e.toLowerCase(),toUpperCase:e=>e.toUpperCase(),toEnumCase:(e,n)=>n?.hash[eP(e)]||e},QO=Object.assign(q7,{transform:uc});function q7(){return{keyword:"transform",schemaType:"array",before:"enum",code(e){let{gen:n,data:t,schema:r,parentSchema:i,it:a}=e,{parentData:l,parentDataProperty:u}=a,d=r;if(!d.length)return;let p;if(d.includes("toEnumCase")){let _=j7(i);p=n.scopeValue("obj",{ref:_,code:(0,Ni.stringify)(_)})}n.if((0,Ni._)`typeof ${t} == "string" && ${l} !== undefined`,()=>{n.assign(t,m(d.slice())),n.assign((0,Ni._)`${l}[${u}]`,t)});function m(_){if(!_.length)return t;let w=_.pop();if(!(w in uc))throw new Error(`transform: unknown transformation ${w}`);let x=n.scopeValue("func",{ref:uc[w],code:(0,Ni._)`require("ajv-keywords/dist/definitions/transform").transform${(0,Ni.getProperty)(w)}`}),S=m(_);return p&&w==="toEnumCase"?(0,Ni._)`${x}(${S}, ${p})`:(0,Ni._)`${x}(${S})`}},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(uc)}}}}function j7(e){let n={hash:{}};if(!e.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(let t of e.enum){if(typeof t!="string")continue;let r=eP(t);if(n.hash[r])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');n.hash[r]=t}return n}function eP(e){return e.toLowerCase()}wm.default=QO;tP.exports=QO});var oP=v((_a,iP)=>{"use strict";var L7=_a&&_a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_a,"__esModule",{value:!0});var V7=L7(nP()),rP=e=>e.addKeyword((0,V7.default)());_a.default=rP;iP.exports=rP});var lP=v((xm,aP)=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var z7=ou(),H7=["number","integer","string","boolean","null"];function sP(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(e,n){let t=B7(e,n);return r=>{if(r.length<=1)return!0;for(let i=0;i<e.length;i++){let a=e[i];if(t[i]){let l={};for(let u of r){if(!u||typeof u!="object")continue;let d=u[a];if(!(d&&typeof d=="object")){if(typeof d=="string"&&(d='"'+d),l[d])return!1;l[d]=!0}}}else for(let l=r.length;l--;){let u=r[l];if(!(!u||typeof u!="object"))for(let d=l;d--;){let p=r[d];if(p&&typeof p=="object"&&z7(u[a],p[a]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}xm.default=sP;function B7(e,n){return e.map(t=>{var r,i,a;let l=(a=(i=(r=n.items)===null||r===void 0?void 0:r.properties)===null||i===void 0?void 0:i[t])===null||a===void 0?void 0:a.type;return Array.isArray(l)?!l.includes("object")&&!l.includes("array"):H7.includes(l)})}aP.exports=sP});var dP=v((ya,cP)=>{"use strict";var U7=ya&&ya.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ya,"__esModule",{value:!0});var W7=U7(lP()),uP=e=>e.addKeyword((0,W7.default)());ya.default=uP;cP.exports=uP});var hP=v((Im,pP)=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});function fP(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(e,n){if(!e)return!0;let t=Object.keys(n.properties);return t.length===0?!0:{required:t}},dependencies:["properties"]}}Im.default=fP;pP.exports=fP});var _P=v((va,gP)=>{"use strict";var G7=va&&va.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(va,"__esModule",{value:!0});var K7=G7(hP()),mP=e=>e.addKeyword((0,K7.default)());va.default=mP;gP.exports=mP});var Sm=v(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});function J7(e){return()=>({keyword:e,type:"object",schemaType:"array",macro(n){return n.length===0?!0:n.length===1?{required:n}:{[e==="anyRequired"?"anyOf":"oneOf"]:n.map(r=>({required:[r]}))}},metaSchema:{type:"array",items:{type:"string"}}})}Cm.default=J7});var bP=v((ba,vP)=>{"use strict";var Z7=ba&&ba.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ba,"__esModule",{value:!0});var Y7=Z7(Sm()),yP=(0,Y7.default)("anyRequired");ba.default=yP;vP.exports=yP});var IP=v((wa,xP)=>{"use strict";var X7=wa&&wa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wa,"__esModule",{value:!0});var Q7=X7(bP()),wP=e=>e.addKeyword((0,Q7.default)());wa.default=wP;xP.exports=wP});var DP=v((xa,SP)=>{"use strict";var eJ=xa&&xa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xa,"__esModule",{value:!0});var tJ=eJ(Sm()),CP=(0,tJ.default)("oneRequired");xa.default=CP;SP.exports=CP});var EP=v((Ia,PP)=>{"use strict";var nJ=Ia&&Ia.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ia,"__esModule",{value:!0});var rJ=nJ(DP()),OP=e=>e.addKeyword((0,rJ.default)());Ia.default=OP;PP.exports=OP});var RP=v((Dm,$P)=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});var cc=ae(),iJ=ma(),oJ={message:({params:{missingPattern:e}})=>(0,cc.str)`should have property matching pattern '${e}'`,params:({params:{missingPattern:e}})=>(0,cc._)`{missingPattern: ${e}}`};function TP(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:oJ,code(e){let{gen:n,schema:t,data:r}=e;if(t.length===0)return;let i=n.let("valid",!0);for(let l of t)a(l);function a(l){let u=n.let("matched",!1);n.forIn("key",r,d=>{n.assign(u,(0,cc._)`${(0,iJ.usePattern)(e,l)}.test(${d})`),n.if(u,()=>n.break())}),e.setParams({missingPattern:l}),n.assign(i,(0,cc.and)(i,u)),e.pass(i)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}Dm.default=TP;$P.exports=TP});var kP=v((Ca,NP)=>{"use strict";var sJ=Ca&&Ca.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ca,"__esModule",{value:!0});var aJ=sJ(RP()),MP=e=>e.addKeyword((0,aJ.default)());Ca.default=MP;NP.exports=MP});var qP=v((Om,FP)=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});function AP(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(e){return e.length===0?!0:e.length===1?{not:{required:e}}:{not:{anyOf:e.map(n=>({required:[n]}))}}},metaSchema:{type:"array",items:{type:"string"}}}}Om.default=AP;FP.exports=AP});var VP=v((Sa,LP)=>{"use strict";var lJ=Sa&&Sa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sa,"__esModule",{value:!0});var uJ=lJ(qP()),jP=e=>e.addKeyword((0,uJ.default)());Sa.default=jP;LP.exports=jP});var BP=v((Pm,HP)=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});var cJ=ma();function zP(e){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(n){let t=[];for(let r in n)t.push(dJ(r,n[r]));return{allOf:t}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,cJ.metaSchemaRef)(e)}}}Pm.default=zP;function dJ(e,n){let t=e.split("/"),r={},i=r;for(let a=1;a<t.length;a++){let l=t[a],u=a===t.length-1;l=fJ(l);let d=i.properties={},p;if(/[0-9]+/.test(l)){let m=+l;for(p=i.items=[],i.type=["object","array"];m--;)p.push({})}else i.type="object";i=u?n:{},d[l]=i,p&&p.push(i)}return r}function fJ(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}HP.exports=zP});var GP=v((Da,WP)=>{"use strict";var pJ=Da&&Da.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Da,"__esModule",{value:!0});var hJ=pJ(BP()),UP=(e,n)=>e.addKeyword((0,hJ.default)(n));Da.default=UP;WP.exports=UP});var ZP=v((Em,JP)=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});var Oa=ae();function KP(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(e){let{schema:n,data:t}=e,r=n.map(a=>(0,Oa._)`(${i(a)}) === undefined`);e.fail((0,Oa.or)(...r));function i(a){if(a==="")throw new Error("empty JSON pointer not allowed");let l=a.split("/"),u=t,d=l.map((p,m)=>m?u=(0,Oa._)`${u}${(0,Oa.getProperty)(mJ(p))}`:u);return(0,Oa.and)(...d)}},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}Em.default=KP;function mJ(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}JP.exports=KP});var QP=v((Pa,XP)=>{"use strict";var gJ=Pa&&Pa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pa,"__esModule",{value:!0});var _J=gJ(ZP()),YP=e=>e.addKeyword((0,_J.default)());Pa.default=YP;XP.exports=YP});var Mm=v((Rm,nE)=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});var Tm={},$m={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:e=>{var n;let t=(n=e?.max)!==null&&n!==void 0?n:2;return()=>Math.floor(Math.random()*t)},seq:e=>{var n;let t=(n=e?.name)!==null&&n!==void 0?n:"";return Tm[t]||(Tm[t]=0),()=>Tm[t]++}},eE=Object.assign(yJ,{DEFAULTS:$m});function yJ(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(e,n,t){if(!t.opts.useDefaults||t.compositeRule)return()=>!0;let r={};for(let a in e)r[a]=vJ(e[a]);let i=t.opts.useDefaults==="empty";return a=>{for(let l in e)(a[l]===void 0||i&&(a[l]===null||a[l]===""))&&(a[l]=r[l]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function vJ(e){return typeof e=="object"?bJ(e):wJ(e)}function bJ({func:e,args:n}){let t=$m[e];return tE(e,t),t(n)}function wJ(e=""){let n=$m[e];return tE(e,n),n()}function tE(e,n){if(!n)throw new Error(`invalid "dynamicDefaults" keyword property value: ${e}`)}Rm.default=eE;nE.exports=eE});var oE=v((Ea,iE)=>{"use strict";var xJ=Ea&&Ea.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ea,"__esModule",{value:!0});var IJ=xJ(Mm()),rE=e=>e.addKeyword((0,IJ.default)());Ea.default=rE;iE.exports=rE});var lE=v((Nm,aE)=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});var Or=ae(),CJ=ma(),SJ={message:({params:{schemaProp:e}})=>e?(0,Or.str)`should match case "${e}" schema`:(0,Or.str)`should match default case schema`,params:({params:{schemaProp:e}})=>e?(0,Or._)`{failingCase: ${e}}`:(0,Or._)`{failingDefault: true}`};function sE(e){let n=(0,CJ.metaSchemaRef)(e);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:SJ,dependencies:["selectCases"],code(t){let{gen:r,schemaCode:i,parentSchema:a}=t;t.block$data(Or.nil,()=>{let l=r.let("valid",!0),u=r.name("_valid"),d=r.const("value",(0,Or._)`${i} === null ? "null" : ${i}`);r.if(!1);for(let p in a.selectCases){t.setParams({schemaProp:p}),r.elseIf((0,Or._)`"" + ${d} == ${p}`);let m=t.subschema({keyword:"selectCases",schemaProp:p},u);t.mergeEvaluated(m,Or.Name),r.assign(l,u)}if(r.else(),a.selectDefault!==void 0){t.setParams({schemaProp:void 0});let p=t.subschema({keyword:"selectDefault"},u);t.mergeEvaluated(p,Or.Name),r.assign(l,u)}r.endIf(),t.pass(l)})}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:n}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:n}]}Nm.default=sE;aE.exports=sE});var dE=v((Ta,cE)=>{"use strict";var DJ=Ta&&Ta.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ta,"__esModule",{value:!0});var OJ=DJ(lE()),uE=(e,n)=>((0,OJ.default)(n).forEach(t=>e.addKeyword(t)),e);Ta.default=uE;cE.exports=uE});var hE=v(($a,pE)=>{"use strict";var Mt=$a&&$a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($a,"__esModule",{value:!0});var PJ=Mt(DO()),EJ=Mt(MO()),TJ=Mt(jO()),$J=Mt(UO()),RJ=Mt(XO()),MJ=Mt(oP()),NJ=Mt(dP()),kJ=Mt(_P()),AJ=Mt(IP()),FJ=Mt(EP()),qJ=Mt(kP()),jJ=Mt(VP()),LJ=Mt(GP()),VJ=Mt(QP()),zJ=Mt(oE()),HJ=Mt(dE()),fE={typeof:PJ.default,instanceof:EJ.default,range:TJ.default,exclusiveRange:$J.default,regexp:RJ.default,transform:MJ.default,uniqueItemProperties:NJ.default,allRequired:kJ.default,anyRequired:AJ.default,oneRequired:FJ.default,patternRequired:qJ.default,prohibited:jJ.default,deepProperties:LJ.default,deepRequired:VJ.default,dynamicDefaults:zJ.default,select:HJ.default};$a.default=fE;pE.exports=fE});var gE=v((Ra,km)=>{"use strict";var BJ=Ra&&Ra.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ra,"__esModule",{value:!0});var mE=BJ(hE()),fc=(e,n)=>{if(Array.isArray(n)){for(let t of n)dc(t)(e);return e}if(n)return dc(n)(e),e;for(n in mE.default)dc(n)(e);return e};fc.get=dc;function dc(e){let n=mE.default[e];if(!n)throw new Error("Unknown keyword "+e);return n}Ra.default=fc;km.exports=fc;km.exports.default=fc});var zm=Gt(Bb(),1),Hm=Gt(_w(),1);var mh={$schema:"http://json-schema.org/draft-06/schema#",$id:"http://json-schema.org/draft-06/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},title:{type:"string"},description:{type:"string"},default:{},examples:{type:"array",items:{}},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:{},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:{}};var gh={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var we=Gt(oC(),1);var zt=Gt(zh(),1),hn=Gt(VC(),1);var xE=Gt(GS(),1),IE=Gt($D(),1),CE=Gt(kD(),1),mc=Gt(Qt(),1),SE=Gt(Kh(),1),Er=Gt(FD(),1);var em;function G8(){if(em==null){let e=typeof document<"u"?document.head:null;em=!!(e&&(e.createShadowRoot||e.attachShadow))}return em}function nc(e){if(G8()){let n=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function ia(e){return e.composedPath?e.composedPath()[0]:e.target}function qD(e){return e.buttons===0||e.detail===0}function jD(e){let n=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}function rc(e,n=0){return K8(e)?Number(e):arguments.length===2?n:0}function K8(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Jn(e){return e instanceof rr?e.nativeElement:e}var ic=new WeakMap,LD=(()=>{class e{_appRef;_injector=U(ms);_environmentInjector=U(Ly);load(t){let r=this._appRef=this._appRef||this._injector.get(Jd),i=ic.get(r);i||(i={loaders:new Set,refs:[]},ic.set(r,i),r.onDestroy(()=>{ic.get(r)?.refs.forEach(a=>a.destroy()),ic.delete(r)})),i.loaders.has(t)||(i.loaders.add(t),i.refs.push(Gy(t,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var tm;try{tm=typeof Intl<"u"&&Intl.v8BreakIterator}catch{tm=!1}var nm=(()=>{class e{_platformId=U(Hy);isBrowser=this._platformId?Ky(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||tm)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var J8=new Vn("cdk-dir-doc",{providedIn:"root",factory:Z8});function Z8(){return U(yi)}var Y8=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function X8(e){let n=e?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?Y8.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var rm=(()=>{class e{get value(){return this.valueSignal()}valueSignal=nr("ltr");change=new ln;constructor(){let t=U(J8,{optional:!0});if(t){let r=t.body?t.body.dir:null,i=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(X8(r||i||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var e7=20,VD=(()=>{class e{_ngZone=U(Hr);_platform=U(nm);_renderer=U(ro).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Ae;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let r=this.scrollContainers.get(t);r&&(r.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=e7){return this._platform.isBrowser?new _i(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let i=t>0?this._scrolled.pipe(Ud(t)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):My()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(t,r){let i=this.getAncestorScrollContainers(t);return this.scrolled(r).pipe(Fy(a=>!a||i.indexOf(a)>-1))}getAncestorScrollContainers(t){let r=[];return this.scrollContainers.forEach((i,a)=>{this._scrollableContainsElement(a,t)&&r.push(a)}),r}_scrollableContainsElement(t,r){let i=Jn(r),a=t.getElementRef().nativeElement;do if(i==a)return!0;while(i=i.parentElement);return!1}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var t7=20,zD=(()=>{class e{_platform=U(nm);_listeners;_viewportSize;_change=new Ae;_document=U(yi);constructor(){let t=U(Hr),r=U(ro).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let i=a=>this._change.next(a);this._listeners=[r.listen("window","resize",i),r.listen("window","orientationchange",i)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:r,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+r,height:i,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,r=this._getWindow(),i=t.documentElement,a=i.getBoundingClientRect(),l=-a.top||t.body.scrollTop||r.scrollY||i.scrollTop||0,u=-a.left||t.body.scrollLeft||r.scrollX||i.scrollLeft||0;return{top:l,left:u}}change(t=t7){return t>0?this._change.pipe(Ud(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var HD=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Sn({type:e});static \u0275inj=Cn({})}return e})();var im={},BD=(()=>{class e{_appId=U(zy);getId(t){return this._appId!=="ng"&&(t+=this._appId),im.hasOwnProperty(t)||(im[t]=0),`${t}${im[t]++}`}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function UD(e){return Array.isArray(e)?e:[e]}function am(e){let n=e.cloneNode(!0),t=n.querySelectorAll("[id]"),r=e.nodeName.toLowerCase();n.removeAttribute("id");for(let i=0;i<t.length;i++)t[i].removeAttribute("id");return r==="canvas"?KD(e,n):(r==="input"||r==="select"||r==="textarea")&&GD(e,n),WD("canvas",e,n,KD),WD("input, textarea, select",e,n,GD),n}function WD(e,n,t,r){let i=n.querySelectorAll(e);if(i.length){let a=t.querySelectorAll(e);for(let l=0;l<i.length;l++)r(i[l],a[l])}}var n7=0;function GD(e,n){n.type!=="file"&&(n.value=e.value),n.type==="radio"&&n.name&&(n.name=`mat-clone-${n.name}-${n7++}`)}function KD(e,n){let t=n.getContext("2d");if(t)try{t.drawImage(e,0,0)}catch{}}function pm(e){let n=e.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function lm(e,n,t){let{top:r,bottom:i,left:a,right:l}=e;return t>=r&&t<=i&&n>=a&&n<=l}function r7(e,n){let t=n.left<e.left,r=n.left+n.width>e.right,i=n.top<e.top,a=n.top+n.height>e.bottom;return t||r||i||a}function aa(e,n,t){e.top+=n,e.bottom=e.top+e.height,e.left+=t,e.right=e.left+e.width}function JD(e,n,t,r){let{top:i,right:a,bottom:l,left:u,width:d,height:p}=e,m=d*n,_=p*n;return r>i-_&&r<l+_&&t>u-m&&t<a+m}var oc=class{_document;positions=new Map;constructor(n){this._document=n}clear(){this.positions.clear()}cache(n){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),n.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:pm(t)})})}handleScroll(n){let t=ia(n),r=this.positions.get(t);if(!r)return null;let i=r.scrollPosition,a,l;if(t===this._document){let p=this.getViewportScrollPosition();a=p.top,l=p.left}else a=t.scrollTop,l=t.scrollLeft;let u=i.top-a,d=i.left-l;return this.positions.forEach((p,m)=>{p.clientRect&&t!==m&&t.contains(m)&&aa(p.clientRect,u,d)}),i.top=a,i.left=l,{top:u,left:d}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function lO(e,n){let t=e.rootNodes;if(t.length===1&&t[0].nodeType===n.ELEMENT_NODE)return t[0];let r=n.createElement("div");return t.forEach(i=>r.appendChild(i)),r}function hm(e,n,t){for(let r in n)if(n.hasOwnProperty(r)){let i=n[r];i?e.setProperty(r,i,t?.has(r)?"important":""):e.removeProperty(r)}return e}function jo(e,n){let t=n?"":"none";hm(e.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function ZD(e,n,t){hm(e.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},t)}function sc(e,n){return n&&n!="none"?e+" "+n:e}function YD(e,n){e.style.width=`${n.width}px`,e.style.height=`${n.height}px`,e.style.transform=la(n.left,n.top)}function la(e,n){return`translate3d(${Math.round(e)}px, ${Math.round(n)}px, 0)`}function XD(e){let n=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*n}function i7(e){let n=getComputedStyle(e),t=om(n,"transition-property"),r=t.find(u=>u==="transform"||u==="all");if(!r)return 0;let i=t.indexOf(r),a=om(n,"transition-duration"),l=om(n,"transition-delay");return XD(a[i])+XD(l[i])}function om(e,n){return e.getPropertyValue(n).split(",").map(r=>r.trim())}var o7=new Set(["position"]),um=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(n,t,r,i,a,l,u,d,p,m){this._document=n,this._rootElement=t,this._direction=r,this._initialDomRect=i,this._previewTemplate=a,this._previewClass=l,this._pickupPositionOnPage=u,this._initialTransform=d,this._zIndex=p,this._renderer=m}attach(n){this._preview=this._createPreview(),n.appendChild(this._preview),QD(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(n){this._preview.style.transform=n}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(n){this._preview.classList.add(n)}getTransitionDuration(){return i7(this._preview)}addEventListener(n,t){return this._renderer.listen(this._preview,n,t)}_createPreview(){let n=this._previewTemplate,t=this._previewClass,r=n?n.template:null,i;if(r&&n){let a=n.matchSize?this._initialDomRect:null,l=n.viewContainer.createEmbeddedView(r,n.context);l.detectChanges(),i=lO(l,this._document),this._previewEmbeddedView=l,n.matchSize?YD(i,a):i.style.transform=la(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else i=am(this._rootElement),YD(i,this._initialDomRect),this._initialTransform&&(i.style.transform=this._initialTransform);return hm(i.style,{"pointer-events":"none",margin:QD(i)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},o7),jo(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("popover","manual"),i.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(a=>i.classList.add(a)):i.classList.add(t)),i}};function QD(e){return"showPopover"in e}var s7={passive:!0},eO={passive:!1},a7={passive:!1,capture:!0},l7=800,tO="cdk-drag-placeholder",nO=new Set(["position"]),cm=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=nr(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new Ae;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=gi.EMPTY;_pointerUpSubscription=gi.EMPTY;_scrollSubscription=gi.EMPTY;_resizeSubscription=gi.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(n){n!==this._disabled&&(this._disabled=n,this._toggleNativeDragInteractions(),this._handles.forEach(t=>jo(t,n)))}_disabled=!1;beforeStarted=new Ae;started=new Ae;released=new Ae;ended=new Ae;entered=new Ae;exited=new Ae;dropped=new Ae;moved=this._moveEvents;data;constrainPosition;constructor(n,t,r,i,a,l,u){this._config=t,this._document=r,this._ngZone=i,this._viewportRuler=a,this._dragDropRegistry=l,this._renderer=u,this.withRootElement(n).withParent(t.parentDragRef||null),this._parentPositions=new oc(r),l.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(r=>Jn(r)),this._handles.forEach(r=>jo(r,this.disabled)),this._toggleNativeDragInteractions();let t=new Set;return this._disabledHandles.forEach(r=>{this._handles.indexOf(r)>-1&&t.add(r)}),this._disabledHandles=t,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){let t=Jn(n);if(t!==this._rootElement){this._removeRootElementListeners();let r=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[r.listen(t,"mousedown",this._pointerDown,eO),r.listen(t,"touchstart",this._pointerDown,s7),r.listen(t,"dragstart",this._nativeDragStart,eO)]),this._initialTransform=void 0,this._rootElement=t}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?Jn(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&r7(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let n=this._boundaryElement.getBoundingClientRect(),t=this._rootElement.getBoundingClientRect(),r=0,i=0;t.left<n.left?r=n.left-t.left:t.right>n.right&&(r=n.right-t.right),t.top<n.top?i=n.top-t.top:t.bottom>n.bottom&&(i=n.bottom-t.bottom);let a=this._activeTransform.x,l=this._activeTransform.y,u=a+r,d=l+i;this._rootElement.style.transform=la(u,d),this._activeTransform={x:u,y:d},this._passiveTransform={x:u,y:d}}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),jo(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),jo(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){let n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){let n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=n=>{if(this.beforeStarted.next(),this._handles.length){let t=this._getTargetHandle(n);t&&!this._disabledHandles.has(t)&&!this.disabled&&this._initializeDragSequence(t,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)};_pointerMove=n=>{let t=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging()){let i=Math.abs(t.x-this._pickupPositionOnPage.x),a=Math.abs(t.y-this._pickupPositionOnPage.y);if(i+a>=this._config.dragStartThreshold){let u=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),d=this._dropContainer;if(!u){this._endDragSequence(n);return}(!d||!d.isDragging()&&!d.isReceiving())&&(n.cancelable&&n.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(n)))}return}n.cancelable&&n.preventDefault();let r=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(r),this._dropContainer)this._updateActiveDropContainer(r,t);else{let i=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,a=this._activeTransform;a.x=r.x-i.x+this._passiveTransform.x,a.y=r.y-i.y+this._passiveTransform.y,this._applyRootElementTransform(a.x,a.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:r,event:n,distance:this._getDragDistance(r),delta:this._pointerDirectionDelta})})};_pointerUp=n=>{this._endDragSequence(n)};_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:n}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let t=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){oa(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let t=this._getShadowRoot(),r=this._dropContainer;if(t&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(t,"selectstart",u7,a7)}),r){let i=this._rootElement,a=i.parentNode,l=this._placeholder=this._createPlaceholderElement(),u=this._marker=this._marker||this._document.createComment("");a.insertBefore(u,i),this._initialTransform=i.style.transform||"",this._preview=new um(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(a,t)),ZD(i,!1,nO),this._document.body.appendChild(a.replaceChild(l,i)),this.started.next({source:this,event:n}),r.start(),this._initialContainer=r,this._initialIndex=r.getItemIndex(this)}else this.started.next({source:this,event:n}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(r?r.getScrollableParents():[])}_initializeDragSequence(n,t){this._parentDragRef&&t.stopPropagation();let r=this.isDragging(),i=oa(t),a=!i&&t.button!==0,l=this._rootElement,u=ia(t),d=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+l7>Date.now(),p=i?jD(t):qD(t);if(u&&u.draggable&&t.type==="mousedown"&&t.preventDefault(),r||a||d||p)return;if(this._handles.length){let w=l.style;this._rootElementTapHighlight=w.webkitTapHighlightColor||"",w.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(w=>this._updateOnScroll(w)),this._boundaryElement&&(this._boundaryRect=pm(this._boundaryElement));let m=this._previewTemplate;this._pickupPositionInElement=m&&m.template&&!m.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,n,t);let _=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:_.x,y:_.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(n){ZD(this._rootElement,!0,nO),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let t=this._dropContainer,r=t.getItemIndex(this),i=this._getPointerPositionOnPage(n),a=this._getDragDistance(i),l=t._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:a,dropPoint:i,event:n}),this.dropped.next({item:this,currentIndex:r,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:l,distance:a,dropPoint:i,event:n}),t.drop(this,r,this._initialIndex,this._initialContainer,l,a,i,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:t},{x:r,y:i}){let a=this._initialContainer._getSiblingContainerFromPosition(this,n,t);!a&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,t)&&(a=this._initialContainer),a&&a!==this._dropContainer&&this._ngZone.run(()=>{let l=this._dropContainer.getItemIndex(this),u=this._dropContainer.getItemAtIndex(l+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(a,this._dropContainer,u),this._dropContainer=a,this._dropContainer.enter(this,n,t,a===this._initialContainer&&a.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:a,currentIndex:a.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(r,i),this._dropContainer._sortItem(this,n,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(n,t):this._applyPreviewTransform(n-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let n=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);let t=this._preview.getTransitionDuration();return t===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(r=>{let i=u=>{(!u||this._preview&&ia(u)===this._preview.element&&u.propertyName==="transform")&&(l(),r(),clearTimeout(a))},a=setTimeout(i,t*1.5),l=this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){let n=this._placeholderTemplate,t=n?n.template:null,r;return t?(this._placeholderRef=n.viewContainer.createEmbeddedView(t,n.context),this._placeholderRef.detectChanges(),r=lO(this._placeholderRef,this._document)):r=am(this._rootElement),r.style.pointerEvents="none",r.classList.add(tO),r}_getPointerPositionInElement(n,t,r){let i=t===this._rootElement?null:t,a=i?i.getBoundingClientRect():n,l=oa(r)?r.targetTouches[0]:r,u=this._getViewportScrollPosition(),d=l.pageX-a.left-u.left,p=l.pageY-a.top-u.top;return{x:a.left-n.left+d,y:a.top-n.top+p}}_getPointerPositionOnPage(n){let t=this._getViewportScrollPosition(),r=oa(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,i=r.pageX-t.left,a=r.pageY-t.top;if(this._ownerSVGElement){let l=this._ownerSVGElement.getScreenCTM();if(l){let u=this._ownerSVGElement.createSVGPoint();return u.x=i,u.y=a,u.matrixTransform(l.inverse())}}return{x:i,y:a}}_getConstrainedPointerPosition(n){let t=this._dropContainer?this._dropContainer.lockAxis:null,{x:r,y:i}=this.constrainPosition?this.constrainPosition(n,this,this._initialDomRect,this._pickupPositionInElement):n;if(this.lockAxis==="x"||t==="x"?i=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||t==="y")&&(r=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:a,y:l}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,u=this._boundaryRect,{width:d,height:p}=this._getPreviewRect(),m=u.top+l,_=u.bottom-(p-l),w=u.left+a,x=u.right-(d-a);r=rO(r,w,x),i=rO(i,m,_)}return{x:r,y:i}}_updatePointerDirectionDelta(n){let{x:t,y:r}=n,i=this._pointerDirectionDelta,a=this._pointerPositionAtLastDirectionChange,l=Math.abs(t-a.x),u=Math.abs(r-a.y);return l>this._config.pointerDirectionChangeThreshold&&(i.x=t>a.x?1:-1,a.x=t),u>this._config.pointerDirectionChangeThreshold&&(i.y=r>a.y?1:-1,a.y=r),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,jo(this._rootElement,n))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(n=>n()),this._rootElementCleanups=void 0}_applyRootElementTransform(n,t){let r=1/this.scale,i=la(n*r,t*r),a=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=a.transform&&a.transform!="none"?a.transform:""),a.transform=sc(i,this._initialTransform)}_applyPreviewTransform(n,t){let r=this._previewTemplate?.template?void 0:this._initialTransform,i=la(n,t);this._preview.setTransform(sc(i,r))}_getDragDistance(n){let t=this._pickupPositionOnPage;return t?{x:n.x-t.x,y:n.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:t}=this._passiveTransform;if(n===0&&t===0||this.isDragging()||!this._boundaryElement)return;let r=this._rootElement.getBoundingClientRect(),i=this._boundaryElement.getBoundingClientRect();if(i.width===0&&i.height===0||r.width===0&&r.height===0)return;let a=i.left-r.left,l=r.right-i.right,u=i.top-r.top,d=r.bottom-i.bottom;i.width>r.width?(a>0&&(n+=a),l>0&&(n-=l)):n=0,i.height>r.height?(u>0&&(t+=u),d>0&&(t-=d)):t=0,(n!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:n})}_getDragStartDelay(n){let t=this.dragStartDelay;return typeof t=="number"?t:oa(n)?t.touch:t?t.mouse:0}_updateOnScroll(n){let t=this._parentPositions.handleScroll(n);if(t){let r=ia(n);this._boundaryRect&&r!==this._boundaryElement&&r.contains(this._boundaryElement)&&aa(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=nc(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,t){let r=this._previewContainer||"global";if(r==="parent")return n;if(r==="global"){let i=this._document;return t||i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body}return Jn(r)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=n=>{if(this._handles.length){let t=this._getTargetHandle(n);t&&!this._disabledHandles.has(t)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()};_getTargetHandle(n){return this._handles.find(t=>n.target&&(n.target===t||t.contains(n.target)))}_conditionallyInsertAnchor(n,t,r){if(n===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(t===this._initialContainer&&t.hasAnchor){let i=this._anchor??=am(this._placeholder);i.classList.remove(tO),i.classList.add("cdk-drag-anchor"),i.style.transform="",r?r.before(i):Jn(t.element).appendChild(i)}}};function rO(e,n,t){return Math.max(n,Math.min(t,e))}function oa(e){return e.type[0]==="t"}function u7(e){e.preventDefault()}function uO(e,n,t){let r=iO(n,e.length-1),i=iO(t,e.length-1);if(r===i)return;let a=e[r],l=i<r?-1:1;for(let u=r;u!==i;u+=l)e[u]=e[u+l];e[i]=a}function iO(e,n){return Math.max(0,Math.min(n,e))}var ac=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(n){this._dragDropRegistry=n}_previousSwap={drag:null,delta:0,overlaps:!1};start(n){this.withItems(n)}sort(n,t,r,i){let a=this._itemPositions,l=this._getItemIndexFromPointerPosition(n,t,r,i);if(l===-1&&a.length>0)return null;let u=this.orientation==="horizontal",d=a.findIndex(T=>T.drag===n),p=a[l],m=a[d].clientRect,_=p.clientRect,w=d>l?1:-1,x=this._getItemOffsetPx(m,_,w),S=this._getSiblingOffsetPx(d,a,w),b=a.slice();return uO(a,d,l),a.forEach((T,R)=>{if(b[R]===T)return;let Q=T.drag===n,K=Q?x:S,J=Q?n.getPlaceholderElement():T.drag.getRootElement();T.offset+=K;let A=Math.round(T.offset*(1/T.drag.scale));u?(J.style.transform=sc(`translate3d(${A}px, 0, 0)`,T.initialTransform),aa(T.clientRect,0,K)):(J.style.transform=sc(`translate3d(0, ${A}px, 0)`,T.initialTransform),aa(T.clientRect,K,0))}),this._previousSwap.overlaps=lm(_,t,r),this._previousSwap.drag=p.drag,this._previousSwap.delta=u?i.x:i.y,{previousIndex:d,currentIndex:l}}enter(n,t,r,i){let a=i==null||i<0?this._getItemIndexFromPointerPosition(n,t,r):i,l=this._activeDraggables,u=l.indexOf(n),d=n.getPlaceholderElement(),p=l[a];if(p===n&&(p=l[a+1]),!p&&(a==null||a===-1||a<l.length-1)&&this._shouldEnterAsFirstChild(t,r)&&(p=l[0]),u>-1&&l.splice(u,1),p&&!this._dragDropRegistry.isDragging(p)){let m=p.getRootElement();m.parentElement.insertBefore(d,m),l.splice(a,0,n)}else this._element.appendChild(d),l.push(n);d.style.transform="",this._cacheItemPositions()}withItems(n){this._activeDraggables=n.slice(),this._cacheItemPositions()}withSortPredicate(n){this._sortPredicate=n}reset(){this._activeDraggables?.forEach(n=>{let t=n.getRootElement();if(t){let r=this._itemPositions.find(i=>i.drag===n)?.initialTransform;t.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(n){return this._getVisualItemPositions().findIndex(t=>t.drag===n)}getItemAtIndex(n){return this._getVisualItemPositions()[n]?.drag||null}updateOnScroll(n,t){this._itemPositions.forEach(({clientRect:r})=>{aa(r,n,t)}),this._itemPositions.forEach(({drag:r})=>{this._dragDropRegistry.isDragging(r)&&r._sortFromLastPointerPosition()})}withElementContainer(n){this._element=n}_cacheItemPositions(){let n=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(t=>{let r=t.getVisibleElement();return{drag:t,offset:0,initialTransform:r.style.transform||"",clientRect:pm(r)}}).sort((t,r)=>n?t.clientRect.left-r.clientRect.left:t.clientRect.top-r.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(n,t,r){let i=this.orientation==="horizontal",a=i?t.left-n.left:t.top-n.top;return r===-1&&(a+=i?t.width-n.width:t.height-n.height),a}_getSiblingOffsetPx(n,t,r){let i=this.orientation==="horizontal",a=t[n].clientRect,l=t[n+r*-1],u=a[i?"width":"height"]*r;if(l){let d=i?"left":"top",p=i?"right":"bottom";r===-1?u-=l.clientRect[d]-a[p]:u+=a[d]-l.clientRect[p]}return u}_shouldEnterAsFirstChild(n,t){if(!this._activeDraggables.length)return!1;let r=this._itemPositions,i=this.orientation==="horizontal";if(r[0].drag!==this._activeDraggables[0]){let l=r[r.length-1].clientRect;return i?n>=l.right:t>=l.bottom}else{let l=r[0].clientRect;return i?n<=l.left:t<=l.top}}_getItemIndexFromPointerPosition(n,t,r,i){let a=this.orientation==="horizontal",l=this._itemPositions.findIndex(({drag:u,clientRect:d})=>{if(u===n)return!1;if(i){let p=a?i.x:i.y;if(u===this._previousSwap.drag&&this._previousSwap.overlaps&&p===this._previousSwap.delta)return!1}return a?t>=Math.floor(d.left)&&t<Math.floor(d.right):r>=Math.floor(d.top)&&r<Math.floor(d.bottom)});return l===-1||!this._sortPredicate(l,n)?-1:l}},dm=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(n,t){this._document=n,this._dragDropRegistry=t}start(n){let t=this._element.childNodes;this._relatedNodes=[];for(let r=0;r<t.length;r++){let i=t[r];this._relatedNodes.push([i,i.nextSibling])}this.withItems(n)}sort(n,t,r,i){let a=this._getItemIndexFromPointerPosition(n,t,r),l=this._previousSwap;if(a===-1||this._activeItems[a]===n)return null;let u=this._activeItems[a];if(l.drag===u&&l.overlaps&&l.deltaX===i.x&&l.deltaY===i.y)return null;let d=this.getItemIndex(n),p=n.getPlaceholderElement(),m=u.getRootElement();a>d?m.after(p):m.before(p),uO(this._activeItems,d,a);let _=this._getRootNode().elementFromPoint(t,r);return l.deltaX=i.x,l.deltaY=i.y,l.drag=u,l.overlaps=m===_||m.contains(_),{previousIndex:d,currentIndex:a}}enter(n,t,r,i){let a=this._activeItems.indexOf(n);a>-1&&this._activeItems.splice(a,1);let l=i==null||i<0?this._getItemIndexFromPointerPosition(n,t,r):i;l===-1&&(l=this._getClosestItemIndexToPointer(n,t,r));let u=this._activeItems[l];u&&!this._dragDropRegistry.isDragging(u)?(this._activeItems.splice(l,0,n),u.getRootElement().before(n.getPlaceholderElement())):(this._activeItems.push(n),this._element.appendChild(n.getPlaceholderElement()))}withItems(n){this._activeItems=n.slice()}withSortPredicate(n){this._sortPredicate=n}reset(){let n=this._element,t=this._previousSwap;for(let r=this._relatedNodes.length-1;r>-1;r--){let[i,a]=this._relatedNodes[r];i.parentNode===n&&i.nextSibling!==a&&(a===null?n.appendChild(i):a.parentNode===n&&n.insertBefore(i,a))}this._relatedNodes=[],this._activeItems=[],t.drag=null,t.deltaX=t.deltaY=0,t.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(n){return this._activeItems.indexOf(n)}getItemAtIndex(n){return this._activeItems[n]||null}updateOnScroll(){this._activeItems.forEach(n=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}withElementContainer(n){n!==this._element&&(this._element=n,this._rootNode=void 0)}_getItemIndexFromPointerPosition(n,t,r){let i=this._getRootNode().elementFromPoint(Math.floor(t),Math.floor(r)),a=i?this._activeItems.findIndex(l=>{let u=l.getRootElement();return i===u||u.contains(i)}):-1;return a===-1||!this._sortPredicate(a,n)?-1:a}_getRootNode(){return this._rootNode||(this._rootNode=nc(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(n,t,r){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let i=1/0,a=-1;for(let l=0;l<this._activeItems.length;l++){let u=this._activeItems[l];if(u!==n){let{x:d,y:p}=u.getRootElement().getBoundingClientRect(),m=Math.hypot(t-d,r-p);m<i&&(i=m,a=l)}}return a}},oO=.05,cO=.05,Rn=(function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e})(Rn||{}),Vt=(function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e})(Vt||{}),fm=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis=null;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new Ae;entered=new Ae;exited=new Ae;dropped=new Ae;sorted=new Ae;receivingStarted=new Ae;receivingStopped=new Ae;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=gi.EMPTY;_verticalScrollDirection=Rn.NONE;_horizontalScrollDirection=Vt.NONE;_scrollNode;_stopScrollTimers=new Ae;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(n,t,r,i,a){this._dragDropRegistry=t,this._ngZone=i,this._viewportRuler=a;let l=this.element=Jn(n);this._document=r,this.withOrientation("vertical").withElementContainer(l),t.registerDropContainer(this),this._parentPositions=new oc(r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,t,r,i){this._draggingStarted(),i==null&&this.sortingDisabled&&(i=this._draggables.indexOf(n)),this._sortStrategy.enter(n,t,r,i),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,t,r,i,a,l,u,d={}){this._reset(),this.dropped.next({item:n,currentIndex:t,previousIndex:r,container:this,previousContainer:i,isPointerOverContainer:a,distance:l,dropPoint:u,event:d})}withItems(n){let t=this._draggables;return this._draggables=n,n.forEach(r=>r._withDropContainer(this)),this.isDragging()&&(t.filter(i=>i.isDragging()).every(i=>n.indexOf(i)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(n){return this._direction=n,this._sortStrategy instanceof ac&&(this._sortStrategy.direction=n),this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){if(n==="mixed")this._sortStrategy=new dm(this._document,this._dragDropRegistry);else{let t=new ac(this._dragDropRegistry);t.direction=this._direction,t.orientation=n,this._sortStrategy=t}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((t,r)=>this.sortPredicate(t,r,this)),this}withScrollableParents(n){let t=this._container;return this._scrollableElements=n.indexOf(t)===-1?[t,...n]:n.slice(),this}withElementContainer(n){if(n===this._container)return this;let t=Jn(this.element),r=this._scrollableElements.indexOf(this._container),i=this._scrollableElements.indexOf(n);return r>-1&&this._scrollableElements.splice(r,1),i>-1&&this._scrollableElements.splice(i,1),this._sortStrategy&&this._sortStrategy.withElementContainer(n),this._cachedShadowRoot=null,this._scrollableElements.unshift(n),this._container=n,this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?this._sortStrategy.getItemIndex(n):this._draggables.indexOf(n)}getItemAtIndex(n){return this._isDragging?this._sortStrategy.getItemAtIndex(n):this._draggables[n]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,t,r,i){if(this.sortingDisabled||!this._domRect||!JD(this._domRect,oO,t,r))return;let a=this._sortStrategy.sort(n,t,r,i);a&&this.sorted.next({previousIndex:a.previousIndex,currentIndex:a.currentIndex,container:this,item:n})}_startScrollingIfNecessary(n,t){if(this.autoScrollDisabled)return;let r,i=Rn.NONE,a=Vt.NONE;if(this._parentPositions.positions.forEach((l,u)=>{u===this._document||!l.clientRect||r||JD(l.clientRect,oO,n,t)&&([i,a]=c7(u,l.clientRect,this._direction,n,t),(i||a)&&(r=u))}),!i&&!a){let{width:l,height:u}=this._viewportRuler.getViewportSize(),d={width:l,height:u,top:0,right:l,bottom:u,left:0};i=dO(d,t),a=fO(d,n),r=window}r&&(i!==this._verticalScrollDirection||a!==this._horizontalScrollDirection||r!==this._scrollNode)&&(this._verticalScrollDirection=i,this._horizontalScrollDirection=a,this._scrollNode=r,(i||a)&&r?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let n=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let n=this._container.style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),Ay(0,Bd).pipe(Ln(this._stopScrollTimers)).subscribe(()=>{let n=this._scrollNode,t=this.autoScrollStep;this._verticalScrollDirection===Rn.UP?n.scrollBy(0,-t):this._verticalScrollDirection===Rn.DOWN&&n.scrollBy(0,t),this._horizontalScrollDirection===Vt.LEFT?n.scrollBy(-t,0):this._horizontalScrollDirection===Vt.RIGHT&&n.scrollBy(t,0)})};_isOverContainer(n,t){return this._domRect!=null&&lm(this._domRect,n,t)}_getSiblingContainerFromPosition(n,t,r){return this._siblings.find(i=>i._canReceive(n,t,r))}_canReceive(n,t,r){if(!this._domRect||!lm(this._domRect,t,r)||!this.enterPredicate(n,this))return!1;let i=this._getShadowRoot().elementFromPoint(t,r);return i?i===this._container||this._container.contains(i):!1}_startReceiving(n,t){let r=this._activeSiblings;!r.has(n)&&t.every(i=>this.enterPredicate(i,this)||this._draggables.indexOf(i)>-1)&&(r.add(n),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:n,receiver:this,items:t}))}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:n,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){let t=this._parentPositions.handleScroll(n);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let n=nc(this._container);this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let n=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,n))}};function dO(e,n){let{top:t,bottom:r,height:i}=e,a=i*cO;return n>=t-a&&n<=t+a?Rn.UP:n>=r-a&&n<=r+a?Rn.DOWN:Rn.NONE}function fO(e,n){let{left:t,right:r,width:i}=e,a=i*cO;return n>=t-a&&n<=t+a?Vt.LEFT:n>=r-a&&n<=r+a?Vt.RIGHT:Vt.NONE}function c7(e,n,t,r,i){let a=dO(n,i),l=fO(n,r),u=Rn.NONE,d=Vt.NONE;if(a){let p=e.scrollTop;a===Rn.UP?p>0&&(u=Rn.UP):e.scrollHeight-p>e.clientHeight&&(u=Rn.DOWN)}if(l){let p=e.scrollLeft;t==="rtl"?l===Vt.RIGHT?p<0&&(d=Vt.RIGHT):e.scrollWidth+p>e.clientWidth&&(d=Vt.LEFT):l===Vt.LEFT?p>0&&(d=Vt.LEFT):e.scrollWidth-p>e.clientWidth&&(d=Vt.RIGHT)}return[u,d]}var sa={capture:!0},sm={passive:!1,capture:!0},d7=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Fe({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(r,i){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
28
+ `],encapsulation:2,changeDetection:0})}return e})(),pO=(()=>{class e{_ngZone=U(Hr);_document=U(yi);_styleLoader=U(LD);_renderer=U(ro).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new Ae;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=nr([]);_globalListeners;_draggingPredicate=t=>t.isDragging();_domNodesToDirectives=null;pointerMove=new Ae;pointerUp=new Ae;constructor(){}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,sm)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(t,r){if(!(this._activeDragInstances().indexOf(t)>-1)&&(this._styleLoader.load(d7),this._activeDragInstances.update(i=>[...i,t]),this._activeDragInstances().length===1)){let i=r.type.startsWith("touch"),a=u=>this.pointerUp.next(u),l=[["scroll",u=>this._scroll.next(u),sa],["selectstart",this._preventDefaultWhileDragging,sm]];i?l.push(["touchend",a,sa],["touchcancel",a,sa]):l.push(["mouseup",a,sa]),i||l.push(["mousemove",u=>this.pointerMove.next(u),sm]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=l.map(([u,d,p])=>this._renderer.listen(this._document,u,d,p))})}}stopDragging(t){this._activeDragInstances.update(r=>{let i=r.indexOf(t);return i>-1?(r.splice(i,1),[...r]):r}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances().indexOf(t)>-1}scrolled(t){let r=[this._scroll];return t&&t!==this._document&&r.push(new _i(i=>this._ngZone.runOutsideAngular(()=>{let a=this._renderer.listen(t,"scroll",l=>{this._activeDragInstances().length&&i.next(l)},sa);return()=>{a()}}))),kl(...r)}registerDirectiveNode(t,r){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(t,r)}removeDirectiveNode(t){this._domNodesToDirectives?.delete(t)}getDragDirectiveForNode(t){return this._domNodesToDirectives?.get(t)||null}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=t=>{this._activeDragInstances().length>0&&t.preventDefault()};_persistentTouchmoveListener=t=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))};_clearGlobalListeners(){this._globalListeners?.forEach(t=>t()),this._globalListeners=void 0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),f7={dragStartThreshold:5,pointerDirectionChangeThreshold:5},mm=(()=>{class e{_document=U(yi);_ngZone=U(Hr);_viewportRuler=U(zD);_dragDropRegistry=U(pO);_renderer=U(ro).createRenderer(null,null);constructor(){}createDrag(t,r=f7){return new cm(t,r,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(t){return new fm(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),sO=new Vn("CDK_DRAG_PARENT");var p7=new Vn("CdkDragHandle");var hO=new Vn("CDK_DRAG_CONFIG"),mO=new Vn("CdkDropList"),gO=(()=>{class e{element=U(rr);dropContainer=U(mO,{optional:!0,skipSelf:!0});_ngZone=U(Hr);_viewContainerRef=U(ir);_dir=U(rm,{optional:!0});_changeDetectorRef=U(cn);_selfHandle=U(p7,{optional:!0,self:!0});_parentDrag=U(sO,{optional:!0,skipSelf:!0});_dragDropRegistry=U(pO);_destroyed=new Ae;_handles=new no([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(t){this._disabled=t,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new ln;released=new ln;ended=new ln;entered=new ln;exited=new ln;dropped=new ln;moved=new _i(t=>{let r=this._dragRef.moved.pipe(Nl(i=>({source:this,pointerPosition:i.pointerPosition,event:i.event,delta:i.delta,distance:i.distance}))).subscribe(t);return()=>{r.unsubscribe()}});_injector=U(ms);constructor(){let t=this.dropContainer,r=U(hO,{optional:!0}),i=U(mm);this._dragRef=i.createDrag(this.element,{dragStartThreshold:r&&r.dragStartThreshold!=null?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&r.pointerDirectionChangeThreshold!=null?r.pointerDirectionChangeThreshold:5,zIndex:r?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),r&&this._assignDefaults(r),t&&(t.addItem(this),t._dropListRef.beforeStarted.pipe(Ln(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(t){this._dragRef.setFreeDragPosition(t)}ngAfterViewInit(){Kd(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(t){let r=t.rootElementSelector,i=t.freeDragPosition;r&&!r.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(t){let r=this._handles.getValue();r.push(t),this._handles.next(r)}_removeHandle(t){let r=this._handles.getValue(),i=r.indexOf(t);i>-1&&(r.splice(i,1),this._handles.next(r))}_setPreviewTemplate(t){this._previewTemplate=t}_resetPreviewTemplate(t){t===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(t){this._placeholderTemplate=t}_resetPlaceholderTemplate(t){t===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let t=this.element.nativeElement,r=t;this.rootElementSelector&&(r=t.closest!==void 0?t.closest(this.rootElementSelector):t.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||t)}_getBoundaryElement(){let t=this.boundaryElement;return t?typeof t=="string"?this.element.nativeElement.closest(t):Jn(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){let r=this._dir,i=this.dragStartDelay,a=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,l=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.scale=this.scale,t.dragStartDelay=typeof i=="object"&&i?i:rc(i),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(a).withPreviewTemplate(l).withPreviewContainer(this.previewContainer||"global"),r&&t.withDirection(r.value)}}),t.beforeStarted.pipe(qy(1)).subscribe(()=>{if(this._parentDrag){t.withParent(this._parentDrag._dragRef);return}let r=this.element.nativeElement.parentElement;for(;r;){let i=this._dragDropRegistry.getDragDirectiveForNode(r);if(i){t.withParent(i._dragRef);break}r=r.parentElement}})}_handleEvents(t){t.started.subscribe(r=>{this.started.emit({source:this,event:r.event}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(r=>{this.released.emit({source:this,event:r.event})}),t.ended.subscribe(r=>{this.ended.emit({source:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(r=>{this.entered.emit({container:r.container.data,item:this,currentIndex:r.currentIndex})}),t.exited.subscribe(r=>{this.exited.emit({container:r.container.data,item:this})}),t.dropped.subscribe(r=>{this.dropped.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,previousContainer:r.previousContainer.data,container:r.container.data,isPointerOverContainer:r.isPointerOverContainer,item:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event})})}_assignDefaults(t){let{lockAxis:r,dragStartDelay:i,constrainPosition:a,previewClass:l,boundaryElement:u,draggingDisabled:d,rootElementSelector:p,previewContainer:m}=t;this.disabled=d??!1,this.dragStartDelay=i||0,this.lockAxis=r||null,a&&(this.constrainPosition=a),l&&(this.previewClass=l),u&&(this.boundaryElement=u),p&&(this.rootElementSelector=p),m&&(this.previewContainer=m)}_setupHandlesListener(){this._handles.pipe(jy(t=>{let r=t.map(i=>i.element);this._selfHandle&&this.rootElementSelector&&r.push(this.element),this._dragRef.withHandles(r)}),Wd(t=>kl(...t.map(r=>r._stateChanges.pipe(Al(r))))),Ln(this._destroyed)).subscribe(t=>{let r=this._dragRef,i=t.element.nativeElement;t.disabled?r.disableHandle(i):r.enableHandle(i)})}static \u0275fac=function(r){return new(r||e)};static \u0275dir=vi({type:e,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(r,i){r&2&&wt("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",bi],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Wy]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[oo([{provide:sO,useExisting:e}]),Kt]})}return e})(),aO=new Vn("CdkDropListGroup");var _O=(()=>{class e{element=U(rr);_changeDetectorRef=U(cn);_scrollDispatcher=U(VD);_dir=U(rm,{optional:!0});_group=U(aO,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new Ae;_scrollableParentsResolved;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation;id=U(BD).getId("cdk-drop-list-");lockAxis=null;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=t}_disabled;sortingDisabled;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled;autoScrollStep;elementContainerSelector;hasAnchor;dropped=new ln;entered=new ln;exited=new ln;sorted=new ln;_unsortedItems=new Set;constructor(){let t=U(mm),r=U(hO,{optional:!0});this._dropListRef=t.createDropList(this.element),this._dropListRef.data=this,r&&this._assignDefaults(r),this._dropListRef.enterPredicate=(i,a)=>this.enterPredicate(i.data,a.data),this._dropListRef.sortPredicate=(i,a,l)=>this.sortPredicate(i,a.data,l.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(t){this._unsortedItems.add(t),t._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(r=>r._dragRef))}removeItem(t){if(this._unsortedItems.delete(t),this._latestSortedRefs){let r=this._latestSortedRefs.indexOf(t._dragRef);r>-1&&(this._latestSortedRefs.splice(r,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((t,r)=>t._dragRef.getVisibleElement().compareDocumentPosition(r._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe(Al(this._dir.value),Ln(this._destroyed)).subscribe(r=>t.withDirection(r)),t.beforeStarted.subscribe(()=>{let r=UD(this.connectedTo).map(i=>{if(typeof i=="string"){let a=e._dropLists.find(l=>l.id===i);return a}return i});if(this._group&&this._group._items.forEach(i=>{r.indexOf(i)===-1&&r.push(i)}),!this._scrollableParentsResolved){let i=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(a=>a.getElementRef().nativeElement);this._dropListRef.withScrollableParents(i),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let i=this.element.nativeElement.querySelector(this.elementContainerSelector);t.withElementContainer(i)}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=this.sortingDisabled,t.autoScrollDisabled=this.autoScrollDisabled,t.autoScrollStep=rc(this.autoScrollStep,2),t.hasAnchor=this.hasAnchor,t.connectedTo(r.filter(i=>i&&i!==this).map(i=>i._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(r=>r._dragRef)),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(r=>{this.entered.emit({container:this,item:r.item.data,currentIndex:r.currentIndex})}),t.exited.subscribe(r=>{this.exited.emit({container:this,item:r.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(r=>{this.sorted.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:r.item.data})}),t.dropped.subscribe(r=>{this.dropped.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,previousContainer:r.previousContainer.data,container:r.container.data,item:r.item.data,isPointerOverContainer:r.isPointerOverContainer,distance:r.distance,dropPoint:r.dropPoint,event:r.event}),this._changeDetectorRef.markForCheck()}),kl(t.receivingStarted,t.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(t){let{lockAxis:r,draggingDisabled:i,sortingDisabled:a,listAutoScrollDisabled:l,listOrientation:u}=t;this.disabled=i??!1,this.sortingDisabled=a??!1,this.autoScrollDisabled=l??!1,this.orientation=u||"vertical",this.lockAxis=r||null}_syncItemsWithRef(t){this._latestSortedRefs=t,this._dropListRef.withItems(t)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=vi({type:e,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(r,i){r&2&&(De("id",i.id),wt("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",bi],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",bi],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",bi],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",bi]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[oo([{provide:aO,useValue:void 0},{provide:mO,useExisting:e}])]})}return e})();var yO=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Sn({type:e});static \u0275inj=Cn({providers:[mm],imports:[HD]})}return e})();var DE=Gt(gE(),1),OE=Gt(Mm(),1);var Dt=[];for(let e=0;e<256;++e)Dt.push((e+256).toString(16).slice(1));function _E(e,n=0){return(Dt[e[n+0]]+Dt[e[n+1]]+Dt[e[n+2]]+Dt[e[n+3]]+"-"+Dt[e[n+4]]+Dt[e[n+5]]+"-"+Dt[e[n+6]]+Dt[e[n+7]]+"-"+Dt[e[n+8]]+Dt[e[n+9]]+"-"+Dt[e[n+10]]+Dt[e[n+11]]+Dt[e[n+12]]+Dt[e[n+13]]+Dt[e[n+14]]+Dt[e[n+15]]).toLowerCase()}var Am,UJ=new Uint8Array(16);function Fm(){if(!Am){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Am=crypto.getRandomValues.bind(crypto)}return Am(UJ)}var WJ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),qm={randomUUID:WJ};function GJ(e,n,t){e=e||{};let r=e.random??e.rng?.()??Fm();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){if(t=t||0,t<0||t+16>n.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let i=0;i<16;++i)n[t+i]=r[i];return n}return _E(r)}function KJ(e,n,t){return qm.randomUUID&&!n&&!e?qm.randomUUID():GJ(e,n,t)}var jm=KJ;var Zm=["widgetContainer"],Fi=()=>["mousedown","touchstart"];function ZJ(e,n){if(e&1&&oe(0,"span"),e&2){let t=j(2);Y(t.options==null?null:t.options.icon)}}function YJ(e,n){if(e&1&&oe(0,"span",5),e&2){let t=j(2);E("innerHTML",t.buttonText,$e)}}function XJ(e,n){if(e&1){let t=gt();ee(0,"button",2),rt("click",function(i){ct(t);let a=j();return dt(a.addItem(i))}),se(1,ZJ,1,2,"span",3)(2,YJ,1,1,"span",4),X()}if(e&2){let t=j();Y((t.options==null?null:t.options.fieldHtmlClass)||""),E("disabled",t.options==null?null:t.options.readonly)("appStopPropagation",qt(6,Fi)),L(),E("ngIf",t.options==null?null:t.options.icon),L(),E("ngIf",t.options==null?null:t.options.title)}}function QJ(e,n){if(e&1&&oe(0,"span",2),e&2){let t=j();Y(t.options==null?null:t.options.icon),E("innerHTML",t.options==null?null:t.options.title,$e)}}function eZ(e,n){if(e&1&&oe(0,"input",4),e&2){let t,r,i=j();Y(((i.options==null?null:i.options.fieldHtmlClass)||"")+(i.isChecked?" "+((i.options==null?null:i.options.activeClass)||"")+" "+((i.options==null||i.options.style==null?null:i.options.style.selected)||""):" "+((i.options==null||i.options.style==null?null:i.options.style.unselected)||""))),E("formControl",i.formControl)("id","control"+((t=i.layoutNode())==null?null:t._id))("name",i.controlName)("readonly",i.options!=null&&i.options.readonly?"readonly":null),De("aria-describedby","control"+((r=i.layoutNode())==null?null:r._id)+"Status")}}function tZ(e,n){if(e&1){let t=gt();ee(0,"input",5),rt("change",function(i){ct(t);let a=j();return dt(a.updateValue(i))}),X()}if(e&2){let t,r,i=j();Y(((i.options==null?null:i.options.fieldHtmlClass)||"")+(i.isChecked?" "+((i.options==null?null:i.options.activeClass)||"")+" "+((i.options==null||i.options.style==null?null:i.options.style.selected)||""):" "+((i.options==null||i.options.style==null?null:i.options.style.unselected)||""))),E("checked",i.isChecked)("disabled",i.controlDisabled)("id","control"+((t=i.layoutNode())==null?null:t._id))("name",i.controlName)("readonly",i.options!=null&&i.options.readonly?"readonly":null)("value",i.controlValue),De("aria-describedby","control"+((r=i.layoutNode())==null?null:r._id)+"Status")}}function nZ(e,n){if(e&1&&oe(0,"span",6),e&2){let t=j();Dn("display",t.options!=null&&t.options.notitle?"none":""),E("innerHTML",t.options==null?null:t.options.title,$e)}}function rZ(e,n){if(e&1&&oe(0,"label",3),e&2){let t=j();Y((t.options==null?null:t.options.labelHtmlClass)||""),Dn("display",t.options!=null&&t.options.notitle?"none":""),E("innerHTML",t.options==null?null:t.options.title,$e)}}function iZ(e,n){if(e&1){let t=gt();ee(0,"label")(1,"input",5),rt("change",function(i){ct(t);let a=j(2);return dt(a.updateValue(i))}),X(),oe(2,"span",3)(3,"span",6),X()}if(e&2){let t,r,i=n.$implicit,a=j(2);Y(((a.options==null?null:a.options.itemLabelHtmlClass)||"hb-uix-switch")+(i.checked?" "+((a.options==null?null:a.options.activeClass)||"")+" "+((a.options==null||a.options.style==null?null:a.options.style.selected)||""):" "+((a.options==null||a.options.style==null?null:a.options.style.unselected)||"hb-uix-switch"))),De("for","control"+((t=a.layoutNode())==null?null:t._id)+"/"+i.value),L(),Y((a.options==null?null:a.options.fieldHtmlClass)||""),E("checked",i.checked)("disabled",a.controlDisabled)("id","control"+((r=a.layoutNode())==null?null:r._id)+"/"+i.value)("name",i==null?null:i.name)("readonly",a.options!=null&&a.options.readonly?"readonly":null)("value",i.value),De("required",a.options==null?null:a.options.required),L(),E("innerHTML",i.name,$e)}}function oZ(e,n){if(e&1&&(ee(0,"div"),se(1,iZ,4,13,"label",4),X()),e&2){let t=j();Y((t.options==null?null:t.options.htmlClass)||""),L(),E("ngForOf",t.checkboxList)}}function sZ(e,n){if(e&1){let t=gt();ee(0,"div")(1,"label")(2,"input",5),rt("change",function(i){ct(t);let a=j(2);return dt(a.updateValue(i))}),X(),oe(3,"span",3)(4,"span",6),X()()}if(e&2){let t,r,i=n.$implicit,a=j(2);Y((a.options==null?null:a.options.htmlClass)||""),L(),Y(((a.options==null?null:a.options.itemLabelHtmlClass)||"hb-uix-switch")+(i.checked?" "+((a.options==null?null:a.options.activeClass)||"")+" "+((a.options==null||a.options.style==null?null:a.options.style.selected)||""):" "+((a.options==null||a.options.style==null?null:a.options.style.unselected)||"hb-uix-switch"))),De("for","control"+((t=a.layoutNode())==null?null:t._id)+"/"+i.value),L(),Y((a.options==null?null:a.options.fieldHtmlClass)||""),E("checked",i.checked)("disabled",a.controlDisabled)("id","control"+((r=a.layoutNode())==null?null:r._id)+"/"+i.value)("name",i==null?null:i.name)("readonly",a.options!=null&&a.options.readonly?"readonly":null)("value",i.value),De("required",a.options==null?null:a.options.required),L(),E("innerHTML",i==null?null:i.name,$e)}}function aZ(e,n){if(e&1&&(ee(0,"div"),se(1,sZ,5,15,"div",4),X()),e&2){let t=j();L(),E("ngForOf",t.checkboxList)}}function lZ(e,n){if(e&1&&oe(0,"label",4),e&2){let t,r=j();Y((r.options==null?null:r.options.labelHtmlClass)||""),Dn("display",r.options!=null&&r.options.notitle?"none":""),E("innerHTML",r.options==null?null:r.options.title,$e),De("for","control"+((t=r.layoutNode())==null?null:t._id))}}function uZ(e,n){if(e&1&&oe(0,"input",5),e&2){let t,r,i,a,l=j();Y((l.options==null?null:l.options.fieldHtmlClass)||""),E("formControl",l.formControl)("id","control"+((t=l.layoutNode())==null?null:t._id))("name",l.controlName)("readonly",l.options!=null&&l.options.readonly?"readonly":null)("type",(r=l.layoutNode())==null?null:r.type)("attributes",l.inputAttributes)("appStopPropagation",qt(16,Fi)),De("aria-describedby","control"+((i=l.layoutNode())==null?null:i._id)+"Status")("list","control"+((a=l.layoutNode())==null?null:a._id)+"Autocomplete")("maxlength",l.options==null?null:l.options.maxLength)("minlength",l.options==null?null:l.options.minLength)("pattern",l.options==null?null:l.options.pattern)("placeholder",l.options==null?null:l.options.placeholder)("required",l.options==null?null:l.options.required)}}function cZ(e,n){if(e&1){let t=gt();ee(0,"input",6),rt("input",function(i){ct(t);let a=j();return dt(a.updateValue(i))}),X()}if(e&2){let t,r,i,a,l=j();Y((l.options==null?null:l.options.fieldHtmlClass)||""),E("disabled",l.controlDisabled)("id","control"+((t=l.layoutNode())==null?null:t._id))("name",l.controlName)("readonly",l.options!=null&&l.options.readonly?"readonly":null)("type",(r=l.layoutNode())==null?null:r.type)("value",l.controlValue)("attributes",l.inputAttributes)("appStopPropagation",qt(17,Fi)),De("aria-describedby","control"+((i=l.layoutNode())==null?null:i._id)+"Status")("list","control"+((a=l.layoutNode())==null?null:a._id)+"Autocomplete")("maxlength",l.options==null?null:l.options.maxLength)("minlength",l.options==null?null:l.options.minLength)("pattern",l.options==null?null:l.options.pattern)("placeholder",l.options==null?null:l.options.placeholder)("required",l.options==null?null:l.options.required)}}function dZ(e,n){if(e&1&&oe(0,"option",9),e&2){let t=n.$implicit;E("value",t)}}function fZ(e,n){if(e&1&&(ee(0,"datalist",7),se(1,dZ,1,1,"option",8),X()),e&2){let t,r=j();E("id","control"+((t=r.layoutNode())==null?null:t._id)+"Autocomplete"),L(),E("ngForOf",r.options==null||r.options.typeahead==null?null:r.options.typeahead.source)}}function pZ(e,n){if(e&1&&oe(0,"span",1),e&2){let t=j();Y((t.options==null?null:t.options.labelHtmlClass)||""),E("innerHTML",t.message,$e)}}var hZ=["inputControl"],mZ=["divElt"];function gZ(e,n){if(e&1&&oe(0,"label",6),e&2){let t,r=j();Y((r.options==null?null:r.options.labelHtmlClass)||""),Dn("display",r.options!=null&&r.options.notitle?"none":""),E("innerHTML",r.options==null?null:r.options.title,$e),De("for","control"+((t=r.layoutNode())==null?null:t._id))}}function _Z(e,n){if(e&1&&oe(0,"input",7,1),e&2){let t,r,i,a=j();Y((a.options==null?null:a.options.fieldHtmlClass)||""),E("formControl",a.formControl)("id","control"+((t=a.layoutNode())==null?null:t._id))("name",a.controlName)("readonly",a.options!=null&&a.options.readonly?"readonly":null)("title",a.lastValidNumber)("type",((r=a.layoutNode())==null?null:r.type)==="range"?"range":"number")("attributes",a.inputAttributes)("appStopPropagation",qt(17,Fi)),De("aria-describedby","control"+((i=a.layoutNode())==null?null:i._id)+"Status")("max",a.options==null?null:a.options.maximum)("min",a.options==null?null:a.options.minimum)("placeholder",a.options==null?null:a.options.placeholder)("required",a.options==null?null:a.options.required)("readonly",a.options!=null&&a.options.readonly?"readonly":null)("step",(a.options==null?null:a.options.multipleOf)||(a.options==null?null:a.options.step)||"any")}}function yZ(e,n){if(e&1){let t=gt();ee(0,"input",8,1),rt("input",function(i){ct(t);let a=j();return dt(a.updateValue(i))}),X()}if(e&2){let t,r,i,a=j();Y((a.options==null?null:a.options.fieldHtmlClass)||""),E("disabled",a.controlDisabled)("id","control"+((t=a.layoutNode())==null?null:t._id))("name",a.controlName)("readonly",a.options!=null&&a.options.readonly?"readonly":null)("title",a.lastValidNumber)("type",((r=a.layoutNode())==null?null:r.type)==="range"?"range":"number")("value",a.controlValue)("attributes",a.inputAttributes)("appStopPropagation",qt(18,Fi)),De("aria-describedby","control"+((i=a.layoutNode())==null?null:i._id)+"Status")("max",a.options==null?null:a.options.maximum)("min",a.options==null?null:a.options.minimum)("placeholder",a.options==null?null:a.options.placeholder)("required",a.options==null?null:a.options.required)("readonly",a.options!=null&&a.options.readonly?"readonly":null)("step",(a.options==null?null:a.options.multipleOf)||(a.options==null?null:a.options.step)||"any")}}function vZ(e,n){if(e&1&&oe(0,"span",6),e&2){let t=j();E("innerHTML",t.controlValue,$e)}}var vc=()=>[];function bZ(e,n){if(e&1){let t=gt();ee(0,"input",6),ef("ngModelChange",function(i){ct(t);let a=j(3);return Qd(a.selectedItem,i)||(a.selectedItem=i),dt(i)}),rt("change",function(){ct(t);let i=j(2).index,a=j();return dt(a.select(i))}),X()}if(e&2){let t=j(2).index,r=j();Y((r.options==null?null:r.options.widget_radioClass)||""),E("value",t),Xd("ngModel",r.selectedItem),E("value",t)}}function wZ(e,n){if(e&1){let t=gt();ee(0,"a",4),rt("click",function(){ct(t);let i=j().index,a=j();return dt(a.select(i))}),se(1,bZ,1,5,"input",5),un(2),X()}if(e&2){let t=j(),r=t.$implicit,i=t.index,a=j();Y("nav-link"+(a.selectedItem===i?" "+(a.options==null?null:a.options.activeClass)+" "+(a.options==null||a.options.style==null?null:a.options.style.selected):" "+(a.options==null||a.options.style==null?null:a.options.style.unselected))),L(),E("ngIf",(a.options==null?null:a.options.tabMode)=="oneOfMode"),L(),By(" ",a.setTabTitle(r,i)," ")}}function xZ(e,n){if(e&1&&(ee(0,"li",2),se(1,wZ,3,4,"a",3),X()),e&2){let t=n.$implicit,r=n.index,i=j();Y(((i.options==null?null:i.options.itemLabelHtmlClass)||"")+(i.selectedItem===r?" "+((i.options==null?null:i.options.activeClass)||"")+" "+((i.options==null||i.options.style==null?null:i.options.style.selected)||""):" "+(i.options==null||i.options.style==null?null:i.options.style.unselected))),L(),E("ngIf",i.showAddTab||t.type!=="$ref")}}function IZ(e,n){if(e&1&&oe(0,"select-framework-widget",9),e&2){let t,r=j(2),i=r.$implicit,a=r.index,l=j();Y(((l.options==null?null:l.options.fieldHtmlClass)||"")+" "+((l.options==null?null:l.options.activeClass)||"")+" "+((l.options==null||l.options.style==null?null:l.options.style.selected)||"")),E("dataIndex",((t=l.layoutNode())==null?null:t.dataType)==="array"?(l.dataIndex()||qt(5,vc)).concat(a):l.dataIndex())("layoutIndex",(l.layoutIndex()||qt(6,vc)).concat(a))("layoutNode",i)}}function CZ(e,n){if(e&1&&(Zd(0),se(1,IZ,1,7,"select-framework-widget",8),Yd()),e&2){let t=j().index,r=j();L(),E("ngIf",r.selectedItem===t)}}function SZ(e,n){if(e&1&&(Zd(0),oe(1,"select-framework-widget",9),Yd()),e&2){let t,r=j(),i=r.$implicit,a=r.index,l=j();L(),Y(((l.options==null?null:l.options.fieldHtmlClass)||"")+" "+((l.options==null?null:l.options.activeClass)||"")+" "+((l.options==null||l.options.style==null?null:l.options.style.selected)||"")),E("dataIndex",((t=l.layoutNode())==null?null:t.dataType)==="array"?(l.dataIndex()||qt(5,vc)).concat(a):l.dataIndex())("layoutIndex",(l.layoutIndex()||qt(6,vc)).concat(a))("layoutNode",i)}}function DZ(e,n){if(e&1&&(ee(0,"div"),se(1,CZ,2,1,"ng-container",7)(2,SZ,2,7,"ng-container",7),X()),e&2){let t=n.index,r=j();Y(((r.options==null?null:r.options.htmlClass)||"")+(r.selectedItem!=t?" ngf-hidden":"")),L(),E("ngIf",(r.options==null?null:r.options.tabMode)=="oneOfMode"),L(),E("ngIf",(r.options==null?null:r.options.tabMode)!="oneOfMode")}}function OZ(e,n){if(e&1&&oe(0,"label",3),e&2){let t,r=j();Y((r.options==null?null:r.options.labelHtmlClass)||""),Dn("display",r.options!=null&&r.options.notitle?"none":""),E("innerHTML",r.options==null?null:r.options.title,$e),De("for","control"+((t=r.layoutNode())==null?null:t._id))}}function PZ(e,n){if(e&1){let t=gt();ee(0,"label")(1,"input",5),rt("change",function(i){ct(t);let a=j(2);return dt(a.updateValue(i))}),X(),oe(2,"span",3),X()}if(e&2){let t,r,i,a=n.$implicit,l=j(2);Y(((l.options==null?null:l.options.itemLabelHtmlClass)||"")+(l.controlValue+""==(a==null?null:a.value)+""?" "+((l.options==null?null:l.options.activeClass)||"")+" "+((l.options==null||l.options.style==null?null:l.options.style.selected)||""):" "+((l.options==null||l.options.style==null?null:l.options.style.unselected)||"hb-uix-switch"))),De("for","control"+((t=l.layoutNode())==null?null:t._id)+"/"+(a==null?null:a.value)),L(),Y((l.options==null?null:l.options.fieldHtmlClass)||""),E("checked",(a==null?null:a.value)===l.controlValue)("disabled",l.controlDisabled)("id","control"+((r=l.layoutNode())==null?null:r._id)+"/"+(a==null?null:a.value))("name",l.controlName)("value",a==null?null:a.value),De("aria-describedby","control"+((i=l.layoutNode())==null?null:i._id)+"Status")("readonly",l.options!=null&&l.options.readonly?"readonly":null)("required",l.options==null?null:l.options.required),L(),E("innerHTML",a==null?null:a.name,$e)}}function EZ(e,n){if(e&1&&(ee(0,"div"),se(1,PZ,3,14,"label",4),X()),e&2){let t=j();Y((t.options==null?null:t.options.htmlClass)||""),L(),E("ngForOf",t.radiosList)}}function TZ(e,n){if(e&1){let t=gt();ee(0,"div")(1,"label")(2,"input",5),rt("change",function(i){ct(t);let a=j(2);return dt(a.updateValue(i))}),X(),oe(3,"span",3),X()()}if(e&2){let t,r,i,a=n.$implicit,l=j(2);Y((l.options==null?null:l.options.htmlClass)||""),L(),Y(((l.options==null?null:l.options.itemLabelHtmlClass)||"")+(l.controlValue+""==(a==null?null:a.value)+""?" "+((l.options==null?null:l.options.activeClass)||"")+" "+((l.options==null||l.options.style==null?null:l.options.style.selected)||""):" "+((l.options==null||l.options.style==null?null:l.options.style.unselected)||"hb-uix-switch"))),De("for","control"+((t=l.layoutNode())==null?null:t._id)+"/"+(a==null?null:a.value)),L(),Y((l.options==null?null:l.options.fieldHtmlClass)||""),E("checked",(a==null?null:a.value)===l.controlValue)("disabled",l.controlDisabled)("id","control"+((r=l.layoutNode())==null?null:r._id)+"/"+(a==null?null:a.value))("name",l.controlName)("value",a==null?null:a.value),De("aria-describedby","control"+((i=l.layoutNode())==null?null:i._id)+"Status")("readonly",l.options!=null&&l.options.readonly?"readonly":null)("required",l.options==null?null:l.options.required),L(),E("innerHTML",a==null?null:a.name,$e)}}function $Z(e,n){if(e&1&&(ee(0,"div"),se(1,TZ,4,16,"div",4),X()),e&2){let t=j();L(),E("ngForOf",t.radiosList)}}var yE=()=>({}),RZ=()=>({touch:1e3,mouse:0});function MZ(e,n){if(e&1&&oe(0,"select-framework-widget",4),e&2){let t=j(),r=t.$implicit,i=t.index,a=j();E("dataIndex",a.getSelectFrameworkInputs(r,i).dataIndex)("layoutIndex",a.getSelectFrameworkInputs(r,i).layoutIndex)("layoutNode",a.getSelectFrameworkInputs(r,i).layoutNode)}}function NZ(e,n){if(e&1&&(ee(0,"div",2),se(1,MZ,1,3,"select-framework-widget",3),X()),e&2){let t=n.$implicit,r=j();Dn("align-self",(t.options||qt(15,yE))["align-self"])("flex-basis",r.getFlexAttribute(t,"flex-basis"))("flex-grow",r.getFlexAttribute(t,"flex-grow"))("flex-shrink",r.getFlexAttribute(t,"flex-shrink"))("order",(t.options||qt(16,yE)).order),wt("form-flex-item",r.isFlexItem()),E("cdkDragStartDelay",qt(17,RZ))("cdkDragDisabled",!r.isDraggable(t)),L(),E("ngIf",r.showWidget(t))}}function kZ(e,n){if(e&1){let t=gt();ee(0,"label",4),rt("click",function(){ct(t);let i=j(2);return dt(i.toggleExpanded())}),X()}if(e&2){let t=j(2);Y((t.options==null?null:t.options.labelHtmlClass)||""),E("innerHTML",t.sectionTitle,$e)}}function AZ(e,n){if(e&1&&(ee(0,"div"),se(1,kZ,1,3,"label",2),oe(2,"root-widget",3),X()),e&2){let t=j();Y((t.options==null?null:t.options.htmlClass)||""),wt("expandable",(t.options==null?null:t.options.expandable)&&!t.expanded)("expanded",(t.options==null?null:t.options.expandable)&&t.expanded),L(),E("ngIf",t.sectionTitle),L(),Dn("align-content",t.getFlexAttribute("align-content"))("align-items",t.getFlexAttribute("align-items"))("display",t.expanded?t.getFlexAttribute("display"):"none")("flex-direction",t.getFlexAttribute("flex-direction"))("flex-wrap",t.getFlexAttribute("flex-wrap"))("justify-content",t.getFlexAttribute("justify-content")),wt("form-flex-column",t.getFlexAttribute("flex-direction")==="column")("form-flex-row",t.getFlexAttribute("flex-direction")==="row"),E("dataIndex",t.dataIndex())("layout",t.layoutNode().items)("layoutIndex",t.layoutIndex())("isFlexItem",t.getFlexAttribute("is-flex"))("isOrderable",t.options==null?null:t.options.orderable)}}function FZ(e,n){if(e&1){let t=gt();ee(0,"legend",4),rt("click",function(){ct(t);let i=j(2);return dt(i.toggleExpanded())}),X()}if(e&2){let t=j(2);Y((t.options==null?null:t.options.labelHtmlClass)||""),E("innerHTML",t.sectionTitle,$e)}}function qZ(e,n){if(e&1&&oe(0,"p",8),e&2){let t=j(3);Y((t.options==null?null:t.options.labelHelpBlockClass)||""),E("innerHTML",t.options==null?null:t.options.description,$e)}}function jZ(e,n){if(e&1&&(ee(0,"div"),se(1,qZ,1,3,"p",7),X()),e&2){let t=j(2);L(),E("ngIf",t.options==null?null:t.options.description)}}function LZ(e,n){if(e&1&&oe(0,"p",8),e&2){let t=j(3);Y((t.options==null?null:t.options.labelHelpBlockClass)||""),E("innerHTML",t.options==null?null:t.options.description,$e)}}function VZ(e,n){if(e&1&&(ee(0,"div"),se(1,LZ,1,3,"p",7),X()),e&2){let t=j(2);L(),E("ngIf",t.options==null?null:t.options.description)}}function zZ(e,n){if(e&1&&(ee(0,"fieldset",5),se(1,FZ,1,3,"legend",2)(2,jZ,2,1,"div",6),oe(3,"root-widget",3),se(4,VZ,2,1,"div",6),X()),e&2){let t=j();Y((t.options==null?null:t.options.htmlClass)||""),wt("expandable",(t.options==null?null:t.options.expandable)&&!t.expanded)("expanded",(t.options==null?null:t.options.expandable)&&t.expanded),E("disabled",t.options==null?null:t.options.readonly),L(),E("ngIf",t.sectionTitle),L(),E("ngIf",(t.options==null?null:t.options.messageLocation)!=="bottom"),L(),Dn("align-content",t.getFlexAttribute("align-content"))("align-items",t.getFlexAttribute("align-items"))("display",t.expanded?t.getFlexAttribute("display"):"none")("flex-direction",t.getFlexAttribute("flex-direction"))("flex-wrap",t.getFlexAttribute("flex-wrap"))("justify-content",t.getFlexAttribute("justify-content")),wt("form-flex-column",t.getFlexAttribute("flex-direction")==="column")("form-flex-row",t.getFlexAttribute("flex-direction")==="row"),E("dataIndex",t.dataIndex())("layout",t.layoutNode().items)("layoutIndex",t.layoutIndex())("isFlexItem",t.getFlexAttribute("is-flex"))("isOrderable",t.options==null?null:t.options.orderable),L(),E("ngIf",(t.options==null?null:t.options.messageLocation)==="bottom")}}function HZ(e,n){if(e&1&&oe(0,"label",4),e&2){let t,r=j();Y((r.options==null?null:r.options.labelHtmlClass)||""),Dn("display",r.options!=null&&r.options.notitle?"none":""),E("innerHTML",r.options==null?null:r.options.title,$e),De("for","control"+((t=r.layoutNode())==null?null:t._id))}}function BZ(e,n){if(e&1&&(ee(0,"option",9),oe(1,"span",4),X()),e&2){let t=j().$implicit;E("ngValue",t==null?null:t.value),L(),E("innerHTML",t==null?null:t.name,$e)}}function UZ(e,n){if(e&1&&(ee(0,"option",9),oe(1,"span",4),X()),e&2){let t=n.$implicit;E("ngValue",t==null?null:t.value),L(),E("innerHTML",t==null?null:t.name,$e)}}function WZ(e,n){if(e&1&&(ee(0,"optgroup",10),se(1,UZ,2,2,"option",11),X()),e&2){let t=j().$implicit;E("label",t==null?null:t.group),L(),E("ngForOf",t.items)}}function GZ(e,n){if(e&1&&se(0,BZ,2,2,"option",7)(1,WZ,2,2,"optgroup",8),e&2){let t=n.$implicit,r=j(2);E("ngIf",!r.isArray(t==null?null:t.items)),L(),E("ngIf",r.isArray(t==null?null:t.items))}}function KZ(e,n){if(e&1&&(ee(0,"select",5),se(1,GZ,2,2,"ng-template",6),X()),e&2){let t,r,i=j();Y((i.options==null?null:i.options.fieldHtmlClass)||""),E("formControl",i.formControl)("id","control"+((t=i.layoutNode())==null?null:t._id))("name",i.controlName),De("aria-describedby","control"+((r=i.layoutNode())==null?null:r._id)+"Status")("readonly",i.options!=null&&i.options.readonly?"readonly":null)("required",i.options==null?null:i.options.required),L(),E("ngForOf",i.selectList)}}function JZ(e,n){if(e&1&&(ee(0,"option",14),oe(1,"span",4),X()),e&2){let t=j().$implicit,r=j(2);E("selected",(t==null?null:t.value)===r.controlValue)("ngValue",t==null?null:t.value),L(),E("innerHTML",t==null?null:t.name,$e)}}function ZZ(e,n){if(e&1&&(ee(0,"option",9),oe(1,"span",4),X()),e&2){let t=n.$implicit,r=j(4);E("ngValue",t==null?null:t.value),De("selected",(t==null?null:t.value)===r.controlValue),L(),E("innerHTML",t==null?null:t.name,$e)}}function YZ(e,n){if(e&1&&(ee(0,"optgroup",10),se(1,ZZ,2,3,"option",11),X()),e&2){let t=j().$implicit;E("label",t==null?null:t.group),L(),E("ngForOf",t.items)}}function XZ(e,n){if(e&1&&se(0,JZ,2,3,"option",13)(1,YZ,2,2,"optgroup",8),e&2){let t=n.$implicit,r=j(2);E("ngIf",!r.isArray(t==null?null:t.items)),L(),E("ngIf",r.isArray(t==null?null:t.items))}}function QZ(e,n){if(e&1){let t=gt();ee(0,"select",12),rt("change",function(i){ct(t);let a=j();return dt(a.updateValue(i))}),se(1,XZ,2,2,"ng-template",6),X()}if(e&2){let t,r,i=j();Y((i.options==null?null:i.options.fieldHtmlClass)||""),E("disabled",i.controlDisabled)("id","control"+((t=i.layoutNode())==null?null:t._id))("name",i.controlName),De("aria-describedby","control"+((r=i.layoutNode())==null?null:r._id)+"Status")("readonly",i.options!=null&&i.options.readonly?"readonly":null)("required",i.options==null?null:i.options.required),L(),E("ngForOf",i.selectList)}}function eY(e,n){if(e&1&&(ee(0,"option",14),oe(1,"span",4),X()),e&2){let t=j().$implicit,r=j(2);E("selected",(t==null?null:t.value)===r.controlValue)("ngValue",t==null?null:t.value),L(),E("innerHTML",t==null?null:t.name,$e)}}function tY(e,n){if(e&1&&(ee(0,"option",9),oe(1,"span",4),X()),e&2){let t=n.$implicit,r=j(4);E("ngValue",t==null?null:t.value),De("selected",(t==null?null:t.value)===r.controlValue),L(),E("innerHTML",t==null?null:t.name,$e)}}function nY(e,n){if(e&1&&(ee(0,"optgroup",10),se(1,tY,2,3,"option",11),X()),e&2){let t=j().$implicit;E("label",t==null?null:t.group),L(),E("ngForOf",t.items)}}function rY(e,n){if(e&1&&se(0,eY,2,3,"option",13)(1,nY,2,2,"optgroup",8),e&2){let t=n.$implicit,r=j(2);E("ngIf",!r.isArray(t==null?null:t.items)),L(),E("ngIf",r.isArray(t==null?null:t.items))}}function iY(e,n){if(e&1){let t=gt();ee(0,"select",15),ef("ngModelChange",function(i){ct(t);let a=j();return Qd(a.controlValue,i)||(a.controlValue=i),dt(i)}),rt("change",function(i){ct(t);let a=j();return dt(a.updateValue(i))}),se(1,rY,2,2,"ng-template",6),X()}if(e&2){let t,r,i=j();Y((i.options==null?null:i.options.fieldHtmlClass)||""),E("disabled",i.controlDisabled)("id","control"+((t=i.layoutNode())==null?null:t._id))("multiple",i.options==null?null:i.options.multiple)("name",i.controlName),Xd("ngModel",i.controlValue),De("aria-describedby","control"+((r=i.layoutNode())==null?null:r._id)+"Status")("readonly",i.options!=null&&i.options.readonly?"readonly":null)("required",i.options==null?null:i.options.required),L(),E("ngForOf",i.selectList)}}function oY(e,n){if(e&1&&oe(0,"label",3),e&2){let t,r=j();Y((r.options==null?null:r.options.labelHtmlClass)||""),Dn("display",r.options!=null&&r.options.notitle?"none":""),E("innerHTML",r.options==null?null:r.options.title,$e),De("for","control"+((t=r.layoutNode())==null?null:t._id))}}function sY(e,n){if(e&1&&oe(0,"textarea",4),e&2){let t,r,i=j();Y((i.options==null?null:i.options.fieldHtmlClass)||""),E("formControl",i.formControl)("id","control"+((t=i.layoutNode())==null?null:t._id))("name",i.controlName),De("aria-describedby","control"+((r=i.layoutNode())==null?null:r._id)+"Status")("maxlength",i.options==null?null:i.options.maxLength)("minlength",i.options==null?null:i.options.minLength)("pattern",i.options==null?null:i.options.pattern)("placeholder",i.options==null?null:i.options.placeholder)("readonly",i.options!=null&&i.options.readonly?"readonly":null)("required",i.options==null?null:i.options.required)}}function aY(e,n){if(e&1){let t=gt();ee(0,"textarea",5),rt("input",function(i){ct(t);let a=j();return dt(a.updateValue(i))}),un(1),X()}if(e&2){let t,r,i=j();Y((i.options==null?null:i.options.fieldHtmlClass)||""),E("disabled",i.controlDisabled)("id","control"+((t=i.layoutNode())==null?null:t._id))("name",i.controlName)("value",i.controlValue),De("aria-describedby","control"+((r=i.layoutNode())==null?null:r._id)+"Status")("maxlength",i.options==null?null:i.options.maxLength)("minlength",i.options==null?null:i.options.minLength)("pattern",i.options==null?null:i.options.pattern)("placeholder",i.options==null?null:i.options.placeholder)("readonly",i.options!=null&&i.options.readonly?"readonly":null)("required",i.options==null?null:i.options.required),L(),io(i.controlValue)}}function lY(e,n){if(e&1){let t=gt();ee(0,"option",6),rt("click",function(i){ct(t);let a=j(3);return dt(a.onSelectClicked(i))}),X()}if(e&2){let t=j().$implicit,r=j(2);Y(r.frameworkStyles[r.activeFramework].optionClass),wt("active",(t==null?null:t.value)===r.controlValue)("unchecked-notusing",(t==null?null:t.value)!=r.controlValue),E("value",t==null?null:t.value)}}function uY(e,n){if(e&1&&(se(0,lY,1,7,"option",4),oe(1,"span",5)),e&2){let t=n.$implicit,r=j(2);E("ngIf",!r.isArray(t==null?null:t.items)),L(),E("innerHTML",t==null?null:t.name,$e)}}function cY(e,n){if(e&1&&(ee(0,"select",2),se(1,uY,2,2,"ng-template",3),X()),e&2){let t,r,i=j();Y(i.frameworkStyles[i.activeFramework].selectClass),E("multiple",!0)("id","control"+((t=i.layoutNode())==null?null:t._id))("name",i.controlName)("ngModel",i.selectValue),De("aria-describedby","control"+((r=i.layoutNode())==null?null:r._id)+"Status")("readonly",i.options!=null&&i.options.readonly?"readonly":null)("required",i.options==null?null:i.options.required),L(),E("ngForOf",i.selectList)}}function dY(e,n){if(e&1&&oe(0,"option",9),e&2){let t=j().$implicit,r=j(2);Y(r.frameworkStyles[r.activeFramework].optionClass),wt("checked-notusing",(t==null?null:t.value)===r.controlValue)("unchecked-notusing]",(t==null?null:t.value)!=r.controlValue),E("selected",(t==null?null:t.value)===r.controlValue)("value",t==null?null:t.value)}}function fY(e,n){if(e&1&&(se(0,dY,1,8,"option",8),oe(1,"span",5)),e&2){let t=n.$implicit,r=j(2);E("ngIf",!r.isArray(t==null?null:t.items)),L(),E("innerHTML",t==null?null:t.name,$e)}}function pY(e,n){if(e&1){let t=gt();ee(0,"select",7),rt("change",function(i){ct(t);let a=j();return dt(a.updateValue(i))}),se(1,fY,2,2,"ng-template",3),X()}if(e&2){let t,r,i=j();Y(i.frameworkStyles[i.activeFramework].selectClass+" select-box"),E("multiple",!0)("disabled",i.controlDisabled)("id","control"+((t=i.layoutNode())==null?null:t._id))("name",i.controlName),De("aria-describedby","control"+((r=i.layoutNode())==null?null:r._id)+"Status")("readonly",i.options!=null&&i.options.readonly?"readonly":null)("required",i.options==null?null:i.options.required),L(),E("ngForOf",i.selectList)}}function hY(e,n){if(e&1&&(ee(0,"div"),un(1," Debug output: "),ee(2,"pre"),un(3),X()()),e&2){let t=j();L(3),io(t.debugOutput)}}OE.default.DEFAULTS.uuid=jm;var qi=(()=>{class e{constructor(){this.widgets={},this.stylesheets=[],this.scripts=[]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Je({token:e,factory:e.\u0275fac})}}return e})(),mY={required:"Darf nicht leer sein",minLength:"Mindestens {{minimumLength}} Zeichen ben\xF6tigt (aktuell: {{currentLength}})",maxLength:"Maximal {{maximumLength}} Zeichen erlaubt (aktuell: {{currentLength}})",pattern:"Entspricht nicht diesem regul\xE4ren Ausdruck: {{requiredPattern}}",format:function(e){switch(e.requiredFormat){case"date":return'Muss ein Datum sein, z. B. "2000-12-31"';case"time":return'Muss eine Zeitangabe sein, z. B. "16:20" oder "03:14:15.9265"';case"date-time":return'Muss Datum mit Zeit beinhalten, z. B. "2000-03-14T01:59" oder "2000-03-14T01:59:26.535Z"';case"email":return'Keine g\xFCltige E-Mail-Adresse (z. B. "name@example.com")';case"hostname":return'Kein g\xFCltiger Hostname (z. B. "example.com")';case"ipv4":return'Keine g\xFCltige IPv4-Adresse (z. B. "127.0.0.1")';case"ipv6":return'Keine g\xFCltige IPv6-Adresse (z. B. "1234:5678:9ABC:DEF0:1234:5678:9ABC:DEF0")';case"url":return'Keine g\xFCltige URL (z. B. "http://www.example.com/page.html")';case"uuid":return'Keine g\xFCltige UUID (z. B. "12345678-9ABC-DEF0-1234-56789ABCDEF0")';case"color":return'Kein g\xFCltiger Farbwert (z. B. "#FFFFFF")';case"json-pointer":return'Kein g\xFCltiger JSON-Pointer (z. B. "/pointer/to/something")';case"relative-json-pointer":return'Kein g\xFCltiger relativer JSON-Pointer (z. B. "2/pointer/to/something")';case"regex":return'Kein g\xFCltiger regul\xE4rer Ausdruck (z. B. "(1-)?\\d{3}-\\d{3}-\\d{4}")';case"duration":return"Muss eine g\xFCltige ISO 8601-Dauer sein (z.\u202FB. 'PT1H30M')";default:return"Muss diesem Format entsprechen: "+e.requiredFormat}},minimum:"Muss mindestens {{minimumValue}} sein",exclusiveMinimum:"Muss gr\xF6\xDFer als {{exclusiveMinimumValue}} sein",maximum:"Darf maximal {{maximumValue}} sein",exclusiveMaximum:"Muss kleiner als {{exclusiveMaximumValue}} sein",multipleOf:function(e){return 1/e.multipleOfValue%10===0?`Maximal ${Math.log10(1/e.multipleOfValue)} Dezimalstellen erlaubt`:`Muss ein Vielfaches von ${e.multipleOfValue} sein`},minProperties:"Mindestens {{minimumProperties}} Attribute erforderlich (aktuell: {{currentProperties}})",maxProperties:"Maximal {{maximumProperties}} Attribute erlaubt (aktuell: {{currentProperties}})",minItems:"Mindestens {{minimumItems}} Werte erforderlich (aktuell: {{currentItems}})",maxItems:"Maximal {{maximumItems}} Werte erlaubt (aktuell: {{currentItems}})",uniqueItems:"Alle Werte m\xFCssen eindeutig sein"},gY={required:"This field is required.",minLength:"Must be {{minimumLength}} characters or longer (current length: {{currentLength}})",maxLength:"Must be {{maximumLength}} characters or shorter (current length: {{currentLength}})",pattern:"Must match pattern: {{requiredPattern}}",format:function(e){switch(e.requiredFormat){case"date":return'Must be a date, like "2000-12-31"';case"time":return'Must be a time, like "16:20" or "03:14:15.9265"';case"date-time":return'Must be a date-time, like "2000-03-14T01:59" or "2000-03-14T01:59:26.535Z"';case"email":return'Must be an email address, like "name@example.com"';case"hostname":return'Must be a hostname, like "example.com"';case"ipv4":return'Must be an IPv4 address, like "127.0.0.1"';case"ipv6":return'Must be an IPv6 address, like "1234:5678:9ABC:DEF0:1234:5678:9ABC:DEF0"';case"url":return'Must be a url, like "http://www.example.com/page.html"';case"uuid":return'Must be a uuid, like "12345678-9ABC-DEF0-1234-56789ABCDEF0"';case"color":return'Must be a color, like "#FFFFFF"';case"json-pointer":return'Must be a JSON Pointer, like "/pointer/to/something"';case"relative-json-pointer":return'Must be a relative JSON Pointer, like "2/pointer/to/something"';case"regex":return'Must be a regular expression, like "(1-)?\\d{3}-\\d{3}-\\d{4}"';case"duration":return"Must be a valid ISO 8601 duration (e.g., 'PT1H30M')";default:return"Must be a correctly formatted "+e.requiredFormat}},minimum:"Must be {{minimumValue}} or more",exclusiveMinimum:"Must be more than {{exclusiveMinimumValue}}",maximum:"Must be {{maximumValue}} or less",exclusiveMaximum:"Must be less than {{exclusiveMaximumValue}}",multipleOf:function(e){return 1/e.multipleOfValue%10===0?`Must have ${Math.log10(1/e.multipleOfValue)} or fewer decimal places.`:`Must be a multiple of ${e.multipleOfValue}.`},minProperties:"Must have {{minimumProperties}} or more items (current items: {{currentProperties}})",maxProperties:"Must have {{maximumProperties}} or fewer items (current items: {{currentProperties}})",minItems:"Must have {{minimumItems}} or more items (current items: {{currentItems}})",maxItems:"Must have {{maximumItems}} or fewer items (current items: {{currentItems}})",uniqueItems:"All items must be unique"},_Y={required:"Este campo est\xE1 requerido.",minLength:"Debe tener {{minimumLength}} caracteres o m\xE1s longitud (longitud actual: {{currentLength}})",maxLength:"Debe tener {{maximumLength}} caracteres o menos longitud (longitud actual: {{currentLength}})",pattern:"Must match pattern: {{requiredPattern}}",format:function(e){switch(e.requiredFormat){case"date":return'Debe tener una fecha, ej "2000-12-31"';case"time":return'Debe tener una hora, ej "16:20" o "03:14:15.9265"';case"date-time":return'Debe tener fecha y hora, ej "2000-03-14T01:59" o "2000-03-14T01:59:26.535Z"';case"email":return'No hay direcci\xF3n de correo electr\xF3nico v\xE1lida, ej "name@example.com"';case"hostname":return'Debe ser un nombre de host v\xE1lido, ej "example.com"';case"ipv4":return'Debe ser una direcci\xF3n de IPv4, ej "127.0.0.1"';case"ipv6":return'Debe ser una direcci\xF3n de IPv6, ej "1234:5678:9ABC:DEF0:1234:5678:9ABC:DEF0"';case"url":return'Debe ser una URL, ej "http://www.example.com/page.html"';case"uuid":return'Debe ser un UUID, ej "12345678-9ABC-DEF0-1234-56789ABCDEF0"';case"color":return'Debe ser un color, ej "#FFFFFF"';case"json-pointer":return'Debe ser un JSON Pointer, ej "/pointer/to/something"';case"relative-json-pointer":return'Debe ser un JSON Pointer relativo, ej "2/pointer/to/something"';case"regex":return'Debe ser una expresi\xF3n regular, ej "(1-)?\\d{3}-\\d{3}-\\d{4}"';case"duration":return"Debe ser una duraci\xF3n v\xE1lida en formato ISO 8601 (p. ej., 'PT1H30M')";default:return"Debe tener el formato correcto "+e.requiredFormat}},minimum:"Debe ser {{minimumValue}} o m\xE1s",exclusiveMinimum:"Debe ser superior a {{exclusiveMinimumValue}}",maximum:"Debe ser {{maximumValue}} o menos",exclusiveMaximum:"Debe ser menor que {{exclusiveMaximumValue}}",multipleOf:function(e){return 1/e.multipleOfValue%10===0?`Se permite un m\xE1ximo de ${Math.log10(1/e.multipleOfValue)} decimales`:`Debe ser m\xFAltiplo de ${e.multipleOfValue}.`},minProperties:"Debe tener {{minimumProperties}} o m\xE1s elementos (elementos actuales: {{currentProperties}})",maxProperties:"Debe tener {{maximumProperties}} o menos elementos (elementos actuales: {{currentProperties}})",minItems:"Debe tener {{minimumItems}} o m\xE1s elementos (elementos actuales: {{currentItems}})",maxItems:"Debe tener {{maximumItems}} o menos elementos (elementos actuales: {{currentItems}})",uniqueItems:"Todos los elementos deben ser \xFAnicos"},yY={required:"Est obligatoire.",minLength:"Doit avoir minimum {{minimumLength}} caract\xE8res (actuellement: {{currentLength}})",maxLength:"Doit avoir maximum {{maximumLength}} caract\xE8res (actuellement: {{currentLength}})",pattern:"Doit respecter: {{requiredPattern}}",format:function(e){switch(e.requiredFormat){case"date":return'Doit \xEAtre une date, tel que "2000-12-31"';case"time":return'Doit \xEAtre une heure, tel que "16:20" ou "03:14:15.9265"';case"date-time":return'Doit \xEAtre une date et une heure, tel que "2000-03-14T01:59" ou "2000-03-14T01:59:26.535Z"';case"email":return'Doit \xEAtre une adresse e-mail, tel que "name@example.com"';case"hostname":return'Doit \xEAtre un nom de domaine, tel que "example.com"';case"ipv4":return'Doit \xEAtre une adresse IPv4, tel que "127.0.0.1"';case"ipv6":return'Doit \xEAtre une adresse IPv6, tel que "1234:5678:9ABC:DEF0:1234:5678:9ABC:DEF0"';case"url":return'Doit \xEAtre une URL, tel que "http://www.example.com/page.html"';case"uuid":return'Doit \xEAtre un UUID, tel que "12345678-9ABC-DEF0-1234-56789ABCDEF0"';case"color":return'Doit \xEAtre une couleur, tel que "#FFFFFF"';case"json-pointer":return'Doit \xEAtre un JSON Pointer, tel que "/pointer/to/something"';case"relative-json-pointer":return'Doit \xEAtre un relative JSON Pointer, tel que "2/pointer/to/something"';case"regex":return'Doit \xEAtre une expression r\xE9guli\xE8re, tel que "(1-)?\\d{3}-\\d{3}-\\d{4}"';case"duration":return"Doit \xEAtre une dur\xE9e valide au format ISO 8601 (par ex., 'PT1H30M')";default:return"Doit \xEAtre avoir le format correct: "+e.requiredFormat}},minimum:"Doit \xEAtre sup\xE9rieur \xE0 {{minimumValue}}",exclusiveMinimum:"Doit avoir minimum {{exclusiveMinimumValue}} charact\xE8res",maximum:"Doit \xEAtre inf\xE9rieur \xE0 {{maximumValue}}",exclusiveMaximum:"Doit avoir maximum {{exclusiveMaximumValue}} charact\xE8res",multipleOf:function(e){return 1/e.multipleOfValue%10===0?`Doit comporter ${Math.log10(1/e.multipleOfValue)} ou moins de decimales.`:`Doit \xEAtre un multiple de ${e.multipleOfValue}.`},minProperties:"Doit comporter au minimum {{minimumProperties}} \xE9l\xE9ments",maxProperties:"Doit comporter au maximum {{maximumProperties}} \xE9l\xE9ments",minItems:"Doit comporter au minimum {{minimumItems}} \xE9l\xE9ments",maxItems:"Doit comporter au maximum {{minimumItems}} \xE9l\xE9ments",uniqueItems:"Tous les \xE9l\xE9ments doivent \xEAtre uniques"},vY={required:"Il campo \xE8 obbligatorio",minLength:"Deve inserire almeno {{minimumLength}} caratteri (lunghezza corrente: {{currentLength}})",maxLength:"Il numero massimo di caratteri consentito \xE8 {{maximumLength}} (lunghezza corrente: {{currentLength}})",pattern:"Devi rispettare il pattern : {{requiredPattern}}",format:function(e){switch(e.requiredFormat){case"date":return'Deve essere una data, come "31-12-2000"';case"time":return'Deve essere un orario, come "16:20" o "03:14:15.9265"';case"date-time":return'Deve essere data-orario, come "14-03-2000T01:59" or "14-03-2000T01:59:26.535Z"';case"email":return'Deve essere un indirzzo email, come "name@example.com"';case"hostname":return'Deve essere un hostname, come "example.com"';case"ipv4":return'Deve essere un indirizzo IPv4, come "127.0.0.1"';case"ipv6":return'Deve essere un indirizzo IPv6, come "1234:5678:9ABC:DEF0:1234:5678:9ABC:DEF0"';case"url":return'Deve essere un url, come "http://www.example.com/page.html"';case"uuid":return'Deve essere un uuid, come "12345678-9ABC-DEF0-1234-56789ABCDEF0"';case"color":return'Deve essere un colore, come "#FFFFFF"';case"json-pointer":return'Deve essere un JSON Pointer, come "/pointer/to/something"';case"relative-json-pointer":return'Deve essere un JSON Pointer relativo, come "2/pointer/to/something"';case"regex":return'Deve essere una regular expression, come "(1-)?\\d{3}-\\d{3}-\\d{4}"';case"duration":return"Deve essere una durata valida nel formato ISO 8601 (es. 'PT1H30M')";default:return"Deve essere formattato correttamente "+e.requiredFormat}},minimum:"Deve essere {{minimumValue}} o pi\xF9",exclusiveMinimum:"Deve essere pi\xF9 di {{exclusiveMinimumValue}}",maximum:"Deve essere {{maximumValue}} o meno",exclusiveMaximum:"Deve essere minore di {{exclusiveMaximumValue}}",multipleOf:function(e){return 1/e.multipleOfValue%10===0?`Deve avere ${Math.log10(1/e.multipleOfValue)} o meno decimali.`:`Deve essere multiplo di ${e.multipleOfValue}.`},minProperties:"Deve avere {{minimumProperties}} o pi\xF9 elementi (elementi correnti: {{currentProperties}})",maxProperties:"Deve avere {{maximumProperties}} o meno elementi (elementi correnti: {{currentProperties}})",minItems:"Deve avere {{minimumItems}} o pi\xF9 elementi (elementi correnti: {{currentItems}})",maxItems:"Deve avere {{maximumItems}} o meno elementi (elementi correnti: {{currentItems}})",uniqueItems:"Tutti gli elementi devono essere unici"},bY={required:"Este campo \xE9 obrigat\xF3rio.",minLength:"\xC9 preciso no m\xEDnimo {{minimumLength}} caracteres ou mais (tamanho atual: {{currentLength}})",maxLength:"\xC9 preciso no m\xE1ximo {{maximumLength}} caracteres ou menos (tamanho atual: {{currentLength}})",pattern:"Tem que ajustar ao formato: {{requiredPattern}}",format:function(e){switch(e.requiredFormat){case"date":return'Tem que ser uma data, por exemplo "2000-12-31"';case"time":return'Tem que ser hor\xE1rio, por exemplo "16:20" ou "03:14:15.9265"';case"date-time":return'Tem que ser data e hora, por exemplo "2000-03-14T01:59" ou "2000-03-14T01:59:26.535Z"';case"email":return'Tem que ser um email, por exemplo "fulano@exemplo.com.br"';case"hostname":return'Tem que ser uma nome de dom\xEDnio, por exemplo "exemplo.com.br"';case"ipv4":return'Tem que ser um endere\xE7o IPv4, por exemplo "127.0.0.1"';case"ipv6":return'Tem que ser um endere\xE7o IPv6, por exemplo "1234:5678:9ABC:DEF0:1234:5678:9ABC:DEF0"';case"url":return'Tem que ser uma URL, por exemplo "http://www.exemplo.com.br/pagina.html"';case"uuid":return'Tem que ser um uuid, por exemplo "12345678-9ABC-DEF0-1234-56789ABCDEF0"';case"color":return'Tem que ser uma cor, por exemplo "#FFFFFF"';case"json-pointer":return'Tem que ser um JSON Pointer, por exemplo "/referencia/para/algo"';case"relative-json-pointer":return'Tem que ser um JSON Pointer relativo, por exemplo "2/referencia/para/algo"';case"regex":return'Tem que ser uma express\xE3o regular, por exemplo "(1-)?\\d{3}-\\d{3}-\\d{4}"';case"duration":return"Deve ser uma dura\xE7\xE3o v\xE1lida no formato ISO 8601 (ex.: 'PT1H30M')";default:return"Tem que ser no formato: "+e.requiredFormat}},minimum:"Tem que ser {{minimumValue}} ou mais",exclusiveMinimum:"Tem que ser mais que {{exclusiveMinimumValue}}",maximum:"Tem que ser {{maximumValue}} ou menos",exclusiveMaximum:"Tem que ser menor que {{exclusiveMaximumValue}}",multipleOf:function(e){return 1/e.multipleOfValue%10===0?`Tem que ter ${Math.log10(1/e.multipleOfValue)} ou menos casas decimais.`:`Tem que ser um m\xFAltiplo de ${e.multipleOfValue}.`},minProperties:"Deve ter {{minimumProperties}} ou mais itens (itens at\xE9 o momento: {{currentProperties}})",maxProperties:"Deve ter {{maximumProperties}} ou menos intens (itens at\xE9 o momento: {{currentProperties}})",minItems:"Deve ter {{minimumItems}} ou mais itens (itens at\xE9 o momento: {{currentItems}})",maxItems:"Deve ter {{maximumItems}} ou menos itens (itens at\xE9 o momento: {{currentItems}})",uniqueItems:"Todos os itens devem ser \xFAnicos"},wY={required:"\u5FC5\u586B\u5B57\u6BB5.",minLength:"\u5B57\u7B26\u957F\u5EA6\u5FC5\u987B\u5927\u4E8E\u6216\u8005\u7B49\u4E8E {{minimumLength}} (\u5F53\u524D\u957F\u5EA6: {{currentLength}})",maxLength:"\u5B57\u7B26\u957F\u5EA6\u5FC5\u987B\u5C0F\u4E8E\u6216\u8005\u7B49\u4E8E {{maximumLength}} (\u5F53\u524D\u957F\u5EA6: {{currentLength}})",pattern:"\u5FC5\u987B\u5339\u914D\u6B63\u5219\u8868\u8FBE\u5F0F: {{requiredPattern}}",format:function(e){switch(e.requiredFormat){case"date":return'\u5FC5\u987B\u4E3A\u65E5\u671F\u683C\u5F0F, \u6BD4\u5982 "2000-12-31"';case"time":return'\u5FC5\u987B\u4E3A\u65F6\u95F4\u683C\u5F0F, \u6BD4\u5982 "16:20" \u6216\u8005 "03:14:15.9265"';case"date-time":return'\u5FC5\u987B\u4E3A\u65E5\u671F\u65F6\u95F4\u683C\u5F0F, \u6BD4\u5982 "2000-03-14T01:59" \u6216\u8005 "2000-03-14T01:59:26.535Z"';case"email":return'\u5FC5\u987B\u4E3A\u90AE\u7BB1\u5730\u5740, \u6BD4\u5982 "name@example.com"';case"hostname":return'\u5FC5\u987B\u4E3A\u4E3B\u673A\u540D, \u6BD4\u5982 "example.com"';case"ipv4":return'\u5FC5\u987B\u4E3A IPv4 \u5730\u5740, \u6BD4\u5982 "127.0.0.1"';case"ipv6":return'\u5FC5\u987B\u4E3A IPv6 \u5730\u5740, \u6BD4\u5982 "1234:5678:9ABC:DEF0:1234:5678:9ABC:DEF0"';case"url":return'\u5FC5\u987B\u4E3A url, \u6BD4\u5982 "http://www.example.com/page.html"';case"uuid":return'\u5FC5\u987B\u4E3A uuid, \u6BD4\u5982 "12345678-9ABC-DEF0-1234-56789ABCDEF0"';case"color":return'\u5FC5\u987B\u4E3A\u989C\u8272\u503C, \u6BD4\u5982 "#FFFFFF"';case"json-pointer":return'\u5FC5\u987B\u4E3A JSON Pointer, \u6BD4\u5982 "/pointer/to/something"';case"relative-json-pointer":return'\u5FC5\u987B\u4E3A\u76F8\u5BF9\u7684 JSON Pointer, \u6BD4\u5982 "2/pointer/to/something"';case"regex":return'\u5FC5\u987B\u4E3A\u6B63\u5219\u8868\u8FBE\u5F0F, \u6BD4\u5982 "(1-)?\\d{3}-\\d{3}-\\d{4}"';case"duration":return"\u5FC5\u987B\u662F\u6709\u6548\u7684 ISO 8601 \u6301\u7EED\u65F6\u95F4\uFF08\u4F8B\u5982\uFF1A'PT1H30M'\uFF09";default:return"\u5FC5\u987B\u4E3A\u683C\u5F0F\u6B63\u786E\u7684 "+e.requiredFormat}},minimum:"\u5FC5\u987B\u5927\u4E8E\u6216\u8005\u7B49\u4E8E\u6700\u5C0F\u503C: {{minimumValue}}",exclusiveMinimum:"\u5FC5\u987B\u5927\u4E8E\u6700\u5C0F\u503C: {{exclusiveMinimumValue}}",maximum:"\u5FC5\u987B\u5C0F\u4E8E\u6216\u8005\u7B49\u4E8E\u6700\u5927\u503C: {{maximumValue}}",exclusiveMaximum:"\u5FC5\u987B\u5C0F\u4E8E\u6700\u5927\u503C: {{exclusiveMaximumValue}}",multipleOf:function(e){return 1/e.multipleOfValue%10===0?`\u5FC5\u987B\u6709 ${Math.log10(1/e.multipleOfValue)} \u4F4D\u6216\u66F4\u5C11\u7684\u5C0F\u6570\u4F4D`:`\u5FC5\u987B\u4E3A ${e.multipleOfValue} \u7684\u500D\u6570`},minProperties:"\u9879\u76EE\u6570\u5FC5\u987B\u5927\u4E8E\u6216\u8005\u7B49\u4E8E {{minimumProperties}} (\u5F53\u524D\u9879\u76EE\u6570: {{currentProperties}})",maxProperties:"\u9879\u76EE\u6570\u5FC5\u987B\u5C0F\u4E8E\u6216\u8005\u7B49\u4E8E {{maximumProperties}} (\u5F53\u524D\u9879\u76EE\u6570: {{currentProperties}})",minItems:"\u9879\u76EE\u6570\u5FC5\u987B\u5927\u4E8E\u6216\u8005\u7B49\u4E8E {{minimumItems}} (\u5F53\u524D\u9879\u76EE\u6570: {{currentItems}})",maxItems:"\u9879\u76EE\u6570\u5FC5\u987B\u5C0F\u4E8E\u6216\u8005\u7B49\u4E8E {{maximumItems}} (\u5F53\u524D\u9879\u76EE\u6570: {{currentItems}})",uniqueItems:"\u6240\u6709\u9879\u76EE\u5FC5\u987B\u662F\u552F\u4E00\u7684"};function Ma(e,n,t=!1){return n.map(r=>r(e,t))}function xY(e,n,t=!1){return n.map(r=>r(e,t))}function Pr(...e){let n={};for(let t of e)if(H(t))for(let r of Object.keys(t)){let i=t[r],a=n[r];n[r]=qe(a)?r==="not"&&Zn(a,"strict")&&Zn(i,"strict")?it(a,i):Ho(a)==="object"&&Ho(i)==="object"?Pr(a,i):i:i}return n}function Lm(e){let n=Pr(...e);return ge(n)?null:n}function qe(e){return e!=null}function ce(e){return e!=null&&e!==""}function ge(e){return N(e)?!e.length:H(e)?!Object.keys(e).length:e==null||e===""}function We(e){return typeof e=="string"}function at(e,n=!1){return n&&typeof e!="number"?!1:!isNaN(e)&&e!==e/0}function bc(e,n=!1){return n&&typeof e!="number"?!1:!isNaN(e)&&e!==e/0&&e%1===0}function Zn(e,n=null){return n==="strict"?e===!0||e===!1:n===!0?e===!0||e===1||e==="true"||e==="1":n===!1?e===!1||e===0||e==="false"||e==="0":e===!0||e===1||e==="true"||e==="1"||e===!1||e===0||e==="false"||e==="0"}function H(e){return e!==null&&typeof e=="object"}function N(e){return Array.isArray(e)}function Bo(e){return!!e&&Object.prototype.toString.call(e)==="[object Date]"}function Mn(e){return!!e&&Object.prototype.toString.call(e)==="[object Map]"}function zo(e){return!!e&&Object.prototype.toString.call(e)==="[object Set]"}function Ho(e,n=!1){return qe(e)?N(e)?"array":H(e)?"object":Zn(e,"strict")?"boolean":bc(e,n)?"integer":at(e,n)?"number":We(e)||!n&&Bo(e)?"string":null:"null"}function vE(e,n){switch(n){case"string":return We(e)||Bo(e);case"number":return at(e);case"integer":return bc(e);case"boolean":return Zn(e);case"null":return!ce(e);default:return console.error(`isType error: "${n}" is not a recognized type.`),null}}function IY(e){return We(e)||at(e)||Zn(e,"strict")||e===null}var CY=e=>{let n=e.getDate(),t=e.getMonth()+1;return`${e.getFullYear()}-${t<10?"0"+t:t}-${n<10?"0"+n:n}`};function ii(e,n,t=!0){if(!qe(e))return null;if(We(n)&&(n=[n]),t&&ft("integer",n)){if(bc(e,"strict"))return e;if(bc(e))return parseInt(e,10)}if(ft("number",n)||!t&&ft("integer",n)){if(at(e,"strict"))return e;if(at(e))return parseFloat(e)}if(ft("string",n)){if(We(e))return e;if(Bo(e))return CY(e);if(at(e))return e.toString()}if(Bo(e)&&(ft("integer",n)||ft("number",n)))return e.getTime();if(ft("boolean",n)){if(Zn(e,!0))return!0;if(Zn(e,!1))return!1}return null}function SY(e,n){if(N(n)||(n=[n]),n.includes("null")&&!ce(e))return null;if(n.includes("boolean")&&!Zn(e,"strict"))return e;if(n.includes("integer")){let t=ii(e,"integer");if(t!==null)return+t}if(n.includes("number")){let t=ii(e,"number");if(t!==null)return+t}if((We(e)||at(e,"strict"))&&n.includes("string"))return ii(e,"string");if(n.includes("boolean")&&Zn(e))return ii(e,"boolean");if(n.includes("string")){if(e===null)return"";let t=ii(e,"string");if(t!==null)return t}if(n.includes("number")||n.includes("integer")){if(e===!0)return 1;if(e===!1||e===null||e==="")return 0}if(n.includes("number")){let t=parseFloat(e);if(t)return t}if(n.includes("integer")){let t=parseInt(e,10);if(t)return t}if(n.includes("boolean"))return!!e;if((n.includes("number")||n.includes("integer"))&&!n.includes("null"))return 0}function DY(e){return!!e&&typeof e.then=="function"}function OY(e){return!!e&&typeof e.subscribe=="function"}function PY(e){let n=DY(e)?Ry(e):e;return OY(n)?n:(console.error("toObservable error: Expected validator to return Promise or Observable."),new _i)}function ft(e,n,t=!1){return!qe(e)||!N(n)?!1:N(e)?e[t?"every":"some"](r=>n.includes(r)):n.includes(e)}function it(e,n){return!!e&&!n||!e&&!!n}function $r(e,n){let t=l=>!zo(l)&&!N(l)&&!We(l);if(t(n))return e;t(e)&&(e="");let r=l=>zo(l)?l:N(l)?new Set(l):new Set(l.split(" ")),i=r(e);return r(n).forEach(l=>i.add(l)),zo(e)?i:N(e)?Array.from(i):Array.from(i).join(" ")}function gc(e,n=!1){return typeof e!="object"||e===null?e:Mn(e)?new Map(e):zo(e)?new Set(e):N(e)?[...e]:H(e)?ue({},e):(n&&console.error("copy error: Object to copy must be a JavaScript object or value."),e)}function en(e,n,t=!1,r=e,i=!1){if(!ge(e)){if((H(e)||N(e))&&typeof n=="function")for(let a of Object.keys(e)){let l=e[a];t==="bottom-up"&&(H(l)||N(l))&&en(l,n,t,r),n(l,a,e,r),t==="top-down"&&(H(l)||N(l))&&en(l,n,t,r)}i&&(typeof n!="function"&&(console.error("forEach error: Iterator must be a function."),console.error("function",n)),!H(e)&&!N(e)&&(console.error("forEach error: Input object must be an object or array."),console.error("object",e)))}}function Vm(e,n,t=!1){if(ce(e)){if((H(e)||N(e))&&typeof e!="function"){let r=N(e)?[]:{};for(let i of Object.keys(e))r[i]=n(e[i],i,e);return r}t&&(typeof n!="function"&&(console.error("forEachCopy error: Iterator must be a function."),console.error("function",n)),!H(e)&&!N(e)&&(console.error("forEachCopy error: Input object must be an object or array."),console.error("object",e)))}}function O(e,n){if(!e||!["number","string","symbol"].includes(typeof n)||!H(e)&&!N(e)&&!Mn(e)&&!zo(e))return!1;if(Mn(e)||zo(e))return e.has(n);if(typeof n=="number"){if(N(e))return e[n];n=n+""}return e.hasOwnProperty(n)}var ki=(function(e){return e[e.EQUALS=0]="EQUALS",e[e.NOT_EQUALS=1]="NOT_EQUALS",e[e.NOT_AN_EXPRESSION=2]="NOT_AN_EXPRESSION",e})(ki||{});function EY(e){return e.indexOf("==")!==-1?ki.EQUALS:e.toString().indexOf("!=")!==-1?ki.NOT_EQUALS:ki.NOT_AN_EXPRESSION}function Bm(e){return e===ki.EQUALS}function Um(e){return e===ki.NOT_EQUALS}function TY(e){return e===ki.NOT_AN_EXPRESSION}function $Y(e,n){return Bm(e)?n.split("==",2):Um(e)?n.split("!=",2):null}function RY(e){return e.charAt(0)==="'"&&e.charAt(e.length-1)==="'"?e.replace("'","").replace("'",""):e}function bE(e,n,t=[],r=a=>a,i=a=>a){if(!H(n))return e;H(e)||(e={});for(let a of Object.keys(n))!ft(a,t)&&qe(n[a])&&(e[r(a)]=i(n[a]));return e}function pc(...e){let n=[];for(let t of e)n.includes(t)||n.push(t);return n}function MY(...e){let n=null;for(let t of e)if(We(t)&&(t=[t]),n=n===null?[...t]:n.filter(r=>t.includes(r)),!n.length)return[];return n}function Tr(e){return e&&PE(e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," "))}function PE(e,n){if(!We(e))return e;let t=["a","an","and","as","at","but","by","en","for","if","in","nor","of","on","or","per","the","to","v","v.","vs","vs.","via"];We(n)&&(n=n.split("|")),N(n)&&(t=t.concat(n));let r=t.map(l=>l.toLowerCase()),i=e===e.toUpperCase()||e===e.toLowerCase(),a="";return e=e.trim(),e.replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(l,u)=>{if(!i&&l.slice(1).search(/[A-Z]|\../)!==-1)return l;{let d,p=t[r.indexOf(l.toLowerCase())];return p?p===p.toLowerCase()&&(u===0||u+l.length===e.length||a===":"||e[u-1].search(/[^\s-]/)!==-1||e[u-1]!=="-"&&e[u+l.length]==="-")?d=p[0].toUpperCase()+p.slice(1):d=p:i?l.slice(1).search(/\../)!==-1?d=l.toLowerCase():d=l[0].toUpperCase()+l.slice(1).toLowerCase():d=l[0].toUpperCase()+l.slice(1),a=l.slice(-1),d}})}function EE(e){return e===null||typeof e!="object"?!1:(0,zt.some)(e,n=>H(n)?EE(n):!(0,zt.isNil)(n))}var M=(()=>{class e{static get(t,r,i=0,a=null,l=!1,u=!1){if(t===null)return l?!1:void 0;let d=this.parse(r,u);if(typeof t=="object"&&d!==null){let p=t;if(i>=d.length||a<=-d.length)return t;i<=-d.length&&(i=0),(!qe(a)||a>=d.length)&&(a=d.length),d=d.slice(i,a);for(let m of d)if(m==="-"&&N(p)&&p.length&&(m=p.length-1),Mn(p)&&p.has(m))p=p.get(m);else if(typeof p=="object"&&p!==null&&O(p,m))p=p[m];else{let _=e.evaluateExpression(p,m);if(_.passed)p=_.key?p[_.key]:p;else return this.logErrors(u,m,r,t),l?!1:void 0}return l?!0:p}return u&&d===null&&console.error(`get error: Invalid JSON Pointer: ${r}`),u&&typeof t!="object"&&(console.error("get error: Invalid object:"),console.error(t)),l?!1:void 0}static logErrors(t,r,i,a){t&&(console.error(`get error: "${r}" key not found in object.`),console.error(i),console.error(a))}static evaluateExpression(t,r){let i={passed:!1,key:r},a=this.parseKeysAndExpression(r,t);if(!a)return i;let l=this.doOwnCheckResult(t,a);if(l)return l;let u=RY(a.keyAndValue[1]),d=this.performExpressionOnValue(a,u,t);return d||i}static performExpressionOnValue(t,r,i){let a=i[t.keyAndValue[0]];return this.doComparisonByExpressionType(t.expressionType,a,r)?{passed:!0,key:t.keyAndValue[0]}:null}static doComparisonByExpressionType(t,r,i){return Bm(t)?r===i:Um(t)?r!==i:!1}static doOwnCheckResult(t,r){let i=null;return O(t,r.keyAndValue[0])||(Bm(r.expressionType)&&(i={passed:!1,key:null}),Um(r.expressionType)&&(i={passed:!0,key:null})),i}static parseKeysAndExpression(t,r){if(this.keyOrSubObjEmpty(t,r))return null;let i=EY(t.toString());if(TY(i))return null;let a=$Y(i,t);return!a||!a[0]||!a[1]?null:{expressionType:i,keyAndValue:a}}static keyOrSubObjEmpty(t,r){return!t||!r}static getCopy(t,r,i=0,a=null,l=!1,u=!1){let d=this.get(t,r,i,a,l,u);return this.forEachDeepCopy(d)}static getFirst(t,r=null,i=!1){if(!ge(t)){if(N(t)){for(let a of t)if(!ge(a)){if(N(a)&&a.length>=2){if(ge(a[0])||ge(a[1]))continue;let l=i?this.getCopy(a[0],a[1]):this.get(a[0],a[1]);if(l)return l;continue}console.error(`getFirst error: Input not in correct format.
29
+ Should be: [ [ object1, pointer1 ], [ object 2, pointer2 ], etc... ]`);return}return r}if(Mn(t)){for(let[a,l]of t){if(a===null||!this.isJsonPointer(l))continue;let u=i?this.getCopy(a,l):this.get(a,l);if(u)return u}return r}return console.error(`getFirst error: Input not in correct format.
30
+ Should be: [ [ object1, pointer1 ], [ object 2, pointer2 ], etc... ]`),r}}static getFirstCopy(t,r=null){return this.getFirst(t,r,!0)}static set(t,r,i,a=!1){let l=this.parse(r);if(l!==null&&l.length){let u=t;for(let p=0;p<l.length-1;++p){let m=l[p];m==="-"&&N(u)&&(m=u.length),Mn(u)&&u.has(m)?u=u.get(m):(O(u,m)||(u[m]=l[p+1].match(/^(\d+|-)$/)?[]:{}),u=u[m])}let d=l[l.length-1];return N(u)&&d==="-"?u.push(i):a&&N(u)&&!isNaN(+d)?u.splice(d,0,i):Mn(u)?u.set(d,i):u[d]=i,t}return console.error(`set error: Invalid JSON Pointer: ${r}`),t}static setCopy(t,r,i,a=!1){let l=this.parse(r);if(l!==null){let u=gc(t),d=u;for(let m=0;m<l.length-1;++m){let _=l[m];_==="-"&&N(d)&&(_=d.length),Mn(d)&&d.has(_)?(d.set(_,gc(d.get(_))),d=d.get(_)):(O(d,_)||(d[_]=l[m+1].match(/^(\d+|-)$/)?[]:{}),d[_]=gc(d[_]),d=d[_])}let p=l[l.length-1];return N(d)&&p==="-"?d.push(i):a&&N(d)&&!isNaN(+p)?d.splice(p,0,i):Mn(d)?d.set(p,i):d[p]=i,u}return console.error(`setCopy error: Invalid JSON Pointer: ${r}`),t}static insert(t,r,i){return this.set(t,r,i,!0)}static insertCopy(t,r,i){return this.setCopy(t,r,i,!0)}static remove(t,r){let i=this.parse(r);if(i!==null&&i.length){let a=i.pop(),l=this.get(t,i);return N(l)?(a==="-"&&(a=l.length-1),l.splice(a,1)):H(l)&&delete l[a],t}return console.error(`remove error: Invalid JSON Pointer: ${r}`),t}static has(t,r){return this.get(t,r,0,null,!0)}static dict(t){let r={};return this.forEachDeep(t,(i,a)=>{typeof i!="object"&&(r[a]=i)}),r}static forEachDeep(t,r=u=>u,i=!1,a="",l=t){if(typeof r!="function"){console.error("forEachDeep error: Iterator is not a function:",r);return}if(i||r(t,a,l),H(t)||N(t))for(let u of Object.keys(t)){let d=a+"/"+this.escape(u);this.forEachDeep(t[u],r,i,d,l)}i&&r(t,a,l)}static forEachDeepCopy(t,r=u=>u,i=!1,a="",l=t){if(typeof r!="function")return console.error("forEachDeepCopy error: Iterator is not a function:",r),null;if(H(t)||N(t)){let u=N(t)?[...t]:ue({},t);i||(u=r(u,a,l));for(let d of Object.keys(u)){let p=a+"/"+this.escape(d);u[d]=this.forEachDeepCopy(u[d],r,i,p,l)}return i&&(u=r(u,a,l)),u}else return r(t,a,l)}static escape(t){return t.toString().replace(/~/g,"~0").replace(/\//g,"~1")}static unescape(t){return t.toString().replace(/~1/g,"/").replace(/~0/g,"~")}static parse(t,r=!1){if(!this.isJsonPointer(t))return r&&console.error(`parse error: Invalid JSON Pointer: ${t}`),null;if(N(t))return t;if(typeof t=="string")return t[0]==="#"&&(t=t.slice(1)),t===""||t==="/"?[]:t.slice(1).split("/").map(this.unescape)}static compile(t,r="",i=!1){if(t==="#")return"";if(!this.isJsonPointer(t))return i&&console.error(`compile error: Invalid JSON Pointer: ${t}`),null;if(N(t))return t.length===0?"":"/"+t.map(a=>a===""?r:this.escape(a)).join("/");if(typeof t=="string")return t[0]==="#"&&(t=t.slice(1)),t}static toKey(t,r=!1){let i=this.parse(t,r);return i===null?null:i.length?i[i.length-1]:""}static isJsonPointer(t){if(N(t))return t.every(r=>typeof r=="string");if(We(t)){if(t===""||t==="#")return!0;if(t[0]==="/"||t.slice(0,2)==="#/")return!/(~[^01]|~$)/g.test(t)}return!1}static isSubPointer(t,r,i=!1,a=!1){if(!this.isJsonPointer(t)||!this.isJsonPointer(r)){if(a){let l="";this.isJsonPointer(t)||(l+=` 1: ${t}`),this.isJsonPointer(r)||(l+=` 2: ${r}`),console.error(`isSubPointer error: Invalid JSON Pointer ${l}`)}return}return t=this.compile(t,"",a),r=this.compile(r,"",a),t===r?i:`${t}/`===r.slice(0,t.length+1)}static toIndexedPointer(t,r,i=null){if(this.isJsonPointer(t)&&N(r)){let a=this.compile(t);if(Mn(i)){let l=0;return a.replace(/\/\-(?=\/|$)/g,(u,d)=>i.has(a.slice(0,d))?"/"+r[l++]:u)}else{for(let l of r)a=a.replace("/-","/"+l);return a}}this.isJsonPointer(t)||console.error(`toIndexedPointer error: Invalid JSON Pointer: ${t}`),N(r)||console.error(`toIndexedPointer error: Invalid indexArray: ${r}`)}static toGenericPointer(t,r=new Map){if(this.isJsonPointer(t)&&Mn(r)){let i=this.parse(t);for(let a=1;a<i.length;a++){let l=this.compile(i.slice(0,a));r.has(l)&&r.get(l)<=+i[a]&&(i[a]="-")}return this.compile(i)}this.isJsonPointer(t)||console.error(`toGenericPointer error: invalid JSON Pointer: ${t}`),Mn(r)||console.error(`toGenericPointer error: invalid arrayMap: ${r}`)}static toControlPointer(t,r,i=!1){let a=this.parse(t),l=[],u=r;if(a!==null){for(let d of a)if(O(u,"controls")&&(l.push("controls"),u=u.controls),N(u)&&d==="-")l.push((u.length-1).toString()),u=u[u.length-1];else if(O(u,d))l.push(d),u=u[d];else if(i){console.error(`toControlPointer error: Unable to find "${d}" item in FormGroup.`),console.error(t),console.error(r);return}else l.push(d),u={controls:{}};return this.compile(l)}console.error(`toControlPointer error: Invalid JSON Pointer: ${t}`)}static toSchemaPointer(t,r){if(this.isJsonPointer(t)&&typeof r=="object"){let i=this.parse(t);if(!i.length)return"";let a=i.shift();if(r.type==="object"||r.properties||r.additionalProperties){if((r.properties||{})[a])return`/properties/${this.escape(a)}`+this.toSchemaPointer(i,r.properties[a]);if(r.additionalProperties)return"/additionalProperties"+this.toSchemaPointer(i,r.additionalProperties)}if((r.type==="array"||r.items)&&(at(a)||a==="-"||a==="")){let l=a==="-"||a===""?0:+a;if(N(r.items)){if(l<r.items.length)return"/items/"+l+this.toSchemaPointer(i,r.items[l]);if(r.additionalItems)return"/additionalItems"+this.toSchemaPointer(i,r.additionalItems)}else{if(H(r.items))return"/items"+this.toSchemaPointer(i,r.items);if(H(r.additionalItems))return"/additionalItems"+this.toSchemaPointer(i,r.additionalItems)}}return console.error(`toSchemaPointer error: Data pointer ${t} not compatible with schema ${r}`),null}return this.isJsonPointer(t)||console.error(`toSchemaPointer error: Invalid JSON Pointer: ${t}`),typeof r!="object"&&console.error(`toSchemaPointer error: Invalid JSON Schema: ${r}`),null}static toDataPointer(t,r,i=!1){if(this.isJsonPointer(t)&&typeof r=="object"&&this.has(r,t)){let a=this.parse(t);if(!a.length)return"";let l=a.shift();if(l==="properties"||l==="items"&&N(r.items)){let u=a.shift(),d=this.toDataPointer(a,r[l][u]);return d===null?null:"/"+u+d}else if(l==="additionalItems"||l==="items"&&H(r.items)){let u=this.toDataPointer(a,r[l]);return u===null?null:"/-"+u}else if(["allOf","anyOf","oneOf"].includes(l)){let u=a.shift();return this.toDataPointer(a,r[l][u])}else{if(l==="not")return this.toDataPointer(a,r[l]);["contains","definitions","dependencies","additionalItems","additionalProperties","patternProperties","propertyNames"].includes(l)&&i&&console.error("toDataPointer error: Ambiguous location")}return""}return i&&(this.isJsonPointer(t)||console.error(`toDataPointer error: Invalid JSON Pointer: ${t}`),typeof r!="object"&&console.error(`toDataPointer error: Invalid JSON Schema: ${r}`),typeof r!="object"&&console.error(`toDataPointer error: Pointer ${t} invalid for Schema: ${r}`)),null}static parseObjectPath(t){if(N(t))return t;if(this.isJsonPointer(t))return this.parse(t);if(typeof t=="string"){let r=0,i=[];for(;r<t.length;){let a=t.indexOf(".",r),l=t.indexOf("[",r);if(a===-1&&l===-1)i.push(t.slice(r)),r=t.length;else if(a!==-1&&(a<l||l===-1))i.push(t.slice(r,a)),r=a+1;else{l>r&&(i.push(t.slice(r,l)),r=l);let u=t.charAt(l+1);if(u==='"'||u==="'"){let d=t.indexOf(u+"]",l);for(;d!==-1&&t.charAt(d-1)==="\\";)d=t.indexOf(u+"]",d+2);d===-1&&(d=t.length),i.push(t.slice(r+2,d).replace(new RegExp("\\"+u,"g"),u)),r=d+2}else{let d=t.indexOf("]",l);d===-1&&(d=t.length),i.push(t.slice(r+1,d)),r=d+1}t.charAt(r)==="."&&r++}}return i}console.error("parseObjectPath error: Input object path must be a string.")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Je({token:e,factory:e.\u0275fac})}}return e})(),NY={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^[0-2]\d:[0-5]\d:[0-5]\d(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s][0-2]\d:[0-5]\d(?::[0-5]\d)?(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i,"iso-date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s][0-2]\d:[0-5]\d(?::[0-5]\d)?(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,uri:/^(?:[a-z][a-z0-9+-.]*)(?::|\/)\/?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/\/)?[^\s]*$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,color:/^\s*(#(?:[\da-f]{3}){1,2}|rgb\((?:\d{1,3},\s*){2}\d{1,3}\)|rgba\((?:\d{1,3},\s*){3}\d*\.?\d+\)|hsl\(\d{1,3}(?:,\s*\d{1,3}%){2}\)|hsla\(\d{1,3}(?:,\s*\d{1,3}%){2},\s*\d*\.?\d+\))\s*$/gi,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$|^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,duration:/^P(?!$)(\d+Y)?(\d+M)?(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?)?$/,regex:function(e){if(/[^\\]\\Z/.test(e))return!1;try{return!0}catch{return!1}}},ka=class e{static required(n){switch(n===void 0&&(n=!0),n){case!0:return(t,r=!1)=>r||ce(t.value)?null:{required:!0};case!1:return e.nullValidator;default:return ce(n.value)?null:{required:!0}}}static type(n){return ce(n)?(t,r=!1)=>{if(ge(t.value))return null;let i=t.value,a=N(n)?n.some(l=>vE(i,l)):vE(i,n);return it(a,r)?null:{type:{requiredType:n,currentValue:i}}}:e.nullValidator}static enum(n){return N(n)?(t,r=!1)=>{if(ge(t.value))return null;let i=t.value,a=(u,d)=>u===d||at(u)&&+d==+u||Zn(u,"strict")&&ii(d,"boolean")===u||u===null&&!ce(d)||(0,hn.default)(u,d),l=N(i)?i.every(u=>n.some(d=>a(d,u))):n.some(u=>a(u,i));return it(l,r)?null:{enum:{allowedValues:n,currentValue:i}}}:e.nullValidator}static const(n){return ce(n)?(t,r=!1)=>{if(ge(t.value))return null;let i=t.value,l=((u,d)=>u===d||at(u)&&+d==+u||Zn(u,"strict")&&ii(d,"boolean")===u||u===null&&!ce(d))(n,i);return it(l,r)?null:{const:{requiredValue:n,currentValue:i}}}:e.nullValidator}static minLength(n){return ce(n)?(t,r=!1)=>{if(ge(t.value))return null;let i=We(t.value)?t.value.length:0,a=i>=n;return it(a,r)?null:{minLength:{minimumLength:n,currentLength:i}}}:e.nullValidator}static maxLength(n){return ce(n)?(t,r=!1)=>{let i=We(t.value)?t.value.length:0,a=i<=n;return it(a,r)?null:{maxLength:{maximumLength:n,currentLength:i}}}:e.nullValidator}static pattern(n,t=!1){return ce(n)?(r,i=!1)=>{if(ge(r.value))return null;let a,l;typeof n=="string"?(l=t?`^${n}$`:n,a=new RegExp(l)):(l=n.toString(),a=n);let u=r.value,d=We(u)?a.test(u):!1;return it(d,i)?null:{pattern:{requiredPattern:l,currentValue:u}}}:e.nullValidator}static format(n){return ce(n)?(t,r=!1)=>{if(ge(t.value))return null;let i,a=t.value;if(We(a)){let l=NY[n];typeof l=="object"?i=new RegExp(l.source,l.flags).test(a):typeof l=="function"?i=l(a):(console.error(`format validator error: "${n}" is not a recognized format.`),i=!0)}else i=["date","time","iso-date-time"].includes(n)&&Object.prototype.toString.call(a)==="[object Date]";return it(i,r)?null:{format:{requiredFormat:n,currentValue:a}}}:e.nullValidator}static minimum(n){return ce(n)?(t,r=!1)=>{if(ge(t.value))return null;let i=t.value,a=!at(i)||i>=n;return it(a,r)?null:{minimum:{minimumValue:n,currentValue:i}}}:e.nullValidator}static exclusiveMinimum(n){return ce(n)?(t,r=!1)=>{if(ge(t.value))return null;let i=t.value,a=!at(i)||+i<n;return it(a,r)?null:{exclusiveMinimum:{exclusiveMinimumValue:n,currentValue:i}}}:e.nullValidator}static maximum(n){return ce(n)?(t,r=!1)=>{if(ge(t.value))return null;let i=t.value,a=!at(i)||+i<=n;return it(a,r)?null:{maximum:{maximumValue:n,currentValue:i}}}:e.nullValidator}static exclusiveMaximum(n){return ce(n)?(t,r=!1)=>{if(ge(t.value))return null;let i=t.value,a=!at(i)||+i<n;return it(a,r)?null:{exclusiveMaximum:{exclusiveMaximumValue:n,currentValue:i}}}:e.nullValidator}static multipleOf(n){return ce(n)?(t,r=!1)=>{if(ge(t.value))return null;let i=t.value,a=at(i)&&i%n===0;return it(a,r)?null:{multipleOf:{multipleOfValue:n,currentValue:i}}}:e.nullValidator}static minProperties(n){return ce(n)?(t,r=!1)=>{if(ge(t.value))return null;let i=Object.keys(t.value).length||0,a=i>=n;return it(a,r)?null:{minProperties:{minimumProperties:n,currentProperties:i}}}:e.nullValidator}static maxProperties(n){return ce(n)?(t,r=!1)=>{let i=Object.keys(t.value).length||0,a=i<=n;return it(a,r)?null:{maxProperties:{maximumProperties:n,currentProperties:i}}}:e.nullValidator}static dependencies(n){return Ho(n)!=="object"||ge(n)?e.nullValidator:(t,r=!1)=>{if(ge(t.value))return null;let i=Pr(Vm(n,(a,l)=>{if(!ce(t.value[l]))return null;let u={},d,p={};Ho(n[l])==="array"?d=n[l]:Ho(n[l])==="object"&&(d=n[l].required||[],p=n[l].properties||{});for(let m of d)it(!ce(t.value[m]),r)&&(u[m]={required:!0});return u=Pr(u,Vm(p,(m,_)=>{let w=Pr(Vm(m,(x,S)=>{let b=null;if(x==="maximum"||x==="minimum"){let T=!!m["exclusiveM"+x.slice(1)];b=e[x](S,T)}else typeof e[x]=="function"&&(b=e[x](S));return qe(b)?b(t.value[_]):null}));return ge(w)?null:{[_]:w}})),ge(u)?null:{[l]:u}}));return ge(i)?null:i}}static minItems(n){return ce(n)?(t,r=!1)=>{if(ge(t.value))return null;let i=N(t.value)?t.value.length:0,a=i>=n;return it(a,r)?null:{minItems:{minimumItems:n,currentItems:i}}}:e.nullValidator}static maxItems(n){return ce(n)?(t,r=!1)=>{let i=N(t.value)?t.value.length:0,a=i<=n;return it(a,r)?null:{maxItems:{maximumItems:n,currentItems:i}}}:e.nullValidator}static uniqueItems(n=!0){return n?(t,r=!1)=>{if(ge(t.value))return null;let i=t.value.slice().sort(),a=[];for(let u=1;u<i.length;u++)i[u-1]===i[u]&&a.includes(i[u])&&a.push(i[u]);let l=!a.length;return it(l,r)?null:{uniqueItems:{duplicateItems:a}}}:e.nullValidator}static contains(n=!0){return n?(t,r=!1)=>{if(ge(t.value)||!N(t.value))return null;let i=t.value;return it(!0,r)?null:{contains:{requiredItem:n,currentItems:i}}}:e.nullValidator}static nullValidator(n){return null}static composeAnyOf(n){if(!n)return null;let t=n.filter(qe);return t.length===0?null:(r,i=!1)=>{let a=Ma(r,t,i).filter(qe),l=n.length>a.length;return it(l,i)?null:Pr(...a,{anyOf:!i})}}static composeOneOf(n){if(!n)return null;let t=n.filter(qe);return t.length===0?null:(r,i=!1)=>{let a=Ma(r,t),u=n.length-a.filter(qe).length===1;if(it(u,i))return null;let d=Ma(r,t,i);return Pr(...a,...d,{oneOf:!i})}}static composeAllOf(n){if(!n)return null;let t=n.filter(qe);return t.length===0?null:(r,i=!1)=>{let a=Lm(Ma(r,t,i));return it(a===null,i)?null:Pr(a,{allOf:!i})}}static composeNot(n){return n?(t,r=!1)=>{if(ge(t.value))return null;let i=n(t,!r);return it(i===null,r)?null:Pr(i,{not:!r})}:null}static compose(n){if(!n)return null;let t=n.filter(qe);return t.length===0?null:(r,i=!1)=>Lm(Ma(r,t,i))}static composeAsync(n){if(!n)return null;let t=n.filter(qe);return t.length===0?null:r=>{let i=xY(r,t).map(PY);return Nl.call(ky(i),Lm)}}static min(n){return ce(n)?t=>{if(ge(t.value)||ge(n))return null;let r=parseFloat(t.value),i=t.value;return isNaN(r)||r>=n?null:{min:{min:n,actual:i}}}:e.nullValidator}static max(n){return ce(n)?t=>{if(ge(t.value)||ge(n))return null;let r=parseFloat(t.value),i=t.value;return isNaN(r)||r<=n?null:{max:{max:n,actual:i}}}:e.nullValidator}static requiredTrue(n){return n?n.value===!0?null:{required:!0}:e.nullValidator}static email(n){return n?/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/.test(n.value)?null:{email:!0}:e.nullValidator}};function pn(...e){if(e=e.filter(t=>!ge(t)),e.some(t=>!H(t)))return null;let n={};for(let t of e)for(let r of Object.keys(t)){let i=n[r],a=t[r];if(!O(n,r)||(0,hn.default)(i,a))n[r]=a;else switch(r){case"allOf":if(N(i)&&N(a))n.allOf=pn(...i,...a);else return{allOf:[...e]};break;case"additionalItems":case"additionalProperties":case"contains":case"propertyNames":if(H(i)&&H(a))n[r]=pn(i,a);else if(r==="additionalProperties"&&(i===!1||a===!1))n.combinedSchema=!1;else return{allOf:[...e]};break;case"anyOf":case"oneOf":case"enum":if(N(i)&&N(a)){if(n[r]=i.filter(l=>a.findIndex(u=>(0,hn.default)(l,u))>-1),!n[r].length)return{allOf:[...e]}}else return{allOf:[...e]};break;case"definitions":if(H(i)&&H(a)){let l=ue({},i);for(let u of Object.keys(a))if(!O(l,u)||(0,hn.default)(l[u],a[u]))l[u]=a[u];else return{allOf:[...e]};n.definitions=l}else return{allOf:[...e]};break;case"dependencies":if(H(i)&&H(a)){let l=ue({},i);for(let u of Object.keys(a))if(!O(l,u)||(0,hn.default)(l[u],a[u]))l[u]=a[u];else if(N(a[u])&&N(l[u]))l[u]=pc(...l[u],...a[u]);else if((N(a[u])||H(a[u]))&&(N(l[u])||H(l[u]))){let d=N(n.required)?n.required:[],p=N(l[u])?{required:pc(...d,l[u])}:l[u],m=N(a[u])?{required:pc(...d,a[u])}:a[u];l[u]=pn(p,m)}else return{allOf:[...e]};n.dependencies=l}else return{allOf:[...e]};break;case"items":if(N(i)&&N(a)){if(n.items=i.filter(l=>a.findIndex(u=>(0,hn.default)(l,u))>-1),!n.items.length)return{allOf:[...e]}}else if(H(i)&&H(a))n.items=pn(i,a);else if(N(i)&&H(a))n.items=i.map(l=>pn(l,a));else if(H(i)&&N(a))n.items=a.map(l=>pn(l,i));else return{allOf:[...e]};break;case"multipleOf":if(at(i)&&at(a)){let l=(d,p)=>p?l(p,d%p):d,u=(d,p)=>d*p/l(d,p);n.multipleOf=u(i,a)}else return{allOf:[...e]};break;case"maximum":case"exclusiveMaximum":case"maxLength":case"maxItems":case"maxProperties":if(at(i)&&at(a))n[r]=Math.min(i,a);else return{allOf:[...e]};break;case"minimum":case"exclusiveMinimum":case"minLength":case"minItems":case"minProperties":if(at(i)&&at(a))n[r]=Math.max(i,a);else return{allOf:[...e]};break;case"not":if(H(i)&&H(a)){let l=[i,a].reduce((u,d)=>N(d.anyOf)&&Object.keys(d).length===1?[...u,...d.anyOf]:[...u,d],[]);n.not={anyOf:l}}else return{allOf:[...e]};break;case"patternProperties":if(H(i)&&H(a)){let l=ue({},i);for(let u of Object.keys(a))if(!O(l,u)||(0,hn.default)(l[u],a[u]))l[u]=a[u];else if(H(a[u])&&H(l[u]))l[u]=pn(l[u],a[u]);else return{allOf:[...e]};n.patternProperties=l}else return{allOf:[...e]};break;case"properties":if(H(i)&&H(a)){let l=ue({},i);O(a,"additionalProperties")&&Object.keys(i).filter(u=>!Object.keys(a).includes(u)).forEach(u=>{a.additionalProperties===!1?delete l[u]:H(a.additionalProperties)&&(l[u]=pn(l[u],a.additionalProperties))});for(let u of Object.keys(a))if((0,hn.default)(l[u],a[u])||!O(l,u)&&!O(l,"additionalProperties"))l[u]=a[u];else if(!O(l,u)&&O(l,"additionalProperties"))H(l.additionalProperties)&&(l[u]=pn(l.additionalProperties,a[u]));else if(H(a[u])&&H(l[u]))l[u]=pn(l[u],a[u]);else return{allOf:[...e]};n.properties=l}else return{allOf:[...e]};break;case"required":if(N(i)&&N(a))n.required=pc(...i,...a);else if(typeof a=="boolean"&&typeof i=="boolean")n.required=!!i||!!a;else return{allOf:[...e]};break;case"$schema":case"$id":case"id":break;case"title":case"description":case"$comment":n[r]=a;break;case"type":if((N(a)||We(a))&&(N(i)||We(i))){let l=MY(i,a);if(!l.length)return{allOf:[...e]};n.type=l.length>1?l:l[0]}else return{allOf:[...e]};break;case"uniqueItems":n.uniqueItems=!!i||!!a;break;default:return{allOf:[...e]}}}return n}function Wm(e,n=!1,t=!0){let r={},i=l=>{let u=Ho(l,"strict");return{integer:"number",null:"string"}[u]||u},a=l=>Wm(l,n,!1);if(t&&(r.$schema="http://json-schema.org/draft-06/schema#"),r.type=i(e),r.type==="object"){r.properties={},n&&(r.required=[]);for(let l of Object.keys(e))r.properties[l]=a(e[l]),n&&r.required.push(l)}else r.type==="array"&&(r.items=e.map(a),new Set(e.map(i)).size===1&&(r.items=r.items.reduce((l,u)=>ue(ue({},l),u),{})),n&&(r.minItems=1));return r}function kY(e,n,t="schema"){let r=M.parse(n);if(r===null)return console.error(`getFromSchema error: Invalid JSON Pointer: ${n}`),null;let i=e,a=[],l=r.length;t.slice(0,6)==="parent"&&r.length--;for(let u=0;u<l;++u){let d=i,p=r[u],m=!1;if(typeof i!="object")return console.error(`getFromSchema error: Unable to find "${p}" key in schema.`),console.error(e),console.error(n),null;if(i.type==="array"&&(!isNaN(p)||p==="-")?(O(i,"items")&&(H(i.items)?(m=!0,i=i.items,a.push("items")):N(i.items)&&!isNaN(p)&&i.items.length>=+p&&(m=!0,i=i.items[+p],a.push("items",p))),!m&&H(i.additionalItems)?(m=!0,i=i.additionalItems,a.push("additionalItems")):i.additionalItems!==!1&&(m=!0,i={},a.push("additionalItems"))):i.type==="object"&&(H(i.properties)&&O(i.properties,p)?(m=!0,i=i.properties[p],a.push("properties",p)):H(i.additionalProperties)?(m=!0,i=i.additionalProperties,a.push("additionalProperties")):i.additionalProperties!==!1&&(m=!0,i={},a.push("additionalProperties"))),!m){console.error(`getFromSchema error: Unable to find "${p}" item in schema.`),console.error(e),console.error(n);return}}return t.slice(-7)==="Pointer"?a:i}function Nt(e,n,t=new Map){if(!e)return"";let r=M.toGenericPointer(M.compile(e),t);if(r.indexOf("/")===-1)return r;let i=!0;for(;i;)i=!1,n.forEach((a,l)=>{if(M.isSubPointer(a,l))for(;M.isSubPointer(l,r,!0);)r=M.toGenericPointer(a+r.slice(l.length),t),i=!0});return r}function Gm(e,n=null){let t=M.getFirst([[e,"/x-schema-form/type"],[e,"/x-schema-form/widget/component"],[e,"/x-schema-form/widget"],[e,"/widget/component"],[e,"/widget"]]);if(We(t))return Km(t,e,n);let r=e.type;if(r){if(N(r)&&(r=ft("object",r)&&O(e,"properties")?"object":ft("array",r)&&O(e,"items")||ft("array",r)&&O(e,"additionalItems")?"array":ft("string",r)?"string":ft("number",r)?"number":ft("integer",r)?"integer":ft("boolean",r)?"boolean":"unknown"),r==="boolean")return"checkbox";if(r==="object"){if(O(e,"properties")||O(e,"additionalProperties"))return"section";if(O(e,"$ref"))return"$ref"}if(r==="array"){let i=M.getFirst([[e,"/items"],[e,"/additionalItems"]])||{};return O(i,"enum")&&e.maxItems!==1?Km("checkboxes",e,n):"array"}if(r==="null")return"none";if(M.has(n,"/options/titleMap")||O(e,"enum")||Jm(e,null,!0))return"select";if(r==="number"||r==="integer")return(r==="integer"||O(e,"multipleOf"))&&O(e,"maximum")&&O(e,"minimum")?"range":r;if(r==="string")return{color:"color",date:"date","iso-date-time":"datetime-local",email:"email",uri:"url"}[e.format]||"text"}return O(e,"$ref")?"$ref":N(e.oneOf)?"one-of":O(e,"if")?"if":O(e,"then")?"then":O(e,"else")?"else":(console.error(`getInputType error: Unable to determine input type for ${r}`),console.error("schema",e),n&&console.error("layoutNode",n),"none")}function Km(e,n,t=null){return!We(e)||e.slice(0,8)!=="checkbox"&&e.slice(0,5)!=="radio"?e:M.getFirst([[t,"/inline"],[t,"/options/inline"],[n,"/inline"],[n,"/x-schema-form/inline"],[n,"/x-schema-form/options/inline"],[n,"/x-schema-form/widget/inline"],[n,"/x-schema-form/widget/component/inline"],[n,"/x-schema-form/widget/component/options/inline"],[n,"/widget/inline"],[n,"/widget/component/inline"],[n,"/widget/component/options/inline"]])===!0?e.slice(0,5)==="radio"?"radios-inline":"checkboxes-inline":e}function _c(e,n){if(!H(e))return console.error("isInputRequired error: Input schema must be an object."),!1;let t=M.parse(n);if(N(t)){if(!t.length)return e.required===!0;let r=t.pop(),i=t[t.length-1];["properties","additionalProperties","patternProperties","items","additionalItems"].includes(i)&&t.pop();let a=M.get(e,t)||{};if(N(a.required))return a.required.includes(r);if(a.type==="array")return O(a,"minItems")&&at(r)&&+a.minItems>+r}return!1}function Na(e,n,t){if(!H(e)||!H(e.options))return;let r={},i=a=>a.slice(0,3).toLowerCase()==="ui:"?a.slice(3):a;if(bE(r,t.formOptions.defaultWidgetOptions,[],i),[[M.get(n,"/ui:widget/options"),[]],[M.get(n,"/ui:widget"),[]],[n,["additionalProperties","additionalItems","properties","items","required","type","x-schema-form","$ref"]],[M.get(n,"/x-schema-form/options"),[]],[M.get(n,"/x-schema-form"),["items","options"]],[e,["_id","$ref","arrayItem","arrayItemType","dataPointer","dataType","items","key","name","options","recursiveReference","type","widget"]],[e.options,[]]].forEach(([a,l])=>bE(r,a,l,i)),!O(r,"titleMap")){let a=null;a=Jm(n,r.flatList),a&&(r.titleMap=a),!O(r,"titleMap")&&!O(r,"enum")&&O(n,"items")&&(M.has(n,"/items/titleMap")?r.titleMap=n.items.titleMap:M.has(n,"/items/enum")?(r.enum=n.items.enum,!O(r,"enumNames")&&M.has(n,"/items/enumNames")&&(r.enumNames=n.items.enumNames)):M.has(n,"/items/oneOf")&&(a=Jm(n.items,r.flatList),a&&(r.titleMap=a)))}n.type==="integer"&&!ce(r.multipleOf)&&(r.multipleOf=1),M.has(r,"/autocomplete/source")?r.typeahead=r.autocomplete:M.has(r,"/tagsinput/source")?r.typeahead=r.tagsinput:M.has(r,"/tagsinput/typeahead/source")&&(r.typeahead=r.tagsinput.typeahead),e.options=r}function Jm(e={},n=null,t=!1){let r=null,i=e.oneOf||e.anyOf||null;if(N(i)&&i.every(a=>a.title)){if(i.every(a=>N(a.enum)&&a.enum.length===1)){if(t)return!0;r=i.map(a=>({name:a.title,value:a.enum[0]}))}else if(i.every(a=>a.const)){if(t)return!0;r=i.map(a=>({name:a.title,value:a.const}))}if(n!==!1&&(r||[]).filter(a=>((a||{}).name||"").indexOf(": ")).length>1){let a=r.map(l=>{let[u,d]=l.name.split(/: (.+)/);return u&&d?Ke(ue({},l),{group:u,name:d}):l});(n===!0||a.some((l,u)=>u&&O(l,"group")&&l.group===a[u-1].group))&&(r=a)}}return t?!1:r}function AY(e){if(!H(e))return null;let n={};if(O(e,"type"))switch(e.type){case"string":en(["pattern","format","minLength","maxLength"],t=>{O(e,t)&&(n[t]=[e[t]])});break;case"number":case"integer":en(["Minimum","Maximum"],t=>{let r="exclusive"+t,i=t.toLowerCase();if(O(e,i)){let a=O(e,r)&&e[r]===!0;n[i]=[e[i],a]}}),en(["multipleOf","type"],t=>{O(e,t)&&(n[t]=[e[t]])});break;case"object":en(["minProperties","maxProperties","dependencies"],t=>{O(e,t)&&(n[t]=[e[t]])});break;case"array":en(["minItems","maxItems","uniqueItems"],t=>{O(e,t)&&(n[t]=[e[t]])});break}return O(e,"enum")&&(n.enum=[e.enum]),n}function FY(e,n,t,r,i){if(!H(e)){console.error("resolveSchemaReferences error: schema must be an object.");return}let a=new Set,l=new Set,u=new Map,d=new Map,p={};M.forEachDeep(e,(w,x)=>{if(O(w,"$ref")&&We(w.$ref)){let S=M.compile(w.$ref);a.add(S),l.add(x+"~~"+S),u.set(x,S)}}),a.forEach(w=>p[w]=yc(e,w));let m=!0;for(;m;)m=!1,Array.from(u).forEach(([w,x])=>Array.from(u).filter(([S,b])=>M.isSubPointer(x,S,!0)&&!M.isSubPointer(b,x,!0)&&!l.has(w+S.slice(x.length)+"~~"+b)).forEach(([S,b])=>{l.add(w+S.slice(x.length)+"~~"+b),m=!0}));Array.from(l).map(w=>w.split("~~")).filter(([w,x])=>M.isSubPointer(x,w)).forEach(([w,x])=>d.set(w,x)),Array.from(u).filter(([w,x])=>Array.from(d.keys()).every(S=>!M.isSubPointer(w,S,!0))).forEach(([w,x])=>Array.from(d).filter(([S,b])=>!d.has(w+S.slice(x.length))&&M.isSubPointer(x,S,!0)&&!M.isSubPointer(x,w,!0)).forEach(([S,b])=>d.set(w+S.slice(x.length),w+b.slice(x.length))));let _=ue({},e);return delete _.definitions,_=yc(_,"",p,d),M.forEachDeep(_,(w,x)=>{if(We(w.$ref)){let S=M.compile(w.$ref);M.isSubPointer(S,x,!0)||(S=Nt(x,d),M.set(_,x,{$ref:`#${S}`})),O(n,"refPointer")||(n[S]=S.length?yc(_,S,n,d):_),t.has(x)||t.set(x,S);let b=M.toDataPointer(x,_);if(!r.has(b)){let T=M.toDataPointer(S,_);r.set(b,T)}}if(w.type==="array"&&(O(w,"items")||O(w,"additionalItems"))){let S=M.toDataPointer(x,_);if(!i.has(S)){let b=N(w.items)?w.items.length:0;i.set(S,b)}}},!0),_}function yc(e,n,t=null,r=null,i=[]){if(!t||!r)return M.getCopy(e,n);typeof n!="string"&&(n=M.compile(n)),i=[...i,n];let a=null;if(n==="")a=(0,we.default)(e);else{let l=Nt(n,r);l!==n&&(i=[...i,l]),a=M.getFirstCopy([[t,[l]],[e,n],[e,l]])}return M.forEachDeepCopy(a,(l,u)=>{if(H(l)){if(We(l.$ref)){let d=M.compile(l.$ref);if(d.length&&i.every(p=>!M.isSubPointer(d,p,!0))){let p=yc(e,d,t,r,i);if(Object.keys(l).length===1)return p;{let m=ue({},l);return delete m.$ref,pn(p,m)}}}if(N(l.allOf))return jY(l);if(l.type==="array"&&N(l.required))return LY(l)}return l},!0,n)}function qY(e,n){return e.map(t=>(0,xE.default)(t,n))}function jY(e){if(!H(e)||!N(e.allOf))return e;let n=e.allOf.map(i=>i.if&&i).filter(i=>!(0,zt.isEmpty)(i)),t=qY(e.allOf,["if","then","else"]),r=pn(...t);if(Object.keys(e).length>1){let i=ue({},e);delete i.allOf,r=pn(i,r),n&&n.length>0&&(r.allOf=r.allOf||[],r.allOf.push(...n))}return r}function LY(e){if(e.type==="array"&&N(e.required)){let n=O(e.items,"properties")?"items":O(e.additionalItems,"properties")?"additionalItems":null;n&&!O(e[n],"required")&&(O(e[n],"additionalProperties")||e.required.every(t=>O(e[n].properties,t)))&&(e=(0,we.default)(e),e[n].required=e.required,delete e.required)}return e}function wE(e,n,t=!1){let r="",i={},a=t?"!":"",l=n.dataPointer?n.dataPointer.split("/").slice(1,-1).map((p,m)=>{let _=m==0?"":".";return p=="-"?"[arrayIndices]":_+p}).join(""):"",u=l?`model.${l}`:"model",d=u.split(".").map((p,m,_)=>_.slice(0,m+1).join(".")).join(" && ");return e.if&&Object.keys(e.if.properties).forEach((p,m)=>{let _=m>0?"&":"",x=(O(e.if.properties[p],"const")?[e.if.properties[p].const]:O(e.if.properties[p],"enum")?e.if.properties[p].enum:[]).map(S=>`"${S}"`);r+=`${_} ${d} && [${x}].includes(${u}.${p}+"")`}),i.functionBody=`return ${a}(${r})`,i}function Vo(e,n={}){let t=n.draft||null,r=n.changed||!1;if(typeof e!="object")return e;if(typeof e.map=="function")return[...e.map(l=>Vo(l,{changed:r,draft:t}))];let i=ue({},e),a=["array","boolean","integer","null","number","object","string"];if(typeof i.$schema=="string"&&/http\:\/\/json\-schema\.org\/draft\-0\d\/schema\#/.test(i.$schema)&&(t=i.$schema[30]),i.contentEncoding&&(i.media={binaryEncoding:i.contentEncoding},delete i.contentEncoding,r=!0),typeof i.extends=="object"&&(i.allOf=typeof i.extends.map=="function"?i.extends.map(l=>Vo(l,{changed:r,draft:t})):[Vo(i.extends,{changed:r,draft:t})],delete i.extends,r=!0),i.disallow&&(typeof i.disallow=="string"?i.not={type:i.disallow}:typeof i.disallow.map=="function"&&(i.not={anyOf:i.disallow.map(l=>typeof l=="object"?l:{type:l})}),delete i.disallow,r=!0),typeof i.dependencies=="object"&&Object.keys(i.dependencies).some(l=>typeof i.dependencies[l]=="string")&&(i.dependencies=ue({},i.dependencies),Object.keys(i.dependencies).filter(l=>typeof i.dependencies[l]=="string").forEach(l=>i.dependencies[l]=[i.dependencies[l]]),r=!0),typeof i.maxDecimal=="number"&&(i.multipleOf=1/Math.pow(10,i.maxDecimal),delete i.divisibleBy,r=!0,(!t||t===2)&&(t=1)),typeof i.divisibleBy=="number"&&(i.multipleOf=i.divisibleBy,delete i.divisibleBy,r=!0),typeof i.minimum=="number"&&i.minimumCanEqual===!1?(i.exclusiveMinimum=i.minimum,delete i.minimum,r=!0,t||(t=2)):typeof i.minimumCanEqual=="boolean"&&(delete i.minimumCanEqual,r=!0,t||(t=2)),typeof i.minimum=="number"&&i.exclusiveMinimum===!0?(i.exclusiveMinimum=i.minimum,delete i.minimum,r=!0):typeof i.exclusiveMinimum=="boolean"&&(delete i.exclusiveMinimum,r=!0),typeof i.maximum=="number"&&i.maximumCanEqual===!1?(i.exclusiveMaximum=i.maximum,delete i.maximum,r=!0,t||(t=2)):typeof i.maximumCanEqual=="boolean"&&(delete i.maximumCanEqual,r=!0,t||(t=2)),typeof i.maximum=="number"&&i.exclusiveMaximum===!0?(i.exclusiveMaximum=i.maximum,delete i.maximum,r=!0):typeof i.exclusiveMaximum=="boolean"&&(delete i.exclusiveMaximum,r=!0),typeof i.properties=="object"){let l=ue({},i.properties),u=Array.isArray(i.required)?new Set(i.required):new Set;if((t===1||t===2||Object.keys(l).some(d=>l[d].optional===!0))&&(Object.keys(l).filter(d=>l[d].optional!==!0).forEach(d=>u.add(d)),r=!0,t||(t=2)),Object.keys(l).some(d=>l[d].required===!0)&&(Object.keys(l).filter(d=>l[d].required===!0).forEach(d=>u.add(d)),r=!0),u.size&&(i.required=Array.from(u)),Object.keys(l).some(d=>l[d].requires)){let d=typeof i.dependencies=="object"?ue({},i.dependencies):{};Object.keys(l).filter(p=>l[p].requires).forEach(p=>d[p]=typeof l[p].requires=="string"?[l[p].requires]:l[p].requires),i.dependencies=d,r=!0,t||(t=2)}i.properties=l}if(typeof i.optional=="boolean"&&(delete i.optional,r=!0,t||(t=2)),i.requires&&delete i.requires,typeof i.required=="boolean"&&delete i.required,typeof i.id=="string"&&!i.$id&&(i.id.slice(-1)==="#"&&(i.id=i.id.slice(0,-1)),i.$id=i.id+"-CONVERTED-TO-DRAFT-06#",delete i.id,r=!0),i.type&&(typeof i.type.every=="function"?!i.type.every(l=>a.includes(l)):!a.includes(i.type))&&(r=!0),typeof i.$schema=="string"&&/http\:\/\/json\-schema\.org\/draft\-0[1-4]\/schema\#/.test(i.$schema))i.$schema="http://json-schema.org/draft-06/schema#",r=!0;else if(r&&typeof i.$schema=="string"){let l="Converted to draft 6 from "+i.$schema;typeof i.description=="string"&&i.description.length?i.description+=`
31
+ `+l:i.description=l,delete i.$schema}if(i.type&&(typeof i.type.every=="function"?!i.type.every(l=>a.includes(l)):!a.includes(i.type)))if(i.type.length===1&&(i.type=i.type[0]),typeof i.type=="string")i.type==="any"?i.type=a:delete i.type;else if(typeof i.type=="object"){if(typeof i.type.every=="function")if(i.type.every(l=>typeof l=="string"))i.type=i.type.some(l=>l==="any")?i.type=a:i.type.filter(l=>a.includes(l));else if(i.type.length>1){let l=["additionalItems","items","maxItems","minItems","uniqueItems","contains"],u=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"],d=["maxProperties","minProperties","required","additionalProperties","properties","patternProperties","dependencies","propertyNames"],p=["maxLength","minLength","pattern","format"],m={array:[...u,...d,...p],integer:[...l,...d,...p],number:[...l,...d,...p],object:[...l,...u,...p],string:[...l,...u,...d],all:[...l,...u,...d,...p]},_=[];for(let w of i.type){let x=typeof w=="string"?{type:w}:ue({},w);Object.keys(i).filter(S=>!x.hasOwnProperty(S)&&![...m[x.type]||m.all,"type","default"].includes(S)).forEach(S=>x[S]=i[S]),_.push(x)}i=i.hasOwnProperty("default")?{anyOf:_,default:i.default}:{anyOf:_}}else{let l=i.type;delete i.type,Object.assign(i,l)}}else delete i.type;return Object.keys(i).filter(l=>typeof i[l]=="object").forEach(l=>{if(["definitions","dependencies","properties","patternProperties"].includes(l)&&typeof i[l].map!="function"){let u={};Object.keys(i[l]).forEach(d=>u[d]=Vo(i[l][d],{changed:r,draft:t})),i[l]=u}else["items","additionalItems","additionalProperties","allOf","anyOf","oneOf","not"].includes(l)?i[l]=Vo(i[l],{changed:r,draft:t}):i[l]=(0,we.default)(i[l])}),i}function oi(e){return e.replace(/\//g,"$")}function dn(e,n=null,t=!0,r="",i="",a=""){let l=M.get(e.schema,r);t?!qe(n)&&(e.formOptions.setSchemaDefaults===!0||e.formOptions.setSchemaDefaults==="auto"&&ge(e.formValues))&&(n=M.get(e.schema,r+"/default")):n=null;let u=M.get(l,"/type"),p=(O(l,"if")||O(l,"then")||O(l,"else"))&&!u?"IfThenElse":(O(l,"properties")||O(l,"additionalProperties"))&&u==="object"?"FormGroup":(O(l,"items")||O(l,"additionalItems"))&&u==="array"?"FormArray":!u&&O(l,"$ref")?"$ref":"FormControl",m=Nt(i,e.dataRecursiveRefMap,e.arrayMap);e.dataMap.has(m)||e.dataMap.set(m,new Map);let _=e.dataMap.get(m);_.has("schemaType")||(_.set("schemaPointer",r),_.set("schemaType",l.type),l.format&&(_.set("schemaFormat",l.format),l.type||_.set("schemaType","string")),p&&(_.set("templatePointer",a),_.set("templateType",p)));let w,x=AY(l);switch(p){case"FormGroup":if(w={},O(l,"ui:order")||O(l,"properties")){let W=l["ui:order"]||Object.keys(l.properties);if(W.includes("*")&&!O(l.properties,"*")){let G=Object.keys(l.properties).filter(ne=>!W.includes(ne));for(let ne=W.length-1;ne>=0;ne--)W[ne]==="*"&&W.splice(ne,1,...G)}W.filter(G=>O(l.properties,G)||O(l,"additionalProperties")).forEach(G=>{w[G]=dn(e,M.get(n,[G]),t,r+(O(l.properties,G)?"/properties/"+G:"/additionalProperties"),i+"/"+G,a+"/controls/"+G),["allOf","anyOf","oneOf"].forEach(ne=>{w[G].controls&&w[G].controls[`_${ne}`]&&(Object.keys(w[G].controls[`_${ne}`]).forEach(de=>{w[de]=w[G].controls[`_${ne}`][de],delete w[G].controls[de]}),delete w[G].controls[`_${ne}`])})}),O(l,"if")&&["then","else"].forEach(G=>{if(O(l,G)){let ne=`/${G}`,de=dn(e,n,t,r+ne,i,a+`/controls/${G}`);Object.assign(w,de.controls)}});let z=["allOf","anyOf","oneOf","if","then","else","type","properties","items"];["allOf","anyOf","oneOf"].forEach(G=>{O(l,G)&&N(l[G])&&l[G].forEach((ne,de)=>{let Ne=Object.keys(ne),He=z.filter(ot=>Ne.includes(ot));if(He&&He.length>0){let ot=`/${G}/${de}`,Xn=n;G=="oneOf"&&(Xn=n);let mn=dn(e,Xn,t,r+ot,i,a+"/controls/"+de);mn.controls&&Object.keys(mn.controls).forEach(Ot=>{let Va=O(l,"properties")?"/properties/"+Ot:Ot,dr=mn.controls[Ot].schemaPointer||`${r}${ot}${Va}`;dr=oi(dr);let lt=(0,we.default)(mn.controls[Ot]);lt.key=Ot,lt.schemaPointer=lt.schemaPointer||`${r}${ot}${Va}`,w[dr]=lt;let eg=Ot.startsWith("$oneOf")?lt.schemaPointer:ot,za=M.get(e.schema,lt.schemaPointer),si=lt.schemaPointer.replace(/(anyOf|allOf|oneOf|none)\/[\d]+\//g,"").replace(/(if|then|else|properties)\//g,"").replace(/\/items\//g,"/-/");si=si.indexOf(i)==0?si.substring(i.length):si;let Rr=M.get(n,si),Li=Ot,Wo=Rr;O(lt,"value")&&(e.ajv.validate(za,Wo)?lt.value.value=za.properties?Wo[Li]:Wo:lt.value.value=null),w[`_${G}`]=w[`_${G}`]||{},w[`_${G}`][dr]=lt})}})}),e.formOptions.fieldsRequired=VY(l,w)}return{controlType:p,controls:w,validators:x,schemaPointer:r};case"FormArray":w=[];let S=Math.max(l.minItems||0,_.get("minItems")||0),b=Math.min(l.maxItems||1e3,_.get("maxItems")||1e3),T=null;if(N(l.items)){let W=_.get("tupleItems")||(N(l.items)?Math.min(l.items.length,b):0);for(let z=0;z<W;z++)if(z<S)w.push(dn(e,N(n)?n[z]:n,t,r+"/items/"+z,i+"/"+z,a+"/controls/"+z));else{let G=Nt(r+"/items/"+z,e.schemaRecursiveRefMap),ne=Nt(m+"/"+z,e.dataRecursiveRefMap,e.arrayMap),de=ne!==m+"/"+z,Ne=`${ne}@${r}`,He=ne;O(e.templateRefLibrary,ne)&&!O(e.templateRefLibrary,Ne)&&(e.templateRefLibrary[Ne]=dn(e,null,t,G,ne,a+"/controls/"+z),He=Ne),O(e.templateRefLibrary,ne)||(e.templateRefLibrary[ne]=null,e.templateRefLibrary[ne]=dn(e,null,t,G,ne,a+"/controls/"+z),e.templateRefLibrary[Ne]=e.templateRefLibrary[ne]),w.push(N(n)?dn(e,n[z],t,r+"/items/"+z,i+"/"+z,a+"/controls/"+z):de?null:(0,we.default)(e.templateRefLibrary[He]))}l.items.length<b&&H(l.additionalItems)&&(T=r+"/additionalItems")}else T=r+"/items";if(T){let W=Nt(T,e.schemaRecursiveRefMap),z=Nt(m+"/-",e.dataRecursiveRefMap,e.arrayMap),G=z!==m+"/-",ne=`${z}@${r}`,de=z;O(e.templateRefLibrary,z)&&!O(e.templateRefLibrary,ne)&&(e.templateRefLibrary[ne]=dn(e,null,t,W,z,a+"/controls/-"),de=ne),O(e.templateRefLibrary,z)||(e.templateRefLibrary[z]=null,e.templateRefLibrary[z]=dn(e,null,t,W,z,a+"/controls/-"),e.templateRefLibrary[ne]=e.templateRefLibrary[z]);let Ne=_;if(!G||O(x,"required")){let He=Math.min(Math.max(G?0:Ne.get("tupleItems")+Ne.get("listItems")||0,N(n)?n.length:0),b);for(let ot=w.length;ot<He;ot++)w.push(N(n)?dn(e,n[ot],t,W,i+"/-",a+"/controls/-"):G?null:(0,we.default)(e.templateRefLibrary[de]))}}return{controlType:p,controls:w,validators:x,schemaPointer:r};case"$ref":let R=M.compile(l.$ref),Q=M.toDataPointer(R,l),K=Nt(Q,e.dataRecursiveRefMap,e.arrayMap);if(K&&!O(e.templateRefLibrary,K)){e.templateRefLibrary[K]=null;let W=dn(e,t,t,R);W?e.templateRefLibrary[K]=W:delete e.templateRefLibrary[K]}return null;case"FormControl":let J={value:t&&IY(n)?n:null,disabled:_.get("disabled")||!1};return{controlType:p,value:J,validators:x,schemaPointer:r};case"IfThenElse":w={};let A;return O(l,"if")&&["then","else"].forEach(W=>{if(O(l,W)){let z=`/${W}`,G=dn(e,n,t,r+z,i,a+`/controls/${W}`);O(G,"controls")&&Object.keys(G.controls).forEach(ne=>{let de=G.controls[ne].schemaPointer;if(de){de=oi(de);let Ne=Object.assign({},G.controls[ne]);w[de]=Ne}})}}),{controlType:p,controls:w,validators:x,schemaPointer:r};default:return null}}function Aa(e){let n=[],t=null;if(O(e,"validators")&&(en(e.validators,(r,i)=>{typeof ka[i]=="function"&&n.push(ka[i].apply(null,r))}),n.length&&ft(e.controlType,["FormGroup","FormArray"])&&(t=n.length>1?ka.compose(n):n[0])),O(e,"controlType"))switch(e.controlType){case"FormGroup":let r={};return en(e.controls,(i,a)=>{let l=Aa(i);l&&(r[a]=l)}),new Qy(r,t);case"FormArray":return new i0((0,IE.default)((0,CE.default)(e.controls,i=>Aa(i))),t);case"FormControl":return new t0(e.value,n)}return null}function VY(e,n){let t=!1;if(O(e,"required")&&!ge(e.required)){t=!0;let r=N(e.required)?e.required:[e.required];r=en(r,i=>M.set(n,"/"+i+"/validators/required",[]))}return t}function zY(e,n,t,r,i=!1,a=!1){if(e===null||typeof e!="object")return e;let l=N(e)?[]:{};return M.forEachDeep(e,(u,d)=>{if(i&&N(u))M.set(l,d,[]);else if(i&&H(u)&&!Bo(u))M.set(l,d,{});else{let p=M.has(n,[d,"schemaType"])?d:Nt(d,t,r);if(M.has(n,[p,"schemaType"])){let m=n.get(p).get("schemaType");if(m==="null")M.set(l,d,null);else if((ce(u)||i)&&ft(m,["string","integer","number","boolean"])){let _=a||u===null&&i?SY(u,m):ii(u,m);(qe(_)||i)&&M.set(l,d,_)}}else if(typeof u!="object"||Bo(u)||u===null&&i){if(p.indexOf("/$")>=0)return l;console.error(`formatFormData error: Schema type not found for form value at ${p}`),console.error("dataMap",n),console.error("recursiveRefMap",t),console.error("genericPointer",p)}}}),l}function hc(e,n,t=!1,r){if(!H(e)||!M.isJsonPointer(n)){if(!M.isJsonPointer(n)){if(typeof n=="string"){let l=r?oi(r):n,u=e.get(l);if(u)return u}console.error(`getControl error: Invalid JSON Pointer: ${n}`)}return H(e)||console.error(`getControl error: Invalid formGroup: ${e}`),null}let i=M.parse(n);if(t&&(i=i.slice(0,-1)),typeof e.get=="function"&&i.every(l=>l.indexOf(".")===-1)){let l=r?oi(r):i.join("."),u=e.get(l);if(u)return u}let a=e;if(r){let l=M.toControlPointer(n,{}),u=r.split("/"),d=M.parse(n),p,m;for(;u.length>0;){p=u.pop();let _=oi(u.join("/"));if(m=e.get(_),d[0]==u[u.length-1]&&d.shift(),m)break}a=m||a,i=m?d:i}for(let l of i){if(O(a,"controls")&&(a=a.controls),r&&O(a,oi(r)))return a=a[oi(r)],a;if(N(a)&&l==="-")a=a[a.length-1];else if(O(a,l))a=a[l];else{console.error(`getControl error: Unable to find "${l}" item in FormGroup.`),console.error(n),console.error(e);return}}return a}function HY(e,n,t,r){let i=M.parse(n),a=e;for(let u=0;u<i.length-1;u++)if(a=a.get(i[u]),typeof a.setControl!="function")throw new Error(`Path '${i[u]}' is not a valid FormGroup or FormArray.`);let l=i[i.length-1];a.setControl(l,t)}function BY(e,n){let t=!M.get(e,"/formOptions/addSubmit"),r=TE(e.layout,(i,a,l)=>{let u={_id:(0,Er.default)(),options:{}};if(H(i))Object.assign(u,i),Object.keys(u).filter(p=>!ft(p,["_id","$ref","arrayItem","arrayItemType","dataPointer","dataType","items","key","name","options","recursiveReference","type","widget"])).forEach(p=>{u.options[p]=u[p],delete u[p]}),!O(u,"type")&&We(u.widget)&&(u.type=u.widget,delete u.widget),O(u.options,"title")||O(u.options,"legend")&&(u.options.title=u.options.legend,delete u.options.legend),O(u.options,"validationMessages")||(O(u.options,"errorMessages")?(u.options.validationMessages=u.options.errorMessages,delete u.options.errorMessages):O(u.options,"validationMessage")&&(typeof u.options.validationMessage=="string"?u.options.validationMessages=u.options.validationMessage:(u.options.validationMessages={},Object.keys(u.options.validationMessage).forEach(p=>{let m=p+"",_=m==="0"?"type":m==="1"?"enum":m==="100"?"multipleOf":m==="101"?"minimum":m==="102"?"exclusiveMinimum":m==="103"?"maximum":m==="104"?"exclusiveMaximum":m==="200"?"minLength":m==="201"?"maxLength":m==="202"?"pattern":m==="300"?"minProperties":m==="301"?"maxProperties":m==="302"?"required":m==="304"?"dependencies":m==="400"?"minItems":m==="401"?"maxItems":m==="402"?"uniqueItems":m==="500"?"format":m+"";u.options.validationMessages[_]=u.options.validationMessage[p]})),delete u.options.validationMessage));else if(M.isJsonPointer(i))u.dataPointer=i;else if(We(i))u.key=i;else return console.error("buildLayout error: Form layout element not recognized:"),console.error(i),null;let d=null;if(!O(u,"dataPointer")){if(O(u,"key"))u.dataPointer=u.key==="*"?u.key:M.compile(M.parseObjectPath(u.key),"-"),delete u.key;else if(O(u,"type")&&u.type.slice(-5)==="array"){let p=_=>{if(!(_===null||typeof _!="object")){if(O(_,"dataPointer"))return _.dataPointer;if(N(_.items))for(let w of _.items){if(O(w,"dataPointer")&&w.dataPointer.indexOf("/-")!==-1)return w.dataPointer;if(O(w,"items")){let x=p(w);if(x)return x}}}},m=p(u);m&&(u.dataPointer=m.slice(0,m.lastIndexOf("/-")))}}if(O(u,"dataPointer")){if(u.dataPointer==="*")return fn(e,n,e.formValues);let p=M.get(e.formValues,u.dataPointer.replace(/\/-/g,"/1"));u.dataPointer=M.toGenericPointer(u.dataPointer,e.arrayMap);let m=M.toKey(u.dataPointer);!u.name&&We(m)&&m!=="-"&&(u.name=m);let _=Nt(u.dataPointer,e.dataRecursiveRefMap,e.arrayMap),w=!_.length||_!==u.dataPointer,x;e.dataMap.has(_)||e.dataMap.set(_,new Map);let S=e.dataMap.get(_);if(S.has("schemaPointer")?x=S.get("schemaPointer"):(x=M.toSchemaPointer(_,e.schema),S.set("schemaPointer",x)),d=M.get(e.schema,x),d){if(!O(u,"type"))u.type=Gm(d,u);else if(n.hasWidget(u.type))u.type=Km(u.type,d,u);else{let b=u.type;u.type=Gm(d,u),console.error(`error: widget type "${b}" not found in library. Replacing with "${u.type}".`)}d.type==="object"&&N(d.required)&&S.set("required",d.required),u.dataType=d.type||(O(d,"$ref")?"$ref":null),Na(u,d,e),S.set("disabled",!!u.options.disabled),u.type==="checkboxes"&&O(d,"items")?Na(u,d.items,e):u.dataType==="array"&&(u.options.maxItems=Math.min(d.maxItems||1e3,u.options.maxItems||1e3),u.options.minItems=Math.max(d.minItems||0,u.options.minItems||0),u.options.listItems=Math.max(u.options.listItems||0,N(p)?p.length:0),u.options.tupleItems=N(d.items)?d.items.length:0,u.options.maxItems<u.options.tupleItems?(u.options.tupleItems=u.options.maxItems,u.options.listItems=0):u.options.maxItems<u.options.tupleItems+u.options.listItems?u.options.listItems=u.options.maxItems-u.options.tupleItems:u.options.minItems>u.options.tupleItems+u.options.listItems&&(u.options.listItems=u.options.minItems-u.options.tupleItems),S.has("maxItems")||(S.set("maxItems",u.options.maxItems),S.set("minItems",u.options.minItems),S.set("tupleItems",u.options.tupleItems),S.set("listItems",u.options.listItems)),e.arrayMap.has(_)||e.arrayMap.set(_,u.options.tupleItems)),_c(e.schema,x)&&(u.options.required=!0,e.fieldsRequired=!0)}else Na(u,{},e);if(!u.options.title&&!/^\d+$/.test(u.name)&&(u.options.title=Tr(u.name)),O(u.options,"copyValueTo")&&(typeof u.options.copyValueTo=="string"&&(u.options.copyValueTo=[u.options.copyValueTo]),N(u.options.copyValueTo)&&(u.options.copyValueTo=u.options.copyValueTo.map(b=>M.compile(M.parseObjectPath(b),"-")))),u.widget=n.getWidget(u.type),S.set("inputType",u.type),S.set("widget",u.widget),u.dataType==="array"&&(O(u,"items")||O(u,"additionalItems"))){let b=Nt(u.dataPointer+"/-",e.dataRecursiveRefMap,e.arrayMap);if(e.dataMap.has(b)||e.dataMap.set(b,new Map),e.dataMap.get(b).set("inputType","section"),u.items.length>1){let T=[];for(let R=u.items.length-1;R>=0;R--){let Q=u.items[R];if(O(Q,"dataPointer")&&Q.dataPointer.slice(0,b.length)===b){let K=u.items.splice(R,1)[0];K.dataPointer=u.dataPointer+"/-"+K.dataPointer.slice(b.length),T.unshift(K)}else Q.arrayItem=!0,Q.arrayItemType="list",Q.removable=u.options.removable!==!1}T.length&&u.items.push({_id:(0,Er.default)(),arrayItem:!0,arrayItemType:u.options.tupleItems>u.items.length?"tuple":"list",items:T,options:{removable:u.options.removable!==!1},dataPointer:u.dataPointer+"/-",type:"section",widget:n.getWidget("section")})}else u.items[0].arrayItem=!0,u.items[0].dataPointer||(u.items[0].dataPointer=M.toGenericPointer(b,e.arrayMap)),M.has(u,"/items/0/options/removable")||(u.items[0].options.removable=!0),u.options.orderable===!1&&(u.items[0].options.orderable=!1),u.items[0].arrayItemType=u.options.tupleItems?"tuple":"list";if(N(u.items)){let T=u.items.filter(R=>R.type!=="$ref").length-u.options.tupleItems;T>u.options.listItems&&(u.options.listItems=T,S.set("listItems",T))}if(O(e.layoutRefLibrary,b)||(e.layoutRefLibrary[b]=(0,we.default)(u.items[u.items.length-1]),w&&(e.layoutRefLibrary[b].recursiveReference=!0),en(e.layoutRefLibrary[b],(T,R)=>{O(T,"_id")&&(T._id=null),w&&O(T,"dataPointer")&&(T.dataPointer=T.dataPointer.slice(b.length))},"top-down")),!u.recursiveReference||u.options.required){let T=Math.min(Math.max(u.options.tupleItems+u.options.listItems,N(p)?p.length:0),u.options.maxItems);for(let R=u.items.length;R<T;R++)u.items.push(wc({$ref:b,dataPointer:u.dataPointer,recursiveReference:u.recursiveReference},e,n))}if(u.options.addable!==!1&&u.options.minItems<u.options.maxItems&&(u.items[u.items.length-1]||{}).type!=="$ref"){let T="Add";if(u.options.title)/^add\b/i.test(u.options.title)?T=u.options.title:T+=" "+u.options.title;else if(u.name&&!/^\d+$/.test(u.name))/^add\b/i.test(u.name)?T+=" "+Tr(u.name):T=Tr(u.name);else{let R=kY(e.schema,u.dataPointer,"parentSchema");if(O(R,"title"))T+=" to "+R.title;else{let Q=M.parse(u.dataPointer);T+=" to "+Tr(Q[Q.length-2])}}u.items.push({_id:(0,Er.default)(),arrayItem:!0,arrayItemType:"list",dataPointer:u.dataPointer+"/-",options:{listItems:u.options.listItems,maxItems:u.options.maxItems,minItems:u.options.minItems,removable:!1,title:T,tupleItems:u.options.tupleItems},recursiveReference:w,type:"$ref",widget:n.getWidget("$ref"),$ref:b}),We(M.get(u,"/style/add"))&&(u.items[u.items.length-1].options.fieldStyle=u.style.add,delete u.style.add,ge(u.style)&&delete u.style)}}else u.arrayItem=!1}else if(O(u,"type")||O(u,"items")){let p=M.get(e.layout,l,0,-2).type;O(u,"type")||(u.type=ft(p,["tabs","tabarray"])?"tab":"array"),u.arrayItem=p==="array",u.widget=n.getWidget(u.type),Na(u,{},e)}return u.type==="submit"&&(t=!0),u});if(e.hasRootReference){let i=(0,we.default)(r);i[i.length-1].type==="submit"&&i.pop(),e.layoutRefLibrary[""]={_id:null,dataPointer:"",dataType:"object",items:i,name:"",options:(0,we.default)(e.formOptions.defaultWidgetOptions),recursiveReference:!0,required:!1,type:"section",widget:n.getWidget("section")}}return t||r.push({_id:(0,Er.default)(),options:{title:"Submit"},type:"submit",widget:n.getWidget("submit")}),r}function UY(e,n){let t=BY(e,n);if(e.formValues){let r=WY({builtLayout:t,formData:e.formValues})}return t}function WY(e){let{builtLayout:n,formData:t}=e,r={},i=function(p,m,_){if((0,mc.default)(p)){_&&_(p,m),p.forEach((w,x)=>{_&&_(w,m+"/"+x),i(w,m+"/"+x,_)});return}if((0,SE.default)(p)){_&&_(p,m),Object.keys(p).forEach(w=>{_&&_(p[w],m+"/"+w),i(p[w],m+"/"+w,_)});return}};i(t,"",(p,m)=>{(0,mc.default)(p)&&(r[m]=r[m]||p.length)});let a=p=>{let{data:m,dataPointer:_,indexArray:w}=p,x=0,S=_.substring(1).split("/").map((T,R)=>T=="-"&&w[x]!=null?w[x++]:T).join("/");return S="/"+S,r[S]},l=p=>{let m={type:"section",recursiveReference:!1,items:[]};return(0,we.default)(p)},u=p=>{let{builtLayout:m,indices:_,parentDataPointer:w,indexPos:x}=p;if(_=_||[],x=x??(x=-1),(0,mc.default)(m)){m.forEach((b,T)=>{u({builtLayout:b,indices:_,indexPos:x,parentDataPointer:w})});return}let S=["array"];if(m.items&&S.indexOf(m.dataType)>=0&&m.dataPointer&&!m.recursiveReference){let b=a({data:t,dataPointer:m.dataPointer,indexArray:_}),T=m.items.length;if(m.items.forEach(R=>{R.type&&R.type=="$ref"&&T--}),T=Math.max(T,0),T<b){let R=b-T;T==0&&m.items[0].recursiveReference&&(R=0);for(let Q=0;Q<R;Q++){let J=m.items[0].type&&m.items[0].type=="$ref"?l(m.items[0]):(0,we.default)(m.items[0]);J._id=(0,Er.default)("new_"),m.items.unshift(J)}m.options.listItems&&(m.options.listItems=b)}_[m.dataPointer]=_[m.dataPointer]||-1,x++,m.items.forEach((R,Q)=>{_[x]=Q,u({builtLayout:R,indices:_,parentDataPointer:m.dataPointer,indexPos:x})}),x--}else m.items&&m.items.forEach((b,T)=>{u({builtLayout:b,indices:_,parentDataPointer:w,indexPos:x})})};return u({builtLayout:n}),n}function fn(e,n,t=null,r="",i="",a=!1,l=null,u=null,d=!1,p="",m){function _(J,A,W,z,G){if(J){let ne=G&&G.isITEItem&&G.options.condition;if(ne)return;N(J)?J.forEach(de=>{de.isITEItem=!0,de.options.condition=ne?null:wE(x,de,z),_(de,A,W,z,J)}):O(J,"items")?_(J.items,A,W,z,J):(J.isITEItem=!0,J.options.condition=ne?null:wE(x,J,z))}}let w=m||e.schema,x=M.get(w,r);if(!O(x,"type")&&!O(x,"$ref")&&!O(x,"x-schema-form")&&!O(x,"if")&&!O(x,"then")&&!O(x,"else"))return null;let S=Gm(x);!qe(t)&&(e.formOptions.setSchemaDefaults===!0||e.formOptions.setSchemaDefaults==="auto"&&ge(e.formValues))&&(t=M.get(w,r+"/default"));let b={_id:d?null:(0,Er.default)(),arrayItem:a,dataPointer:M.toGenericPointer(i,e.arrayMap),dataType:x.type||(O(x,"$ref")?"$ref":null),options:{},required:_c(w,r),type:S,widget:n.getWidget(S)},T=M.toKey(b.dataPointer);T!=="-"&&(b.name=T),b.arrayItem&&(b.arrayItemType=l,b.options.removable=u!==!1);let R=Nt(p+i,e.dataRecursiveRefMap,e.arrayMap),Q=!R.length||R!==p+i;e.dataMap.has(R)||e.dataMap.set(R,new Map),Na(b,x,e);let K=e.dataMap.get(R);if(K.has("inputType")||(K.set("schemaPointer",r),K.set("inputType",b.type),K.set("widget",b.widget),K.set("disabled",!!b.options.disabled)),!b.options.title&&b.name&&!/^\d+$/.test(b.name)&&(b.options.title=Tr(b.name)),b.dataType==="object"){if(N(x.required)&&!K.has("required")&&K.set("required",x.required),H(x.properties)){let J=[],A=x["ui:order"]||Object.keys(x.properties);if(A.includes("*")&&!O(x.properties,"*")){let W=Object.keys(x.properties).filter(z=>!A.includes(z));for(let z=A.length-1;z>=0;z--)A[z]==="*"&&A.splice(z,1,...W)}A.filter(W=>O(x.properties,W)||O(x,"additionalProperties")).forEach(W=>{let z=O(x.properties,W)?"/properties/"+W:"/additionalProperties",G=fn(e,n,H(t)?t[W]:null,r+z,i+"/"+W,!1,null,null,d,p);G&&(G.schemaPointer=r+z,_c(x,"/"+W)&&(G.options.required=!0,e.fieldsRequired=!0),J.push(G))}),["allOf","anyOf","oneOf"].forEach(W=>{if(O(x,W)&&N(x[W])){let z;W=="oneOf"&&(z=fn(e,n,x.oneOf,"/",i,!1,null,null,d,p,{type:"one-of",items:x.oneOf,oneOf:x.oneOf}),J.push(z)),x[W].forEach((G,ne)=>{let de=`/${W}/${ne}`,Ne=fn(e,n,G,r+de,i,!1,null,null,W=="oneOf",p);if(Ne)if(Ne.items&&Ne.items.forEach(He=>{let ot=O(G,"properties")?"/properties/"+He.name:He.name,Xn={anyOf:"anyOfPointer",oneOf:"oneOfPointer"}[W];He[Xn]=Xn?He.schemaPointer:void 0}),N(Ne)){let He=(0,we.default)(b);Ne.forEach(ot=>{let Xn=O(G,"properties")?"/properties/"+ot.name:ot.name;W=="anyOf"&&(ot.anyOfPointer=ot.schemaPointer),z?(He.items=He.items||[],He.items.push(ot)):J.push(ot)}),z&&(z.items=z.items||[],z.items.push(He))}else if(z){let He={anyOf:"anyOfPointer",oneOf:"oneOfPointer"}[W];Ne[He]=He?r+de:void 0,z.items=z.items||[],z.items.push(Ne)}else J.push(Ne)})}}),O(x,"if")&&["then","else"].forEach(W=>{if(O(x,W)){let z=`/${W}`,G=W=="else",ne=fn(e,n,t[W],r+z,i,!1,null,null,d,p);ne&&(_(ne,r,z,G),N(ne)?ne.forEach(de=>{J.push(de)}):J.push(ne))}}),i===""&&!d?b=J:b.items=J}}else if(b.dataType==="array"){b.items=[],b.options.maxItems=Math.min(x.maxItems||1e3,b.options.maxItems||1e3),b.options.minItems=Math.max(x.minItems||0,b.options.minItems||0),!b.options.minItems&&_c(w,r)&&(b.options.minItems=1),O(b.options,"listItems")||(b.options.listItems=1),b.options.tupleItems=N(x.items)?x.items.length:0,b.options.maxItems<=b.options.tupleItems?(b.options.tupleItems=b.options.maxItems,b.options.listItems=0):b.options.maxItems<b.options.tupleItems+b.options.listItems?b.options.listItems=b.options.maxItems-b.options.tupleItems:b.options.minItems>b.options.tupleItems+b.options.listItems&&(b.options.listItems=b.options.minItems-b.options.tupleItems),K.has("maxItems")||(K.set("maxItems",b.options.maxItems),K.set("minItems",b.options.minItems),K.set("tupleItems",b.options.tupleItems),K.set("listItems",b.options.listItems)),e.arrayMap.has(R)||e.arrayMap.set(R,b.options.tupleItems),u=b.options.removable!==!1;let J=null;if(N(x.items)){b.items=[];for(let A=0;A<b.options.tupleItems;A++){let W,z=Nt(R+"/"+A,e.dataRecursiveRefMap,e.arrayMap),G=!z.length||z!==R+"/"+A;if(u&&A>=b.options.minItems){let ne=`${z}@${r}`,de=z;O(e.layoutRefLibrary,z)&&!O(e.layoutRefLibrary,ne)&&(e.layoutRefLibrary[ne]=fn(e,n,N(t)?t[A]:null,r+"/items/"+A,G?"":i+"/"+A,!0,"tuple",!0,!0,G?i+"/"+A:""),de=ne),O(e.layoutRefLibrary,z)||(e.layoutRefLibrary[z]=null,e.layoutRefLibrary[z]=fn(e,n,N(t)?t[A]:null,r+"/items/"+A,G?"":i+"/"+A,!0,"tuple",!0,!0,G?i+"/"+A:""),G&&(e.layoutRefLibrary[z].recursiveReference=!0),e.layoutRefLibrary[ne]=e.layoutRefLibrary[z]),W=wc({$ref:de,dataPointer:i+"/"+A,recursiveReference:G},e,n,N(t)?t[A]:null)}else W=fn(e,n,N(t)?t[A]:null,r+"/items/"+A,i+"/"+A,!0,"tuple",!1,d,p);W&&b.items.push(W)}H(x.additionalItems)&&(J=r+"/additionalItems")}else H(x.items)&&(J=r+"/items");if(J){let A=Nt(R+"/-",e.dataRecursiveRefMap,e.arrayMap),W=!A.length||A!==R+"/-",z=Nt(J,e.schemaRecursiveRefMap,e.arrayMap),G=`${A}@${r}`,ne=A;if(O(e.layoutRefLibrary,A)&&!O(e.layoutRefLibrary,G)&&(e.layoutRefLibrary[G]=fn(e,n,null,z,W?"":i+"/-",!0,"list",u,!0,W?i+"/-":""),ne=G),A.length&&!O(e.layoutRefLibrary,A)&&(e.layoutRefLibrary[A]=null,e.layoutRefLibrary[A]=fn(e,n,null,z,W?"":i+"/-",!0,"list",u,!0,W?i+"/-":""),W&&(e.layoutRefLibrary[A].recursiveReference=!0),e.layoutRefLibrary[G]=e.layoutRefLibrary[A]),!W||b.options.required){let de=Math.min(Math.max(W?0:b.options.tupleItems+b.options.listItems,N(t)?t.length:0),b.options.maxItems);if(b.items.length<de)for(let Ne=b.items.length;Ne<de;Ne++)b.items.push(wc({$ref:ne,dataPointer:i+"/-",recursiveReference:W},e,n,N(t)?t[Ne]:null))}if(b.options.addable!==!1&&b.options.minItems<b.options.maxItems&&(b.items[b.items.length-1]||{}).type!=="$ref"){let de=((e.layoutRefLibrary[A]||{}).options||{}).title,Ne=de?"Add ":"Add to ";de||(de=x.title||Tr(M.toKey(i))),/^add\b/i.test(de)||(de=Ne+de),b.items.push({_id:(0,Er.default)(),arrayItem:!0,arrayItemType:"list",dataPointer:b.dataPointer+"/-",options:{listItems:b.options.listItems,maxItems:b.options.maxItems,minItems:b.options.minItems,removable:!1,title:de,tupleItems:b.options.tupleItems},recursiveReference:W,type:"$ref",widget:n.getWidget("$ref"),$ref:ne})}}}else if(b.dataType==="$ref"){let J=M.compile(x.$ref),A=M.toDataPointer(J,w),W="";if(b.options.add)W=b.options.add;else if(b.name&&!/^\d+$/.test(b.name))W=(/^add\b/i.test(b.name)?"":"Add ")+Tr(b.name);else{let z=M.get(w,r,0,-1);if(O(z,"title"))W="Add to "+z.title;else{let G=M.parse(b.dataPointer);W="Add to "+Tr(G[G.length-2])}}if(Object.assign(b,{recursiveReference:!0,widget:n.getWidget("$ref"),$ref:A}),Object.assign(b.options,{removable:!1,title:W}),at(M.get(w,r,0,-1).maxItems)&&(b.options.maxItems=M.get(w,r,0,-1).maxItems),A.length)if(O(e.layoutRefLibrary,A))e.layoutRefLibrary[A].recursiveReference||(e.layoutRefLibrary[A].recursiveReference=!0);else{e.layoutRefLibrary[A]=null;let z=fn(e,n,null,J,"",b.arrayItem,b.arrayItemType,!0,!0,i);z?(z.recursiveReference=!0,e.layoutRefLibrary[A]=z):delete e.layoutRefLibrary[A]}}else if(b.type==="if"){let J=[];["then","else"].forEach(A=>{if(O(x,A)){let W=`/${A}`,z=A=="else",G=fn(e,n,t[A],r+W,i,!1,null,null,d,p);G&&(_(G,r,W,z),N(G)?G.forEach(ne=>{J.push(ne)}):J.push(G))}}),b=J}return b}function TE(e,n,t="",r=e){let i=0,a=[];return en(e,(l,u)=>{let d=+u+i,p=t+"/"+d,m=gc(l),_=[];H(l)&&(O(l,"tabs")&&(l.items=l.tabs,delete l.tabs),O(l,"items")&&(_=N(l.items)?l.items:[l.items])),_.length&&(m.items=TE(_,n,p+"/items",r)),m=n(m,d,p,r),qe(m)?(N(m)&&(i+=m.length-1),a=a.concat(m)):i--}),a}function wc(e,n,t=null,r=null){if(e.recursiveReference&&t){let i=(0,we.default)(e);return i.options||(i.options={}),Object.assign(i,{recursiveReference:!0,widget:t.getWidget("$ref")}),Object.assign(i.options,{removable:!1,title:"Add "+i.$ref}),i}else{let i=n.layoutRefLibrary[e.$ref];return qe(r)?i=fn(n,t,r,M.toSchemaPointer(e.$ref,n.schema),e.$ref,i.arrayItem,i.arrayItemType,i.options.removable,!1):(i=(0,we.default)(i),M.forEachDeep(i,(a,l)=>{O(a,"_id")&&(a._id=(0,Er.default)()),e.recursiveReference&&O(a,"dataPointer")&&(a.dataPointer=e.dataPointer+a.dataPointer)})),i}}function Fa(e,n,t=!0,r=!0){let i=[],a=!1;if(e)if(N(e))if(n){for(let l of Object.keys(e))if(H(e[l])){let u=e[l].value;if(n.includes(u)){let d=e[l].name;i.push({name:d,value:u}),u==null&&(a=!0)}}else if(We(e[l])&&l<n.length){let u=e[l],d=n[l];i.push({name:u,value:d}),d==null&&(a=!0)}}else i=e,t||(a=!!i.filter(l=>l.value===void 0||l.value===null).length);else if(n)for(let l of Object.keys(n)){let u=n[l];if(O(e,u)){let d=e[u];i.push({name:d,value:u}),u==null&&(a=!0)}}else for(let l of Object.keys(e)){let u=e[l];i.push({name:u,value:l}),l==null&&(a=!0)}else if(n)for(let l of Object.keys(n)){let u=n[l],d=n[l];i.push({name:u,value:d}),d==null&&(a=!0)}else i=[{name:"True",value:!0},{name:"False",value:!1}];return i.some(l=>O(l,"group"))&&(a=!1,r?i=i.reduce((l,u)=>(O(u,"group")?(N(u.items)&&(l=[...l,...u.items.map(d=>Ke(ue({},d),{name:`${u.group}: ${d.name}`}))],u.items.some(d=>d.value===void 0||d.value===null)&&(a=!0)),O(u,"name")&&O(u,"value")&&(u.name=`${u.group}: ${u.name}`,delete u.group,l.push(u),(u.value===void 0||u.value===null)&&(a=!0))):(l.push(u),(u.value===void 0||u.value===null)&&(a=!0)),l),[]):i=i.reduce((l,u)=>(O(u,"group")?(u.group!==(l[l.length-1]||{}).group&&l.push({group:u.group,items:u.items||[]}),O(u,"name")&&O(u,"value")&&(l[l.length-1].items.push({name:u.name,value:u.value}),(u.value===void 0||u.value===null)&&(a=!0))):(l.push(u),(u.value===void 0||u.value===null)&&(a=!0)),l),[])),!t&&!a&&i.unshift({name:"<em>None</em>",value:null}),i}var ze=(()=>{class e{setDraggableState(t){this.draggableStateSubject.next(t)}createAjvInstance(t){let r=new Hm.default(t);return r.addMetaSchema(mh),r.addMetaSchema(gh),(0,zm.default)(r),r}createAndRegisterAjvInstance(t,r){let i=r||`ajv_${Date.now()}`;if(this.ajvRegistry[i])throw new Error(`ajv instance with name:'${i}' has already been registered`);let a=this.createAjvInstance(t);return this.ajvRegistry[i]={name:i,ajvInstance:a,ajvValidator:null},this.ajvRegistry[i]}getAjvInstance(t="default"){return this.ajvRegistry[t].ajvInstance}getAjvValidator(t="default"){return this.ajvRegistry[t]?.ajvValidator}constructor(){this.JsonFormCompatibility=!1,this.ReactJsonSchemaFormCompatibility=!1,this.AngularSchemaFormCompatibility=!1,this.tpldata={},this.ajvOptions={allErrors:!0,strict:!1},this.ajv=(0,DE.default)(new Hm.default(this.ajvOptions),["uniqueItemProperties","dynamicDefaults"]),this.validateFormData=null,this.formValues={},this.data={},this.schema={},this.layout=[],this.formGroupTemplate={},this.formGroup=null,this.framework=null,this.validData=null,this.isValid=null,this.ajvErrors=null,this.validationErrors=null,this.dataErrors=new Map,this.formValueSubscription=null,this.dataChanges=new Ae,this.isValidChanges=new Ae,this.validationErrorChanges=new Ae,this.arrayMap=new Map,this.dataMap=new Map,this.dataRecursiveRefMap=new Map,this.schemaRecursiveRefMap=new Map,this.schemaRefLibrary={},this.layoutRefLibrary={"":null},this.templateRefLibrary={},this.hasRootReference=!1,this.language="en-US",this.defaultFormOptions={autocomplete:!0,addSubmit:"auto",debug:!1,disableInvalidSubmit:!0,formDisabled:!1,formReadonly:!1,fieldsRequired:!1,framework:"no-framework",loadExternalAssets:!1,pristine:{errors:!0,success:!0},supressPropertyTitles:!1,setSchemaDefaults:"auto",setLayoutDefaults:"auto",validateOnRender:"auto",widgets:{},defaultWidgetOptions:{listItems:1,addable:!0,orderable:!0,removable:!0,enableErrorState:!0,enableSuccessState:!0,feedback:!1,feedbackOnRender:!1,notitle:!1,disabled:!1,readonly:!1,returnEmptyFields:!0,validationMessages:{}}},this.draggableStateSubject=new no(!0),this.draggableState$=this.draggableStateSubject.asObservable(),this.ajvRegistry={},this.setLanguage(this.language),this.ajv.addMetaSchema(mh),this.ajv.addMetaSchema(gh),(0,zm.default)(this.ajv),this.ajvRegistry.default={name:"default",ajvInstance:this.ajv,ajvValidator:null}}ngOnDestroy(){this.fcValueChangesSubs?.unsubscribe(),this.fcStatusChangesSubs?.unsubscribe(),this.formValueSubscription?.unsubscribe(),this.fcValueChangesSubs=null,this.fcStatusChangesSubs=null,this.formValueSubscription=null}setLanguage(t="en-US"){this.language=t;let r={de:mY,en:gY,es:_Y,fr:yY,it:vY,pt:bY,zh:wY},i=t.slice(0,2),a=r[i];this.defaultFormOptions.defaultWidgetOptions.validationMessages=(0,we.default)(a)}getData(){return this.data}getSchema(){return this.schema}getLayout(){return this.layout}resetAllValues(){this.JsonFormCompatibility=!1,this.ReactJsonSchemaFormCompatibility=!1,this.AngularSchemaFormCompatibility=!1,this.tpldata={},this.validateFormData=null,this.formValues={},this.schema={},this.layout=[],this.formGroupTemplate={},this.formGroup=null,this.framework=null,this.data={},this.validData=null,this.isValid=null,this.validationErrors=null,this.arrayMap=new Map,this.dataMap=new Map,this.dataRecursiveRefMap=new Map,this.schemaRecursiveRefMap=new Map,this.layoutRefLibrary={},this.schemaRefLibrary={},this.templateRefLibrary={},this.formOptions=(0,we.default)(this.defaultFormOptions),this.ajvRegistry={},this.ajvRegistry.default={name:"default",ajvInstance:this.ajv,ajvValidator:null}}buildRemoteError(t){en(t,(r,i)=>{if(i in this.formGroup.controls)for(let a of r){let l={};l[a.code]=a.message,this.formGroup.get(i).setErrors(l,{emitEvent:!0})}})}validateData(t,r=!0,i="default"){this.data=zY(t,this.dataMap,this.dataRecursiveRefMap,this.arrayMap,this.formOptions.returnEmptyFields),this.isValid=this.getAjvValidator(i)(this.data),this.validData=this.isValid?this.data:null;let a=l=>{let u={};return(l||[]).forEach(d=>{let p=d.instancePath||"ROOT";u[p]||(u[p]=[]),u[p].push(d.message)}),u};this.ajvErrors=this.getAjvValidator(i).errors,this.validationErrors=a(this.ajvErrors),r&&(this.dataChanges.next(this.data),this.isValidChanges.next(this.isValid),this.validationErrorChanges.next(this.ajvErrors))}buildFormGroupTemplate(t=null,r=!0){this.formGroupTemplate=dn(this,t,r)}buildFormGroup(t){this.formGroup=Aa(this.formGroupTemplate),this.formGroup&&(this.compileAjvSchema(t),this.validateData(this.formGroup.getRawValue(),!0,t),this.formValueSubscription&&this.formValueSubscription.unsubscribe(),this.formValueSubscription=this.formGroup.valueChanges.subscribe(r=>this.validateData(this.formGroup.getRawValue(),!0,t)))}buildLayout(t){this.layout=UY(this,t)}setOptions(t){if(H(t)){let r=(0,we.default)(t);H(r.defaultOptions)&&(Object.assign(this.formOptions.defaultWidgetOptions,r.defaultOptions),delete r.defaultOptions),H(r.defaultWidgetOptions)&&(Object.assign(this.formOptions.defaultWidgetOptions,r.defaultWidgetOptions),delete r.defaultWidgetOptions),Object.assign(this.formOptions,r);let i=this.formOptions.defaultWidgetOptions;["ErrorState","SuccessState"].filter(a=>O(i,"disable"+a)).forEach(a=>{i["enable"+a]=!i["disable"+a],delete i["disable"+a]})}}compileAjvSchema(t="default"){let r=this.getAjvValidator(t);r||(Array.isArray(this.schema.properties["ui:order"])&&(this.schema["ui:order"]=this.schema.properties["ui:order"],delete this.schema.properties["ui:order"]),this.getAjvInstance(t).removeSchema(this.schema),r=this.getAjvInstance(t).compile(this.schema),this.ajvRegistry[t].ajvValidator=r)}buildSchemaFromData(t,r=!1){if(t)return Wm(t,r);this.schema=Wm(this.formValues,r)}buildSchemaFromLayout(t){if(t)return void 0;this.schema=(this.layout,void 0)}setTpldata(t={}){this.tpldata=t}parseText(t="",r={},i={},a=null){return!t||!/{{.+?}}/.test(t)?t:t.replace(/{{(.+?)}}/g,(...l)=>this.parseExpression(l[1],r,i,a,this.tpldata))}parseExpression(t="",r={},i={},a=null,l=null){if(typeof t!="string")return"";let u=typeof a=="number"?a+1+"":a||"";if(t=t.trim(),(t[0]==="'"||t[0]==='"')&&t[0]===t[t.length-1]&&t.slice(1,t.length-1).indexOf(t[0])===-1)return t.slice(1,t.length-1);if(t==="idx"||t==="$index")return u;if(t==="value"&&!O(i,"value"))return r;if(['"',"'"," ","||","&&","+"].every(d=>t.indexOf(d)===-1)){let d=M.parseObjectPath(t);return d[0]==="value"&&M.has(r,d.slice(1))?M.get(r,d.slice(1)):d[0]==="values"&&M.has(i,d.slice(1))?M.get(i,d.slice(1)):d[0]==="tpldata"&&M.has(l,d.slice(1))?M.get(l,d.slice(1)):M.has(i,d)?M.get(i,d):""}return t.indexOf("[idx]")>-1&&(t=t.replace(/\[idx\]/g,u)),t.indexOf("[$index]")>-1&&(t=t.replace(/\[$index\]/g,u)),t.indexOf("||")>-1?t.split("||").reduce((d,p)=>d||this.parseExpression(p,r,i,a,l),""):t.indexOf("&&")>-1?t.split("&&").reduce((d,p)=>d&&this.parseExpression(p,r,i,a,l)," ").trim():t.indexOf("+")>-1?t.split("+").map(d=>this.parseExpression(d,r,i,a,l)).join(""):""}setArrayItemTitle(t={},r=null,i=null){let a={layoutNode:()=>H(t.layoutNode)?t.layoutNode:t.layoutNode(),dataIndex:()=>H(t.dataIndex)?t.dataIndex:t.dataIndex()},l=a.layoutNode();if(l.options.buttonText)return l.options.buttonText;let u=this.getFormControlValue(a),d=(l.type||"").slice(-5)==="array"&&N(u),p=M.getFirst(d&&r.type!=="$ref"?[[r,"/options/legend"],[r,"/options/title"],[l,"/options/title"],[l,"/options/legend"]]:[[r,"/options/title"],[r,"/options/legend"],[l,"/options/title"],[l,"/options/legend"]]);if(!p)return p;let m=N(u)&&i<u.length?u[i]:u;return this.parseText(p,m,u,i)}setItemTitle(t){return!t.options.title&&/^(\d+|-)$/.test(t.layoutNode().name)?null:this.parseText(t.options.title||PE(t.layoutNode().name),this.getFormControlValue(t),(this.getFormControlGroup(t)||{}).value,t.dataIndex()[t.dataIndex().length-1])}evaluateCondition(t,r){let i=r&&r[r.length-1],a=!0;if(ce((t.options||{}).condition)){if(typeof t.options.condition=="string"){let l=t.options.condition;ce(i)&&(l=l.replace("[arrayIndex]",`[${i}]`)),l=M.parseObjectPath(l),a=!!M.get(this.data,l),!a&&l[0]==="model"&&(a=!!M.get({model:this.data},l))}else if(typeof t.options.condition=="function")a=t.options.condition(this.data);else if(typeof t.options.condition.functionBody=="string")try{a=new Function("model","arrayIndices",t.options.condition.functionBody)(this.data,r)}catch{a=!0,console.error("condition functionBody errored out on evaluation: "+t.options.condition.functionBody)}}return a}initializeControl(t,r=!0){if(!H(t))return!1;let i=t.layoutNode();if(ge(t.options)&&(t.options=ge((i||{}).options)?(0,we.default)(this.formOptions):i.options),t.formControl=this.getFormControl(t),(i?.schemaPointer&&i.isITEItem||i?.schemaPointer&&i?.oneOfPointer||i?.schemaPointer&&i.anyOfPointer)&&(this.dataMap.get(i?.dataPointer).get("schemaType")!=i.dataType&&this.dataMap.get(i?.dataPointer).set("schemaType",i.dataType),this.setFormControl(t,t.formControl)),t.boundControl=r&&!!t.formControl,t.formControl)t.controlName=this.getFormControlName(t),t.controlValue=t.formControl.value,t.controlDisabled=t.formControl.disabled,t.options.errorMessage=t.formControl.status==="VALID"?null:this.formatErrors(t.formControl.errors,t.options.validationMessages),t.options.showErrors=this.formOptions.validateOnRender===!0||this.formOptions.validateOnRender==="auto"&&ce(t.controlValue),this.fcStatusChangesSubs=t.formControl.statusChanges.subscribe(l=>t.options.errorMessage=l==="VALID"?null:this.formatErrors(t.formControl.errors,t.options.validationMessages)),this.fcValueChangesSubs=t.formControl.valueChanges.subscribe(l=>{(0,hn.default)(t.controlValue,l)||(t.controlValue=l)});else{t.controlName=i.name,t.controlValue=i.value||null;let l=this.getDataPointer(t);r&&l&&console.error(`warning: control "${l}" is not bound to the Angular FormGroup.`)}let a=i?.schemaPointer?.split("/").some(l=>["then","else"].includes(l));if(t.options?.condition||i?.oneOfPointer||i?.anyOfPointer||a){let l=this.getDataPointer(t),u=t.formControl?.value,d=M.has(this.data,l)?M.get(this.data,l):void 0,p=M.has(this.formValues,l)?M.get(this.formValues,l):void 0,m=t.options?.default,_=this.formValues&&(0,hn.default)(p,u)||!this.formValues&&(0,hn.default)(m,u)?d:m;t.formControl?.patchValue(_)}return t.boundControl}formatErrors(t,r={}){if(ge(t))return null;H(r)||(r={});let i=u=>u[0].toUpperCase()+(u.slice(1)||"").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," "),a=u=>typeof u=="object"?Object.keys(u).map(d=>u[d]===!0?i(d):u[d]===!1?"Not "+i(d):i(d)+": "+a(u[d])).join(", "):i(u.toString()),l=[];return Object.keys(t).filter(u=>u!=="required"||Object.keys(t).length===1).map(u=>typeof r=="string"?r:typeof r[u]=="function"?r[u](t[u]):typeof r[u]=="string"?/{{.+?}}/.test(r[u])?Object.keys(t[u]).reduce((d,p)=>d.replace(new RegExp("{{"+p+"}}","g"),t[u][p]),r[u]):r[u]:i(u)+" Error: "+a(t[u])).join("<br>")}updateValue(t,r){if(t.controlValue=r,t.boundControl&&(t.formControl.setValue(r),t.formControl.markAsDirty()),t.layoutNode().value=r,N(t.options.copyValueTo))for(let i of t.options.copyValueTo){let a=hc(this.formGroup,i);H(a)&&typeof a.setValue=="function"&&(a.setValue(r),a.markAsDirty())}}updateArrayCheckboxList(t,r){let i=this.getFormControl(t);for(;i.value.length;)i.removeAt(0);let a=Nt(t.layoutNode().dataPointer+"/-",this.dataRecursiveRefMap,this.arrayMap);for(let l of r)if(l.checked){let u=Aa(this.templateRefLibrary[a]);u.setValue(l.value),i.push(u)}i.markAsDirty()}updateArrayMultiSelectList(t,r){this.updateArrayCheckboxList(t,r)}getFormControl(t){if(!t||!t.layoutNode||!qe(t.layoutNode().dataPointer)||t.layoutNode().type==="$ref")return null;let r=t.layoutNode()?.isITEItem?t.layoutNode()?.schemaPointer:null,i=t.layoutNode()?.oneOfPointer,a=t.layoutNode()?.anyOfPointer;return hc(this.formGroup,this.getDataPointer(t),!1,r||i||a)}setFormControl(t,r){return!t||!t.layoutNode||!qe(t.layoutNode().dataPointer)||t.layoutNode().type==="$ref"?null:HY(this.formGroup,this.getDataPointer(t),r)}getFormControlValue(t){if(!t||!t.layoutNode||!qe(t.layoutNode().dataPointer)||t.layoutNode().type==="$ref")return null;let r=t.layoutNode()?.isITEItem?t.layoutNode()?.schemaPointer:null,i=t.layoutNode()?.oneOfPointer,a=t.layoutNode()?.anyOfPointer,l=hc(this.formGroup,this.getDataPointer(t),!1,r||i||a);return l?l.value:null}getFormControlGroup(t){if(!t||!t.layoutNode||!qe(t.layoutNode().dataPointer))return null;let r=t.layoutNode()?.isITEItem?t.layoutNode()?.schemaPointer:null,i=t.layoutNode()?.oneOfPointer,a=t.layoutNode()?.anyOfPointer;return hc(this.formGroup,this.getDataPointer(t),!0,r||i||a)}getFormControlName(t){return!t||!t.layoutNode||!qe(t.layoutNode().dataPointer)||!ce(t.dataIndex())?null:M.toKey(this.getDataPointer(t))}getLayoutArray(t){return M.get(this.layout,this.getLayoutPointer(t),0,-1)}getParentNode(t){return M.get(this.layout,this.getLayoutPointer(t),0,-2)}getDataPointer(t){return!t||!t.layoutNode||!qe(t.layoutNode().dataPointer)||!ce(t.dataIndex())?null:M.toIndexedPointer(t.layoutNode().dataPointer,t.dataIndex(),this.arrayMap)}getLayoutPointer(t){return ce(t.layoutIndex())?"/"+t.layoutIndex().join("/items/"):null}isControlBound(t){if(!t||!t.layoutNode||!qe(t.layoutNode().dataPointer)||!ce(t.dataIndex()))return!1;let r=this.getFormControlGroup(t),i=this.getFormControlName(t);return r?O(r.controls,i):!1}addItem(t,r){if(!t||!t.layoutNode||!qe(t.layoutNode().$ref)||!ce(t.dataIndex())||!ce(t.layoutIndex()))return!1;let i=Aa(this.templateRefLibrary[t.layoutNode().$ref]);t.layoutNode().arrayItem?this.getFormControlGroup(t).push(i):this.getFormControlGroup(t).addControl(r||this.getFormControlName(t),i);let a=wc(t.layoutNode(),this);return a.arrayItem=t.layoutNode().arrayItem,t.layoutNode().arrayItemType?a.arrayItemType=t.layoutNode().arrayItemType:delete a.arrayItemType,r&&(a.name=r,a.dataPointer+="/"+M.escape(r),a.options.title=Tr(r)),M.insert(this.layout,this.getLayoutPointer(t),a),!0}moveArrayItem(t,r,i,a=!0){if(!t||!t.layoutNode||!qe(t.layoutNode().dataPointer)||!ce(t.dataIndex())||!ce(t.layoutIndex())||!qe(r)||!qe(i)||r===i)return!1;let l=this.getFormControlGroup(t);if(r>=l.length)return!1;let u=l.at(r);if(l.removeAt(r),l.insert(i,u),l.updateValueAndValidity(),a){let d=this.getLayoutArray(t);d.splice(i,0,d.splice(r,1)[0])}return!0}removeItem(t){return!t||!t.layoutNode||!qe(t.layoutNode().dataPointer)||!ce(t.dataIndex())||!ce(t.layoutIndex())?!1:(t.layoutNode().arrayItem?this.getFormControlGroup(t).removeAt(t.dataIndex()[t.dataIndex().length-1]):this.getFormControlGroup(t).removeControl(this.getFormControlName(t)),M.remove(this.layout,this.getLayoutPointer(t)),!0)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Je({token:e,factory:e.\u0275fac})}}return e})(),xc=(()=>{class e{constructor(){this.jsf=U(ze),this.newComponent=null,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0),this.widgetContainer=Bl("widgetContainer",{read:ir})}ngOnInit(){this.updateComponent()}ngOnChanges(t){this.updateComponent()}updateComponent(){let t=this.widgetContainer();if(t&&!this.newComponent&&(this.layoutNode()||{}).widget&&(this.newComponent=t.createComponent(this.layoutNode().widget)),this.newComponent)for(let r of["layoutNode","layoutIndex","dataIndex"])this.newComponent.setInput(r,this[r]())}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["select-widget-widget"]],viewQuery:function(r,i){r&1&&zl(i.widgetContainer,Zm,5,ir),r&2&&Hl()},inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,features:[Kt],decls:2,vars:0,consts:[["widgetContainer",""]],template:function(r,i){r&1&&oe(0,"div",null,0)},encapsulation:2})}}return e})(),GY=(()=>{class e{constructor(){this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["no-framework"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:1,vars:3,consts:[[3,"dataIndex","layoutIndex","layoutNode"]],template:function(r,i){r&1&&oe(0,"select-widget-widget",0),r&2&&E("dataIndex",i.dataIndex())("layoutIndex",i.layoutIndex())("layoutNode",i.layoutNode())},dependencies:[xc],encapsulation:2})}}return e})(),KY=(()=>{class e extends qi{constructor(){super(...arguments),this.name="no-framework",this.text="None (plain HTML)",this.framework=GY}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Vy(e)))(i||e)}})()}static{this.\u0275prov=Je({token:e,factory:e.\u0275fac})}}return e})(),$E=(()=>{class e{constructor(t,r){this.renderer=t,this.elementRef=r}ngOnChanges(t){if(t.attributes)for(let r in this.attributes){let i=this.attributes[r];i?this.renderer.setAttribute(this.elementRef.nativeElement,r,i):this.renderer.removeAttribute(this.elementRef.nativeElement,r)}}static{this.\u0275fac=function(r){return new(r||e)(gs(ql),gs(rr))}}static{this.\u0275dir=vi({type:e,selectors:[["","attributes",""]],inputs:{attributes:"attributes"},standalone:!1,features:[Kt]})}}return e})(),qa=(()=>{class e{constructor(t,r){this.el=t,this.renderer=r,this.events=[],this.unsubscribeFunctions=[]}ngOnInit(){(this.events.length>0?this.events:["mousedown"]).forEach(r=>{let i=this.renderer.listen(this.el.nativeElement,r,a=>{a.stopPropagation()});this.unsubscribeFunctions.push(i)})}ngOnDestroy(){this.unsubscribeFunctions.forEach(t=>t())}static{this.\u0275fac=function(r){return new(r||e)(gs(rr),gs(ql))}}static{this.\u0275dir=vi({type:e,selectors:[["","appStopPropagation",""]],inputs:{events:[0,"appStopPropagation","events"]},standalone:!1})}}return e})(),JY=(()=>{class e{constructor(){this.jsf=U(ze),this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnInit(){this.options=this.layoutNode().options||{}}get showAddButton(){return!this.layoutNode().arrayItem||this.layoutIndex()[this.layoutIndex().length-1]<this.options.maxItems}addItem(t){t.preventDefault(),this.jsf.addItem(this)}get buttonText(){let t={dataIndex:this.dataIndex().slice(0,-1),layoutIndex:this.layoutIndex().slice(0,-1),layoutNode:this.jsf.getParentNode(this)};return t.layoutNode.add||this.jsf.setArrayItemTitle(t,this.layoutNode(),this.itemCount)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["add-reference-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:2,vars:3,consts:[["align","end"],[3,"class","disabled","appStopPropagation","click",4,"ngIf"],[3,"click","disabled","appStopPropagation"],[3,"class",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(r,i){r&1&&(ee(0,"section",0),se(1,XJ,3,7,"button",1),X()),r&2&&(Y((i.options==null?null:i.options.htmlClass)||""),L(),E("ngIf",i.showAddButton))},dependencies:[xt,qa],encapsulation:2})}}return e})(),ZY=(()=>{class e{constructor(){this.jsf=U(ze),this.controlDisabled=!1,this.boundControl=!1,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnInit(){this.options=this.layoutNode().options||{},this.jsf.initializeControl(this)}updateValue(t){typeof this.options.onClick=="function"?this.options.onClick(t):this.jsf.updateValue(this,t.target.value)}ngOnDestroy(){this.jsf.updateValue(this,null)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["button-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:3,vars:13,consts:[[3,"click","disabled","name","type","value","appStopPropagation"],[3,"class","innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(r,i){if(r&1&&(ee(0,"div")(1,"button",0),rt("click",function(l){return i.updateValue(l)}),se(2,QJ,1,3,"span",1),X()()),r&2){let a,l;Y((i.options==null?null:i.options.htmlClass)||""),L(),Y((i.options==null?null:i.options.fieldHtmlClass)||""),E("disabled",i.controlDisabled)("name",i.controlName)("type",(a=i.layoutNode())==null?null:a.type)("value",i.controlValue)("appStopPropagation",qt(12,Fi)),De("readonly",i.options!=null&&i.options.readonly?"readonly":null)("aria-describedby","control"+((l=i.layoutNode())==null?null:l._id)+"Status"),L(),E("ngIf",(i.options==null?null:i.options.icon)||(i.options==null?null:i.options.title))}},dependencies:[xt,qa],encapsulation:2})}}return e})(),YY=(()=>{class e{constructor(){this.jsf=U(ze),this.controlDisabled=!1,this.boundControl=!1,this.trueValue=!0,this.falseValue=!1,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnInit(){this.options=this.layoutNode().options||{},this.jsf.initializeControl(this),(this.controlValue===null||this.controlValue===void 0)&&(this.controlValue=!1,this.jsf.updateValue(this,this.falseValue))}updateValue(t){t.preventDefault(),this.jsf.updateValue(this,t.target.checked?this.trueValue:this.falseValue)}get isChecked(){return this.jsf.getFormControlValue(this)===this.trueValue}ngOnDestroy(){this.jsf.updateValue(this,null)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["checkbox-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:5,vars:6,consts:[["type","checkbox",3,"formControl","class","id","name","readonly",4,"ngIf"],["type","checkbox",3,"checked","class","disabled","id","name","readonly","value","change",4,"ngIf"],[3,"display","innerHTML",4,"ngIf"],[1,"hb-uix-slider","hb-uix-round"],["type","checkbox",3,"formControl","id","name","readonly"],["type","checkbox",3,"change","checked","disabled","id","name","readonly","value"],[3,"innerHTML"]],template:function(r,i){if(r&1&&(ee(0,"label"),se(1,eZ,1,7,"input",0)(2,tZ,1,9,"input",1)(3,nZ,1,3,"span",2),oe(4,"span",3),X()),r&2){let a;Y((i.options==null?null:i.options.itemLabelHtmlClass)||"hb-uix-switch"),De("for","control"+((a=i.layoutNode())==null?null:a._id)),L(),E("ngIf",i.boundControl),L(),E("ngIf",!i.boundControl),L(),E("ngIf",i.options==null?null:i.options.title)}},dependencies:[xt,Yy,Wr,so],encapsulation:2})}}return e})(),XY=(()=>{class e{constructor(){this.jsf=U(ze),this.controlDisabled=!1,this.boundControl=!1,this.checkboxList=[],this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnInit(){this.options=this.layoutNode().options||{};let t=this.layoutNode();if(this.layoutOrientation=t.type==="checkboxes-inline"||t.type==="checkboxbuttons"?"horizontal":"vertical",this.jsf.initializeControl(this),this.checkboxList=Fa(this.options.titleMap||this.options.enumNames,this.options.enum,!0),this.boundControl){let r=this.jsf.getFormControl(this);this.checkboxList.forEach(i=>i.checked=r.value.includes(i.value))}}updateValue(t){for(let r of this.checkboxList)t.target.value===r.value&&(r.checked=t.target.checked);this.boundControl&&this.jsf.updateArrayCheckboxList(this,this.checkboxList)}ngOnDestroy(){let t=[];this.formControl.reset(t),this.controlValue=null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["checkboxes-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:3,vars:3,consts:[[3,"class","display","innerHTML",4,"ngIf"],[3,"class",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],[3,"class",4,"ngFor","ngForOf"],["type","checkbox",3,"change","checked","disabled","id","name","readonly","value"],[1,"hb-uix-slider","hb-uix-round"]],template:function(r,i){r&1&&se(0,rZ,1,5,"label",0)(1,oZ,2,3,"div",1)(2,aZ,2,1,"div",2),r&2&&(E("ngIf",i.options==null?null:i.options.title),L(),E("ngIf",i.layoutOrientation==="horizontal"),L(),E("ngIf",i.layoutOrientation==="vertical"))},dependencies:[Br,xt],encapsulation:2})}}return e})(),QY=(()=>{class e{constructor(){this.jsf=U(ze),this.controlDisabled=!1,this.boundControl=!1,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnInit(){this.options=this.layoutNode().options||{},this.jsf.initializeControl(this)}updateValue(t){this.jsf.updateValue(this,t.target.value)}ngOnDestroy(){this.jsf.updateValue(this,null)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["file-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:0,vars:0,template:function(r,i){},encapsulation:2})}}return e})();var eX=(()=>{class e{constructor(){this.jsf=U(ze),this.controlDisabled=!1,this.boundControl=!1,this.autoCompleteList=[],this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}get inputAttributes(){return this.options?.["x-inputAttributes"]}ngOnInit(){this.options=this.layoutNode().options||{},this.jsf.initializeControl(this)}updateValue(t){this.jsf.updateValue(this,t.target.value)}ngOnDestroy(){this.jsf.updateValue(this,null)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["input-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:5,vars:6,consts:[[3,"class","display","innerHTML",4,"ngIf"],[3,"formControl","class","id","name","readonly","type","attributes","appStopPropagation",4,"ngIf"],[3,"class","disabled","id","name","readonly","type","value","attributes","appStopPropagation","input",4,"ngIf"],[3,"id",4,"ngIf"],[3,"innerHTML"],[3,"formControl","id","name","readonly","type","attributes","appStopPropagation"],[3,"input","disabled","id","name","readonly","type","value","attributes","appStopPropagation"],[3,"id"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(r,i){r&1&&(ee(0,"div"),se(1,lZ,1,6,"label",0)(2,uZ,1,17,"input",1)(3,cZ,1,18,"input",2)(4,fZ,2,2,"datalist",3),X()),r&2&&(Y((i.options==null?null:i.options.htmlClass)||""),L(),E("ngIf",i.options==null?null:i.options.title),L(),E("ngIf",i.boundControl),L(),E("ngIf",!i.boundControl),L(),E("ngIf",i.options==null||i.options.typeahead==null?null:i.options.typeahead.source))},dependencies:[Br,xt,Wl,Gl,_s,Wr,so,$E,qa],encapsulation:2})}}return e})(),tX=(()=>{class e{constructor(){this.jsf=U(ze),this.message=null,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnInit(){this.options=this.layoutNode().options||{},this.message=this.options.help||this.options.helpvalue||this.options.msg||this.options.message}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["message-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:1,vars:1,consts:[[3,"class","innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(r,i){r&1&&se(0,pZ,1,3,"span",0),r&2&&E("ngIf",i.message)},dependencies:[xt],encapsulation:2})}}return e})(),nX=(()=>{class e{constructor(){this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["none-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:0,vars:0,template:function(r,i){},encapsulation:2})}}return e})(),rX=(()=>{class e{constructor(){this.jsf=U(ze),this.controlDisabled=!1,this.boundControl=!1,this.allowNegative=!0,this.allowDecimal=!0,this.allowExponents=!1,this.lastValidNumber="",this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}get inputAttributes(){return this.options?.["x-inputAttributes"]}ngOnInit(){this.options=this.layoutNode().options||{},this.jsf.initializeControl(this),this.layoutNode().dataType==="integer"&&(this.allowDecimal=!1)}updateValue(t){this.jsf.updateValue(this,t.target.value)}ngOnDestroy(){this.jsf.updateValue(this,null)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["number-widget"]],viewQuery:function(r,i){if(r&1&&(jl(hZ,5),jl(mZ,5)),r&2){let a;Ll(a=Vl())&&(i.inputControl=a.first),Ll(a=Vl())&&(i.div=a.first)}},inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:6,vars:6,consts:[["divElt",""],["inputControl",""],[3,"class","display","innerHTML",4,"ngIf"],[3,"formControl","class","id","name","readonly","title","type","attributes","appStopPropagation",4,"ngIf"],[3,"class","disabled","id","name","readonly","title","type","value","attributes","appStopPropagation","input",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"formControl","id","name","readonly","title","type","attributes","appStopPropagation"],[3,"input","disabled","id","name","readonly","title","type","value","attributes","appStopPropagation"]],template:function(r,i){if(r&1&&(ee(0,"div",null,0),se(2,gZ,1,6,"label",2)(3,_Z,2,18,"input",3)(4,yZ,2,19,"input",4)(5,vZ,1,1,"span",5),X()),r&2){let a;Y((i.options==null?null:i.options.htmlClass)||""),L(2),E("ngIf",i.options==null?null:i.options.title),L(),E("ngIf",i.boundControl),L(),E("ngIf",!i.boundControl),L(),E("ngIf",((a=i.layoutNode())==null?null:a.type)==="range")}},dependencies:[xt,_s,Wr,so,$E,qa],encapsulation:2})}}return e})(),Ym=(()=>{class e{constructor(){this.jsf=U(ze),this.changeDetectorRef=U(cn),this.newComponent=null,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0),this.widgetContainer=Bl("widgetContainer",{read:ir})}ngOnInit(){this.updateComponent()}ngOnChanges(t){this.updateComponent()}updateComponent(){let t=this.widgetContainer();if(t&&!this.newComponent&&this.jsf.framework&&(this.newComponent=t.createComponent(this.jsf.framework)),this.newComponent)for(let r of["layoutNode","layoutIndex","dataIndex"])this.newComponent.setInput(r,this[r]())}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["select-framework-widget"]],viewQuery:function(r,i){r&1&&zl(i.widgetContainer,Zm,5,ir),r&2&&Hl()},inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,features:[Kt],decls:2,vars:0,consts:[["widgetContainer",""]],template:function(r,i){r&1&&oe(0,"div",null,0)},encapsulation:2})}}return e})(),RE=(()=>{class e{constructor(){this.jsf=U(ze),this.cdr=U(cn),this.selectedItem=0,this.showAddTab=!0,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnInit(){this.options=this.layoutNode().options||{},this.options.selectedTab&&(this.selectedItem=this.options.selectedTab),this.itemCount=this.layoutNode().items.length-1,this.updateControl(),this.jsf.dataChanges.subscribe(t=>{this.cdr.detectChanges()})}select(t){let r=this.layoutNode();r.items[t].type==="$ref"&&(this.itemCount=r.items.length,this.jsf.addItem({layoutNode:nr(r.items[t]),layoutIndex:nr(this.layoutIndex().concat(t)),dataIndex:nr(this.dataIndex().concat(t))}),this.updateControl()),this.selectedItem=t}updateControl(){let t=this.layoutNode().items[this.layoutNode().items.length-1];t.type==="$ref"&&this.itemCount>=(t.options.maxItems||1e3)&&(this.showAddTab=!1)}setTabTitle(t,r){return this.jsf.setArrayItemTitle(this,t,r)}ngOnDestroy(){this.dataChangesSubs?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["tabs-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:3,vars:4,consts:[["role","presentation","data-tabs","",3,"class",4,"ngFor","ngForOf"],[3,"class",4,"ngFor","ngForOf"],["role","presentation","data-tabs",""],[3,"class","click",4,"ngIf"],[3,"click"],["type","radio","name","tabSelection",3,"value","ngModel","class","ngModelChange","change",4,"ngIf"],["type","radio","name","tabSelection",3,"ngModelChange","change","value","ngModel"],[4,"ngIf"],[3,"class","dataIndex","layoutIndex","layoutNode",4,"ngIf"],[3,"dataIndex","layoutIndex","layoutNode"]],template:function(r,i){if(r&1&&(ee(0,"ul"),se(1,xZ,2,3,"li",0),X(),se(2,DZ,3,4,"div",1)),r&2){let a,l;Y((i.options==null?null:i.options.labelHtmlClass)||""),L(),E("ngForOf",(a=i.layoutNode())==null?null:a.items),L(),E("ngForOf",(l=i.layoutNode())==null?null:l.items)}},dependencies:[Br,xt,_s,r0,Wr,Ul,Ym],styles:["a[_ngcontent-%COMP%]{cursor:pointer}.ngf-hidden[_ngcontent-%COMP%]{display:none}"]})}}return e})(),iX=(()=>{class e{constructor(){this.jsf=U(ze),this.controlDisabled=!1,this.boundControl=!1,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnInit(){this.options=this.layoutNode().options||{},this.options.tabMode="oneOfMode",this.options.selectedTab=this.findSelectedTab(),this.jsf.initializeControl(this)}findSelectedTab(){let t=-1;return this.layoutNode().items&&this.layoutNode().items.forEach((r,i)=>{let a=M.get(this.jsf.formValues,r.dataPointer);if(r.oneOfPointer){let l=oi(r.oneOfPointer),u=r.name;O(this.jsf.formGroup.controls,l)&&(a||EE(this.jsf.formGroup.controls[l].value))&&(t=i),t==-1&&Object.keys(this.jsf.formGroup.controls).filter(p=>p.startsWith(l)).forEach(p=>{let m=p.split("$"),_=m[m.length-1],w=this.jsf.formGroup.controls[p].value,x=M.get(this.jsf.schema,m.join("/")),b=m.join("/").replace(/(anyOf|allOf|oneOf|none)\/[\d]+\//g,"").replace(/(if|then|else|properties)\//g,"").replace(/\/items\//g,"/-/"),T=M.get(this.jsf.formValues,b),R=T;x&&x.properties&&(R=(0,zt.isObject)(T)&&O(T,_)?(0,zt.pick)(T[_],Object.keys(x.properties)):(0,zt.pick)(T,Object.keys(x.properties))),(0,zt.isEqual)(R,w)&&(t=i)})}}),Math.max(t,0)}updateValue(t){this.jsf.updateValue(this,t.target.value)}ngOnDestroy(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["one-of-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:4,vars:4,consts:[["tabs",""],[3,"layoutNode","layoutIndex","dataIndex"]],template:function(r,i){r&1&&(ee(0,"h4"),un(1),X(),oe(2,"tabs-widget",1,0)),r&2&&(L(),io(i.options==null?null:i.options.description),L(),E("layoutNode",i.layoutNode())("layoutIndex",i.layoutIndex())("dataIndex",i.dataIndex()))},dependencies:[RE],encapsulation:2})}}return e})(),oX=(()=>{class e{constructor(){this.jsf=U(ze),this.controlDisabled=!1,this.boundControl=!1,this.layoutOrientation="vertical",this.radiosList=[],this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnInit(){this.options=this.layoutNode().options||{};let t=this.layoutNode();(t.type==="radios-inline"||t.type==="radiobuttons")&&(this.layoutOrientation="horizontal"),this.radiosList=Fa(this.options.titleMap||this.options.enumNames,this.options.enum,!0),this.jsf.initializeControl(this)}updateValue(t){this.jsf.updateValue(this,t.target.value)}ngOnDestroy(){this.jsf.updateValue(this,null)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["radios-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:3,vars:3,consts:[[3,"class","display","innerHTML",4,"ngIf"],[3,"class",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],[3,"class",4,"ngFor","ngForOf"],["type","radio",3,"change","checked","disabled","id","name","value"]],template:function(r,i){r&1&&se(0,OZ,1,6,"label",0)(1,EZ,2,3,"div",1)(2,$Z,2,1,"div",2),r&2&&(E("ngIf",i.options==null?null:i.options.title),L(),E("ngIf",i.layoutOrientation==="horizontal"),L(),E("ngIf",i.layoutOrientation!=="horizontal"))},dependencies:[Br,xt],encapsulation:2})}}return e})(),Xm=(()=>{class e{constructor(){this.jsf=U(ze),this.cdr=U(cn),this.dataIndex=B(void 0),this.layoutIndex=B(void 0),this.layout=B(void 0),this.isOrderable=B(void 0),this.isFlexItem=B(!1),this.memoizationEnabled=B(!0),this.sortPredicate=(t,r)=>{let i=this.layout()[t];return this.isDraggable(i)},this._getSelectFrameworkInputsRaw=(t,r)=>{let i=this.dataIndex()||[],a=this.layoutIndex()||[];return{layoutNode:t,layoutIndex:[...a,r],dataIndex:t?.arrayItem?[...i,r]:i}},this._getSelectFrameworkInputsMemoized=(0,zt.memoize)(this._getSelectFrameworkInputsRaw,(t,r)=>`${t?.id??JSON.stringify(t)}-${r}`)}drop(t){let r=t.previousIndex,i=t.currentIndex,a=this.layout()[i],l=a?.arrayItem?(this.dataIndex()||[]).concat(i):this.dataIndex()||[],u=(this.layoutIndex()||[]).concat(i),d={dataIndex:()=>l,layoutIndex:()=>u,layoutNode:()=>a};this.jsf.moveArrayItem(d,r,i,!0)}isDraggable(t){return t.arrayItem&&t.type!=="$ref"&&t.arrayItemType==="list"&&this.isOrderable()!==!1&&t.type!=="submit"}isFixed(t){return t.type=="$ref"}getFlexAttribute(t,r){let i=["flex-grow","flex-shrink","flex-basis"].indexOf(r);return((t.options||{}).flex||"").split(/\s+/)[i]||(t.options||{})[r]||["1","1","auto"][i]}getSelectFrameworkInputs(t,r){return this.memoizationEnabled?this._getSelectFrameworkInputsMemoized(t,r):this._getSelectFrameworkInputsRaw(t,r)}trackByFn(t,r){return r._id??t}ngOnChanges(t){(t.layout||t.dataIndex||t.layoutIndex)&&(this._getSelectFrameworkInputsMemoized.cache.clear(),this.cdr.markForCheck())}showWidget(t){return this.jsf.evaluateCondition(t,this.dataIndex())}ngOnInit(){this.memoizationEnabled&&this.jsf.dataChanges.subscribe(t=>{this._getSelectFrameworkInputsMemoized.cache.clear(),this.cdr.markForCheck()})}ngOnDestroy(){this._getSelectFrameworkInputsMemoized.cache.clear(),this.dataChangesSubs?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["root-widget"]],inputs:{dataIndex:[1,"dataIndex"],layoutIndex:[1,"layoutIndex"],layout:[1,"layout"],isOrderable:[1,"isOrderable"],isFlexItem:[1,"isFlexItem"],memoizationEnabled:[1,"memoizationEnabled"]},standalone:!1,features:[Kt],decls:2,vars:5,consts:[["cdkDropList","",3,"cdkDropListDropped","cdkDropListSortPredicate"],["cdkDrag","",3,"cdkDragStartDelay","cdkDragDisabled","form-flex-item","align-self","flex-basis","flex-grow","flex-shrink","order",4,"ngFor","ngForOf","ngForTrackBy"],["cdkDrag","",3,"cdkDragStartDelay","cdkDragDisabled"],[3,"dataIndex","layoutIndex","layoutNode",4,"ngIf"],[3,"dataIndex","layoutIndex","layoutNode"]],template:function(r,i){r&1&&(ee(0,"div",0),rt("cdkDropListDropped",function(l){return i.drop(l)}),se(1,NZ,2,18,"div",1),X()),r&2&&(wt("flex-inherit",!0),E("cdkDropListSortPredicate",i.sortPredicate),L(),E("ngForOf",i.layout())("ngForTrackBy",i.trackByFn))},dependencies:[Br,xt,_O,gO,Ym],styles:["[draggable=true][_ngcontent-%COMP%]{transition:all .15s cubic-bezier(.4,0,.2,1)}[draggable=true][_ngcontent-%COMP%]:hover{cursor:move;box-shadow:2px 2px 4px #0003;position:relative;z-index:10;margin:-1px 1px 1px -1px}[draggable=true].drag-target-top[_ngcontent-%COMP%]{box-shadow:0 -2px #000;position:relative;z-index:20}[draggable=true].drag-target-bottom[_ngcontent-%COMP%]{box-shadow:0 2px #000;position:relative;z-index:20}.flex-inherit[_ngcontent-%COMP%]{display:inherit;flex-flow:inherit;flex-wrap:inherit;flex-direction:inherit;width:100%}"],changeDetection:0})}}return e})(),sX=(()=>{class e{constructor(){this.jsf=U(ze),this.expanded=!0,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}get sectionTitle(){return this.options.notitle?null:this.jsf.setItemTitle(this)}ngOnInit(){switch(this.jsf.initializeControl(this),this.options=this.layoutNode().options||{},this.expanded=typeof this.options.expanded=="boolean"?this.options.expanded:!this.options.expandable,this.layoutNode().type){case"fieldset":case"array":case"tab":case"advancedfieldset":case"authfieldset":case"optionfieldset":case"selectfieldset":this.containerType="fieldset";break;default:this.containerType="div";break}}toggleExpanded(){this.options.expandable&&(this.expanded=!this.expanded)}getFlexAttribute(t){let r=this.layoutNode().type==="flex"||!!this.options.displayFlex||this.options.display==="flex";if(t!=="flex"&&!r)return null;switch(t){case"is-flex":return r;case"display":return r?"flex":"initial";case"flex-direction":case"flex-wrap":let i=["flex-direction","flex-wrap"].indexOf(t);return(this.options["flex-flow"]||"").split(/\s+/)[i]||this.options[t]||["column","nowrap"][i];case"justify-content":case"align-items":case"align-content":return this.options[t]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["section-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:2,vars:2,consts:[[3,"class","expandable","expanded",4,"ngIf"],[3,"class","expandable","expanded","disabled",4,"ngIf"],["class","legend",3,"class","innerHTML","click",4,"ngIf"],[3,"dataIndex","layout","layoutIndex","isFlexItem","isOrderable"],[1,"legend",3,"click","innerHTML"],[3,"disabled"],[4,"ngIf"],["class","help-block",3,"class","innerHTML",4,"ngIf"],[1,"help-block",3,"innerHTML"]],template:function(r,i){r&1&&se(0,AZ,3,28,"div",0)(1,zZ,5,31,"fieldset",1),r&2&&(E("ngIf",i.containerType==="div"),L(),E("ngIf",i.containerType==="fieldset"))},dependencies:[xt,Xm],styles:[".legend[_ngcontent-%COMP%]{font-weight:700}.expandable[_ngcontent-%COMP%] > legend[_ngcontent-%COMP%], .expandable[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], .expanded[_ngcontent-%COMP%] > legend[_ngcontent-%COMP%], .expanded[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{cursor:pointer;}.expandable[_ngcontent-%COMP%] > legend[_ngcontent-%COMP%]:before, .expandable[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]:before{font-weight:900;font-family:'Font Awesome 7 Free';content:'\\f054';padding-right:.3em;}.expanded[_ngcontent-%COMP%] > legend[_ngcontent-%COMP%]:before, .expanded[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]:before{font-weight:900;font-family:'Font Awesome 7 Free';content:'\\f078';padding-right:.2em;}"]})}}return e})(),aX=(()=>{class e{constructor(){this.jsf=U(ze),this.controlDisabled=!1,this.boundControl=!1,this.selectList=[],this.selectListFlatGroup=[],this.isArray=N,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnInit(){this.options=this.layoutNode().options||{},this.selectList=Fa(this.options.titleMap||this.options.enumNames,this.options.enum,!!this.options.required,!!this.options.flatList),this.selectListFlatGroup=Fa(this.options.titleMap||this.options.enumNames,this.options.enum,!!this.options.required,!0),this.jsf.initializeControl(this),this.valueChanges=this.formControl.valueChanges.subscribe(t=>{t==="null"&&this.formControl.setValue(null)})}ngOnDestroy(){this.valueChanges&&this.valueChanges.unsubscribe()}deselectAll(){this.selectListFlatGroup.forEach(t=>{t.checked=!1})}updateValue(t){if(this.options.showErrors=!0,this.options.multiple){this.controlValue?.includes(null)?(this.deselectAll(),this.jsf.updateArrayMultiSelectList(this,[])):(this.selectListFlatGroup.forEach(r=>{r.checked=this.controlValue?.indexOf(r.value)>=0}),this.jsf.updateArrayMultiSelectList(this,this.selectListFlatGroup));return}this.jsf.updateValue(this,this.controlValue)}ngOnDestroy(){let t=this.options.multiple?[null]:null;this.formControl.reset(t),this.controlValue=null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["select-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:5,vars:6,consts:[[3,"class","display","innerHTML",4,"ngIf"],[3,"formControl","class","id","name",4,"ngIf"],[3,"class","disabled","id","name","change",4,"ngIf"],[3,"class","disabled","id","multiple","name","ngModel","ngModelChange","change",4,"ngIf"],[3,"innerHTML"],[3,"formControl","id","name"],["ngFor","",3,"ngForOf"],[3,"ngValue",4,"ngIf"],[3,"label",4,"ngIf"],[3,"ngValue"],[3,"label"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"change","disabled","id","name"],[3,"selected","ngValue",4,"ngIf"],[3,"selected","ngValue"],[3,"ngModelChange","change","disabled","id","multiple","name","ngModel"]],template:function(r,i){r&1&&(ee(0,"div"),se(1,HZ,1,6,"label",0)(2,KZ,2,9,"select",1)(3,QZ,2,9,"select",2)(4,iY,2,11,"select",3),X()),r&2&&(Y((i.options==null?null:i.options.htmlClass)||""),L(),E("ngIf",i.options==null?null:i.options.title),L(),E("ngIf",i.boundControl&&!(i.options!=null&&i.options.multiple)),L(),E("ngIf",!i.boundControl),L(),E("ngIf",i.boundControl&&(i.options==null?null:i.options.multiple)))},dependencies:[Br,xt,Wl,Gl,o0,tf,Wr,Ul,so],encapsulation:2})}}return e})(),lX=(()=>{class e{constructor(){this.jsf=U(ze),this.controlDisabled=!1,this.boundControl=!1,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnDestroy(){this.isValidChangesSubs?.unsubscribe(),this.isValidChangesSubs=null,this.updateValue({target:{value:null}})}ngOnInit(){this.options=this.layoutNode().options||{},this.jsf.initializeControl(this),O(this.options,"disabled")?this.controlDisabled=this.options.disabled:this.jsf.formOptions.disableInvalidSubmit&&(this.controlDisabled=!this.jsf.isValid,this.isValidChangesSubs=this.jsf.isValidChanges.subscribe(t=>this.controlDisabled=!t)),(this.controlValue===null||this.controlValue===void 0)&&(this.controlValue=this.options.title)}updateValue(t){typeof this.options.onClick=="function"?this.options.onClick(t):this.jsf.updateValue(this,t.target.value)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["submit-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:2,vars:14,consts:[[3,"click","disabled","id","name","type","value","appStopPropagation"]],template:function(r,i){if(r&1&&(ee(0,"div")(1,"input",0),rt("click",function(l){return i.updateValue(l)}),X()()),r&2){let a,l,u;Y((i.options==null?null:i.options.htmlClass)||""),L(),Y((i.options==null?null:i.options.fieldHtmlClass)||""),E("disabled",i.controlDisabled)("id","control"+((a=i.layoutNode())==null?null:a._id))("name",i.controlName)("type",(l=i.layoutNode())==null?null:l.type)("value",i.controlValue)("appStopPropagation",qt(13,Fi)),De("aria-describedby","control"+((u=i.layoutNode())==null?null:u._id)+"Status")("readonly",i.options!=null&&i.options.readonly?"readonly":null)("required",i.options==null?null:i.options.required)}},dependencies:[qa],encapsulation:2})}}return e})(),uX=(()=>{class e{constructor(){this.jsf=U(ze),this.newComponent=null,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0),this.widgetContainer=Bl("widgetContainer",{read:ir})}ngOnInit(){this.updateComponent()}ngOnChanges(){this.updateComponent()}updateComponent(){let t=this.layoutNode(),r=this.widgetContainer();if(r&&!this.newComponent&&t.options.template&&(this.newComponent=r.createComponent(t.options.template)),this.newComponent)for(let i of["layoutNode","layoutIndex","dataIndex"])this.newComponent.instance[i]=this[i]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["template-widget"]],viewQuery:function(r,i){r&1&&zl(i.widgetContainer,Zm,5,ir),r&2&&Hl()},inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,features:[Kt],decls:2,vars:0,consts:[["widgetContainer",""]],template:function(r,i){r&1&&oe(0,"div",null,0)},encapsulation:2})}}return e})(),cX=(()=>{class e{constructor(){this.jsf=U(ze),this.controlDisabled=!1,this.boundControl=!1,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnInit(){this.options=this.layoutNode().options||{},this.jsf.initializeControl(this)}updateValue(t){this.jsf.updateValue(this,t.target.value)}ngOnDestroy(){this.jsf.updateValue(this,null)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["textarea-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:4,vars:5,consts:[[3,"class","display","innerHTML",4,"ngIf"],[3,"formControl","class","id","name",4,"ngIf"],[3,"class","disabled","id","name","value","input",4,"ngIf"],[3,"innerHTML"],[3,"formControl","id","name"],[3,"input","disabled","id","name","value"]],template:function(r,i){r&1&&(ee(0,"div"),se(1,oY,1,6,"label",0)(2,sY,1,12,"textarea",1)(3,aY,2,14,"textarea",2),X()),r&2&&(Y((i.options==null?null:i.options.htmlClass)||""),L(),E("ngIf",i.options==null?null:i.options.title),L(),E("ngIf",i.boundControl),L(),E("ngIf",!i.boundControl))},dependencies:[xt,_s,Wr,so],encapsulation:2})}}return e})(),Uo=(()=>{class e{constructor(){this.defaultWidget="text",this.widgetLibrary={none:nX,root:Xm,"select-framework":Ym,"select-widget":xc,$ref:JY,email:"text",integer:"number",number:rX,password:"text",search:"text",tel:"text",text:eX,url:"text",color:"text",date:"text",datetime:"text","datetime-local":"text",month:"text",range:"number",time:"text",week:"text",checkbox:YY,file:QY,hidden:"text",image:"text",radio:"radios",reset:"submit",submit:lX,button:ZY,select:aX,textarea:cX,checkboxes:XY,"checkboxes-inline":"checkboxes",checkboxbuttons:"checkboxes",radios:oX,"radios-inline":"radios",radiobuttons:"radios",section:sX,div:"section",fieldset:"section",flex:"section","one-of":iX,array:"section",tabarray:"tabs",tab:"section",tabs:RE,message:tX,help:"message",msg:"message",html:"message",template:uX,advancedfieldset:"section",authfieldset:"section",optionfieldset:"one-of",selectfieldset:"one-of",conditional:"section",actions:"section",tagsinput:"section",updown:"number","iso-date-time":"datetime-local","alt-datetime":"datetime-local","alt-date":"date",wizard:"section",textline:"text",selectcheckbox:dX},this.registeredWidgets={},this.frameworkWidgets={},this.activeWidgets={},this.setActiveWidgets()}setActiveWidgets(){this.activeWidgets=Object.assign({},this.widgetLibrary,this.frameworkWidgets,this.registeredWidgets);for(let t of Object.keys(this.activeWidgets)){let r=this.activeWidgets[t];if(typeof r=="string"){let i=[];for(;typeof r=="string"&&!i.includes(r);)i.push(r),r=this.activeWidgets[r];typeof r!="string"&&(this.activeWidgets[t]=r)}}return!0}setDefaultWidget(t){return this.hasWidget(t)?(this.defaultWidget=t,!0):!1}hasWidget(t,r="activeWidgets"){return!t||typeof t!="string"?!1:O(this[r],t)}hasDefaultWidget(t){return this.hasWidget(t,"widgetLibrary")}registerWidget(t,r){return!t||!r||typeof t!="string"?!1:(this.registeredWidgets[t]=r,this.setActiveWidgets())}unRegisterWidget(t){return O(this.registeredWidgets,t)?(delete this.registeredWidgets[t],this.setActiveWidgets()):!1}unRegisterAllWidgets(t=!0){return this.registeredWidgets={},t&&(this.frameworkWidgets={}),this.setActiveWidgets()}registerFrameworkWidgets(t){return(t===null||typeof t!="object")&&(t={}),this.frameworkWidgets=t,this.setActiveWidgets()}unRegisterFrameworkWidgets(){return Object.keys(this.frameworkWidgets).length?(this.frameworkWidgets={},this.setActiveWidgets()):!1}getWidget(t,r="activeWidgets"){return this.hasWidget(t,r)?this[r][t]:this.hasWidget(this.defaultWidget,r)?this[r][this.defaultWidget]:null}getAllWidgets(){return{widgetLibrary:this.widgetLibrary,registeredWidgets:this.registeredWidgets,frameworkWidgets:this.frameworkWidgets,activeWidgets:this.activeWidgets}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ji=(()=>{class e{constructor(t){this.frameworks=t,this.widgetLibrary=U(Uo),this.http=U(Jy),this.activeFramework=null,this.loadExternalAssets=!1,this.frameworkLibrary={},this.frameworks.forEach(r=>this.frameworkLibrary[r.name]=r),this.defaultFramework=this.frameworks[0].name,this.activeFrameworkName=this.defaultFramework,this.activeFrameworkNameSubject=new Ae,this.activeFrameworkName$=this.activeFrameworkNameSubject.asObservable(),this.setFramework(this.defaultFramework)}setLoadExternalAssets(t=!0){this.loadExternalAssets=!!t}setFramework(t=this.defaultFramework,r=this.loadExternalAssets){return this.activeFramework=typeof t=="string"&&this.hasFramework(t)?this.frameworkLibrary[t]:typeof t=="object"&&O(t,"framework")?t:this.frameworkLibrary[this.defaultFramework],this.activeFramework.name!=this.activeFrameworkName&&(this.activeFrameworkName=this.activeFramework.name,this.activeFrameworkNameSubject.next(this.activeFrameworkName)),this.registerFrameworkWidgets(this.activeFramework)}registerFrameworkWidgets(t){return O(t,"widgets")?this.widgetLibrary.registerFrameworkWidgets(t.widgets):this.widgetLibrary.unRegisterFrameworkWidgets()}hasFramework(t){return O(this.frameworkLibrary,t)}getFramework(){return this.activeFramework||this.setFramework("default",!0),this.activeFramework.framework}getFrameworkList(){return this.frameworks.map(t=>({name:t.name,text:t.text}))}getFrameworkWidgets(){return this.activeFramework.widgets||{}}getFrameworkStylesheets(t=this.loadExternalAssets){return t&&this.activeFramework.stylesheets||[]}getFrameworkScripts(t=this.loadExternalAssets){return t&&this.activeFramework.scripts||[]}getFrameworkConfig(t){return(t||this.activeFramework).config}getFrameworkAssetConfig(t,r=!0){let a=`assets/${(t||this.activeFramework).name}/cssframework`,l=`${a}/assets.json`,u=this.http.get(l,{responseType:"text"});return Ny(u).then(d=>{let p=JSON.parse(d);return r&&(p.stylesheets=p.stylesheets.map(m=>{let _=["/","//","http:","https:"],w=!1;return _.forEach(x=>{w=w||m.indexOf(x)==0}),w?m:`${a}/${m}`}),p.scripts=p.scripts.map(m=>`${a}/${m}`)),p})}getFrameworkThemes(){let t=this.getFrameworkConfig(),r;return t&&(r=t?.widgetstyles?.__themes__||[]),r}requestThemeChange(t,r=!1,i){let a=i||this.activeFramework;if(a.requestThemeChange){if(r){let u=this.getFrameworkThemes().filter(d=>d.name==t);if(!u||u.length==0)return!1}return a.requestThemeChange(t),!0}}getActiveTheme(t){let r=t||this.activeFramework;if(r.getActiveTheme)return r.getActiveTheme()}registerTheme(t,r){let i=r||this.activeFramework;if(i.registerTheme)return i.registerTheme(t)}unregisterTheme(t,r){let i=r||this.activeFramework;if(i.registerTheme)return i.unregisterTheme(t)}static{this.\u0275fac=function(r){return new(r||e)(Fl(qi))}}static{this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),dX=(()=>{class e{constructor(){this.jsf=U(ze),this.jsfFLService=U(ji),this.controlDisabled=!1,this.boundControl=!1,this.selectList=[],this.selectListFlatGroup=[],this.isArray=N,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0),this.frameworkStyles={daisyui:{selectClass:"select-box",optionClass:"checkbox tw:dui-checkbox",optionChecked:"active",optionUnchecked:""},"bootstrap-3":{selectClass:"select-box",optionClass:"bs3-option checkbox display-inline-block",optionChecked:"active",optionUnchecked:""},"bootstrap-4":{selectClass:"select-box",optionClass:"bs4-option checkbox display-inline-block",optionChecked:"active",optionUnchecked:""},"bootstrap-5":{selectClass:" select-box",optionClass:"form-check-input display-inline-block",optionChecked:"active",optionUnchecked:""}}}ngOnInit(){this.options=this.layoutNode().options||{},this.activeFramework=this.jsfFLService.activeFramework.name,this.selectList=Fa(this.options.enumNames||this.options?.title&&[this.options?.title]||[this.layoutNode().name],[!0],!0,!!this.options.flatList),this.jsf.initializeControl(this),this.selectValue=[this.controlValue]}deselectAll(){this.selectListFlatGroup.forEach(t=>{t.checked=!1})}updateValue(t){this.options.showErrors=!0,this.controlValue=this.selectValue[0],this.jsf.updateValue(this,this.controlValue)}onSelectClicked(t){this.selectValue=this.selectValue&&this.selectValue[0]?[!1]:[!0],this.controlValue=this.selectValue[0],this.jsf.updateValue(this,this.controlValue)}ngOnDestroy(){let t=this.options.multiple?[null]:null;this.formControl.reset(t),this.controlValue=null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["selectcheckbox-widget"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,decls:3,vars:4,consts:[[3,"class","multiple","id","name","ngModel",4,"ngIf"],[3,"class","multiple","disabled","id","name","change",4,"ngIf"],[3,"multiple","id","name","ngModel"],["ngFor","",3,"ngForOf"],["type","checkbox",3,"class","active","unchecked-notusing","value","click",4,"ngIf"],[3,"innerHTML"],["type","checkbox",3,"click","value"],[3,"change","multiple","disabled","id","name"],["type","checkbox",3,"selected","class","checked-notusing","unchecked-notusing]","value",4,"ngIf"],["type","checkbox",3,"selected","value"]],template:function(r,i){r&1&&(ee(0,"div"),se(1,cY,2,10,"select",0)(2,pY,2,10,"select",1),X()),r&2&&(Y((i.options==null?null:i.options.htmlClass)||""),L(),E("ngIf",i.boundControl),L(),E("ngIf",!i.boundControl))},dependencies:[Br,xt,Wl,Gl,tf,Wr,Ul],styles:['.select-box[_ngcontent-%COMP%]{font-size:16px;border:none;appearance:none;-webkit-appearance:none;-moz-appearance:none;height:25px;overflow:hidden;text-overflow:ellipsis;background-color:#fff;color:#000;background-color:transparent}.select-box[_ngcontent-%COMP%]:focus{outline:none}.select-option[_ngcontent-%COMP%]{font-size:20px;color:#000;background-color:#fff;display:inline-block}.unchecked[_ngcontent-%COMP%]:before{content:"\\2610";left:5px;top:50%;transform:translateY(-50%);font-size:30px}.checked[_ngcontent-%COMP%]:before{content:"\\2611";left:5px;top:50%;transform:translateY(-50%);font-size:30px}.select-option[_ngcontent-%COMP%]:checked{background-image:linear-gradient(0deg,#fff 0% 100%);color:#000}.select-box[multiple][_ngcontent-%COMP%]:focus{background-color:transparent;color:#00f;-webkit-text-fill-color:black}.display-inline-block[_ngcontent-%COMP%]{display:inline-block}.bs4-option[_ngcontent-%COMP%], .bs3-option[_ngcontent-%COMP%]{width:14px;height:14px;border:solid 1px;color:#a9a9a9;min-block-size:auto;border-radius:3px}.bs4-option[_ngcontent-%COMP%]:checked[type=checkbox], .bs3-option[_ngcontent-%COMP%]:checked[type=checkbox]{background-image:url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!--%20License%3A%20MIT.%20Made%20by%20jaynewey%3A%20https%3A%2F%2Fgithub.com%2Fjaynewey%2Fcharm-icons%20--%3E%3Csvg%20viewBox%3D%220%200%2016%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222.5%22%3E%3Cpolyline%20points%3D%224%208.75%2C6.25%2012.25%2C13.25%203.5%22%2F%3E%3C%2Fsvg%3E);background-color:#00ced1}']})}}return e})();var Ai=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Sn({type:e})}static{this.\u0275inj=Cn({imports:[Ur,nf,rf,yO]})}}return e})(),fX=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Sn({type:e})}static{this.\u0275inj=Cn({providers:[{provide:qi,useClass:KY,multi:!0}],imports:[Ur,Ai]})}}return e})(),pX={provide:Zy,useExisting:Gd(()=>hX),multi:!0},hX=(()=>{class e{constructor(){this.changeDetector=U(cn),this.frameworkLibrary=U(ji),this.widgetLibrary=U(Uo),this.jsf=U(ze),this.unsubscribeOnActivateForm$=new Ae,this.formValueSubscription=null,this.formInitialized=!1,this.objectWrap=!1,this.previousInputs={schema:null,layout:null,data:null,options:null,framework:null,widgets:null,form:null,model:null,JSONSchema:null,UISchema:null,formData:null,loadExternalAssets:null,debug:null,ajvOptions:null},this.schema=B(void 0),this.layout=B(void 0),this.data=B(void 0),this.options=B(void 0),this.framework=B(void 0),this.widgets=B(void 0),this.form=B(void 0),this.model=B(void 0),this.JSONSchema=B(void 0),this.UISchema=B(void 0),this.formData=B(void 0),this.ngModel=B(void 0),this.language=B(void 0),this.loadExternalAssets=B(void 0),this.debug=B(void 0),this.theme=B(void 0),this.ajvOptions=B(void 0),this.onChanges=zn(),this.onSubmit=zn(),this.isValid=zn(),this.validationErrors=zn(),this.formSchema=zn(),this.formLayout=zn(),this.dataChange=zn(),this.modelChange=zn(),this.formDataChange=zn(),this.ngModelChange=zn()}get value(){return this.objectWrap?this.jsf.data[1]:this.jsf.data}set value(t){this.setFormValues(t,!1)}ngOnDestroy(){this.dataChangesSubs?.unsubscribe(),this.statusChangesSubs?.unsubscribe(),this.isValidChangesSubs?.unsubscribe(),this.validationErrorChangesSubs?.unsubscribe(),this.dataChangesSubs=null,this.statusChangesSubs=null,this.isValidChangesSubs=null,this.validationErrorChangesSubs=null}getInputValue(t){return typeof this[t]=="function"?this[t]():this[t]}resetScriptsAndStyleSheets(){document.querySelectorAll(".ajsf").forEach(t=>t.remove())}loadScripts(t){(t||this.frameworkLibrary.getFrameworkScripts()).map(i=>{let a=document.createElement("script");a.src=i,a.type="text/javascript",a.async=!0,a.setAttribute("class","ajsf"),document.getElementsByTagName("head")[0].appendChild(a)})}loadStyleSheets(t){(t||this.frameworkLibrary.getFrameworkStylesheets()).map(i=>{let a=document.createElement("link");a.rel="stylesheet",a.href=i,a.setAttribute("class","ajsf"),document.getElementsByTagName("head")[0].appendChild(a)})}loadAssets(){this.frameworkLibrary.getFrameworkAssetConfig().then(t=>{this.resetScriptsAndStyleSheets(),this.loadScripts(t.scripts),this.loadStyleSheets(t.stylesheets)}).catch(t=>{console.log(t),this.resetScriptsAndStyleSheets(),this.loadScripts(),this.loadStyleSheets()})}ngOnInit(){this.updateForm(),this.loadAssets()}ngOnChanges(t){this.updateForm(),t.framework&&!t.framework.isFirstChange()&&t.framework.previousValue!==t.framework.currentValue&&this.loadAssets()}writeValue(t){this.setFormValues(t,!1),this.formValuesInput||(this.formValuesInput="ngModel")}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.jsf.formOptions.formDisabled!==!!t&&(this.jsf.formOptions.formDisabled=!!t,this.initializeForm())}updateForm(){let t,r=this.language();if(!this.formInitialized||!this.formValuesInput||r&&r!==this.jsf.language)this.initializeForm();else{r&&r!==this.jsf.language&&this.jsf.setLanguage(r);let i=Object.keys(this.previousInputs).filter(u=>this.previousInputs[u]!==this.getInputValue(u)),a=!0;if(i.length===1&&i[0]==="form"&&this.formValuesInput.startsWith("form.")&&(i=Object.keys(this.previousInputs.form||{}).filter(u=>!(0,hn.default)(this.previousInputs.form[u],this.form()[u])).map(u=>`form.${u}`),a=!1),i.length===1&&i[0]===this.formValuesInput)if(this.formValuesInput.indexOf(".")===-1)t=this.getInputValue(this.formValuesInput),this.setFormValues(t,a);else{let[u,d]=this.formValuesInput.split(".");t=this.getInputValue(u)[d],this.setFormValues(t,a)}else i.length&&(this.initializeForm(t),this.onChange&&this.onChange(this.jsf.formValues),this.onTouched&&this.onTouched(this.jsf.formValues));let l=this.theme();l&&l!==this.frameworkLibrary.getActiveTheme()?.name&&this.frameworkLibrary.requestThemeChange(l),Object.keys(this.previousInputs).filter(u=>this.previousInputs[u]!==this.getInputValue(u)).forEach(u=>this.previousInputs[u]=this.getInputValue(u))}}setFormValues(t,r=!0){if(t){let i=this.objectWrap?t[1]:t;this.jsf.formGroup?r&&this.jsf.formGroup.reset({},{emitEvent:!1}):(this.jsf.formValues=t,this.activateForm()),this.jsf.formGroup&&this.jsf.formGroup.patchValue(i,{emitEvent:!1}),this.onChange&&this.onChange(i),this.onTouched&&this.onTouched(i)}else this.jsf.formGroup.reset()}submitForm(){let t=this.jsf.validData;this.onSubmit.emit(this.objectWrap?t[1]:t)}initializeForm(t){if(this.schema()||this.layout()||this.data()||this.form()||this.model()||this.JSONSchema()||this.UISchema()||this.formData()||this.ngModel()||this.jsf.data){if(this.jsf.resetAllValues(),this.initializeAjv(),this.initializeOptions(),this.initializeSchema(),this.initializeLayout(),this.initializeData(),t&&(this.jsf.formValues=t),this.activateForm(),this.debug()||this.jsf.formOptions.debug){let r=[];this.debugOutput=r.map(i=>JSON.stringify(i,null,2)).join(`
32
+ `)}this.formInitialized=!0}}initializeAjv(){let t=this.form(),r=(0,we.default)(this.ajvOptions())||t&&O(t,"ajvOptions")&&H(t.ajvOptions)&&(0,we.default)(t.ajvOptions);r&&(this.ajvInstanceName=this.jsf.createAndRegisterAjvInstance(r).name)}initializeOptions(){let t=this.language();t&&t!==this.jsf.language&&this.jsf.setLanguage(t),this.jsf.setOptions({debug:!!this.debug()});let r=this.loadExternalAssets()||!1,i=this.framework()||"default",a=this.options();H(a)&&(this.jsf.setOptions(a),r=a.loadExternalAssets||r,i=a.framework||i);let l=this.form();H(l)&&H(l.options)&&(this.jsf.setOptions(l.options),r=l.options.loadExternalAssets||r,i=l.options.framework||i);let u=this.widgets();if(H(u)&&this.jsf.setOptions({widgets:u}),this.frameworkLibrary.setLoadExternalAssets(r),this.frameworkLibrary.setFramework(i),this.jsf.framework=this.frameworkLibrary.getFramework(),H(this.jsf.formOptions.widgets))for(let p of Object.keys(this.jsf.formOptions.widgets))this.widgetLibrary.registerWidget(p,this.jsf.formOptions.widgets[p]);H(l)&&H(l.tpldata)&&this.jsf.setTpldata(l.tpldata);let d=this.theme();d&&this.frameworkLibrary.requestThemeChange(d)}initializeSchema(){let t=this.form(),r=this.schema(),i=this.JSONSchema();H(r)?(this.jsf.AngularSchemaFormCompatibility=!0,this.jsf.schema=(0,we.default)(r)):O(t,"schema")&&H(t.schema)?this.jsf.schema=(0,we.default)(t.schema):H(i)?(this.jsf.ReactJsonSchemaFormCompatibility=!0,this.jsf.schema=(0,we.default)(i)):O(t,"JSONSchema")&&H(t.JSONSchema)?(this.jsf.ReactJsonSchemaFormCompatibility=!0,this.jsf.schema=(0,we.default)(t.JSONSchema)):O(t,"properties")&&H(t.properties)?this.jsf.schema=(0,we.default)(t):H(t),ge(this.jsf.schema)||(ft("object",this.jsf.schema.type)&&(this.jsf.schema.type="object"),O(this.jsf.schema,"type")&&this.jsf.schema.type!=="object"?(this.jsf.schema={type:"object",properties:{1:this.jsf.schema}},this.objectWrap=!0):O(this.jsf.schema,"type")||(H(this.jsf.schema.properties)||H(this.jsf.schema.patternProperties)||H(this.jsf.schema.additionalProperties)?this.jsf.schema.type="object":(this.jsf.JsonFormCompatibility=!0,this.jsf.schema={type:"object",properties:this.jsf.schema})),this.jsf.schema=Vo(this.jsf.schema),this.jsf.schema=FY(this.jsf.schema,this.jsf.schemaRefLibrary,this.jsf.schemaRecursiveRefMap,this.jsf.dataRecursiveRefMap,this.jsf.arrayMap),O(this.jsf.schemaRefLibrary,"")&&(this.jsf.hasRootReference=!0))}initializeData(){let t=this.form(),r=this.data(),i=this.model(),a=this.ngModel();ce(r)?(this.jsf.formValues=(0,we.default)(r),this.formValuesInput="data"):ce(i)?(this.jsf.AngularSchemaFormCompatibility=!0,this.jsf.formValues=(0,we.default)(i),this.formValuesInput="model"):ce(a)?(this.jsf.AngularSchemaFormCompatibility=!0,this.jsf.formValues=(0,we.default)(a),this.formValuesInput="ngModel"):H(t)&&ce(t.value)?(this.jsf.JsonFormCompatibility=!0,this.jsf.formValues=(0,we.default)(t.value),this.formValuesInput="form.value"):H(t)&&ce(t.data)?(this.jsf.formValues=(0,we.default)(t.data),this.formValuesInput="form.data"):ce(this.formData())?(this.jsf.ReactJsonSchemaFormCompatibility=!0,this.formValuesInput="formData"):O(t,"formData")&&ce(t.formData)?(this.jsf.ReactJsonSchemaFormCompatibility=!0,this.jsf.formValues=(0,we.default)(t.formData),this.formValuesInput="form.formData"):this.formValuesInput="data"}initializeLayout(){let t=d=>((H(d)||N(d))&&en(d,(p,m)=>{O(p,"options")&&H(p.options)&&(p.titleMap=p.options,delete p.options)},"top-down"),d),r=this.form(),i=this.layout();N(i)?this.jsf.layout=(0,we.default)(i):N(r)?(this.jsf.AngularSchemaFormCompatibility=!0,this.jsf.layout=(0,we.default)(r)):r&&N(r.form)?(this.jsf.JsonFormCompatibility=!0,this.jsf.layout=t((0,we.default)(r.form))):r&&N(r.layout)?this.jsf.layout=(0,we.default)(r.layout):this.jsf.layout=["*"];let a=null,l=this.form(),u=this.UISchema();H(u)?(this.jsf.ReactJsonSchemaFormCompatibility=!0,a=(0,we.default)(u)):O(l,"UISchema")?(this.jsf.ReactJsonSchemaFormCompatibility=!0,a=(0,we.default)(l.UISchema)):O(l,"uiSchema")?(this.jsf.ReactJsonSchemaFormCompatibility=!0,a=(0,we.default)(l.uiSchema)):O(l,"customFormItems")&&(this.jsf.JsonFormCompatibility=!0,a=t((0,we.default)(l.customFormItems))),a&&M.forEachDeep(a,(d,p)=>{let m=p.replace(/\//g,"/properties/").replace(/\/properties\/items\/properties\//g,"/items/properties/").replace(/\/properties\/titleMap\/properties\//g,"/titleMap/properties/");if(ce(d)&&ce(p)){let _=M.toKey(p),w=(M.parse(m)||[]).slice(0,-2),x;_.toLowerCase()==="ui:order"?x=[...w,"ui:order"]:(_.slice(0,3).toLowerCase()==="ui:"&&(_=_.slice(3)),x=[...w,"x-schema-form",_]),M.has(this.jsf.schema,w)&&!M.has(this.jsf.schema,x)&&M.set(this.jsf.schema,x,d)}})}activateForm(){if(this.unsubscribeOnActivateForm$.next(),ge(this.jsf.schema)&&(ge(this.jsf.formValues)||this.jsf.buildSchemaFromData()),ge(this.jsf.schema)||(this.jsf.buildLayout(this.widgetLibrary),this.jsf.buildFormGroupTemplate(this.jsf.formValues),this.jsf.buildFormGroup(this.ajvInstanceName)),this.jsf.formGroup){!ge(this.jsf.formValues)&&this.jsf.formOptions.setSchemaDefaults!==!0&&this.jsf.formOptions.setLayoutDefaults!==!0&&this.setFormValues(this.jsf.formValues),this.dataChangesSubs=this.jsf.dataChanges.pipe(Ln(this.unsubscribeOnActivateForm$)).subscribe(r=>{this.onChanges.emit(this.objectWrap?r[1]:r),this.formValuesInput&&this.formValuesInput.indexOf(".")===-1&&this[`${this.formValuesInput}Change`].emit(this.objectWrap?r[1]:r)}),this.statusChangesSubs=this.jsf.formGroup.statusChanges.pipe(Ln(this.unsubscribeOnActivateForm$)).subscribe(()=>this.changeDetector.markForCheck()),this.isValidChangesSubs=this.jsf.isValidChanges.pipe(Ln(this.unsubscribeOnActivateForm$)).subscribe(r=>this.isValid.emit(r)),this.validationErrorChangesSubs=this.jsf.validationErrorChanges.pipe(Ln(this.unsubscribeOnActivateForm$)).subscribe(r=>this.validationErrors.emit(r)),this.formSchema.emit(this.jsf.schema),this.formLayout.emit(this.jsf.layout),this.onChanges.emit(this.objectWrap?this.jsf.data[1]:this.jsf.data);let t=M.get(this.jsf,"/formOptions/validateOnRender");if(t){let r=i=>{(t===!0||ce(i.value))&&i.markAsTouched(),Object.keys(i.controls||{}).forEach(a=>r(i.controls[a]))};r(this.jsf.formGroup),this.isValid.emit(this.jsf.isValid),this.validationErrors.emit(this.jsf.ajvErrors)}}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["json-schema-form"]],inputs:{schema:[1,"schema"],layout:[1,"layout"],data:[1,"data"],options:[1,"options"],framework:[1,"framework"],widgets:[1,"widgets"],form:[1,"form"],model:[1,"model"],JSONSchema:[1,"JSONSchema"],UISchema:[1,"UISchema"],formData:[1,"formData"],ngModel:[1,"ngModel"],language:[1,"language"],loadExternalAssets:[1,"loadExternalAssets"],debug:[1,"debug"],theme:[1,"theme"],ajvOptions:[1,"ajvOptions"],value:"value"},outputs:{onChanges:"onChanges",onSubmit:"onSubmit",isValid:"isValid",validationErrors:"validationErrors",formSchema:"formSchema",formLayout:"formLayout",dataChange:"dataChange",modelChange:"modelChange",formDataChange:"formDataChange",ngModelChange:"ngModelChange"},standalone:!1,features:[oo([ze,pX]),Kt],decls:3,vars:3,consts:[[1,"json-schema-form",3,"ngSubmit","autocomplete"],[3,"layout"],[4,"ngIf"]],template:function(r,i){r&1&&(ee(0,"form",0),rt("ngSubmit",function(){return i.submitForm()}),oe(1,"root-widget",1),X(),se(2,hY,4,1,"div",2)),r&2&&(E("autocomplete",!(i.jsf==null||i.jsf.formOptions==null)&&i.jsf.formOptions.autocomplete?"on":"off"),L(),E("layout",i.jsf==null?null:i.jsf.layout),L(),E("ngIf",i.debug()||(i.jsf==null||i.jsf.formOptions==null?null:i.jsf.formOptions.debug)))},dependencies:[xt,n0,Xy,e0,Xm],encapsulation:2,changeDetection:0})}}return e})(),ja=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Sn({type:e})}static{this.\u0275inj=Cn({imports:[Ur,nf,rf,Ai,fX,Ai]})}}return e})();var Yn=Gt(zh(),1);function gX(e,n){if(e&1){let t=gt();ee(0,"button",6),rt("click",function(){ct(t);let i=j();return dt(i.removeItem())}),ee(1,"span",7),un(2,"\xD7"),X(),ee(3,"span"),un(4,"Close"),X()()}if(e&2){let t=j();Y(t.widgetStyles().__remove_item__),L(3),Y(t.widgetStyles().__screen_reader__)}}function _X(e,n){if(e&1&&oe(0,"p",8),e&2){let t=j(2);Y(t.widgetStyles().__help_block__),E("innerHTML",t.options==null?null:t.options.helpBlock,$e)}}function yX(e,n){if(e&1&&(ee(0,"div"),se(1,_X,1,3,"p",3),X()),e&2){let t=j();L(),E("ngIf",t.options==null?null:t.options.helpBlock)}}function vX(e,n){if(e&1&&oe(0,"label",8),e&2){let t,r=j();Y((r.options==null?null:r.options.labelHtmlClass)||""),wt("sr-only",r.options==null?null:r.options.notitle),E("innerHTML",r.dynamicTitle,$e),De("for","control"+((t=r.layoutNode())==null?null:t._id))}}function bX(e,n){if(e&1&&(ee(0,"p")(1,"strong"),un(2,"*"),X(),un(3," = required fields "),X()),e&2){let t=j();L(),Y(t.widgetStyles().__required_asterisk__)}}function wX(e,n){if(e&1&&oe(0,"span",8),e&2){let t=j();Y(t.widgetStyles().__field_addon_left__),E("innerHTML",t.options==null?null:t.options.fieldAddonLeft,$e)}}function xX(e,n){if(e&1&&oe(0,"span",8),e&2){let t=j();Y(t.widgetStyles().__field_addon_right__),E("innerHTML",t.options==null?null:t.options.fieldAddonRight,$e)}}function IX(e,n){if(e&1&&oe(0,"span",9),e&2){let t=j();wt("glyphicon-ok",(t.options==null?null:t.options.enableSuccessState)&&!(t.formControl!=null&&t.formControl.errors))("glyphicon-remove",(t.options==null?null:t.options.enableErrorState)&&(t.formControl==null?null:t.formControl.errors))}}function CX(e,n){if(e&1&&oe(0,"p",8),e&2){let t=j(2);Y(t.widgetStyles().__help_block__),E("innerHTML",t.options==null?null:t.options.helpBlock,$e)}}function SX(e,n){if(e&1&&(ee(0,"div"),se(1,CX,1,3,"p",3),X()),e&2){let t=j();L(),E("ngIf",t.options==null?null:t.options.helpBlock)}}function DX(e,n){if(e&1&&(ee(0,"div"),un(1,"debug: "),ee(2,"pre"),un(3),X()()),e&2){let t=j();L(3),io(t.debugOutput)}}var La=(()=>{class e{constructor(){this.frameworkThemeSubject=new no("default"),this.frameworkTheme$=this.frameworkThemeSubject.asObservable()}requestThemeChange(t){this.frameworkThemeSubject.next(t),this.activeRequestedTheme=t}getActiveRequestedTheme(){return this.activeRequestedTheme}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Qm=(()=>{class e{applyCssClasses(t,r,i){let a=this.widgetStyles()[t];(!a||Yn.default.isEmpty(a))&&(a=this.widgetStyles().default),Object.keys(a).forEach(l=>{let u=a[l];u.length&&(r[l]=$r(r[l],u)),i&&(r[l]=$r(r[l],i))})}flattenWidgetStyles(t){var r={};let i=["__themes__"];return Object.keys(t).forEach(a=>{let l=t[a];if(i.indexOf(a)>=0){r[a]=l;return}Yn.default.isArray(l)&&(r[a]=l.join(" ")),Yn.default.isObject(l)&&(r[a]=r[a]||{},Object.keys(l).forEach(u=>{let d=l[u];Yn.default.isArray(d)?r[a][u]=d.join(" "):r[a][u]=d})),Yn.default.isString(l)&&(r[a]=l)}),r}constructor(){this.cdr=U(cn),this.jsf=U(ze),this.jsfFLService=U(ji),this.cssFWService=U(La),this.frameworkInitialized=!1,this.formControl=null,this.debugOutput="",this.debug="",this.parentArray=null,this.isOrderable=!1,this.dynamicTitle=null,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0),this.widgetStyles=Uy(void 0),this.defaultStyling={array:{},default:{fieldHtmlClass:"cssfw-form-control"},__themes__:[{name:"notheme",text:"None"}],__remove_item__:"cssfw-remove-item",__array_item_nonref__:{htmlClass:"cssfw-array-item-nonref"},__active__:{activeClass:"cssfw-active"},__array__:{htmlClass:"cssfw-array"},__control_label__:{labelHtmlClass:"cssfw-control-label"},__form_group__:{htmlClass:"cssfw-form-group"},__field_addon_left__:"cssfw-addon-left",__field_addon_right__:"cssfw-addon-right",__help_block__:"cssfw-help-block",__required_asterisk__:"cssfw-required-astersisk",__screen_reader__:"cssfw-screen-reader"};let t=this.cssFWService,i=this.jsfFLService.activeFramework.config||{};this.widgetStyles.set(Object.assign(this.defaultStyling,i.widgetstyles));let a=this.widgetStyles().__themes__[0],l=t.activeRequestedTheme||a.name;this.theme=this.options?.theme||l}ngOnDestroy(){this.frameworkThemeSubs?.unsubscribe(),this.frameworkThemeSubs=null}get showRemoveButton(){let t=this.layoutNode();return!this.options.removable||this.options.readonly||t.type==="$ref"?!1:t.recursiveReference?!0:!t.arrayItem||!this.parentArray||this.parentArray.items.length-1<=this.parentArray.options.minItems?!1:t.arrayItemType==="list"?!0:this.layoutIndex()[this.layoutIndex().length-1]===this.parentArray.items.length-2}ngOnInit(){let t=this.cssFWService;this.frameworkThemeSubs=t.frameworkTheme$.subscribe(i=>{this.theme=i,this.cdr.detectChanges()}),this.initializeFramework();let r=this.layoutNode();r.arrayItem&&r.type!=="$ref"&&(this.parentArray=this.jsf.getParentNode(this),this.parentArray&&(this.isOrderable=r.arrayItemType==="list"&&!this.options.readonly&&this.parentArray.options.orderable))}ngOnChanges(t){this.frameworkInitialized||this.initializeFramework(),this.isDynamicTitle&&this.updateTitle()}initializeFramework(){let t=this.layoutNode();if(t){if(this.options=(0,Yn.cloneDeep)(t.options),this.widgetLayoutNode=Ke(ue({},t),{options:(0,Yn.cloneDeep)(t.options)}),this.widgetOptions=this.widgetLayoutNode.options,this.formControl=this.jsf.getFormControl(this),this.options.isInputWidget=ft(t.type,["button","checkbox","checkboxes-inline","checkboxes","color","date","datetime-local","datetime","email","file","hidden","image","integer","month","number","password","radio","radiobuttons","radios-inline","radios","range","reset","search","select","submit","tel","text","textarea","time","url","week"]),this.isDynamicTitle=this.options?.title&&/{{.+?}}/.test(this.options.title),this.dynamicTitle=this.options?.title,!["$ref","advancedfieldset","authfieldset","button","card","checkbox","expansion-panel","help","message","msg","section","submit","tabarray","tabs"].includes(t.type)&&/{{.+?}}/.test(this.widgetOptions.title||"")&&this.updateTitle(),this.setTitle(),this.widgetOptions.title&&(this.dynamicTitle=""),this.options.htmlClass=$r(this.options.htmlClass,"schema-form-"+t.type),t.type==="array"?this.options.htmlClass=$r(this.options.htmlClass,this.widgetStyles().__array__.htmlClass):t.arrayItem&&t.type!=="$ref"?this.options.htmlClass=$r(this.options.htmlClass,this.widgetStyles().__array_item_nonref__.htmlClass):this.options.htmlClass=$r(this.options.htmlClass,this.widgetStyles().__form_group__.htmlClass),this.widgetOptions.htmlClass="",this.options.labelHtmlClass=$r(this.options.labelHtmlClass,this.widgetStyles().__control_label__.labelHtmlClass),this.widgetOptions.activeClass=$r(this.widgetOptions.activeClass,this.widgetStyles().__active__.activeClass),this.options.fieldAddonLeft=this.options.fieldAddonLeft||this.options.prepend,this.options.fieldAddonRight=this.options.fieldAddonRight||this.options.append,this.options.title&&t.type!=="tab"&&!this.options.notitle&&this.options.required&&!this.options.title.includes("*")){let r=this.widgetStyles().__required_asterisk__||"text-danger";this.options.title+=` <strong class="${r}">*</strong>`}if(t.type=="optionfieldset"&&(this.options.messageLocation="top"),this.applyCssClasses(t.type,this.widgetOptions,this.options.style),this.formControl&&(this.updateHelpBlock(this.formControl.status),this.formControl.statusChanges.subscribe(r=>this.updateHelpBlock(r)),this.options.debug)){let r=[];this.debugOutput=(0,Yn.map)(r,i=>JSON.stringify(i,null,2)).join(`
33
+ `)}this.frameworkInitialized=!0}}updateHelpBlock(t){this.options.helpBlock=t==="INVALID"&&this.options.enableErrorState&&this.formControl.errors&&(this.formControl.dirty||this.options.feedbackOnRender)?this.jsf.formatErrors(this.formControl.errors,this.options.validationMessages):this.options.description||this.options.help||null}setTitle(){switch(this.layoutNode().type){case"button":case"checkbox":case"section":case"help":case"msg":case"submit":case"message":case"tabarray":case"tabs":case"$ref":return null;case"advancedfieldset":return this.widgetOptions.expandable=!0,this.widgetOptions.title="Advanced options",null;case"authfieldset":return this.widgetOptions.expandable=!0,this.widgetOptions.title="Authentication settings",null;case"fieldset":return this.widgetOptions.title=this.options.title,null;case"array":return this.widgetOptions.title=this.options.title,null;default:return this.widgetOptions.title=null,this.jsf.setItemTitle(this)}}updateTitle(){this.dynamicTitle=this.jsf.parseText(this.options?.title,this.jsf.getFormControlValue(this),this.jsf.getFormControlGroup(this)?.value,this.dataIndex()[this.dataIndex().length-1])}removeItem(){this.jsf.removeItem(this)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["css-framework"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"],widgetStyles:[1,"widgetStyles"]},outputs:{widgetStyles:"widgetStylesChange"},standalone:!1,features:[Kt],decls:12,vars:24,consts:[["type","button",3,"class","click",4,"ngIf"],[4,"ngIf"],[3,"class","sr-only","innerHTML",4,"ngIf"],[3,"class","innerHTML",4,"ngIf"],[3,"layoutNode","dataIndex","layoutIndex"],["aria-hidden","true","class","form-control-feedback glyphicon",3,"glyphicon-ok","glyphicon-remove",4,"ngIf"],["type","button",3,"click"],["aria-hidden","true"],[3,"innerHTML"],["aria-hidden","true",1,"form-control-feedback","glyphicon"]],template:function(r,i){if(r&1&&(ee(0,"div"),se(1,gX,5,4,"button",0)(2,yX,2,1,"div",1)(3,vX,1,6,"label",2)(4,bX,4,2,"p",1),ee(5,"div"),se(6,wX,1,3,"span",3),oe(7,"select-widget-widget",4),se(8,xX,1,3,"span",3),X(),se(9,IX,1,4,"span",5)(10,SX,2,1,"div",1),X(),se(11,DX,4,1,"div",1)),r&2){let a,l,u,d;Y((i.options==null?null:i.options.htmlClass)||""),wt("has-feedback",(i.options==null?null:i.options.feedback)&&(i.options==null?null:i.options.isInputWidget)&&((i.formControl==null?null:i.formControl.dirty)||(i.options==null?null:i.options.feedbackOnRender)))("has-error",(i.options==null?null:i.options.enableErrorState)&&(i.formControl==null?null:i.formControl.errors)&&((i.formControl==null?null:i.formControl.dirty)||(i.options==null?null:i.options.feedbackOnRender)))("has-success",(i.options==null?null:i.options.enableSuccessState)&&!(i.formControl!=null&&i.formControl.errors)&&((i.formControl==null?null:i.formControl.dirty)||(i.options==null?null:i.options.feedbackOnRender))),De("data-bs-theme",i.theme)("data-theme",i.theme),L(),E("ngIf",i.showRemoveButton),L(),E("ngIf",(i.options==null?null:i.options.messageLocation)==="top"&&((a=i.layoutNode())==null?null:a.type)!=="array"),L(),E("ngIf",(i.options==null?null:i.options.title)&&((l=i.layoutNode())==null?null:l.type)!=="tab"&&((l=i.layoutNode())==null?null:l.type)!=="array"),L(),E("ngIf",((u=i.layoutNode())==null?null:u.type)==="submit"&&(i.jsf==null||i.jsf.formOptions==null?null:i.jsf.formOptions.fieldsRequired)),L(),wt("input-group",(i.options==null?null:i.options.fieldAddonLeft)||(i.options==null?null:i.options.fieldAddonRight)),L(),E("ngIf",i.options==null?null:i.options.fieldAddonLeft),L(),E("layoutNode",i.widgetLayoutNode)("dataIndex",i.dataIndex())("layoutIndex",i.layoutIndex()),L(),E("ngIf",i.options==null?null:i.options.fieldAddonRight),L(),E("ngIf",(i.options==null?null:i.options.feedback)&&(i.options==null?null:i.options.isInputWidget)&&!(i.options!=null&&i.options.fieldAddonRight)&&!i.layoutNode().arrayItem&&((i.formControl==null?null:i.formControl.dirty)||(i.options==null?null:i.options.feedbackOnRender))),L(),E("ngIf",(i.options==null?null:i.options.messageLocation)!=="top"&&((d=i.layoutNode())==null?null:d.type)!=="array"),L(),E("ngIf",i.debug&&i.debugOutput)}},dependencies:[xc,xt],styles:[`:host ::ng-deep .list-group-item .form-control-feedback{top:40px}:host ::ng-deep .checkbox,:host ::ng-deep .radio{margin-top:0;margin-bottom:0}:host ::ng-deep .checkbox-inline,:host ::ng-deep .checkbox-inline+.checkbox-inline,:host ::ng-deep .checkbox-inline+.radio-inline,:host ::ng-deep .radio-inline,:host ::ng-deep .radio-inline+.radio-inline,:host ::ng-deep .radio-inline+.checkbox-inline{margin-left:0;margin-right:10px}:host ::ng-deep .checkbox-inline:last-child,:host ::ng-deep .radio-inline:last-child{margin-right:0}:host ::ng-deep .ng-invalid.ng-touched{border:1px solid #f44336}.checkbox-inline,.checkbox-inline+.checkbox-inline,.checkbox-inline+.radio-inline,.radio-inline,.radio-inline+.radio-inline,.radio-inline+.checkbox-inline{margin-left:0;margin-right:10px}.checkbox-inline:last-child,.radio-inline:last-child{margin-right:0}.ng-invalid.ng-touched{border:1px solid #f44336}
34
+ `],encapsulation:2})}}return e})(),OX=new Vn("CSS_FRAMEWORK_CFG"),ME;(function(e){class n{}e.csscategories=n})(ME||(ME={}));var NE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Sn({type:e})}static{this.\u0275inj=Cn({providers:[ze,ji,Uo,La],imports:[ja,Ur,Ai]})}}return e})(),kE=(()=>{class e extends qi{constructor(t){super(),this.cssFWService=U(La),this.name="css",this.framework=Qm,this.name=t.name,this.text=t.text||this.name,this.stylesheets=t.stylesheets,this.scripts=t.scripts,this.config=t,this.widgets=t.widgets}getActiveTheme(){let t=this.cssFWService.getActiveRequestedTheme(),r=this.config?.widgetstyles?.__themes__,i=r&&r[0];if(t&&(i={name:t,text:t},r)){let a=r.filter(l=>l.name==t);i=a&&a[0]||i}return i}requestThemeChange(t){this.cssFWService.requestThemeChange(t)}registerTheme(t,r=!0){let a=(this.config?.widgetstyles?.__themes__||[]).filter(l=>t.name==l.name);if(a&&a[0]){if(r)return a[0].text=t.text,!0;if(!r)return!1}if(!a||a.length==0){let l=this.config;return l.widgetstyles=this.config.widgetstyles||{},l.widgetstyles.__themes__=l.widgetstyles.__themes__||[],l.widgetstyles.__themes__.push(t),!0}}unregisterTheme(t){let r=this.config?.widgetstyles?.__themes__,i=-1;return r&&(r.forEach((a,l)=>{t==a.name&&(i=l)}),i>=0)?(r.splice(i,1),!0):!1}getConfig(){return this.config}static{this.\u0275fac=function(r){return new(r||e)(Fl(OX))}}static{this.\u0275prov=Je({token:e,factory:e.\u0275fac})}}return e})();var EX=(()=>{class e{constructor(){this.changeDetector=U(cn),this.jsf=U(ze),this.frameworkInitialized=!1,this.formControl=null,this.debugOutput="",this.debug="",this.parentArray=null,this.isOrderable=!1,this.layoutNode=B(void 0),this.layoutIndex=B(void 0),this.dataIndex=B(void 0)}ngOnInit(){}ngOnChanges(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Fe({type:e,selectors:[["bootstrap-5-framework"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,features:[Kt],decls:2,vars:3,consts:[[3,"layoutNode","layoutIndex","dataIndex"]],template:function(r,i){r&1&&(ee(0,"div"),oe(1,"css-framework",0),X()),r&2&&(L(),E("layoutNode",i.layoutNode())("layoutIndex",i.layoutIndex())("dataIndex",i.dataIndex()))},dependencies:[Qm],styles:[`:host ::ng-deep .list-group-item .list-group-item-hb .form-control-feedback{top:40px}:host ::ng-deep .checkbox,:host ::ng-deep .radio{margin-top:0;margin-bottom:0}:host ::ng-deep .checkbox-inline,:host ::ng-deep .checkbox-inline+.checkbox-inline,:host ::ng-deep .checkbox-inline+.radio-inline,:host ::ng-deep .radio-inline,:host ::ng-deep .radio-inline+.radio-inline,:host ::ng-deep .radio-inline+.checkbox-inline{margin-left:0;margin-right:10px}:host ::ng-deep .checkbox-inline:last-child,:host ::ng-deep .radio-inline:last-child{margin-right:0}:host ::ng-deep .ng-invalid.ng-touched{border:1px solid #f44336}.input-group .form-control:first-child,.input-group-text:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text:first-child{border-right:0}.input-group .form-control:last-child,.input-group-text:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text:last-child{border-left:0}.input-group .form-control:not(:first-child):not(:last-child),.input-group-text:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.btn-close>span:first-child{display:none}
35
+ `],encapsulation:2})}}return e})(),TX={name:"bootstrap-5",text:"Bootstrap 5",scripts:["//cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"],stylesheets:["//cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"],widgetstyles:{__themes__:[{name:"bootstrap5_default",text:"Bootstrap5 default"},{name:"dark",text:"Dark"},{name:"light",text:"Light"}],$ref:{fieldHtmlClass:"btn btn-primary"},__array_item_nonref__:{htmlClass:"list-group-item list-group-item-hb"},__form_group__:{htmlClass:"form-group"},__control_label__:{labelHtmlClass:"control-label"},__active__:{activeClass:"active"},__required_asterisk__:"text-danger",__screen_reader__:"visually-hidden",__remove_item__:"btn-close float-end",__help_block__:"help-block grey-text small",__field_addon_left__:"input-group-text",__field_addon_right__:"input-group-text","alt-date":{},"alt-datetime":{},__array__:{htmlClass:"list-group list-group-hb"},array:{},authfieldset:{},advancedfieldset:{},button:{fieldHtmlClass:"btn btn-sm btn-primary"},checkbox:{fieldHtmlClass:"form-check-input"},checkboxes:{fieldHtmlClass:"form-check-input"},checkboxbuttons:{fieldHtmlClass:"visually-hidden",htmlClass:"btn-group",itemLabelHtmlClass:"btn"},"checkboxes-inline":{htmlClass:"form-check-input",itemLabelHtmlClass:"form-check-inline"},date:{},"datetime-local":{},fieldset:{},integer:{},number:{},optionfieldset:{},password:{},radiobuttons:{fieldHtmlClass:"visually-hidden",htmlClass:"btn-group",itemLabelHtmlClass:"btn"},radio:{fieldHtmlClass:"form-check-input"},radios:{fieldHtmlClass:"form-check-input"},"radios-inline":{htmlClass:"form-check form-check-inline",itemLabelHtmlClass:"form-check-label"},range:{},section:{},selectfieldset:{},select:{fieldHtmlClass:"form-select"},submit:{fieldHtmlClass:"btn btn-primary"},text:{},tabs:{labelHtmlClass:"nav nav-tabs",htmlClass:"tab-content",fieldHtmlClass:"tab-pane",widget_radioClass:"form-check-input"},tabarray:{labelHtmlClass:"nav nav-tabs",htmlClass:"tab-content",fieldHtmlClass:"tab-pane",widget_radioClass:"form-check-input"},"one-of":{labelHtmlClass:"nav nav-tabs",htmlClass:"tab-content",fieldHtmlClass:"tab-pane",widget_radioClass:"form-check-input"},textarea:{},default:{fieldHtmlClass:"form-control"}}},$X=(()=>{class e extends kE{constructor(){let t=U(La);super(TX),this.framework=EX,this.cssFWService=t}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Je({token:e,factory:e.\u0275fac})}}return e})(),Boe=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Sn({type:e})}static{this.\u0275inj=Cn({providers:[ze,ji,Uo,{provide:qi,useClass:$X,multi:!0}],imports:[ja,Ur,Ai,NE,ja]})}}return e})();export{jm as a,hX as b,ja as c,Boe as d};