@datalayer/agent-runtimes 1.6.46 → 1.6.47

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 (333) hide show
  1. package/dist-embed/chunks/{AgentDetails-DC7O2VWb.js → AgentDetails-CFUOZ-Bq.js} +1 -1
  2. package/dist-embed/chunks/{AgentDetailsDialog-BTJCl-o-.js → AgentDetailsDialog-0OQcRHgy.js} +1 -1
  3. package/dist-embed/chunks/{AgentInspector-BXqYY8g-.js → AgentInspector-CMjveNA0.js} +1 -1
  4. package/dist-embed/chunks/{AgentInspectorDialog-dRHZ1p73.js → AgentInspectorDialog-B_ii1_F3.js} +1 -1
  5. package/dist-embed/chunks/{CellSidebarExtension-DXPIz0Km.js → CellSidebarExtension-vXN5wge0.js} +7 -7
  6. package/dist-embed/chunks/ChatView-BGIbssMm.js +32 -0
  7. package/dist-embed/chunks/{CollapsiblePlugin-BPlfrDQU.js → CollapsiblePlugin-DyobyCLm.js} +1 -1
  8. package/dist-embed/chunks/{ContextPie-BHiGwDpa.js → ContextPie-CY7-2OcN.js} +1 -1
  9. package/dist-embed/chunks/DatalayerAgentBridge-X6uBhrBZ.js +1 -0
  10. package/dist-embed/chunks/{DeckComponent-jvb83Q__.js → DeckComponent-B5IMw4r1.js} +2 -2
  11. package/dist-embed/chunks/{DocumentView-BrdFnTVh.js → DocumentView-IqGVIpnF.js} +1 -1
  12. package/dist-embed/chunks/{EphemeralDocument-CkPQKyfy.js → EphemeralDocument-DZ8Wk5du.js} +1 -1
  13. package/dist-embed/chunks/{EphemeralNotebook-CiQIC3MG.js → EphemeralNotebook-B3ZMORn1.js} +2 -2
  14. package/dist-embed/chunks/{ExcalidrawComponent-D6Cr_b0Z.js → ExcalidrawComponent-9ant-hu6.js} +1 -1
  15. package/dist-embed/chunks/{ExcalidrawModal-Bso7oDbl.js → ExcalidrawModal-92wiYWnH.js} +1 -1
  16. package/dist-embed/chunks/{JupyterLexicalExtension-DuD7IV6j.js → JupyterLexicalExtension-DbMi7Dam.js} +9 -9
  17. package/dist-embed/chunks/{KernelVariables-CXQagESp.js → KernelVariables-lzdkfkh4.js} +2 -2
  18. package/dist-embed/chunks/{LexicalToolRegistry-LfEpCrfD.js → LexicalToolRegistry-Bd1yXjzB.js} +2 -2
  19. package/dist-embed/chunks/{NotebookSkeleton-CvO9WylK.js → NotebookSkeleton-BaU6vrsb.js} +1 -1
  20. package/dist-embed/chunks/{NotebookToolSurfaces-B9fkzQNR.js → NotebookToolSurfaces-Gk8Hsn0c.js} +1 -1
  21. package/dist-embed/chunks/{NotebookToolbar-D36duUxK.js → NotebookToolbar-CO_qaXBp.js} +1 -1
  22. package/dist-embed/chunks/{NotebookView-BrdHwtKH.js → NotebookView-B5jqU279.js} +1 -1
  23. package/dist-embed/chunks/{Output-D9cwH5rg.js → Output-DtWAAuKd.js} +1 -1
  24. package/dist-embed/chunks/{SandboxDetailsDialog-BYgLjg3W.js → SandboxDetailsDialog-4cOtcyub.js} +1 -1
  25. package/dist-embed/chunks/{SchemaForm-B3qMIWMy.js → SchemaForm-CulhQBil.js} +1 -1
  26. package/dist-embed/chunks/{SheetTabs-BR72mzuo.js → SheetTabs-Bc8bBVQ1.js} +3 -3
  27. package/dist-embed/chunks/{SpreadsheetPreviewView-RA8ASTBV.js → SpreadsheetPreviewView-nFAjWUZ5.js} +1 -1
  28. package/dist-embed/chunks/{SpreadsheetView-BfScdA-X.js → SpreadsheetView-CBC_KFON.js} +1 -1
  29. package/dist-embed/chunks/{Toolbar-BAjGB6b-.js → Toolbar-ByUGXe7J.js} +1 -1
  30. package/dist-embed/chunks/{WidgetVariableView-7lvDcxCg.js → WidgetVariableView-CE4nO4my.js} +1 -1
  31. package/dist-embed/chunks/{YouTubePlugin-BbjCzaT_.js → YouTubePlugin-DS4rJSGB.js} +1 -1
  32. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-COr9T6op.js → abnfDiagram-VCTEODGH-BAFsXu3t.js} +1 -1
  33. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-Ct4NEcIK.js → abnfDiagram-VCTEODGH-B_sHPJUN.js} +1 -1
  34. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-BRIqJ785.js → abnfDiagram-VCTEODGH-Nk_v6YcC.js} +1 -1
  35. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-D4M2b5Lr.js → ar-SA-G6X2FPQ2-oGeNqqRN.js} +1 -1
  36. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-D4oRtyHS.js → architectureDiagram-5GKGNRK7-1ZoJLZwi.js} +1 -1
  37. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-C7u5kHjb.js → architectureDiagram-5GKGNRK7-CSwlFsek.js} +1 -1
  38. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BjY5iY3I.js → architectureDiagram-5GKGNRK7-CXh0a2fl.js} +1 -1
  39. package/dist-embed/chunks/{az-AZ-76LH7QW2-Rn7oINhz.js → az-AZ-76LH7QW2-Ckdua9fG.js} +1 -1
  40. package/dist-embed/chunks/{bg-BG-XCXSNQG7-xztohKe7.js → bg-BG-XCXSNQG7-D0NWa5AJ.js} +1 -1
  41. package/dist-embed/chunks/{blockDiagram-868be97b-CovMH3zl.js → blockDiagram-868be97b-CXF_hory.js} +1 -1
  42. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-CkSMfCfm.js → blockDiagram-I7D4REHJ-C9eqiZJU.js} +1 -1
  43. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-GfTzHDnC.js → blockDiagram-I7D4REHJ-CajpRIdD.js} +1 -1
  44. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-B4X_5qFz.js → blockDiagram-I7D4REHJ-DltT5qVn.js} +1 -1
  45. package/dist-embed/chunks/{bn-BD-2XOGV67Q-C7Ssg1_2.js → bn-BD-2XOGV67Q-CZbU71zu.js} +1 -1
  46. package/dist-embed/chunks/{c4Diagram-3f4bdde3-DjidyC1r.js → c4Diagram-3f4bdde3-CcVl9FWN.js} +1 -1
  47. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BqdUJ-a0.js → c4Diagram-7LVT6UL2-BHH3V3vI.js} +1 -1
  48. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BQzLCwYE.js → c4Diagram-7LVT6UL2-Qn3VrAmQ.js} +1 -1
  49. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-CvxA6W4e.js → c4Diagram-7LVT6UL2-gcd6QnFn.js} +1 -1
  50. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-Cr0zd8Z6.js → ca-ES-6MX7JW3Y-CDkEhhvJ.js} +1 -1
  51. package/dist-embed/chunks/{celltoolbartracker-D1C_kGQL.js → celltoolbartracker-BiNbwXlm.js} +1 -1
  52. package/dist-embed/chunks/{chunk-2Q5K7J3B-BU7nuyLy.js → chunk-2Q5K7J3B-BOvbpwkI.js} +1 -1
  53. package/dist-embed/chunks/{chunk-2Q5K7J3B-DTLOUvry.js → chunk-2Q5K7J3B-C2sNsgev.js} +1 -1
  54. package/dist-embed/chunks/{chunk-2Q5K7J3B-0A899Arf.js → chunk-2Q5K7J3B-GG70N9jl.js} +1 -1
  55. package/dist-embed/chunks/{chunk-5VM5RSS4-Bx2V6Nrr.js → chunk-5VM5RSS4-CAAgFs5e.js} +1 -1
  56. package/dist-embed/chunks/{chunk-5VM5RSS4-DXLjroNr.js → chunk-5VM5RSS4-Cle_89ej.js} +1 -1
  57. package/dist-embed/chunks/{chunk-5VM5RSS4-Tu_sNIjZ.js → chunk-5VM5RSS4-FA3LbrKz.js} +1 -1
  58. package/dist-embed/chunks/{chunk-F27PBJKO-DlCzGOX7.js → chunk-F27PBJKO-3X0ZipiC.js} +1 -1
  59. package/dist-embed/chunks/{chunk-F27PBJKO--AK2bGwU.js → chunk-F27PBJKO-Cgut8fat.js} +1 -1
  60. package/dist-embed/chunks/{chunk-F27PBJKO-DH0Y71GT.js → chunk-F27PBJKO-RLRQOyxZ.js} +1 -1
  61. package/dist-embed/chunks/{chunk-IMKFNOWR-D7LtolQ9.js → chunk-IMKFNOWR-BHFcfXrD.js} +1 -1
  62. package/dist-embed/chunks/{chunk-IMKFNOWR-DwaJo6nd.js → chunk-IMKFNOWR-C4ydUPhx.js} +1 -1
  63. package/dist-embed/chunks/{chunk-IMKFNOWR-CAMMjZDn.js → chunk-IMKFNOWR-CbVrj1-B.js} +1 -1
  64. package/dist-embed/chunks/{chunk-JWPE2WC7-B4ZyAymW.js → chunk-JWPE2WC7-Cyj9DtDK.js} +1 -1
  65. package/dist-embed/chunks/{chunk-JWPE2WC7-DAHI-TVh.js → chunk-JWPE2WC7-DIamN27i.js} +1 -1
  66. package/dist-embed/chunks/{chunk-JWPE2WC7-PrapfKnD.js → chunk-JWPE2WC7-DjRj5y1C.js} +1 -1
  67. package/dist-embed/chunks/{chunk-POPQ4Y6H-CPqfpqZP.js → chunk-POPQ4Y6H-B4VehBHR.js} +1 -1
  68. package/dist-embed/chunks/{chunk-POPQ4Y6H-COTyhLEP.js → chunk-POPQ4Y6H-Cz3CE_QJ.js} +1 -1
  69. package/dist-embed/chunks/{chunk-POPQ4Y6H-NHNNgLDe.js → chunk-POPQ4Y6H-P4Z54Nsh.js} +1 -1
  70. package/dist-embed/chunks/{chunk-SVP7TREG-Cs2sH6R-.js → chunk-SVP7TREG-BcAM4zz1.js} +1 -1
  71. package/dist-embed/chunks/{chunk-SVP7TREG-CbTLnK0f.js → chunk-SVP7TREG-BvC6HSBM.js} +1 -1
  72. package/dist-embed/chunks/{chunk-SVP7TREG-dVSPfe2c.js → chunk-SVP7TREG-e7xrbkXt.js} +1 -1
  73. package/dist-embed/chunks/{chunk-TICWLB2K-BB_Y-4ml.js → chunk-TICWLB2K-DXyPfm2K.js} +1 -1
  74. package/dist-embed/chunks/{chunk-TICWLB2K-CfOjQFyb.js → chunk-TICWLB2K-Dq04meN3.js} +1 -1
  75. package/dist-embed/chunks/{chunk-TICWLB2K-87-bxVAe.js → chunk-TICWLB2K-DryI_fVu.js} +1 -1
  76. package/dist-embed/chunks/{chunk-XXDRQBXY-iJemHF_x.js → chunk-XXDRQBXY-Bg1z5wvl.js} +1 -1
  77. package/dist-embed/chunks/{chunk-XXDRQBXY-5ZZJYzFF.js → chunk-XXDRQBXY-DdaBayRJ.js} +1 -1
  78. package/dist-embed/chunks/{chunk-XXDRQBXY-DSsbiqRJ.js → chunk-XXDRQBXY-RiUzxSa_.js} +1 -1
  79. package/dist-embed/chunks/{classDiagram-ZZMXUADV-ClW13A2U.js → classDiagram-ZZMXUADV-DN-XosUZ.js} +1 -1
  80. package/dist-embed/chunks/{classDiagram-ZZMXUADV-CAHeG1gF.js → classDiagram-ZZMXUADV-DTxXqjtH.js} +1 -1
  81. package/dist-embed/chunks/{classDiagram-ZZMXUADV-Vh4RzyKh.js → classDiagram-ZZMXUADV-xUvH8sEw.js} +1 -1
  82. package/dist-embed/chunks/{classDiagram-f62afe4f-CMi22C0U.js → classDiagram-f62afe4f-Dn229LPE.js} +1 -1
  83. package/dist-embed/chunks/{classDiagram-v2-604399ef-C26x9ueJ.js → classDiagram-v2-604399ef-CiWW9MIF.js} +1 -1
  84. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-ClW13A2U.js → classDiagram-v2-VYDZK3BY-DN-XosUZ.js} +1 -1
  85. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-CAHeG1gF.js → classDiagram-v2-VYDZK3BY-DTxXqjtH.js} +1 -1
  86. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-Vh4RzyKh.js → classDiagram-v2-VYDZK3BY-xUvH8sEw.js} +1 -1
  87. package/dist-embed/chunks/{code-block-IT6T5CEO-DYCIn_7v.js → code-block-IT6T5CEO-CLvXlBx2.js} +8 -8
  88. package/dist-embed/chunks/{component-CmnuUtgX.js → component-D0l01bm2.js} +1 -1
  89. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BgIgDbgt.js → cose-bilkent-JH36ORCC-BYjRJxfr.js} +1 -1
  90. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-ChaVAK2T.js → cose-bilkent-JH36ORCC-DttpaBKc.js} +1 -1
  91. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BsiPRKfh.js → cose-bilkent-JH36ORCC-KUtlO0wZ.js} +1 -1
  92. package/dist-embed/chunks/{createText-aed3d8b3-B86AevE1.js → createText-aed3d8b3-BoxGA1kU.js} +1 -1
  93. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-G9tBUkZh.js → cs-CZ-2BRQDIVT-D3Tf2yLX.js} +1 -1
  94. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-Bx_RkYqS.js → cynefinDiagram-5FMLGOSQ-B2ciR9HO.js} +1 -1
  95. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-bJ9Z5Mhd.js → cynefinDiagram-5FMLGOSQ-CkZtxa_j.js} +1 -1
  96. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-DriUtMtG.js → cynefinDiagram-5FMLGOSQ-DLxzMI8R.js} +1 -1
  97. package/dist-embed/chunks/{da-DK-5WZEPLOC-91_vyLpq.js → da-DK-5WZEPLOC-8FuM_s_4.js} +1 -1
  98. package/dist-embed/chunks/{dagre-GXQ25YYZ-D3sdZMQI.js → dagre-GXQ25YYZ-B_GD3wQW.js} +1 -1
  99. package/dist-embed/chunks/{dagre-GXQ25YYZ-C-JIsuS8.js → dagre-GXQ25YYZ-BzK8S8ZN.js} +1 -1
  100. package/dist-embed/chunks/{dagre-GXQ25YYZ-DBL7Fy3A.js → dagre-GXQ25YYZ-D1SrKOMG.js} +1 -1
  101. package/dist-embed/chunks/{de-DE-XR44H4JA-Bb9tvIZa.js → de-DE-XR44H4JA-BczLv19p.js} +1 -1
  102. package/dist-embed/chunks/{diagram-S7CK7UJ4-D1nmgrkv.js → diagram-S7CK7UJ4-BFa-cF0f.js} +1 -1
  103. package/dist-embed/chunks/{diagram-S7CK7UJ4-DfneUYZ2.js → diagram-S7CK7UJ4-DD7qiEfG.js} +1 -1
  104. package/dist-embed/chunks/{diagram-S7CK7UJ4-4Qtqvrkr.js → diagram-S7CK7UJ4-DRQoONLl.js} +1 -1
  105. package/dist-embed/chunks/{diagram-UQ7AKVKN-CfcZ1PQb.js → diagram-UQ7AKVKN-CiW_VcOF.js} +1 -1
  106. package/dist-embed/chunks/{diagram-UQ7AKVKN-ADhyCAdr.js → diagram-UQ7AKVKN-D2IdtRtZ.js} +1 -1
  107. package/dist-embed/chunks/{diagram-UQ7AKVKN-1KwF4Mkc.js → diagram-UQ7AKVKN-DonHWSMp.js} +1 -1
  108. package/dist-embed/chunks/{diagram-VSXAHHWV-Cdcv0UHd.js → diagram-VSXAHHWV-BVjz0vRe.js} +1 -1
  109. package/dist-embed/chunks/{diagram-VSXAHHWV-C1l71k44.js → diagram-VSXAHHWV-Cw-PrCH0.js} +1 -1
  110. package/dist-embed/chunks/{diagram-VSXAHHWV-w4XrywKL.js → diagram-VSXAHHWV-DRDfYlTN.js} +1 -1
  111. package/dist-embed/chunks/{diagram-VX7I27RA-BSxXMnjW.js → diagram-VX7I27RA-DwAkBxoG.js} +1 -1
  112. package/dist-embed/chunks/{diagram-VX7I27RA-BNRSlia4.js → diagram-VX7I27RA-UIWotGW-.js} +1 -1
  113. package/dist-embed/chunks/{diagram-VX7I27RA-DY396bQc.js → diagram-VX7I27RA-eXyjCSfi.js} +1 -1
  114. package/dist-embed/chunks/{diagram-Z3DM3KII-Bts1R_lM.js → diagram-Z3DM3KII-C_tHi2zd.js} +1 -1
  115. package/dist-embed/chunks/{diagram-Z3DM3KII-CfBEqPQi.js → diagram-Z3DM3KII-DIayrWqD.js} +1 -1
  116. package/dist-embed/chunks/{diagram-Z3DM3KII-B4sR_460.js → diagram-Z3DM3KII-DRxec16z.js} +1 -1
  117. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DeJx0KuC.js → ebnfDiagram-PWID7BFC-CZS5hRDB.js} +1 -1
  118. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-BCOkfz5d.js → ebnfDiagram-PWID7BFC-DViSeEkV.js} +1 -1
  119. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DS3AbLt0.js → ebnfDiagram-PWID7BFC-z6EZsNAn.js} +1 -1
  120. package/dist-embed/chunks/{edges-b2856ca0-CaCZ7ENn.js → edges-b2856ca0-GkzwR7tH.js} +1 -1
  121. package/dist-embed/chunks/{el-GR-BZB4AONW-B5kc3JC5.js → el-GR-BZB4AONW-XmdkMj04.js} +1 -1
  122. package/dist-embed/chunks/{erDiagram-5d81789a-BC4jofcY.js → erDiagram-5d81789a-B-A6M2ym.js} +1 -1
  123. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CHQgrXAV.js → erDiagram-RLTQ6QDP-BxUZGGsY.js} +1 -1
  124. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CXED7TDM.js → erDiagram-RLTQ6QDP-DnyCH2Db.js} +1 -1
  125. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-UsFx9ZR6.js → erDiagram-RLTQ6QDP-V_YalCFO.js} +1 -1
  126. package/dist-embed/chunks/{es-ES-U4NZUMDT-CpFB18Kf.js → es-ES-U4NZUMDT-BM8o7VhK.js} +1 -1
  127. package/dist-embed/chunks/{esm-BqqxV5QL.js → esm-Bgc-xY8g.js} +1 -1
  128. package/dist-embed/chunks/{esm-Co3TYtt_.js → esm-C8NQHqRw.js} +1 -1
  129. package/dist-embed/chunks/{eu-ES-A7QVB2H4-CqCALK0Q.js → eu-ES-A7QVB2H4-C92PACcO.js} +1 -1
  130. package/dist-embed/chunks/{fa-IR-HGAKTJCU-BzSY8fri.js → fa-IR-HGAKTJCU-C0v8l3W9.js} +1 -1
  131. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-DPRPVT_v.js → fi-FI-Z5N7JZ37-C5OmBq6V.js} +1 -1
  132. package/dist-embed/chunks/{flowDb-185abca5-DiOj0UBd.js → flowDb-185abca5-DEP1pb38.js} +1 -1
  133. package/dist-embed/chunks/{flowDiagram-1629c991-D2rlxs4P.js → flowDiagram-1629c991-CKDo2Uo8.js} +1 -1
  134. package/dist-embed/chunks/{flowDiagram-HODETNUW-DnphRIev.js → flowDiagram-HODETNUW-BCHMnvj-.js} +1 -1
  135. package/dist-embed/chunks/{flowDiagram-HODETNUW-BAAyHp4o.js → flowDiagram-HODETNUW-DlFftQTx.js} +1 -1
  136. package/dist-embed/chunks/{flowDiagram-HODETNUW-CIEoNVmM.js → flowDiagram-HODETNUW-JbcKRj53.js} +1 -1
  137. package/dist-embed/chunks/{flowDiagram-v2-1d953310-CFBK75mM.js → flowDiagram-v2-1d953310-LUQyiANW.js} +1 -1
  138. package/dist-embed/chunks/{flowchart-elk-definition-6df44142-oM65WKay.js → flowchart-elk-definition-6df44142-C3W5GB7k.js} +1 -1
  139. package/dist-embed/chunks/{fr-FR-RHASNOE6-Cr4lVSvD.js → fr-FR-RHASNOE6-D2EL4poR.js} +1 -1
  140. package/dist-embed/chunks/{ganttDiagram-3b0b3873-onXTRtkk.js → ganttDiagram-3b0b3873-B7mJgJVE.js} +1 -1
  141. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Hu286RYG.js → ganttDiagram-EL5Y4UJY-CMnOlTLP.js} +1 -1
  142. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Boj571YL.js → ganttDiagram-EL5Y4UJY-Dh0UlkHT.js} +1 -1
  143. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-BXjqihIe.js → ganttDiagram-EL5Y4UJY-ZBBC8Bv6.js} +1 -1
  144. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-D-0lvFne.js → gitGraphDiagram-WWUBYQGX-CH3JDxr0.js} +1 -1
  145. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-Dn83WGOl.js → gitGraphDiagram-WWUBYQGX-DPjPLqu4.js} +1 -1
  146. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CVSBq_5E.js → gitGraphDiagram-WWUBYQGX-fWclmxuk.js} +1 -1
  147. package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-DUmhUEtF.js → gitGraphDiagram-f01e8bc2-CGKGKetD.js} +1 -1
  148. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-CZUw7dN0.js → gl-ES-HMX3MZ6V-YWFm4WxA.js} +1 -1
  149. package/dist-embed/chunks/{he-IL-6SHJWFNN-DaU5Odek.js → he-IL-6SHJWFNN-mX7JSlN-.js} +1 -1
  150. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-BZ84Rooc.js → hi-IN-IWLTKZ5I-D6yhTM4e.js} +1 -1
  151. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-SZiCSe0B.js → hu-HU-A5ZG7DT2-eb6aNn0F.js} +1 -1
  152. package/dist-embed/chunks/{id-ID-SAP4L64H-DrRa3vVi.js → id-ID-SAP4L64H-EhGa_Mrn.js} +1 -1
  153. package/dist-embed/chunks/{index-9bae90f3-OqtwF7zW.js → index-9bae90f3-Mi-C8rGJ.js} +1 -1
  154. package/dist-embed/chunks/{index-DBu0kmO8.js → index-C53VIWpA.js} +10 -10
  155. package/dist-embed/chunks/{index-B0Wuj2eL.js → index-CKrG-XEr.js} +1 -1
  156. package/dist-embed/chunks/{index-DpN8KK6c.js → index-CQzZPse_.js} +1 -1
  157. package/dist-embed/chunks/{index-CEeyR3FZ.js → index-CW9jwmnF.js} +1 -1
  158. package/dist-embed/chunks/{index-JmqWOkdt.js → index-CcDn6aA5.js} +2 -2
  159. package/dist-embed/chunks/{index-FucnjX8K.js → index-Cn1erzsp.js} +4 -4
  160. package/dist-embed/chunks/{index-BeQu6wh3.js → index-Mx7RvmI-.js} +4 -4
  161. package/dist-embed/chunks/{index-qhxI1VzX.js → index-Xpn7qE4M.js} +2 -2
  162. package/dist-embed/chunks/{index-hhftmReh.js → index-ke4HKN0W.js} +1 -1
  163. package/dist-embed/chunks/{index-B6-uQd5L.js → index-mXYl0SDo.js} +2 -2
  164. package/dist-embed/chunks/{index.esm-Bvtnemp7.js → index.esm-DFnCYMX-.js} +1 -1
  165. package/dist-embed/chunks/{index.esm-C6blgTRD.js → index.esm-Qo5C9a62.js} +1 -1
  166. package/dist-embed/chunks/{infoDiagram-27XIBGKW-BMVi2kA7.js → infoDiagram-27XIBGKW-BLbH-ZwT.js} +1 -1
  167. package/dist-embed/chunks/{infoDiagram-27XIBGKW-CIOfWKZS.js → infoDiagram-27XIBGKW-CVdKLCRu.js} +1 -1
  168. package/dist-embed/chunks/{infoDiagram-27XIBGKW-B6mmRg3n.js → infoDiagram-27XIBGKW-DKfKrKV3.js} +1 -1
  169. package/dist-embed/chunks/{infoDiagram-a29d40f1-C176duia.js → infoDiagram-a29d40f1-DtjZgHpG.js} +1 -1
  170. package/dist-embed/chunks/{isEqual-BYxXubsX.js → isEqual-CO9-1hO8.js} +1 -1
  171. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-aoviUwQy.js → ishikawaDiagram-5VMMS53U-0oKH5_3F.js} +1 -1
  172. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-D5ALaQir.js → ishikawaDiagram-5VMMS53U-BBHuXOEP.js} +1 -1
  173. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-pCzmYyRW.js → ishikawaDiagram-5VMMS53U-DIZaJSHk.js} +1 -1
  174. package/dist-embed/chunks/{it-IT-JPQ66NNP-_TEhDIcF.js → it-IT-JPQ66NNP-BEhvmrUK.js} +1 -1
  175. package/dist-embed/chunks/{ja-JP-DBVTYXUO-IJaTVgTb.js → ja-JP-DBVTYXUO-lmsxmH6A.js} +1 -1
  176. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-CDvOmpvU.js → journeyDiagram-3NMN7TZE-DkG1XeCY.js} +1 -1
  177. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DwMRB_U9.js → journeyDiagram-3NMN7TZE-fkubBGZE.js} +1 -1
  178. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BwEZ7tUE.js → journeyDiagram-3NMN7TZE-j2SA8xPg.js} +1 -1
  179. package/dist-embed/chunks/{journeyDiagram-95396277-eNxCaz5h.js → journeyDiagram-95396277-CJ_CSiyl.js} +1 -1
  180. package/dist-embed/chunks/{kaa-6HZHGXH3-CTksAiLJ.js → kaa-6HZHGXH3-C2eZOrFk.js} +1 -1
  181. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-DbA7aOfU.js → kab-KAB-ZGHBKWFO-BtO_Ccgd.js} +1 -1
  182. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-CJ9VIyON.js → kanban-definition-UXKFOSKX-Bfl0iItE.js} +1 -1
  183. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-Ca27l5x1.js → kanban-definition-UXKFOSKX-D1mvDB88.js} +1 -1
  184. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-4HMvq5Ms.js → kanban-definition-UXKFOSKX-DSbwi_qW.js} +1 -1
  185. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-Bdzg30AB.js → kk-KZ-P5N5QNE5-BlIG0olU.js} +1 -1
  186. package/dist-embed/chunks/{km-KH-HSX4SM5Z-Bwn2NP1-.js → km-KH-HSX4SM5Z-Dixy2EU_.js} +1 -1
  187. package/dist-embed/chunks/{ko-KR-MTYHY66A-KUaxlo0q.js → ko-KR-MTYHY66A-CUkVgSOW.js} +1 -1
  188. package/dist-embed/chunks/{ku-TR-6OUDTVRD-DRegsFXo.js → ku-TR-6OUDTVRD-BKl1H1lo.js} +1 -1
  189. package/dist-embed/chunks/{layout-CfByO2og.js → layout-C8rF9YGx.js} +1 -1
  190. package/dist-embed/chunks/{layout-Bww76Fbs.js → layout-CG9LV3Hx.js} +1 -1
  191. package/dist-embed/chunks/{layout-XYFfX1M2.js → layout-DoJGfXjC.js} +1 -1
  192. package/dist-embed/chunks/{lexicalHooks-BtjglRXO.js → lexicalHooks-DClcl3Q8.js} +1 -1
  193. package/dist-embed/chunks/{lib-D7CvuX1J.js → lib-3oZnFGZf.js} +1 -1
  194. package/dist-embed/chunks/{lib-COJY2oKd.js → lib-B9Uql7XT.js} +1 -1
  195. package/dist-embed/chunks/{lib-C2mgrsS1.js → lib-BBoRpP0j.js} +1 -1
  196. package/dist-embed/chunks/{lib-BpltV-0Y.js → lib-BCX_PXlV.js} +1 -1
  197. package/dist-embed/chunks/{lib-DrEcjKb5.js → lib-Bj5kYV-X.js} +1 -1
  198. package/dist-embed/chunks/{lib-csBGF1d0.js → lib-BpgMIewI.js} +2 -2
  199. package/dist-embed/chunks/{lib-CQeoQJWp.js → lib-BuHiJKfL.js} +6 -6
  200. package/dist-embed/chunks/{lib-9S57siQD.js → lib-ByfYxpOp.js} +1 -1
  201. package/dist-embed/chunks/{lib-Dh9o1esj.js → lib-C1F_0rhP.js} +1 -1
  202. package/dist-embed/chunks/{lib-DOnguzJf.js → lib-C3UM0Dbg.js} +1 -1
  203. package/dist-embed/chunks/{lib-CHID83aM.js → lib-C65GpCKu.js} +1 -1
  204. package/dist-embed/chunks/{lib-ox3VOLDA.js → lib-CblY5Fcs.js} +1 -1
  205. package/dist-embed/chunks/{lib-C46CpvHb.js → lib-ClP1grrt.js} +1 -1
  206. package/dist-embed/chunks/{lib-rn9DpcHi.js → lib-D7ZIPOgc.js} +1 -1
  207. package/dist-embed/chunks/{lib-op0DTswa.js → lib-DEmXqC05.js} +1 -1
  208. package/dist-embed/chunks/{lib--J3JPp2K.js → lib-DHfhUiNX.js} +6 -6
  209. package/dist-embed/chunks/{lib-QmOij8gS.js → lib-DdpVsCS-.js} +1 -1
  210. package/dist-embed/chunks/{lib-CjBEbEzm.js → lib-DgCQUDNp.js} +1 -1
  211. package/dist-embed/chunks/{lib-Cpc8Fspj.js → lib-UcItgdUY.js} +1 -1
  212. package/dist-embed/chunks/{lib-PbTUB5SW.js → lib-jE6-GvLb.js} +4 -4
  213. package/dist-embed/chunks/{lt-LT-XHIRWOB4-c6CdaS7u.js → lt-LT-XHIRWOB4-TTj82TW7.js} +1 -1
  214. package/dist-embed/chunks/{lv-LV-5QDEKY6T-D9RognOk.js → lv-LV-5QDEKY6T-DLiLVd-V.js} +1 -1
  215. package/dist-embed/chunks/{mermaid.core-Esvc6Hnq.js → mermaid.core-DNh2XcNw.js} +5 -5
  216. package/dist-embed/chunks/{mermaid.core-S-dRFFrX.js → mermaid.core-YqoEZ53F.js} +3 -3
  217. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-ByNYsSBG.js → mindmap-definition-YA3MSWOX-9Zysg0pA.js} +1 -1
  218. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-Df1_M5n9.js → mindmap-definition-YA3MSWOX-B_htE6P9.js} +1 -1
  219. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-B3dWXyS3.js → mindmap-definition-YA3MSWOX-Bverytf0.js} +1 -1
  220. package/dist-embed/chunks/{mindmap-definition-e4c1d938-OxJ5FL_j.js → mindmap-definition-e4c1d938-BZ0_IMAi.js} +1 -1
  221. package/dist-embed/chunks/{mr-IN-CRQNXWMA-ht3P_mrN.js → mr-IN-CRQNXWMA-CiVi-oiY.js} +1 -1
  222. package/dist-embed/chunks/{my-MM-5M5IBNSE-CsIkhWRp.js → my-MM-5M5IBNSE-DiSnYIcD.js} +1 -1
  223. package/dist-embed/chunks/{nb-NO-T6EIAALU-DJw7Uvbx.js → nb-NO-T6EIAALU-DfSOBb64.js} +1 -1
  224. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-Dcrp-zwB.js → nl-NL-IS3SIHDZ-BF72RX5n.js} +1 -1
  225. package/dist-embed/chunks/{nn-NO-6E72VCQL-DaBAIbM9.js → nn-NO-6E72VCQL-Ck3xjqMu.js} +1 -1
  226. package/dist-embed/chunks/{oc-FR-POXYY2M6-DSdMEDCa.js → oc-FR-POXYY2M6-CEdstZI1.js} +1 -1
  227. package/dist-embed/chunks/{pa-IN-N4M65BXN-BMyPito1.js → pa-IN-N4M65BXN-D8DDwUFn.js} +1 -1
  228. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-kBah6ESG.js → pegDiagram-XKGWAZYB-BKyBaYIN.js} +1 -1
  229. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BSS-6ffj.js → pegDiagram-XKGWAZYB-JwxbEaY4.js} +1 -1
  230. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-Cp-YO1Nz.js → pegDiagram-XKGWAZYB-pjI6nL6b.js} +1 -1
  231. package/dist-embed/chunks/{percentages-BXMCSKIN-pswfKMt2.js → percentages-BXMCSKIN-CxyBCxgG.js} +6 -6
  232. package/dist-embed/chunks/{pica-9l-d47El.js → pica-DX7g0w-h.js} +1 -1
  233. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-O8OeQHh3.js → pieDiagram-E7YTZNPT-B68DSrPX.js} +1 -1
  234. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-BxyKuocY.js → pieDiagram-E7YTZNPT-Bkr2CIvA.js} +1 -1
  235. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-Bm12iDY2.js → pieDiagram-E7YTZNPT-D7XWQ97B.js} +1 -1
  236. package/dist-embed/chunks/{pieDiagram-c941bede-CIoxBoJu.js → pieDiagram-c941bede-d4RaoKUh.js} +1 -1
  237. package/dist-embed/chunks/{pl-PL-T2D74RX3-CFk8rHgP.js → pl-PL-T2D74RX3-bJIlJVUJ.js} +1 -1
  238. package/dist-embed/chunks/{plugin-NcgdmcAO.js → plugin-CCnESDIv.js} +1 -1
  239. package/dist-embed/chunks/{plugin-BpyrQiv7.js → plugin-CYxMm8BZ.js} +1 -1
  240. package/dist-embed/chunks/{portable-BXor4J0S.js → portable-QzxJi8wl.js} +1 -1
  241. package/dist-embed/chunks/{pt-BR-5N22H2LF-BYlDcalT.js → pt-BR-5N22H2LF-T_zS_1UI.js} +1 -1
  242. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-xXdoFOOb.js → pt-PT-UZXXM6DQ-BGYBI-AZ.js} +1 -1
  243. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BzjPv9Mo.js → quadrantDiagram-AXDQQJYC-B4R-yitO.js} +1 -1
  244. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-B676z1mV.js → quadrantDiagram-AXDQQJYC-CGpes8qr.js} +1 -1
  245. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DFY8ZLzp.js → quadrantDiagram-AXDQQJYC-rgXt1vGm.js} +1 -1
  246. package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-DEYbq8W_.js → quadrantDiagram-cf8b8fe0-5H46snRs.js} +1 -1
  247. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-_NlqSOsS.js → railroadDiagram-O6MQD6OU-C4f7oKun.js} +1 -1
  248. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BrFHqmp2.js → railroadDiagram-O6MQD6OU-CJTiXlK1.js} +1 -1
  249. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-xlRvlaA2.js → railroadDiagram-O6MQD6OU-DJaPMu7R.js} +1 -1
  250. package/dist-embed/chunks/{renderer-We9CyR7b.js → renderer-CKt61TR-.js} +1 -1
  251. package/dist-embed/chunks/{requirementDiagram-53bda41b-BzE9FWgv.js → requirementDiagram-53bda41b-DuuN6U8q.js} +1 -1
  252. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-DJ5PUfXx.js → requirementDiagram-BXWQKSXE-C4rko1x6.js} +1 -1
  253. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-CqWfurTm.js → requirementDiagram-BXWQKSXE-CEpmAL1v.js} +1 -1
  254. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-Hehk-IFe.js → requirementDiagram-BXWQKSXE-DsV3syx6.js} +1 -1
  255. package/dist-embed/chunks/{ro-RO-JPDTUUEW-e-URCww-.js → ro-RO-JPDTUUEW-BF-LNyWr.js} +1 -1
  256. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-CrXBOpZl.js → ru-RU-B4JR7IUQ-CYsp0VFS.js} +1 -1
  257. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DSrV5Rcy.js → sankeyDiagram-P5KCCOFB-8-my5aGt.js} +1 -1
  258. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CTPOOwMI.js → sankeyDiagram-P5KCCOFB-B2FnnI1e.js} +1 -1
  259. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DUA8-DLK.js → sankeyDiagram-P5KCCOFB-BmOnDwNP.js} +1 -1
  260. package/dist-embed/chunks/{sankeyDiagram-c3ef121a-yZIQ5S7q.js → sankeyDiagram-c3ef121a-CoUNmipD.js} +1 -1
  261. package/dist-embed/chunks/{sequenceDiagram-82a5b84f-AtgiqM7O.js → sequenceDiagram-82a5b84f-CXh2tfZw.js} +1 -1
  262. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-B1cw5Oup.js → sequenceDiagram-WJ2MYXX4-B3OnNwUZ.js} +1 -1
  263. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CXsr6X8d.js → sequenceDiagram-WJ2MYXX4-DLJTx5HG.js} +1 -1
  264. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-B6CSGaEA.js → sequenceDiagram-WJ2MYXX4-jYhIJWPU.js} +1 -1
  265. package/dist-embed/chunks/{server-extension-D9R-wwz5.js → server-extension-uXAt_Cce.js} +1 -1
  266. package/dist-embed/chunks/{sessions-DdXtI_C1.js → sessions-CmElNrqo.js} +2 -2
  267. package/dist-embed/chunks/{si-LK-N5RQ5JYF-DmJK04-A.js → si-LK-N5RQ5JYF-DPP2zzI4.js} +1 -1
  268. package/dist-embed/chunks/{sizeCapture-INFHLROL-BWyPehjY.js → sizeCapture-INFHLROL-Bw-7LloZ.js} +1 -1
  269. package/dist-embed/chunks/{sizeCapture-INFHLROL-jPyERZ1n.js → sizeCapture-INFHLROL-ClUFT0bL.js} +1 -1
  270. package/dist-embed/chunks/{sizeCapture-INFHLROL-C_RJNTEe.js → sizeCapture-INFHLROL-DKI7jpZK.js} +1 -1
  271. package/dist-embed/chunks/{sk-SK-C5VTKIMK-BDHycW1Q.js → sk-SK-C5VTKIMK-Bsy5tZJ9.js} +1 -1
  272. package/dist-embed/chunks/{sl-SI-NN7IZMDC-Bv9ZQTNb.js → sl-SI-NN7IZMDC-BSN6metY.js} +1 -1
  273. package/dist-embed/chunks/{state-ChvKybRM.js → state-Bvubz6wh.js} +1 -1
  274. package/dist-embed/chunks/{stateDiagram-43e79a5f-CjdmUJOd.js → stateDiagram-43e79a5f-FLMfzXB-.js} +1 -1
  275. package/dist-embed/chunks/{stateDiagram-D77RDMKH-BXnmKNN1.js → stateDiagram-D77RDMKH-2CWWTXaI.js} +1 -1
  276. package/dist-embed/chunks/{stateDiagram-D77RDMKH-CUt1Zkau.js → stateDiagram-D77RDMKH-2sTmMX8Y.js} +1 -1
  277. package/dist-embed/chunks/{stateDiagram-D77RDMKH-CrFujTYb.js → stateDiagram-D77RDMKH-7giqZmW7.js} +1 -1
  278. package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-DFbRZC_o.js → stateDiagram-v2-2041ed4f-D2F_d6ME.js} +1 -1
  279. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-5Xtf4H1i.js → stateDiagram-v2-MP3YSRHH-BVtW8oDF.js} +1 -1
  280. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-C0LD6d-h.js → stateDiagram-v2-MP3YSRHH-Bx_0d80j.js} +1 -1
  281. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-D0VxqcOS.js → stateDiagram-v2-MP3YSRHH-KSrY0YAO.js} +1 -1
  282. package/dist-embed/chunks/{styles-455b33cd-d_tMvz1K.js → styles-455b33cd-Bu2zKHp4.js} +1 -1
  283. package/dist-embed/chunks/{styles-f932cba9-CEfonQZW.js → styles-f932cba9-C9jkvhYd.js} +1 -1
  284. package/dist-embed/chunks/{styles-fcc2142b-CJtnKcrY.js → styles-fcc2142b-DOM8RBzL.js} +1 -1
  285. package/dist-embed/chunks/{subset-shared.chunk-B0WCMaCa.js → subset-shared.chunk-cWEwjmHn.js} +1 -1
  286. package/dist-embed/chunks/{subset-worker.chunk-i0SNRqXr.js → subset-worker.chunk-CoJnEmh6.js} +1 -1
  287. package/dist-embed/chunks/{substates-CqYxDlIh.js → substates-jb_LtnyU.js} +1 -1
  288. package/dist-embed/chunks/{sv-SE-XGPEYMSR-_HPzcZFc.js → sv-SE-XGPEYMSR-DtD64Ekq.js} +1 -1
  289. package/dist-embed/chunks/{svgDrawCommon-148a3cd9-Chk2X9i7.js → svgDrawCommon-148a3cd9-9JymGxYl.js} +1 -1
  290. package/dist-embed/chunks/{swimlanes-42K2YHIH-CMfuNOKB.js → swimlanes-42K2YHIH-BFOVykjS.js} +1 -1
  291. package/dist-embed/chunks/{swimlanes-42K2YHIH-BV3XvQft.js → swimlanes-42K2YHIH-DgPipNZK.js} +1 -1
  292. package/dist-embed/chunks/{swimlanes-42K2YHIH-da8v0JDr.js → swimlanes-42K2YHIH-Dm0fKZOd.js} +1 -1
  293. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-U1nDoVzD.js → swimlanesDiagram-VR7AAH4N-DQtryFsY.js} +1 -1
  294. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-CoxoxRv8.js → swimlanesDiagram-VR7AAH4N-DmI51dbU.js} +1 -1
  295. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BQ0QVA2n.js → swimlanesDiagram-VR7AAH4N-Nfw6c9qs.js} +1 -1
  296. package/dist-embed/chunks/{ta-IN-2NMHFXQM-Ccvi-lqm.js → ta-IN-2NMHFXQM-DgbGGIjW.js} +1 -1
  297. package/dist-embed/chunks/{th-TH-HPSO5L25-DvAg4Mv1.js → th-TH-HPSO5L25-CCZDC3pr.js} +1 -1
  298. package/dist-embed/chunks/{timeline-definition-24CTP7MA-BEfC9HaT.js → timeline-definition-24CTP7MA-BH6wgq9g.js} +1 -1
  299. package/dist-embed/chunks/{timeline-definition-24CTP7MA-C4dXdolh.js → timeline-definition-24CTP7MA-BHxdIfP8.js} +1 -1
  300. package/dist-embed/chunks/{timeline-definition-24CTP7MA-CJeNJmUn.js → timeline-definition-24CTP7MA-D7CF0GIK.js} +1 -1
  301. package/dist-embed/chunks/{timeline-definition-7545f45a-B9mNe698.js → timeline-definition-7545f45a-D4OzFMpR.js} +1 -1
  302. package/dist-embed/chunks/{tr-TR-DEFEU3FU-DJsjfrja.js → tr-TR-DEFEU3FU-akGa6iYJ.js} +1 -1
  303. package/dist-embed/chunks/{uk-UA-QMV73CPH-3fvexlQA.js → uk-UA-QMV73CPH-t35eBlzl.js} +1 -1
  304. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BxXmlFlS.js → vennDiagram-4TSXK5OY-CRm97qMj.js} +1 -1
  305. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Cb7TJzRk.js → vennDiagram-4TSXK5OY-Df2NdsCe.js} +1 -1
  306. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Bsn5zjyD.js → vennDiagram-4TSXK5OY-jiuY4qr2.js} +1 -1
  307. package/dist-embed/chunks/{vi-VN-M7AON7JQ-BoQ3ayAr.js → vi-VN-M7AON7JQ-xWA8FWTO.js} +1 -1
  308. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-hcToOz3-.js → wardleyDiagram-VM6X3IG4-Dl6htcV4.js} +1 -1
  309. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-D7coqIlJ.js → wardleyDiagram-VM6X3IG4-DvfGuTUK.js} +1 -1
  310. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DQqVVzTS.js → wardleyDiagram-VM6X3IG4-SCgxQpjj.js} +1 -1
  311. package/dist-embed/chunks/{xychartDiagram-3f383b91-DgRDb1pL.js → xychartDiagram-3f383b91-CpDYNTsR.js} +1 -1
  312. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-9a5I7o20.js → xychartDiagram-S5SC5T6Z-B7z8joDc.js} +1 -1
  313. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DD72ULmZ.js → xychartDiagram-S5SC5T6Z-CeiEf5TT.js} +1 -1
  314. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-CCp_tU6h.js → xychartDiagram-S5SC5T6Z-fil-wQKb.js} +1 -1
  315. package/dist-embed/chunks/{zh-CN-LNUGB5OW-Dzh0Ni_q.js → zh-CN-LNUGB5OW-D7M8yyYf.js} +1 -1
  316. package/dist-embed/chunks/{zh-HK-E62DVLB3-_1FpSc_d.js → zh-HK-E62DVLB3-DvMmnROR.js} +1 -1
  317. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-CU-R8eF0.js → zh-TW-RAJ6MFWO-DSL_-5li.js} +1 -1
  318. package/dist-embed/datalayer-app-main.js +53 -53
  319. package/lib/apps/apps/visitorToken.d.ts +10 -0
  320. package/lib/apps/apps/visitorToken.js +31 -5
  321. package/lib/apps/embed/element.js +16 -8
  322. package/lib/apps/plugins/agents/DatalayerAgentBridge.js +36 -12
  323. package/lib/apps/plugins/chat/ChatView.js +28 -3
  324. package/lib/chat/base/ChatBase.js +13 -1
  325. package/lib/chat/header/ChatHeaderBase.js +17 -12
  326. package/lib/specs/agents/agents.d.ts +2 -0
  327. package/lib/specs/agents/agents.js +186 -2
  328. package/lib/specs/mcpServers.d.ts +1 -0
  329. package/lib/specs/mcpServers.js +35 -0
  330. package/lib/state/substates/RuntimesState.js +4 -3
  331. package/package.json +1 -1
  332. package/dist-embed/chunks/ChatView-zs95MHcU.js +0 -32
  333. package/dist-embed/chunks/DatalayerAgentBridge-D01Ek4NE.js +0 -1
@@ -1,16 +1,16 @@
1
- import{as as Ft,fW as Dc,tz as Mc,g0 as Qe,tA as ol,tB as xc,g3 as Uc,fV as cl,f_ as ul,tC as Vc,tD as Lc,tE as ll,tF as dl,tG as Yi,tH as fl,tI as Kc,tJ as xr,tK as vt,tL as zc,tM as hl,fY as ml,tN as pl,tO as Bc,tP as Zi,tQ as Wc,tR as yl,tS as gl,tT as vl,tU as _l,tV as bl,r as te,j,iP as Gc,tW as $l}from"../datalayer-app-main.js";import{b as Xi,B as wl,f as Sl,r as El,a as Ol,i as ht,w as Pl,t as Ps}from"./_baseRest-BmxuuM4H.js";import{y as Al,i as Il,g as Hc,t as Ki,d as Qi,w as Cl,z as X,a as Jc,p as Rl,x as Nl,e as Yc,A as ql,u as jl,r as Tl,B as kl,l as Fl,S as Dl,C as Ml,D as xl,k as $t,f as Ul}from"./forEach-hknrtmxV.js";import{l as Vl,b as Ll,t as Kl,h as Ee,d as Zc,c as Xc,e as zl,u as Bl,p as As}from"./uniqueId-BVuTZY3F.js";import{g as Qc,b as Wl}from"./_baseClone-ByJL1tkX.js";import{i as mt,c as Gl,n as Hl,g as Jl,m as Yl,h as Zl}from"./merge-B_wcPK4Y.js";import{b as eu,c as tu,a as Ie,i as Xl}from"./isSymbol-BLtK9CV6.js";import{a as ru,b as nu,c as es,d as ts,r as iu}from"./isEqual-BYxXubsX.js";function ae(t){return typeof t!="object"||t===null||typeof t.lastModified=="number"&&typeof File<"u"&&t instanceof File||typeof t.getMonth=="function"&&typeof Date<"u"&&t instanceof Date?!1:!Array.isArray(t)}function Ql(t){return t.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),ae(t.additionalItems)}function Is(t){if(t==="")return;if(t===null)return null;if(/\.$/.test(t)||/\.0$/.test(t)||/\.\d*0$/.test(t))return t;const e=Number(t);return typeof e=="number"&&!Number.isNaN(e)?e:t}const Dt="__additional_property",zi="additionalProperties",_t="allOf",je="anyOf",ze="const",ed="default",Ur="dependencies",td="enum",Ae="__errors",Ye="$id",rd="if",Ze="items",nd="_$junk_option_schema_id$_",Ir="$name",Ce="oneOf",ve="properties",id="required",Tr="submitButtonOptions",be="$ref",rs="__rjsf_additionalProperties",su="__rjsf_rootSchema",sd="ui:field",ns="ui:widget",At="ui:options",ad="ui:globalOptions";function se(t={},e={}){return Object.keys(t).filter(r=>r.indexOf("ui:")===0).reduce((r,n)=>{const s=t[n];return n===ns&&ae(s)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):n===At&&ae(s)?{...r,...s}:{...r,[n.substring(3)]:s}},{...e})}function od(t,e={},r){if(!t.additionalProperties)return!1;const{expandable:n=!0}=se(e);return n===!1?n:t.maxProperties!==void 0&&r?Object.keys(r).length<t.maxProperties:!0}function kr(t){const e={[Ae]:[],addError(r){this[Ae].push(r)}};if(Array.isArray(t))return t.reduce((r,n,s)=>({...r,[s]:kr(n)}),e);if(mt(t)){const r=t;return Object.keys(r).reduce((n,s)=>({...n,[s]:kr(r[s])}),e)}return e}function cd(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?Al(t,e,void 0,r):!!n}function pe(t,e){return cd(t,e,(r,n)=>{if(typeof r=="function"&&typeof n=="function")return!0})}var wt={},Cs;function ud(){if(Cs)return wt;Cs=1;var t=/~/,e=/~[01]/g;function r(u){switch(u){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+u)}function n(u){return t.test(u)?u.replace(e,r):u}function s(u,l,h){for(var p,g,_=1,v=l.length;_<v;){if(l[_]==="constructor"||l[_]==="prototype"||l[_]==="__proto__")return u;if(p=n(l[_++]),g=v>_,typeof u[p]>"u"&&(Array.isArray(u)&&p==="-"&&(p=u.length),g&&(l[_]!==""&&l[_]<1/0||l[_]==="-"?u[p]=[]:u[p]={})),!g)break;u=u[p]}var m=u[p];return h===void 0?delete u[p]:u[p]=h,m}function i(u){if(typeof u=="string"){if(u=u.split("/"),u[0]==="")return u;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(u)){for(const l of u)if(typeof l!="string"&&typeof l!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return u}throw new Error("Invalid JSON pointer.")}function o(u,l){if(typeof u!="object")throw new Error("Invalid input object.");l=i(l);var h=l.length;if(h===1)return u;for(var p=1;p<h;){if(u=u[n(l[p++])],h===p)return u;if(typeof u!="object"||u===null)return}}function a(u,l,h){if(typeof u!="object")throw new Error("Invalid input object.");if(l=i(l),l.length===0)throw new Error("Invalid JSON pointer for set.");return s(u,l,h)}function c(u){var l=i(u);return{get:function(h){return o(h,l)},set:function(h,p){return a(h,l,p)}}}return wt.get=o,wt.set=a,wt.compile=c,wt}var ld=ud();const dd=Ft(ld);function fd(t,e,r){var n=-1,s=t.length;e<0&&(e=-e>s?0:s+e),r=r>s?s:r,r<0&&(r+=s),s=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(s);++n<s;)i[n]=t[n+e];return i}function hd(t,e){return e.length<2?t:Il(t,fd(e,0,-1))}var md=Object.prototype,pd=md.hasOwnProperty;function au(t,e){e=Hc(e,t);var r=-1,n=e.length;if(!n)return!0;for(;++r<n;){var s=Ki(e[r]);if(s==="__proto__"&&!pd.call(t,"__proto__")||(s==="constructor"||s==="prototype")&&r<n-1)return!1}var i=hd(t,e);return i==null||delete i[Ki(Vl(e))]}function yd(t){return mt(t)?void 0:t}var gd=1,vd=2,_d=4,Fr=Ll(function(t,e){var r={};if(t==null)return r;var n=!1;e=Qi(e,function(i){return i=Hc(i,t),n||(n=i.length>1),i}),Gl(t,Qc(t),r),n&&(r=Wl(r,gd|vd|_d,yd));for(var s=e.length;s--;)au(r,e[s]);return r});function is(t,e){const r=e[t];return[Fr(e,[t]),r]}function ou(t,e={},r=[]){const n=t||"";let s;if(n.startsWith("#"))s=decodeURIComponent(n.substring(1));else throw new Error(`Could not find a definition for ${t}.`);const i=dd.get(e,s);if(i===void 0)throw new Error(`Could not find a definition for ${t}.`);const o=i[be];if(o){if(r.includes(o)){if(r.length===1)throw new Error(`Definition for ${t} is a circular reference`);const[l,...h]=r,p=[...h,n,l].join(" -> ");throw new Error(`Definition for ${l} contains a circular reference through ${p}`)}const[a,c]=is(be,i),u=ou(c,e,[...r,n]);return Object.keys(a).length>0?{...a,...u}:u}return i}function cu(t,e={}){return ou(t,e,[])}var bd="[object Number]";function uu(t){return typeof t=="number"||eu(t)&&tu(t)==bd}var $d="[object String]";function Vr(t){return typeof t=="string"||!Xi(t)&&eu(t)&&tu(t)==$d}var wd=9007199254740991,Zr=4294967295,Sd=Math.min;function lu(t,e){if(t=Kl(t),t<1||t>wd)return[];var r=Zr,n=Sd(t,Zr);e=Cl(e),t-=Zr;for(var s=wl(n,e);++r<t;)e(r);return s}function du(t,e,r){var n;if(t&&r){const s=X(t,r);if(s===void 0)return;for(let i=0;i<e.length;i++){const o=e[i],a=X(o,[ve,r],{});if(!(a.type==="object"||a.type==="array")&&(a.const===s||!((n=a.enum)===null||n===void 0)&&n.includes(s)))return i}}}function fu(t,e,r,n,s){if(e===void 0)return 0;const i=du(e,r,s);if(uu(i))return i;for(let o=0;o<r.length;o++){const a=r[o];if(s&&Ee(a,[ve,s])){const c=X(e,s),u=X(a,[ve,s],{});if(t.isValid(u,c,n))return o}else if(a[ve]){const c={anyOf:Object.keys(a[ve]).map(l=>({required:[l]}))};let u;if(a.anyOf){const{...l}=a;l.allOf?l.allOf=l.allOf.slice():l.allOf=[],l.allOf.push(c),u=l}else u=Object.assign({},a,c);if(delete u.required,t.isValid(u,e,n))return o}else if(t.isValid(a,e,n))return o}return 0}function ss(t,e,r,n,s){return fu(t,e,r,n,s)}function we(t,e,r){return t==null?t:Zc(t,e,r)}function Ed(t,e,r){var n=Xi(t),s=n||Sl(t)||El(t);if(e=Jc(e),r==null){var i=t&&t.constructor;s?r=n?new i:[]:Ie(t)?r=Ol(i)?Hl(Jl(t)):{}:r={}}return(s?Rl:Nl)(t,function(o,a,c){return e(r,o,a,c)}),r}var Od=1/0;function Pd(t){var e=t==null?0:t.length;return e?Yc(t,Od):[]}function Ad(t){return t&&t.length?ql(t):[]}var Xr,Rs;function Id(){if(Rs)return Xr;Rs=1;var t=Dc(),e=Mc(),r=Qe(),n=t?t.isConcatSpreadable:void 0;function s(i){return r(i)||e(i)||!!(n&&i&&i[n])}return Xr=s,Xr}var Qr,Ns;function as(){if(Ns)return Qr;Ns=1;var t=ol(),e=Id();function r(n,s,i,o,a){var c=-1,u=n.length;for(i||(i=e),a||(a=[]);++c<u;){var l=n[c];s>0&&i(l)?s>1?r(l,s-1,i,o,a):t(a,l):o||(a[a.length]=l)}return a}return Qr=r,Qr}var en,qs;function ct(){if(qs)return en;qs=1;function t(e,r){for(var n=-1,s=e==null?0:e.length,i=Array(s);++n<s;)i[n]=r(e[n],n,e);return i}return en=t,en}var tn,js;function Lr(){if(js)return tn;js=1;var t=xc(),e=Uc(),r="[object Symbol]";function n(s){return typeof s=="symbol"||e(s)&&t(s)==r}return tn=n,tn}var rn,Ts;function os(){if(Ts)return rn;Ts=1;var t=Qe(),e=Lr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function s(i,o){if(t(i))return!1;var a=typeof i;return a=="number"||a=="symbol"||a=="boolean"||i==null||e(i)?!0:n.test(i)||!r.test(i)||o!=null&&i in Object(o)}return rn=s,rn}var nn,ks;function Cd(){if(ks)return nn;ks=1;var t=cl(),e="Expected a function";function r(n,s){if(typeof n!="function"||s!=null&&typeof s!="function")throw new TypeError(e);var i=function(){var o=arguments,a=s?s.apply(this,o):o[0],c=i.cache;if(c.has(a))return c.get(a);var u=n.apply(this,o);return i.cache=c.set(a,u)||c,u};return i.cache=new(r.Cache||t),i}return r.Cache=t,nn=r,nn}var sn,Fs;function Rd(){if(Fs)return sn;Fs=1;var t=Cd(),e=500;function r(n){var s=t(n,function(o){return i.size===e&&i.clear(),o}),i=s.cache;return s}return sn=r,sn}var an,Ds;function Nd(){if(Ds)return an;Ds=1;var t=Rd(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(s){var i=[];return s.charCodeAt(0)===46&&i.push(""),s.replace(e,function(o,a,c,u){i.push(c?u.replace(r,"$1"):a||o)}),i});return an=n,an}var on,Ms;function qd(){if(Ms)return on;Ms=1;var t=Dc(),e=ct(),r=Qe(),n=Lr(),s=t?t.prototype:void 0,i=s?s.toString:void 0;function o(a){if(typeof a=="string")return a;if(r(a))return e(a,o)+"";if(n(a))return i?i.call(a):"";var c=a+"";return c=="0"&&1/a==-1/0?"-0":c}return on=o,on}var cn,xs;function jd(){if(xs)return cn;xs=1;var t=qd();function e(r){return r==null?"":t(r)}return cn=e,cn}var un,Us;function hu(){if(Us)return un;Us=1;var t=Qe(),e=os(),r=Nd(),n=jd();function s(i,o){return t(i)?i:e(i,o)?[i]:r(n(i))}return un=s,un}var ln,Vs;function Kr(){if(Vs)return ln;Vs=1;var t=Lr();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ln=e,ln}var dn,Ls;function cs(){if(Ls)return dn;Ls=1;var t=hu(),e=Kr();function r(n,s){s=t(s,n);for(var i=0,o=s.length;n!=null&&i<o;)n=n[e(s[i++])];return i&&i==o?n:void 0}return dn=r,dn}var fn,Ks;function Td(){if(Ks)return fn;Ks=1;var t=ul(),e=ru(),r=1,n=2;function s(i,o,a,c){var u=a.length,l=u,h=!c;if(i==null)return!l;for(i=Object(i);u--;){var p=a[u];if(h&&p[2]?p[1]!==i[p[0]]:!(p[0]in i))return!1}for(;++u<l;){p=a[u];var g=p[0],_=i[g],v=p[1];if(h&&p[2]){if(_===void 0&&!(g in i))return!1}else{var m=new t;if(c)var d=c(_,v,g,i,o,m);if(!(d===void 0?e(v,_,r|n,c,m):d))return!1}}return!0}return fn=s,fn}var hn,zs;function mu(){if(zs)return hn;zs=1;var t=Vc();function e(r){return r===r&&!t(r)}return hn=e,hn}var mn,Bs;function kd(){if(Bs)return mn;Bs=1;var t=mu(),e=Lc();function r(n){for(var s=e(n),i=s.length;i--;){var o=s[i],a=n[o];s[i]=[o,a,t(a)]}return s}return mn=r,mn}var pn,Ws;function pu(){if(Ws)return pn;Ws=1;function t(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}return pn=t,pn}var yn,Gs;function Fd(){if(Gs)return yn;Gs=1;var t=Td(),e=kd(),r=pu();function n(s){var i=e(s);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(o){return o===s||t(o,s,i)}}return yn=n,yn}var gn,Hs;function Dd(){if(Hs)return gn;Hs=1;var t=cs();function e(r,n,s){var i=r==null?void 0:t(r,n);return i===void 0?s:i}return gn=e,gn}var vn,Js;function Md(){if(Js)return vn;Js=1;function t(e,r){return e!=null&&r in Object(e)}return vn=t,vn}var _n,Ys;function xd(){if(Ys)return _n;Ys=1;var t=hu(),e=Mc(),r=Qe(),n=ll(),s=dl(),i=Kr();function o(a,c,u){c=t(c,a);for(var l=-1,h=c.length,p=!1;++l<h;){var g=i(c[l]);if(!(p=a!=null&&u(a,g)))break;a=a[g]}return p||++l!=h?p:(h=a==null?0:a.length,!!h&&s(h)&&n(g,h)&&(r(a)||e(a)))}return _n=o,_n}var bn,Zs;function Ud(){if(Zs)return bn;Zs=1;var t=Md(),e=xd();function r(n,s){return n!=null&&e(n,s,t)}return bn=r,bn}var $n,Xs;function Vd(){if(Xs)return $n;Xs=1;var t=ru(),e=Dd(),r=Ud(),n=os(),s=mu(),i=pu(),o=Kr(),a=1,c=2;function u(l,h){return n(l)&&s(h)?i(o(l),h):function(p){var g=e(p,l);return g===void 0&&g===h?r(p,l):t(h,g,a|c)}}return $n=u,$n}var wn,Qs;function Ld(){if(Qs)return wn;Qs=1;function t(e){return function(r){return r?.[e]}}return wn=t,wn}var Sn,ea;function Kd(){if(ea)return Sn;ea=1;var t=cs();function e(r){return function(n){return t(n,r)}}return Sn=e,Sn}var En,ta;function zd(){if(ta)return En;ta=1;var t=Ld(),e=Kd(),r=os(),n=Kr();function s(i){return r(i)?t(n(i)):e(i)}return En=s,En}var On,ra;function Bd(){if(ra)return On;ra=1;var t=Fd(),e=Vd(),r=Yi(),n=Qe(),s=zd();function i(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?e(o[0],o[1]):t(o):s(o)}return On=i,On}var Pn,na;function Wd(){if(na)return Pn;na=1;var t=fl(),e=Lc();function r(n,s){return n&&t(n,s,e)}return Pn=r,Pn}var An,ia;function Gd(){if(ia)return An;ia=1;var t=Kc();function e(r,n){return function(s,i){if(s==null)return s;if(!t(s))return r(s,i);for(var o=s.length,a=n?o:-1,c=Object(s);(n?a--:++a<o)&&i(c[a],a,c)!==!1;);return s}}return An=e,An}var In,sa;function yu(){if(sa)return In;sa=1;var t=Wd(),e=Gd(),r=e(t);return In=r,In}var Cn,aa;function Hd(){if(aa)return Cn;aa=1;var t=yu(),e=Kc();function r(n,s){var i=-1,o=e(n)?Array(n.length):[];return t(n,function(a,c,u){o[++i]=s(a,c,u)}),o}return Cn=r,Cn}var Rn,oa;function Jd(){if(oa)return Rn;oa=1;function t(e,r){var n=e.length;for(e.sort(r);n--;)e[n]=e[n].value;return e}return Rn=t,Rn}var Nn,ca;function Yd(){if(ca)return Nn;ca=1;var t=Lr();function e(r,n){if(r!==n){var s=r!==void 0,i=r===null,o=r===r,a=t(r),c=n!==void 0,u=n===null,l=n===n,h=t(n);if(!u&&!h&&!a&&r>n||a&&c&&l&&!u&&!h||i&&c&&l||!s&&l||!o)return 1;if(!i&&!a&&!h&&r<n||h&&s&&o&&!i&&!a||u&&s&&o||!c&&o||!l)return-1}return 0}return Nn=e,Nn}var qn,ua;function Zd(){if(ua)return qn;ua=1;var t=Yd();function e(r,n,s){for(var i=-1,o=r.criteria,a=n.criteria,c=o.length,u=s.length;++i<c;){var l=t(o[i],a[i]);if(l){if(i>=u)return l;var h=s[i];return l*(h=="desc"?-1:1)}}return r.index-n.index}return qn=e,qn}var jn,la;function Xd(){if(la)return jn;la=1;var t=ct(),e=cs(),r=Bd(),n=Hd(),s=Jd(),i=xr(),o=Zd(),a=Yi(),c=Qe();function u(l,h,p){h.length?h=t(h,function(v){return c(v)?function(m){return e(m,v.length===1?v[0]:v)}:v}):h=[a];var g=-1;h=t(h,i(r));var _=n(l,function(v,m,d){var f=t(h,function(y){return y(v)});return{criteria:f,index:++g,value:v}});return s(_,function(v,m){return o(v,m,p)})}return jn=u,jn}var Tn,da;function gu(){if(da)return Tn;da=1;var t=as(),e=Xd(),r=vt(),n=zc(),s=r(function(i,o){if(i==null)return[];var a=o.length;return a>1&&n(i,o[0],o[1])?o=[]:a>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),e(i,t(o,1),[])});return Tn=s,Tn}var kn,fa;function Qd(){if(fa)return kn;fa=1;function t(e,r,n,s){for(var i=e.length,o=n+(s?1:-1);s?o--:++o<i;)if(r(e[o],o,e))return o;return-1}return kn=t,kn}var Fn,ha;function ef(){if(ha)return Fn;ha=1;function t(e){return e!==e}return Fn=t,Fn}var Dn,ma;function tf(){if(ma)return Dn;ma=1;function t(e,r,n){for(var s=n-1,i=e.length;++s<i;)if(e[s]===r)return s;return-1}return Dn=t,Dn}var Mn,pa;function vu(){if(pa)return Mn;pa=1;var t=Qd(),e=ef(),r=tf();function n(s,i,o){return i===i?r(s,i,o):t(s,e,o)}return Mn=n,Mn}var xn,ya;function us(){if(ya)return xn;ya=1;var t=vu();function e(r,n){var s=r==null?0:r.length;return!!s&&t(r,n,0)>-1}return xn=e,xn}var Un,ga;function ls(){if(ga)return Un;ga=1;function t(e,r,n){for(var s=-1,i=e==null?0:e.length;++s<i;)if(n(r,e[s]))return!0;return!1}return Un=t,Un}var Vn,va;function rf(){if(va)return Vn;va=1;function t(){}return Vn=t,Vn}var Ln,_a;function nf(){if(_a)return Ln;_a=1;var t=hl(),e=rf(),r=nu(),n=1/0,s=t&&1/r(new t([,-0]))[1]==n?function(i){return new t(i)}:e;return Ln=s,Ln}var Kn,ba;function _u(){if(ba)return Kn;ba=1;var t=es(),e=us(),r=ls(),n=ts(),s=nf(),i=nu(),o=200;function a(c,u,l){var h=-1,p=e,g=c.length,_=!0,v=[],m=v;if(l)_=!1,p=r;else if(g>=o){var d=u?null:s(c);if(d)return i(d);_=!1,p=n,m=new t}else m=u?[]:v;e:for(;++h<g;){var f=c[h],y=u?u(f):f;if(f=l||f!==0?f:0,_&&y===y){for(var b=m.length;b--;)if(m[b]===y)continue e;u&&m.push(y),v.push(f)}else p(m,y,l)||(m!==v&&m.push(y),v.push(f))}return v}return Kn=a,Kn}var zn,$a;function ds(){if($a)return zn;$a=1;var t=_u();function e(r){return r&&r.length?t(r):[]}return zn=e,zn}var Bn,wa;function fs(){if(wa)return Bn;wa=1;var t=_u();function e(r,n){return n=typeof n=="function"?n:void 0,r&&r.length?t(r,void 0,n):[]}return Bn=e,Bn}var Wn,Sa;function sf(){if(Sa)return Wn;Sa=1;var t=vt(),e=ml(),r=zc(),n=pl(),s=Object.prototype,i=s.hasOwnProperty,o=t(function(a,c){a=Object(a);var u=-1,l=c.length,h=l>2?c[2]:void 0;for(h&&r(c[0],c[1],h)&&(l=1);++u<l;)for(var p=c[u],g=n(p),_=-1,v=g.length;++_<v;){var m=g[_],d=a[m];(d===void 0||e(d,s[m])&&!i.call(a,m))&&(a[m]=p[m])}return a});return Wn=o,Wn}var Gn,Ea;function bu(){if(Ea)return Gn;Ea=1;var t=es(),e=us(),r=ls(),n=ct(),s=xr(),i=ts(),o=Math.min;function a(c,u,l){for(var h=l?r:e,p=c[0].length,g=c.length,_=g,v=Array(g),m=1/0,d=[];_--;){var f=c[_];_&&u&&(f=n(f,s(u))),m=o(f.length,m),v[_]=!l&&(u||p>=120&&f.length>=120)?new t(_&&f):void 0}f=c[0];var y=-1,b=v[0];e:for(;++y<p&&d.length<m;){var $=f[y],w=u?u($):$;if($=l||$!==0?$:0,!(b?i(b,w):h(d,w,l))){for(_=g;--_;){var S=v[_];if(!(S?i(S,w):h(c[_],w,l)))continue e}b&&b.push(w),d.push($)}}return d}return Gn=a,Gn}var Hn,Oa;function $u(){if(Oa)return Hn;Oa=1;var t=Bc();function e(r){return t(r)?r:[]}return Hn=e,Hn}var Jn,Pa;function af(){if(Pa)return Jn;Pa=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return Jn=t,Jn}var Yn,Aa;function wu(){if(Aa)return Yn;Aa=1;var t=ct(),e=bu(),r=vt(),n=$u(),s=af(),i=r(function(o){var a=s(o),c=t(o,n);return a=typeof a=="function"?a:void 0,a&&c.pop(),c.length&&c[0]===o[0]?e(c,void 0,a):[]});return Yn=i,Yn}var Zn,Ia;function of(){if(Ia)return Zn;Ia=1;var t=xc(),e=Uc(),r="[object Boolean]";function n(s){return s===!0||s===!1||e(s)&&t(s)==r}return Zn=n,Zn}var Xn,Ca;function hs(){if(Ca)return Xn;Ca=1;var t=iu(),e=gu(),r=ds(),n=fs(),s=sf(),i=wu(),o=Zi(),a=of(),c=C=>Array.isArray(C)?C:[C],u=C=>C===void 0,l=C=>o(C)||Array.isArray(C)?Object.keys(C):[],h=(C,M)=>C.hasOwnProperty(M),p=C=>e(r(C)),g=C=>u(C)||Array.isArray(C)&&C.length===0,_=(C,M,U,H)=>M&&h(M,U)&&C&&h(C,U)&&H(C[U],M[U]),v=(C,M)=>u(C)&&M===0||u(M)&&C===0||t(C,M),m=(C,M)=>u(C)&&M===!1||u(M)&&C===!1||t(C,M),d=C=>u(C)||t(C,{})||C===!0,f=C=>u(C)||t(C,{}),y=C=>u(C)||o(C)||C===!0||C===!1;function b(C,M){return g(C)&&g(M)?!0:t(p(C),p(M))}function $(C,M){return C=c(C),M=c(M),t(p(C),p(M))}function w(C,M,U,H){var ee=r(l(C).concat(l(M)));return f(C)&&f(M)?!0:f(C)&&l(M).length||f(M)&&l(C).length?!1:ee.every(function(W){var Q=C[W],V=M[W];return Array.isArray(Q)&&Array.isArray(V)?t(p(C),p(M)):Array.isArray(Q)&&!Array.isArray(V)||Array.isArray(V)&&!Array.isArray(Q)?!1:_(C,M,W,H)})}function S(C,M,U,H){return o(C)&&o(M)?H(C,M):Array.isArray(C)&&Array.isArray(M)?w(C,M,U,H):t(C,M)}function I(C,M,U,H){var ee=n(C,H),W=n(M,H),Q=i(ee,W,H);return Q.length===Math.max(ee.length,W.length)}var A={title:t,uniqueItems:m,minLength:v,minItems:v,minProperties:v,required:b,enum:b,type:$,items:S,anyOf:I,allOf:I,oneOf:I,properties:w,patternProperties:w,dependencies:w},q=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],F=["additionalProperties","additionalItems","contains","propertyNames","not"];function K(C,M,U){if(U=s(U,{ignore:[]}),d(C)&&d(M))return!0;if(!y(C)||!y(M))throw new Error("Either of the values are not a JSON schema.");if(C===M)return!0;if(a(C)&&a(M))return C===M;if(C===void 0&&M===!1||M===void 0&&C===!1||u(C)&&!u(M)||!u(C)&&u(M))return!1;var H=r(Object.keys(C).concat(Object.keys(M)));if(U.ignore.length&&(H=H.filter(W=>U.ignore.indexOf(W)===-1)),!H.length)return!0;function ee(W,Q){return K(W,Q,U)}return H.every(function(W){var Q=C[W],V=M[W];if(F.indexOf(W)!==-1)return K(Q,V,U);var N=A[W];if(N||(N=t),t(Q,V))return!0;if(q.indexOf(W)===-1&&(!h(C,W)&&h(M,W)||h(C,W)&&!h(M,W)))return Q===V;var x=N(Q,V,W,ee);if(!a(x))throw new Error("Comparer must return true or false");return x})}return Xn=K,Xn}var Qn,Ra;function ms(){if(Ra)return Qn;Ra=1;function t(e){return Object.prototype.toString.call(e)==="[object Array]"}return Qn=Array.isArray||t,Qn}var ei,Na;function cf(){if(Na)return ei;Na=1;function t(e){return(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")&&e.valueOf()===e.valueOf()}return ei=t,ei}var ti,qa;function uf(){if(qa)return ti;qa=1;var t=cf();function e(r){return t(r)&&r%1===0}return ti=e,ti}var ri,ja;function Su(){if(ja)return ri;ja=1;var t=ms(),e=uf();function r(n){var s;if(!t(n)||(s=n.length,!s))return!1;for(var i=0;i<s;i++)if(!e(n[i]))return!1;return!0}return ri=r,ri}var ni,Ta;function Eu(){if(Ta)return ni;Ta=1;function t(e){return typeof e=="function"}return ni=t,ni}var ii,ka;function lf(){if(ka)return ii;ka=1;var t=ms(),e=Su(),r=Eu(),n=Math.pow(2,31)-1;function s(a,c){var u=1,l;if(a===0)return c;if(c===0)return a;for(;a%2===0&&c%2===0;)a=a/2,c=c/2,u=u*2;for(;a%2===0;)a=a/2;for(;c;){for(;c%2===0;)c=c/2;a>c&&(l=c,c=a,a=l),c=c-a}return u*a}function i(a,c){var u=0,l;if(a===0)return c;if(c===0)return a;for(;(a&1)===0&&(c&1)===0;)a>>>=1,c>>>=1,u++;for(;(a&1)===0;)a>>>=1;for(;c;){for(;(c&1)===0;)c>>>=1;a>c&&(l=c,c=a,a=l),c=c-a}return a<<u}function o(){var a=arguments.length,c,u,l,h,p,g,_;for(c=new Array(a),_=0;_<a;_++)c[_]=arguments[_];if(e(c)){if(a===2)return p=c[0],g=c[1],p<0&&(p=-p),g<0&&(g=-g),p<=n&&g<=n?i(p,g):s(p,g);l=c}else if(t(c[0]))if(a>1){if(l=c[0],u=c[1],!r(u))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+u+"`.")}else l=c[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+c[0]+"`.");if(h=l.length,h<2)return null;if(u){for(p=new Array(h),_=0;_<h;_++)p[_]=u(l[_],_);l=p}if(a<3&&!e(l))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+l+"`.");for(_=0;_<h;_++)p=l[_],p<0&&(l[_]=-p);for(p=l[0],_=1;_<h;_++)g=l[_],g<=n&&p<=n?p=i(p,g):p=s(p,g);return p}return ii=o,ii}var si,Fa;function df(){if(Fa)return si;Fa=1;var t=lf(),e=ms(),r=Su(),n=Eu();function s(){var i=arguments.length,o,a,c,u,l,h,p;for(o=new Array(i),p=0;p<i;p++)o[p]=arguments[p];if(r(o)){if(i===2)return l=o[0],h=o[1],l<0&&(l=-l),h<0&&(h=-h),l===0||h===0?0:l/t(l,h)*h;c=o}else if(e(o[0]))if(i>1){if(c=o[0],a=o[1],!n(a))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+a+"`.")}else c=o[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+o[0]+"`.");if(u=c.length,u<2)return null;if(a){for(l=new Array(u),p=0;p<u;p++)l[p]=a(c[p],p);c=l}if(i<3&&!r(c))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+c+"`.");for(p=0;p<u;p++)l=c[p],l<0&&(c[p]=-l);for(l=c[0],p=1;p<u;p++){if(h=c[p],l===0||h===0)return 0;l=l/t(l,h)*h}return l}return si=s,si}var ai,Da;function ff(){if(Da)return ai;Da=1;var t=Wc(),e=Vc();function r(n,s,i,o,a,c){return e(n)&&e(s)&&(c.set(s,n),t(n,s,void 0,r,c),c.delete(s)),n}return ai=r,ai}var oi,Ma;function hf(){if(Ma)return oi;Ma=1;var t=Wc(),e=yl(),r=e(function(n,s,i,o){t(n,s,i,o)});return oi=r,oi}var ci,xa;function mf(){if(xa)return ci;xa=1;var t=gl(),e=vt(),r=ff(),n=hf(),s=e(function(i){return i.push(void 0,r),t(n,void 0,i)});return ci=s,ci}var ui,Ua;function Ou(){if(Ua)return ui;Ua=1;var t=as();function e(r){var n=r==null?0:r.length;return n?t(r,1):[]}return ui=e,ui}var li,Va;function Pu(){if(Va)return li;Va=1;var t=as(),e=1/0;function r(n){var s=n==null?0:n.length;return s?t(n,e):[]}return li=r,li}var di,La;function pf(){if(La)return di;La=1;var t=ct(),e=bu(),r=vt(),n=$u(),s=r(function(i){var o=t(i,n);return o.length&&o[0]===i[0]?e(o):[]});return di=s,di}var fi,Ka;function yf(){if(Ka)return fi;Ka=1;function t(e,r,n,s){for(var i=n-1,o=e.length;++i<o;)if(s(e[i],r))return i;return-1}return fi=t,fi}var hi,za;function gf(){if(za)return hi;za=1;var t=ct(),e=vu(),r=yf(),n=xr(),s=vl(),i=Array.prototype,o=i.splice;function a(c,u,l,h){var p=h?r:e,g=-1,_=u.length,v=c;for(c===u&&(u=s(u)),l&&(v=t(c,n(l)));++g<_;)for(var m=0,d=u[g],f=l?l(d):d;(m=p(v,f,m,h))>-1;)v!==c&&o.call(v,m,1),o.call(c,m,1);return c}return hi=a,hi}var mi,Ba;function vf(){if(Ba)return mi;Ba=1;var t=gf();function e(r,n){return r&&r.length&&n&&n.length?t(r,n):r}return mi=e,mi}var pi,Wa;function _f(){if(Wa)return pi;Wa=1;var t=Yi();function e(r){return typeof r=="function"?r:t}return pi=e,pi}var yi,Ga;function Au(){if(Ga)return yi;Ga=1;var t=_l(),e=yu(),r=_f(),n=Qe();function s(i,o){var a=n(i)?t:e;return a(i,r(o))}return yi=s,yi}var gi,Ha;function bf(){if(Ha)return gi;Ha=1;var t=es(),e=us(),r=ls(),n=ct(),s=xr(),i=ts(),o=200;function a(c,u,l,h){var p=-1,g=e,_=!0,v=c.length,m=[],d=u.length;if(!v)return m;l&&(u=n(u,s(l))),h?(g=r,_=!1):u.length>=o&&(g=i,_=!1,u=new t(u));e:for(;++p<v;){var f=c[p],y=l==null?f:l(f);if(f=h||f!==0?f:0,_&&y===y){for(var b=d;b--;)if(u[b]===y)continue e;m.push(f)}else g(u,y,h)||m.push(f)}return m}return gi=a,gi}var vi,Ja;function $f(){if(Ja)return vi;Ja=1;var t=bf(),e=vt(),r=Bc(),n=e(function(s,i){return r(s)?t(s,i):[]});return vi=n,vi}var _i,Ya;function Iu(){if(Ya)return _i;Ya=1;const t=Ou(),e=Pu(),r=Zi(),n=ds(),s=fs(),i=$f();function o(v){for(const m in v)u(v,m)&&g(v[m])&&delete v[m];return v}const a=v=>n(e(v.map(l))),c=(v,m)=>v.map(d=>d&&d[m]),u=(v,m)=>Object.prototype.hasOwnProperty.call(v,m),l=v=>r(v)||Array.isArray(v)?Object.keys(v):[],h=v=>v!==void 0,p=v=>r(v)||v===!0||v===!1,g=v=>!l(v).length&&v!==!1&&v!==!0;return _i={allUniqueKeys:a,deleteUndefinedProps:o,getValues:c,has:u,isEmptySchema:g,isSchema:p,keys:l,notUndefined:h,uniqWith:s,withoutArr:(v,...m)=>i.apply(null,[v].concat(t(m)))},_i}var bi,Za;function wf(){if(Za)return bi;Za=1;const t=hs(),e=Au(),{allUniqueKeys:r,deleteUndefinedProps:n,getValues:s,keys:i,notUndefined:o,uniqWith:a,withoutArr:c}=Iu();function u(h){e(h,function(p,g){p===!1&&delete h[g]})}function l(h,p){return r(h).reduce(function(_,v){const m=s(h,v),d=a(m.filter(o),t);return _[v]=p(d,v),_},{})}return bi={keywords:["properties","patternProperties","additionalProperties"],resolver(h,p,g,_){_.ignoreAdditionalProperties||(h.forEach(function(m){const d=h.filter($=>$!==m),f=i(m.properties),b=i(m.patternProperties).map($=>new RegExp($));d.forEach(function($){const w=i($.properties),S=w.filter(A=>b.some(q=>q.test(A)));c(w,f,S).forEach(function(A){$.properties[A]=g.properties([$.properties[A],m.additionalProperties],A)})})}),h.forEach(function(m){const d=h.filter(y=>y!==m),f=i(m.patternProperties);m.additionalProperties===!1&&d.forEach(function(y){const b=i(y.patternProperties);c(b,f).forEach(w=>delete y.patternProperties[w])})}));const v={additionalProperties:g.additionalProperties(h.map(m=>m.additionalProperties)),patternProperties:l(h.map(m=>m.patternProperties),g.patternProperties),properties:l(h.map(m=>m.properties),g.properties)};return v.additionalProperties===!1&&u(v.properties),n(v)}},bi}var $i,Xa;function Sf(){if(Xa)return $i;Xa=1;const t=hs(),e=Au(),{allUniqueKeys:r,deleteUndefinedProps:n,has:s,isSchema:i,notUndefined:o,uniqWith:a}=Iu();function c(p){e(p,function(g,_){g===!1&&p.splice(_,1)})}function u(p,g){return p.map(function(_){if(_)if(Array.isArray(_.items)){const v=_.items[g];if(i(v))return v;if(s(_,"additionalItems"))return _.additionalItems}else return _.items})}function l(p){return p.map(function(g){if(g)return Array.isArray(g.items)?g.additionalItems:g.items})}function h(p,g,_){return r(_).reduce(function(m,d){const f=u(p,d),y=a(f.filter(o),t);return m[d]=g(y,d),m},[])}return $i={keywords:["items","additionalItems"],resolver(p,g,_){const v=p.map(y=>y.items),m=v.filter(o),d={};m.every(i)?d.items=_.items(v):d.items=h(p,_.items,v);let f;return m.every(Array.isArray)?f=p.map(y=>y.additionalItems):m.some(Array.isArray)&&(f=l(p)),f&&(d.additionalItems=_.additionalItems(f)),d.additionalItems===!1&&Array.isArray(d.items)&&c(d.items),n(d)}},$i}var wi,Qa;function Ef(){if(Qa)return wi;Qa=1;const t=bl(),e=hs(),r=df(),n=mf(),s=Ou(),i=Pu(),o=pf(),a=wu(),c=iu(),u=Zi(),l=vf(),h=gu(),p=ds(),g=fs(),_=wf(),v=Sf(),m=(L,B)=>L.indexOf(B)!==-1,d=L=>u(L)||L===!0||L===!1,f=L=>L===!1,y=L=>L===!0,b=(L,B,P)=>P(L),$=L=>h(p(i(L))),w=L=>L!==void 0,S=L=>p(i(L.map(W))),I=L=>L[0],A=L=>$(L),q=L=>Math.max.apply(Math,L),F=L=>Math.min.apply(Math,L),K=L=>L.some(y),C=L=>g(s(L),c);function M(L){return function(B,P){return e({[L]:B},{[L]:P})}}function U(L){let{allOf:B=[],...P}=L;return P=u(L)?P:L,[P,...B.map(U)]}function H(L,B){return L.map(P=>P&&P[B])}function ee(L,B){return L.map(function(P,R){try{return B(P,R)}catch{return}}).filter(w)}function W(L){return u(L)||Array.isArray(L)?Object.keys(L):[]}function Q(L,B){if(B=B||[],!L.length)return B;const P=L.slice(0).shift(),R=L.slice(1);return B.length?Q(R,s(B.map(D=>P.map(z=>[z].concat(D))))):Q(R,P.map(D=>D))}function V(L,B){let P;try{P=L.map(function(R){return JSON.stringify(R,null,2)}).join(`
1
+ import{as as Ft,fY as Dc,tB as Mc,g2 as Qe,tC as ol,tD as xc,g5 as Uc,fX as cl,g0 as ul,tE as Vc,tF as Lc,tG as ll,tH as dl,tI as Ji,tJ as fl,tK as Kc,tL as xr,tM as vt,tN as zc,tO as hl,f_ as ml,tP as pl,tQ as Bc,tR as Zi,tS as Wc,tT as yl,tU as gl,tV as vl,tW as _l,tX as bl,r as te,j,iR as Gc,tY as $l}from"../datalayer-app-main.js";import{b as Xi,B as wl,f as Sl,r as El,a as Ol,i as ht,w as Pl,t as Ps}from"./_baseRest-BmxuuM4H.js";import{y as Al,i as Il,g as Hc,t as Ki,d as Qi,w as Cl,z as X,a as Yc,p as Rl,x as Nl,e as Jc,A as ql,u as jl,r as Tl,B as kl,l as Fl,S as Dl,C as Ml,D as xl,k as $t,f as Ul}from"./forEach-hknrtmxV.js";import{l as Vl,b as Ll,t as Kl,h as Ee,d as Zc,c as Xc,e as zl,u as Bl,p as As}from"./uniqueId-BVuTZY3F.js";import{g as Qc,b as Wl}from"./_baseClone-ByJL1tkX.js";import{i as mt,c as Gl,n as Hl,g as Yl,m as Jl,h as Zl}from"./merge-B_wcPK4Y.js";import{b as eu,c as tu,a as Ie,i as Xl}from"./isSymbol-BLtK9CV6.js";import{a as ru,b as nu,c as es,d as ts,r as iu}from"./isEqual-CO9-1hO8.js";function ae(t){return typeof t!="object"||t===null||typeof t.lastModified=="number"&&typeof File<"u"&&t instanceof File||typeof t.getMonth=="function"&&typeof Date<"u"&&t instanceof Date?!1:!Array.isArray(t)}function Ql(t){return t.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),ae(t.additionalItems)}function Is(t){if(t==="")return;if(t===null)return null;if(/\.$/.test(t)||/\.0$/.test(t)||/\.\d*0$/.test(t))return t;const e=Number(t);return typeof e=="number"&&!Number.isNaN(e)?e:t}const Dt="__additional_property",zi="additionalProperties",_t="allOf",je="anyOf",ze="const",ed="default",Ur="dependencies",td="enum",Ae="__errors",Je="$id",rd="if",Ze="items",nd="_$junk_option_schema_id$_",Ir="$name",Ce="oneOf",ve="properties",id="required",Tr="submitButtonOptions",be="$ref",rs="__rjsf_additionalProperties",su="__rjsf_rootSchema",sd="ui:field",ns="ui:widget",At="ui:options",ad="ui:globalOptions";function se(t={},e={}){return Object.keys(t).filter(r=>r.indexOf("ui:")===0).reduce((r,n)=>{const s=t[n];return n===ns&&ae(s)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):n===At&&ae(s)?{...r,...s}:{...r,[n.substring(3)]:s}},{...e})}function od(t,e={},r){if(!t.additionalProperties)return!1;const{expandable:n=!0}=se(e);return n===!1?n:t.maxProperties!==void 0&&r?Object.keys(r).length<t.maxProperties:!0}function kr(t){const e={[Ae]:[],addError(r){this[Ae].push(r)}};if(Array.isArray(t))return t.reduce((r,n,s)=>({...r,[s]:kr(n)}),e);if(mt(t)){const r=t;return Object.keys(r).reduce((n,s)=>({...n,[s]:kr(r[s])}),e)}return e}function cd(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?Al(t,e,void 0,r):!!n}function pe(t,e){return cd(t,e,(r,n)=>{if(typeof r=="function"&&typeof n=="function")return!0})}var wt={},Cs;function ud(){if(Cs)return wt;Cs=1;var t=/~/,e=/~[01]/g;function r(u){switch(u){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+u)}function n(u){return t.test(u)?u.replace(e,r):u}function s(u,l,h){for(var p,g,_=1,v=l.length;_<v;){if(l[_]==="constructor"||l[_]==="prototype"||l[_]==="__proto__")return u;if(p=n(l[_++]),g=v>_,typeof u[p]>"u"&&(Array.isArray(u)&&p==="-"&&(p=u.length),g&&(l[_]!==""&&l[_]<1/0||l[_]==="-"?u[p]=[]:u[p]={})),!g)break;u=u[p]}var m=u[p];return h===void 0?delete u[p]:u[p]=h,m}function i(u){if(typeof u=="string"){if(u=u.split("/"),u[0]==="")return u;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(u)){for(const l of u)if(typeof l!="string"&&typeof l!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return u}throw new Error("Invalid JSON pointer.")}function o(u,l){if(typeof u!="object")throw new Error("Invalid input object.");l=i(l);var h=l.length;if(h===1)return u;for(var p=1;p<h;){if(u=u[n(l[p++])],h===p)return u;if(typeof u!="object"||u===null)return}}function a(u,l,h){if(typeof u!="object")throw new Error("Invalid input object.");if(l=i(l),l.length===0)throw new Error("Invalid JSON pointer for set.");return s(u,l,h)}function c(u){var l=i(u);return{get:function(h){return o(h,l)},set:function(h,p){return a(h,l,p)}}}return wt.get=o,wt.set=a,wt.compile=c,wt}var ld=ud();const dd=Ft(ld);function fd(t,e,r){var n=-1,s=t.length;e<0&&(e=-e>s?0:s+e),r=r>s?s:r,r<0&&(r+=s),s=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(s);++n<s;)i[n]=t[n+e];return i}function hd(t,e){return e.length<2?t:Il(t,fd(e,0,-1))}var md=Object.prototype,pd=md.hasOwnProperty;function au(t,e){e=Hc(e,t);var r=-1,n=e.length;if(!n)return!0;for(;++r<n;){var s=Ki(e[r]);if(s==="__proto__"&&!pd.call(t,"__proto__")||(s==="constructor"||s==="prototype")&&r<n-1)return!1}var i=hd(t,e);return i==null||delete i[Ki(Vl(e))]}function yd(t){return mt(t)?void 0:t}var gd=1,vd=2,_d=4,Fr=Ll(function(t,e){var r={};if(t==null)return r;var n=!1;e=Qi(e,function(i){return i=Hc(i,t),n||(n=i.length>1),i}),Gl(t,Qc(t),r),n&&(r=Wl(r,gd|vd|_d,yd));for(var s=e.length;s--;)au(r,e[s]);return r});function is(t,e){const r=e[t];return[Fr(e,[t]),r]}function ou(t,e={},r=[]){const n=t||"";let s;if(n.startsWith("#"))s=decodeURIComponent(n.substring(1));else throw new Error(`Could not find a definition for ${t}.`);const i=dd.get(e,s);if(i===void 0)throw new Error(`Could not find a definition for ${t}.`);const o=i[be];if(o){if(r.includes(o)){if(r.length===1)throw new Error(`Definition for ${t} is a circular reference`);const[l,...h]=r,p=[...h,n,l].join(" -> ");throw new Error(`Definition for ${l} contains a circular reference through ${p}`)}const[a,c]=is(be,i),u=ou(c,e,[...r,n]);return Object.keys(a).length>0?{...a,...u}:u}return i}function cu(t,e={}){return ou(t,e,[])}var bd="[object Number]";function uu(t){return typeof t=="number"||eu(t)&&tu(t)==bd}var $d="[object String]";function Vr(t){return typeof t=="string"||!Xi(t)&&eu(t)&&tu(t)==$d}var wd=9007199254740991,Zr=4294967295,Sd=Math.min;function lu(t,e){if(t=Kl(t),t<1||t>wd)return[];var r=Zr,n=Sd(t,Zr);e=Cl(e),t-=Zr;for(var s=wl(n,e);++r<t;)e(r);return s}function du(t,e,r){var n;if(t&&r){const s=X(t,r);if(s===void 0)return;for(let i=0;i<e.length;i++){const o=e[i],a=X(o,[ve,r],{});if(!(a.type==="object"||a.type==="array")&&(a.const===s||!((n=a.enum)===null||n===void 0)&&n.includes(s)))return i}}}function fu(t,e,r,n,s){if(e===void 0)return 0;const i=du(e,r,s);if(uu(i))return i;for(let o=0;o<r.length;o++){const a=r[o];if(s&&Ee(a,[ve,s])){const c=X(e,s),u=X(a,[ve,s],{});if(t.isValid(u,c,n))return o}else if(a[ve]){const c={anyOf:Object.keys(a[ve]).map(l=>({required:[l]}))};let u;if(a.anyOf){const{...l}=a;l.allOf?l.allOf=l.allOf.slice():l.allOf=[],l.allOf.push(c),u=l}else u=Object.assign({},a,c);if(delete u.required,t.isValid(u,e,n))return o}else if(t.isValid(a,e,n))return o}return 0}function ss(t,e,r,n,s){return fu(t,e,r,n,s)}function we(t,e,r){return t==null?t:Zc(t,e,r)}function Ed(t,e,r){var n=Xi(t),s=n||Sl(t)||El(t);if(e=Yc(e),r==null){var i=t&&t.constructor;s?r=n?new i:[]:Ie(t)?r=Ol(i)?Hl(Yl(t)):{}:r={}}return(s?Rl:Nl)(t,function(o,a,c){return e(r,o,a,c)}),r}var Od=1/0;function Pd(t){var e=t==null?0:t.length;return e?Jc(t,Od):[]}function Ad(t){return t&&t.length?ql(t):[]}var Xr,Rs;function Id(){if(Rs)return Xr;Rs=1;var t=Dc(),e=Mc(),r=Qe(),n=t?t.isConcatSpreadable:void 0;function s(i){return r(i)||e(i)||!!(n&&i&&i[n])}return Xr=s,Xr}var Qr,Ns;function as(){if(Ns)return Qr;Ns=1;var t=ol(),e=Id();function r(n,s,i,o,a){var c=-1,u=n.length;for(i||(i=e),a||(a=[]);++c<u;){var l=n[c];s>0&&i(l)?s>1?r(l,s-1,i,o,a):t(a,l):o||(a[a.length]=l)}return a}return Qr=r,Qr}var en,qs;function ct(){if(qs)return en;qs=1;function t(e,r){for(var n=-1,s=e==null?0:e.length,i=Array(s);++n<s;)i[n]=r(e[n],n,e);return i}return en=t,en}var tn,js;function Lr(){if(js)return tn;js=1;var t=xc(),e=Uc(),r="[object Symbol]";function n(s){return typeof s=="symbol"||e(s)&&t(s)==r}return tn=n,tn}var rn,Ts;function os(){if(Ts)return rn;Ts=1;var t=Qe(),e=Lr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function s(i,o){if(t(i))return!1;var a=typeof i;return a=="number"||a=="symbol"||a=="boolean"||i==null||e(i)?!0:n.test(i)||!r.test(i)||o!=null&&i in Object(o)}return rn=s,rn}var nn,ks;function Cd(){if(ks)return nn;ks=1;var t=cl(),e="Expected a function";function r(n,s){if(typeof n!="function"||s!=null&&typeof s!="function")throw new TypeError(e);var i=function(){var o=arguments,a=s?s.apply(this,o):o[0],c=i.cache;if(c.has(a))return c.get(a);var u=n.apply(this,o);return i.cache=c.set(a,u)||c,u};return i.cache=new(r.Cache||t),i}return r.Cache=t,nn=r,nn}var sn,Fs;function Rd(){if(Fs)return sn;Fs=1;var t=Cd(),e=500;function r(n){var s=t(n,function(o){return i.size===e&&i.clear(),o}),i=s.cache;return s}return sn=r,sn}var an,Ds;function Nd(){if(Ds)return an;Ds=1;var t=Rd(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(s){var i=[];return s.charCodeAt(0)===46&&i.push(""),s.replace(e,function(o,a,c,u){i.push(c?u.replace(r,"$1"):a||o)}),i});return an=n,an}var on,Ms;function qd(){if(Ms)return on;Ms=1;var t=Dc(),e=ct(),r=Qe(),n=Lr(),s=t?t.prototype:void 0,i=s?s.toString:void 0;function o(a){if(typeof a=="string")return a;if(r(a))return e(a,o)+"";if(n(a))return i?i.call(a):"";var c=a+"";return c=="0"&&1/a==-1/0?"-0":c}return on=o,on}var cn,xs;function jd(){if(xs)return cn;xs=1;var t=qd();function e(r){return r==null?"":t(r)}return cn=e,cn}var un,Us;function hu(){if(Us)return un;Us=1;var t=Qe(),e=os(),r=Nd(),n=jd();function s(i,o){return t(i)?i:e(i,o)?[i]:r(n(i))}return un=s,un}var ln,Vs;function Kr(){if(Vs)return ln;Vs=1;var t=Lr();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ln=e,ln}var dn,Ls;function cs(){if(Ls)return dn;Ls=1;var t=hu(),e=Kr();function r(n,s){s=t(s,n);for(var i=0,o=s.length;n!=null&&i<o;)n=n[e(s[i++])];return i&&i==o?n:void 0}return dn=r,dn}var fn,Ks;function Td(){if(Ks)return fn;Ks=1;var t=ul(),e=ru(),r=1,n=2;function s(i,o,a,c){var u=a.length,l=u,h=!c;if(i==null)return!l;for(i=Object(i);u--;){var p=a[u];if(h&&p[2]?p[1]!==i[p[0]]:!(p[0]in i))return!1}for(;++u<l;){p=a[u];var g=p[0],_=i[g],v=p[1];if(h&&p[2]){if(_===void 0&&!(g in i))return!1}else{var m=new t;if(c)var d=c(_,v,g,i,o,m);if(!(d===void 0?e(v,_,r|n,c,m):d))return!1}}return!0}return fn=s,fn}var hn,zs;function mu(){if(zs)return hn;zs=1;var t=Vc();function e(r){return r===r&&!t(r)}return hn=e,hn}var mn,Bs;function kd(){if(Bs)return mn;Bs=1;var t=mu(),e=Lc();function r(n){for(var s=e(n),i=s.length;i--;){var o=s[i],a=n[o];s[i]=[o,a,t(a)]}return s}return mn=r,mn}var pn,Ws;function pu(){if(Ws)return pn;Ws=1;function t(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}return pn=t,pn}var yn,Gs;function Fd(){if(Gs)return yn;Gs=1;var t=Td(),e=kd(),r=pu();function n(s){var i=e(s);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(o){return o===s||t(o,s,i)}}return yn=n,yn}var gn,Hs;function Dd(){if(Hs)return gn;Hs=1;var t=cs();function e(r,n,s){var i=r==null?void 0:t(r,n);return i===void 0?s:i}return gn=e,gn}var vn,Ys;function Md(){if(Ys)return vn;Ys=1;function t(e,r){return e!=null&&r in Object(e)}return vn=t,vn}var _n,Js;function xd(){if(Js)return _n;Js=1;var t=hu(),e=Mc(),r=Qe(),n=ll(),s=dl(),i=Kr();function o(a,c,u){c=t(c,a);for(var l=-1,h=c.length,p=!1;++l<h;){var g=i(c[l]);if(!(p=a!=null&&u(a,g)))break;a=a[g]}return p||++l!=h?p:(h=a==null?0:a.length,!!h&&s(h)&&n(g,h)&&(r(a)||e(a)))}return _n=o,_n}var bn,Zs;function Ud(){if(Zs)return bn;Zs=1;var t=Md(),e=xd();function r(n,s){return n!=null&&e(n,s,t)}return bn=r,bn}var $n,Xs;function Vd(){if(Xs)return $n;Xs=1;var t=ru(),e=Dd(),r=Ud(),n=os(),s=mu(),i=pu(),o=Kr(),a=1,c=2;function u(l,h){return n(l)&&s(h)?i(o(l),h):function(p){var g=e(p,l);return g===void 0&&g===h?r(p,l):t(h,g,a|c)}}return $n=u,$n}var wn,Qs;function Ld(){if(Qs)return wn;Qs=1;function t(e){return function(r){return r?.[e]}}return wn=t,wn}var Sn,ea;function Kd(){if(ea)return Sn;ea=1;var t=cs();function e(r){return function(n){return t(n,r)}}return Sn=e,Sn}var En,ta;function zd(){if(ta)return En;ta=1;var t=Ld(),e=Kd(),r=os(),n=Kr();function s(i){return r(i)?t(n(i)):e(i)}return En=s,En}var On,ra;function Bd(){if(ra)return On;ra=1;var t=Fd(),e=Vd(),r=Ji(),n=Qe(),s=zd();function i(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?e(o[0],o[1]):t(o):s(o)}return On=i,On}var Pn,na;function Wd(){if(na)return Pn;na=1;var t=fl(),e=Lc();function r(n,s){return n&&t(n,s,e)}return Pn=r,Pn}var An,ia;function Gd(){if(ia)return An;ia=1;var t=Kc();function e(r,n){return function(s,i){if(s==null)return s;if(!t(s))return r(s,i);for(var o=s.length,a=n?o:-1,c=Object(s);(n?a--:++a<o)&&i(c[a],a,c)!==!1;);return s}}return An=e,An}var In,sa;function yu(){if(sa)return In;sa=1;var t=Wd(),e=Gd(),r=e(t);return In=r,In}var Cn,aa;function Hd(){if(aa)return Cn;aa=1;var t=yu(),e=Kc();function r(n,s){var i=-1,o=e(n)?Array(n.length):[];return t(n,function(a,c,u){o[++i]=s(a,c,u)}),o}return Cn=r,Cn}var Rn,oa;function Yd(){if(oa)return Rn;oa=1;function t(e,r){var n=e.length;for(e.sort(r);n--;)e[n]=e[n].value;return e}return Rn=t,Rn}var Nn,ca;function Jd(){if(ca)return Nn;ca=1;var t=Lr();function e(r,n){if(r!==n){var s=r!==void 0,i=r===null,o=r===r,a=t(r),c=n!==void 0,u=n===null,l=n===n,h=t(n);if(!u&&!h&&!a&&r>n||a&&c&&l&&!u&&!h||i&&c&&l||!s&&l||!o)return 1;if(!i&&!a&&!h&&r<n||h&&s&&o&&!i&&!a||u&&s&&o||!c&&o||!l)return-1}return 0}return Nn=e,Nn}var qn,ua;function Zd(){if(ua)return qn;ua=1;var t=Jd();function e(r,n,s){for(var i=-1,o=r.criteria,a=n.criteria,c=o.length,u=s.length;++i<c;){var l=t(o[i],a[i]);if(l){if(i>=u)return l;var h=s[i];return l*(h=="desc"?-1:1)}}return r.index-n.index}return qn=e,qn}var jn,la;function Xd(){if(la)return jn;la=1;var t=ct(),e=cs(),r=Bd(),n=Hd(),s=Yd(),i=xr(),o=Zd(),a=Ji(),c=Qe();function u(l,h,p){h.length?h=t(h,function(v){return c(v)?function(m){return e(m,v.length===1?v[0]:v)}:v}):h=[a];var g=-1;h=t(h,i(r));var _=n(l,function(v,m,d){var f=t(h,function(y){return y(v)});return{criteria:f,index:++g,value:v}});return s(_,function(v,m){return o(v,m,p)})}return jn=u,jn}var Tn,da;function gu(){if(da)return Tn;da=1;var t=as(),e=Xd(),r=vt(),n=zc(),s=r(function(i,o){if(i==null)return[];var a=o.length;return a>1&&n(i,o[0],o[1])?o=[]:a>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),e(i,t(o,1),[])});return Tn=s,Tn}var kn,fa;function Qd(){if(fa)return kn;fa=1;function t(e,r,n,s){for(var i=e.length,o=n+(s?1:-1);s?o--:++o<i;)if(r(e[o],o,e))return o;return-1}return kn=t,kn}var Fn,ha;function ef(){if(ha)return Fn;ha=1;function t(e){return e!==e}return Fn=t,Fn}var Dn,ma;function tf(){if(ma)return Dn;ma=1;function t(e,r,n){for(var s=n-1,i=e.length;++s<i;)if(e[s]===r)return s;return-1}return Dn=t,Dn}var Mn,pa;function vu(){if(pa)return Mn;pa=1;var t=Qd(),e=ef(),r=tf();function n(s,i,o){return i===i?r(s,i,o):t(s,e,o)}return Mn=n,Mn}var xn,ya;function us(){if(ya)return xn;ya=1;var t=vu();function e(r,n){var s=r==null?0:r.length;return!!s&&t(r,n,0)>-1}return xn=e,xn}var Un,ga;function ls(){if(ga)return Un;ga=1;function t(e,r,n){for(var s=-1,i=e==null?0:e.length;++s<i;)if(n(r,e[s]))return!0;return!1}return Un=t,Un}var Vn,va;function rf(){if(va)return Vn;va=1;function t(){}return Vn=t,Vn}var Ln,_a;function nf(){if(_a)return Ln;_a=1;var t=hl(),e=rf(),r=nu(),n=1/0,s=t&&1/r(new t([,-0]))[1]==n?function(i){return new t(i)}:e;return Ln=s,Ln}var Kn,ba;function _u(){if(ba)return Kn;ba=1;var t=es(),e=us(),r=ls(),n=ts(),s=nf(),i=nu(),o=200;function a(c,u,l){var h=-1,p=e,g=c.length,_=!0,v=[],m=v;if(l)_=!1,p=r;else if(g>=o){var d=u?null:s(c);if(d)return i(d);_=!1,p=n,m=new t}else m=u?[]:v;e:for(;++h<g;){var f=c[h],y=u?u(f):f;if(f=l||f!==0?f:0,_&&y===y){for(var b=m.length;b--;)if(m[b]===y)continue e;u&&m.push(y),v.push(f)}else p(m,y,l)||(m!==v&&m.push(y),v.push(f))}return v}return Kn=a,Kn}var zn,$a;function ds(){if($a)return zn;$a=1;var t=_u();function e(r){return r&&r.length?t(r):[]}return zn=e,zn}var Bn,wa;function fs(){if(wa)return Bn;wa=1;var t=_u();function e(r,n){return n=typeof n=="function"?n:void 0,r&&r.length?t(r,void 0,n):[]}return Bn=e,Bn}var Wn,Sa;function sf(){if(Sa)return Wn;Sa=1;var t=vt(),e=ml(),r=zc(),n=pl(),s=Object.prototype,i=s.hasOwnProperty,o=t(function(a,c){a=Object(a);var u=-1,l=c.length,h=l>2?c[2]:void 0;for(h&&r(c[0],c[1],h)&&(l=1);++u<l;)for(var p=c[u],g=n(p),_=-1,v=g.length;++_<v;){var m=g[_],d=a[m];(d===void 0||e(d,s[m])&&!i.call(a,m))&&(a[m]=p[m])}return a});return Wn=o,Wn}var Gn,Ea;function bu(){if(Ea)return Gn;Ea=1;var t=es(),e=us(),r=ls(),n=ct(),s=xr(),i=ts(),o=Math.min;function a(c,u,l){for(var h=l?r:e,p=c[0].length,g=c.length,_=g,v=Array(g),m=1/0,d=[];_--;){var f=c[_];_&&u&&(f=n(f,s(u))),m=o(f.length,m),v[_]=!l&&(u||p>=120&&f.length>=120)?new t(_&&f):void 0}f=c[0];var y=-1,b=v[0];e:for(;++y<p&&d.length<m;){var $=f[y],w=u?u($):$;if($=l||$!==0?$:0,!(b?i(b,w):h(d,w,l))){for(_=g;--_;){var S=v[_];if(!(S?i(S,w):h(c[_],w,l)))continue e}b&&b.push(w),d.push($)}}return d}return Gn=a,Gn}var Hn,Oa;function $u(){if(Oa)return Hn;Oa=1;var t=Bc();function e(r){return t(r)?r:[]}return Hn=e,Hn}var Yn,Pa;function af(){if(Pa)return Yn;Pa=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return Yn=t,Yn}var Jn,Aa;function wu(){if(Aa)return Jn;Aa=1;var t=ct(),e=bu(),r=vt(),n=$u(),s=af(),i=r(function(o){var a=s(o),c=t(o,n);return a=typeof a=="function"?a:void 0,a&&c.pop(),c.length&&c[0]===o[0]?e(c,void 0,a):[]});return Jn=i,Jn}var Zn,Ia;function of(){if(Ia)return Zn;Ia=1;var t=xc(),e=Uc(),r="[object Boolean]";function n(s){return s===!0||s===!1||e(s)&&t(s)==r}return Zn=n,Zn}var Xn,Ca;function hs(){if(Ca)return Xn;Ca=1;var t=iu(),e=gu(),r=ds(),n=fs(),s=sf(),i=wu(),o=Zi(),a=of(),c=C=>Array.isArray(C)?C:[C],u=C=>C===void 0,l=C=>o(C)||Array.isArray(C)?Object.keys(C):[],h=(C,M)=>C.hasOwnProperty(M),p=C=>e(r(C)),g=C=>u(C)||Array.isArray(C)&&C.length===0,_=(C,M,U,H)=>M&&h(M,U)&&C&&h(C,U)&&H(C[U],M[U]),v=(C,M)=>u(C)&&M===0||u(M)&&C===0||t(C,M),m=(C,M)=>u(C)&&M===!1||u(M)&&C===!1||t(C,M),d=C=>u(C)||t(C,{})||C===!0,f=C=>u(C)||t(C,{}),y=C=>u(C)||o(C)||C===!0||C===!1;function b(C,M){return g(C)&&g(M)?!0:t(p(C),p(M))}function $(C,M){return C=c(C),M=c(M),t(p(C),p(M))}function w(C,M,U,H){var ee=r(l(C).concat(l(M)));return f(C)&&f(M)?!0:f(C)&&l(M).length||f(M)&&l(C).length?!1:ee.every(function(W){var Q=C[W],V=M[W];return Array.isArray(Q)&&Array.isArray(V)?t(p(C),p(M)):Array.isArray(Q)&&!Array.isArray(V)||Array.isArray(V)&&!Array.isArray(Q)?!1:_(C,M,W,H)})}function S(C,M,U,H){return o(C)&&o(M)?H(C,M):Array.isArray(C)&&Array.isArray(M)?w(C,M,U,H):t(C,M)}function I(C,M,U,H){var ee=n(C,H),W=n(M,H),Q=i(ee,W,H);return Q.length===Math.max(ee.length,W.length)}var A={title:t,uniqueItems:m,minLength:v,minItems:v,minProperties:v,required:b,enum:b,type:$,items:S,anyOf:I,allOf:I,oneOf:I,properties:w,patternProperties:w,dependencies:w},q=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],F=["additionalProperties","additionalItems","contains","propertyNames","not"];function K(C,M,U){if(U=s(U,{ignore:[]}),d(C)&&d(M))return!0;if(!y(C)||!y(M))throw new Error("Either of the values are not a JSON schema.");if(C===M)return!0;if(a(C)&&a(M))return C===M;if(C===void 0&&M===!1||M===void 0&&C===!1||u(C)&&!u(M)||!u(C)&&u(M))return!1;var H=r(Object.keys(C).concat(Object.keys(M)));if(U.ignore.length&&(H=H.filter(W=>U.ignore.indexOf(W)===-1)),!H.length)return!0;function ee(W,Q){return K(W,Q,U)}return H.every(function(W){var Q=C[W],V=M[W];if(F.indexOf(W)!==-1)return K(Q,V,U);var N=A[W];if(N||(N=t),t(Q,V))return!0;if(q.indexOf(W)===-1&&(!h(C,W)&&h(M,W)||h(C,W)&&!h(M,W)))return Q===V;var x=N(Q,V,W,ee);if(!a(x))throw new Error("Comparer must return true or false");return x})}return Xn=K,Xn}var Qn,Ra;function ms(){if(Ra)return Qn;Ra=1;function t(e){return Object.prototype.toString.call(e)==="[object Array]"}return Qn=Array.isArray||t,Qn}var ei,Na;function cf(){if(Na)return ei;Na=1;function t(e){return(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")&&e.valueOf()===e.valueOf()}return ei=t,ei}var ti,qa;function uf(){if(qa)return ti;qa=1;var t=cf();function e(r){return t(r)&&r%1===0}return ti=e,ti}var ri,ja;function Su(){if(ja)return ri;ja=1;var t=ms(),e=uf();function r(n){var s;if(!t(n)||(s=n.length,!s))return!1;for(var i=0;i<s;i++)if(!e(n[i]))return!1;return!0}return ri=r,ri}var ni,Ta;function Eu(){if(Ta)return ni;Ta=1;function t(e){return typeof e=="function"}return ni=t,ni}var ii,ka;function lf(){if(ka)return ii;ka=1;var t=ms(),e=Su(),r=Eu(),n=Math.pow(2,31)-1;function s(a,c){var u=1,l;if(a===0)return c;if(c===0)return a;for(;a%2===0&&c%2===0;)a=a/2,c=c/2,u=u*2;for(;a%2===0;)a=a/2;for(;c;){for(;c%2===0;)c=c/2;a>c&&(l=c,c=a,a=l),c=c-a}return u*a}function i(a,c){var u=0,l;if(a===0)return c;if(c===0)return a;for(;(a&1)===0&&(c&1)===0;)a>>>=1,c>>>=1,u++;for(;(a&1)===0;)a>>>=1;for(;c;){for(;(c&1)===0;)c>>>=1;a>c&&(l=c,c=a,a=l),c=c-a}return a<<u}function o(){var a=arguments.length,c,u,l,h,p,g,_;for(c=new Array(a),_=0;_<a;_++)c[_]=arguments[_];if(e(c)){if(a===2)return p=c[0],g=c[1],p<0&&(p=-p),g<0&&(g=-g),p<=n&&g<=n?i(p,g):s(p,g);l=c}else if(t(c[0]))if(a>1){if(l=c[0],u=c[1],!r(u))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+u+"`.")}else l=c[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+c[0]+"`.");if(h=l.length,h<2)return null;if(u){for(p=new Array(h),_=0;_<h;_++)p[_]=u(l[_],_);l=p}if(a<3&&!e(l))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+l+"`.");for(_=0;_<h;_++)p=l[_],p<0&&(l[_]=-p);for(p=l[0],_=1;_<h;_++)g=l[_],g<=n&&p<=n?p=i(p,g):p=s(p,g);return p}return ii=o,ii}var si,Fa;function df(){if(Fa)return si;Fa=1;var t=lf(),e=ms(),r=Su(),n=Eu();function s(){var i=arguments.length,o,a,c,u,l,h,p;for(o=new Array(i),p=0;p<i;p++)o[p]=arguments[p];if(r(o)){if(i===2)return l=o[0],h=o[1],l<0&&(l=-l),h<0&&(h=-h),l===0||h===0?0:l/t(l,h)*h;c=o}else if(e(o[0]))if(i>1){if(c=o[0],a=o[1],!n(a))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+a+"`.")}else c=o[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+o[0]+"`.");if(u=c.length,u<2)return null;if(a){for(l=new Array(u),p=0;p<u;p++)l[p]=a(c[p],p);c=l}if(i<3&&!r(c))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+c+"`.");for(p=0;p<u;p++)l=c[p],l<0&&(c[p]=-l);for(l=c[0],p=1;p<u;p++){if(h=c[p],l===0||h===0)return 0;l=l/t(l,h)*h}return l}return si=s,si}var ai,Da;function ff(){if(Da)return ai;Da=1;var t=Wc(),e=Vc();function r(n,s,i,o,a,c){return e(n)&&e(s)&&(c.set(s,n),t(n,s,void 0,r,c),c.delete(s)),n}return ai=r,ai}var oi,Ma;function hf(){if(Ma)return oi;Ma=1;var t=Wc(),e=yl(),r=e(function(n,s,i,o){t(n,s,i,o)});return oi=r,oi}var ci,xa;function mf(){if(xa)return ci;xa=1;var t=gl(),e=vt(),r=ff(),n=hf(),s=e(function(i){return i.push(void 0,r),t(n,void 0,i)});return ci=s,ci}var ui,Ua;function Ou(){if(Ua)return ui;Ua=1;var t=as();function e(r){var n=r==null?0:r.length;return n?t(r,1):[]}return ui=e,ui}var li,Va;function Pu(){if(Va)return li;Va=1;var t=as(),e=1/0;function r(n){var s=n==null?0:n.length;return s?t(n,e):[]}return li=r,li}var di,La;function pf(){if(La)return di;La=1;var t=ct(),e=bu(),r=vt(),n=$u(),s=r(function(i){var o=t(i,n);return o.length&&o[0]===i[0]?e(o):[]});return di=s,di}var fi,Ka;function yf(){if(Ka)return fi;Ka=1;function t(e,r,n,s){for(var i=n-1,o=e.length;++i<o;)if(s(e[i],r))return i;return-1}return fi=t,fi}var hi,za;function gf(){if(za)return hi;za=1;var t=ct(),e=vu(),r=yf(),n=xr(),s=vl(),i=Array.prototype,o=i.splice;function a(c,u,l,h){var p=h?r:e,g=-1,_=u.length,v=c;for(c===u&&(u=s(u)),l&&(v=t(c,n(l)));++g<_;)for(var m=0,d=u[g],f=l?l(d):d;(m=p(v,f,m,h))>-1;)v!==c&&o.call(v,m,1),o.call(c,m,1);return c}return hi=a,hi}var mi,Ba;function vf(){if(Ba)return mi;Ba=1;var t=gf();function e(r,n){return r&&r.length&&n&&n.length?t(r,n):r}return mi=e,mi}var pi,Wa;function _f(){if(Wa)return pi;Wa=1;var t=Ji();function e(r){return typeof r=="function"?r:t}return pi=e,pi}var yi,Ga;function Au(){if(Ga)return yi;Ga=1;var t=_l(),e=yu(),r=_f(),n=Qe();function s(i,o){var a=n(i)?t:e;return a(i,r(o))}return yi=s,yi}var gi,Ha;function bf(){if(Ha)return gi;Ha=1;var t=es(),e=us(),r=ls(),n=ct(),s=xr(),i=ts(),o=200;function a(c,u,l,h){var p=-1,g=e,_=!0,v=c.length,m=[],d=u.length;if(!v)return m;l&&(u=n(u,s(l))),h?(g=r,_=!1):u.length>=o&&(g=i,_=!1,u=new t(u));e:for(;++p<v;){var f=c[p],y=l==null?f:l(f);if(f=h||f!==0?f:0,_&&y===y){for(var b=d;b--;)if(u[b]===y)continue e;m.push(f)}else g(u,y,h)||m.push(f)}return m}return gi=a,gi}var vi,Ya;function $f(){if(Ya)return vi;Ya=1;var t=bf(),e=vt(),r=Bc(),n=e(function(s,i){return r(s)?t(s,i):[]});return vi=n,vi}var _i,Ja;function Iu(){if(Ja)return _i;Ja=1;const t=Ou(),e=Pu(),r=Zi(),n=ds(),s=fs(),i=$f();function o(v){for(const m in v)u(v,m)&&g(v[m])&&delete v[m];return v}const a=v=>n(e(v.map(l))),c=(v,m)=>v.map(d=>d&&d[m]),u=(v,m)=>Object.prototype.hasOwnProperty.call(v,m),l=v=>r(v)||Array.isArray(v)?Object.keys(v):[],h=v=>v!==void 0,p=v=>r(v)||v===!0||v===!1,g=v=>!l(v).length&&v!==!1&&v!==!0;return _i={allUniqueKeys:a,deleteUndefinedProps:o,getValues:c,has:u,isEmptySchema:g,isSchema:p,keys:l,notUndefined:h,uniqWith:s,withoutArr:(v,...m)=>i.apply(null,[v].concat(t(m)))},_i}var bi,Za;function wf(){if(Za)return bi;Za=1;const t=hs(),e=Au(),{allUniqueKeys:r,deleteUndefinedProps:n,getValues:s,keys:i,notUndefined:o,uniqWith:a,withoutArr:c}=Iu();function u(h){e(h,function(p,g){p===!1&&delete h[g]})}function l(h,p){return r(h).reduce(function(_,v){const m=s(h,v),d=a(m.filter(o),t);return _[v]=p(d,v),_},{})}return bi={keywords:["properties","patternProperties","additionalProperties"],resolver(h,p,g,_){_.ignoreAdditionalProperties||(h.forEach(function(m){const d=h.filter($=>$!==m),f=i(m.properties),b=i(m.patternProperties).map($=>new RegExp($));d.forEach(function($){const w=i($.properties),S=w.filter(A=>b.some(q=>q.test(A)));c(w,f,S).forEach(function(A){$.properties[A]=g.properties([$.properties[A],m.additionalProperties],A)})})}),h.forEach(function(m){const d=h.filter(y=>y!==m),f=i(m.patternProperties);m.additionalProperties===!1&&d.forEach(function(y){const b=i(y.patternProperties);c(b,f).forEach(w=>delete y.patternProperties[w])})}));const v={additionalProperties:g.additionalProperties(h.map(m=>m.additionalProperties)),patternProperties:l(h.map(m=>m.patternProperties),g.patternProperties),properties:l(h.map(m=>m.properties),g.properties)};return v.additionalProperties===!1&&u(v.properties),n(v)}},bi}var $i,Xa;function Sf(){if(Xa)return $i;Xa=1;const t=hs(),e=Au(),{allUniqueKeys:r,deleteUndefinedProps:n,has:s,isSchema:i,notUndefined:o,uniqWith:a}=Iu();function c(p){e(p,function(g,_){g===!1&&p.splice(_,1)})}function u(p,g){return p.map(function(_){if(_)if(Array.isArray(_.items)){const v=_.items[g];if(i(v))return v;if(s(_,"additionalItems"))return _.additionalItems}else return _.items})}function l(p){return p.map(function(g){if(g)return Array.isArray(g.items)?g.additionalItems:g.items})}function h(p,g,_){return r(_).reduce(function(m,d){const f=u(p,d),y=a(f.filter(o),t);return m[d]=g(y,d),m},[])}return $i={keywords:["items","additionalItems"],resolver(p,g,_){const v=p.map(y=>y.items),m=v.filter(o),d={};m.every(i)?d.items=_.items(v):d.items=h(p,_.items,v);let f;return m.every(Array.isArray)?f=p.map(y=>y.additionalItems):m.some(Array.isArray)&&(f=l(p)),f&&(d.additionalItems=_.additionalItems(f)),d.additionalItems===!1&&Array.isArray(d.items)&&c(d.items),n(d)}},$i}var wi,Qa;function Ef(){if(Qa)return wi;Qa=1;const t=bl(),e=hs(),r=df(),n=mf(),s=Ou(),i=Pu(),o=pf(),a=wu(),c=iu(),u=Zi(),l=vf(),h=gu(),p=ds(),g=fs(),_=wf(),v=Sf(),m=(L,B)=>L.indexOf(B)!==-1,d=L=>u(L)||L===!0||L===!1,f=L=>L===!1,y=L=>L===!0,b=(L,B,P)=>P(L),$=L=>h(p(i(L))),w=L=>L!==void 0,S=L=>p(i(L.map(W))),I=L=>L[0],A=L=>$(L),q=L=>Math.max.apply(Math,L),F=L=>Math.min.apply(Math,L),K=L=>L.some(y),C=L=>g(s(L),c);function M(L){return function(B,P){return e({[L]:B},{[L]:P})}}function U(L){let{allOf:B=[],...P}=L;return P=u(L)?P:L,[P,...B.map(U)]}function H(L,B){return L.map(P=>P&&P[B])}function ee(L,B){return L.map(function(P,R){try{return B(P,R)}catch{return}}).filter(w)}function W(L){return u(L)||Array.isArray(L)?Object.keys(L):[]}function Q(L,B){if(B=B||[],!L.length)return B;const P=L.slice(0).shift(),R=L.slice(1);return B.length?Q(R,s(B.map(D=>P.map(z=>[z].concat(D))))):Q(R,P.map(D=>D))}function V(L,B){let P;try{P=L.map(function(R){return JSON.stringify(R,null,2)}).join(`
2
2
  `)}catch{P=L.join(", ")}throw new Error('Could not resolve values for path:"'+B.join(".")+`". They are probably incompatible. Values:
3
- `+P)}function N(L,B,P,R,D,z){if(L.length){const G=D.complexResolvers[B];if(!G||!G.resolver)throw new Error("No resolver found for "+B);const Z=P.map(ye=>L.reduce((me,ie)=>(ye[ie]!==void 0&&(me[ie]=ye[ie]),me),{})),le=g(Z,e),ge=G.keywords.reduce((ye,me)=>({...ye,[me]:(ie,_e=[])=>R(ie,null,z.concat(me,_e))}),{}),fe=G.resolver(le,z.concat(B),ge,D);return u(fe)||V(le,z.concat(B)),fe}}function x(L){return{required:L}}const T=["properties","patternProperties","definitions","dependencies"],E=["anyOf","oneOf"],O=["additionalProperties","additionalItems","contains","propertyNames","not","items"],k={type(L){if(L.some(Array.isArray)){const B=L.map(function(R){return Array.isArray(R)?R:[R]}),P=o.apply(null,B);if(P.length===1)return P[0];if(P.length>1)return p(P)}},dependencies(L,B,P){return S(L).reduce(function(D,z){const G=H(L,z);let Z=g(G.filter(w),c);const le=Z.filter(Array.isArray);if(le.length){if(le.length===Z.length)D[z]=$(Z);else{const ge=Z.filter(d),fe=le.map(x);D[z]=P(ge.concat(fe),z)}return D}return Z=g(Z,e),D[z]=P(Z,z),D},{})},oneOf(L,B,P){const R=Q(t(L)),D=ee(R,P),z=g(D,e);if(z.length)return z},not(L){return{anyOf:L}},pattern(L){return L.map(B=>"(?="+B+")").join("")},multipleOf(L){let B=L.slice(0),P=1;for(;B.some(R=>!Number.isInteger(R));)B=B.map(R=>R*10),P=P*10;return r(B)/P},enum(L){const B=a.apply(null,L.concat(c));if(B.length)return h(B)}};k.$id=I,k.$ref=I,k.$schema=I,k.additionalItems=b,k.additionalProperties=b,k.anyOf=k.oneOf,k.contains=b,k.default=I,k.definitions=k.dependencies,k.description=I,k.examples=C,k.exclusiveMaximum=F,k.exclusiveMinimum=q,k.items=v,k.maximum=F,k.maxItems=F,k.maxLength=F,k.maxProperties=F,k.minimum=q,k.minItems=q,k.minLength=q,k.minProperties=q,k.properties=_,k.propertyNames=b,k.required=A,k.title=I,k.uniqueItems=K;const J={properties:_,items:v};function Y(L,B,P){B=n(B,{ignoreAdditionalProperties:!1,resolvers:k,complexResolvers:J,deep:!0});const R=Object.entries(B.complexResolvers);function D(Z,le,ge){Z=t(Z.filter(w)),ge=ge||[];const fe=u(le)?le:{};if(!Z.length)return;if(Z.some(f))return!1;if(Z.every(y))return!0;Z=Z.filter(u);const ye=S(Z);if(B.deep&&m(ye,"allOf"))return Y({allOf:Z},B);const me=R.map(([ie,_e])=>ye.filter(Oe=>_e.keywords.includes(Oe)));return me.forEach(ie=>l(ye,ie)),ye.forEach(function(ie){const _e=H(Z,ie),Oe=g(_e.filter(w),M(ie));if(Oe.length===1&&m(E,ie))fe[ie]=Oe[0].map(Ne=>D([Ne],Ne));else if(Oe.length===1&&!m(T,ie)&&!m(O,ie))fe[ie]=Oe[0];else{const Ne=B.resolvers[ie]||B.resolvers.defaultResolver;if(!Ne)throw new Error("No resolver found for key "+ie+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const tt=(bt,Vt=[])=>D(bt,null,ge.concat(ie,Vt));fe[ie]=Ne(Oe,ge.concat(ie),tt,B),fe[ie]===void 0?V(Oe,ge.concat(ie)):fe[ie]===void 0&&delete fe[ie]}}),R.reduce((ie,[_e,Oe],Ne)=>({...ie,...N(me[Ne],_e,Z,D,B,ge)}),fe)}const z=i(U(L));return D(z)}return Y.options={resolvers:k},wi=Y,wi}var Of=Ef();const Pf=Ft(Of);function pt(t){let e;const r=X(t,"discriminator.propertyName",void 0);return Vr(r)?e=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),e}function Rt(t){return Array.isArray(t)?"array":typeof t=="string"?"string":t==null?"null":typeof t=="boolean"?"boolean":isNaN(t)?typeof t=="object"?"object":"string":"number"}function Be(t){let{type:e}=t;return!e&&t.const?Rt(t.const):!e&&t.enum?"string":!e&&(t.properties||t.additionalProperties)?"object":(Array.isArray(e)&&(e.length===2&&e.includes("null")?e=e.find(r=>r!=="null"):e=e[0]),e)}function We(t,e){const r=Object.assign({},t);return Object.keys(e).reduce((n,s)=>{const i=t?t[s]:{},o=e[s];return t&&s in t&&ae(o)?n[s]=We(i,o):t&&e&&(Be(t)==="object"||Be(e)==="object")&&s===id&&Array.isArray(i)&&Array.isArray(o)?n[s]=jl(i,o):n[s]=o,n},r)}function Re(t,e,r={},n,s){return Fe(t,e,r,n,void 0,void 0,s)[0]}function Af(t,e,r,n,s,i,o){const{if:a,then:c,else:u,...l}=e,h=t.isValid(a,i||{},r);let p=[l],g=[];if(n)c&&typeof c!="boolean"&&(g=g.concat(Fe(t,c,r,i,n,s,o))),u&&typeof u!="boolean"&&(g=g.concat(Fe(t,u,r,i,n,s,o)));else{const _=h?c:u;_&&typeof _!="boolean"&&(g=g.concat(Fe(t,_,r,i,n,s,o)))}return g.length&&(p=g.map(_=>We(l,_))),p.flatMap(_=>Fe(t,_,r,i,n,s,o))}function Cu(t){return t.reduce((r,n)=>n.length>1?n.flatMap(s=>lu(r.length,i=>[...r[i]].concat(s))):(r.forEach(s=>s.push(n[0])),r),[[]])}function If(t,e,r,n,s,i,o){const a=Ru(t,e,r,n,s,i);if(a.length>1||a[0]!==e)return a;if(Ur in e)return Nu(t,e,r,n,s,i).flatMap(u=>Fe(t,u,r,i,n,s,o));if(_t in e&&Array.isArray(e.allOf)){const c=e.allOf.map(l=>Fe(t,l,r,i,n,s,o));return Cu(c).map(l=>({...e,allOf:l}))}return[e]}function Ru(t,e,r,n,s,i,o){const a=Nt(e,r,s);return a!==e?Fe(t,a,r,i,n,s,o):[e]}function Nt(t,e,r){if(!ae(t))return t;let n=t;if(be in n){const{$ref:s,...i}=n;if(r.includes(s))return n;r.push(s),n={...cu(s,e),...i}}if(ve in n){const s=[],i=Ed(n[ve],(o,a,c)=>{const u=[...r];o[c]=Nt(a,e,u),s.push(u)},{});Yl(r,Ad(Pd(s))),n={...n,[ve]:i}}return Ze in n&&!Array.isArray(n.items)&&typeof n.items!="boolean"&&(n={...n,items:Nt(n.items,e,r)}),pe(t,n)?t:n}function Cf(t,e,r,n,s){const i={...e,properties:{...e.properties}},o=n&&ae(n)?n:{};return Object.keys(o).forEach(a=>{if(a in i.properties)return;let c={};typeof i.additionalProperties!="boolean"?be in i.additionalProperties?c=Re(t,{$ref:X(i.additionalProperties,[be])},r,o,s):"type"in i.additionalProperties?c={...i.additionalProperties}:je in i.additionalProperties||Ce in i.additionalProperties?c={type:"object",...i.additionalProperties}:c={type:Rt(X(o,[a]))}:c={type:Rt(X(o,[a]))},i.properties[a]=c,we(i.properties,[a,Dt],!0)}),i}function Fe(t,e,r,n,s=!1,i=[],o){return ae(e)?If(t,e,r,s,i,n,o).flatMap(c=>{var u;let l=c;if(rd in l)return Af(t,l,r,s,i,n,o);if(_t in l){if(s){const{allOf:p,...g}=l;return[...p,g]}try{const p=[],g=[];(u=l.allOf)===null||u===void 0||u.forEach(_=>{typeof _=="object"&&_.contains?p.push(_):g.push(_)}),p.length&&(l={...l,allOf:g}),l=o?o(l):Pf(l,{deep:!1}),p.length&&(l.allOf=p)}catch(p){console.warn(`could not merge subschemas in allOf:
4
- `,p);const{allOf:g,..._}=l;return _}}return zi in l&&l.additionalProperties!==!1?Cf(t,l,r,n,o):l}):[{}]}function Rf(t,e,r,n,s){let i;const{oneOf:o,anyOf:a,...c}=e;if(Array.isArray(o)?i=o:Array.isArray(a)&&(i=a),i){const u=s===void 0&&n?{}:s,l=pt(e);i=i.map(p=>Nt(p,r,[]));const h=ss(t,u,i,r,l);if(n)return i.map(p=>We(c,p));e=We(c,i[h])}return[e]}function Nu(t,e,r,n,s,i,o){const{dependencies:a,...c}=e;return Rf(t,c,r,n,i).flatMap(l=>qu(t,a,l,r,n,s,i,o))}function qu(t,e,r,n,s,i,o,a){let c=[r];for(const u in e){if(!s&&X(o,[u])===void 0||r.properties&&!(u in r.properties))continue;const[l,h]=is(u,e);return Array.isArray(h)?c[0]=Nf(r,h):ae(h)&&(c=qf(t,r,n,u,h,s,i,o,a)),c.flatMap(p=>qu(t,l,p,n,s,i,o,a))}return c}function Nf(t,e){if(!e)return t;const r=Array.isArray(t.required)?Array.from(new Set([...t.required,...e])):e;return{...t,required:r}}function qf(t,e,r,n,s,i,o,a,c){return Fe(t,s,r,a,i,o,c).flatMap(l=>{const{oneOf:h,...p}=l;if(e=We(e,p),h===void 0)return e;const g=h.map(v=>typeof v=="boolean"||!(be in v)?[v]:Ru(t,v,r,i,o,a));return Cu(g).flatMap(v=>jf(t,e,r,n,v,i,o,a,c))})}function jf(t,e,r,n,s,i,o,a,c){const u=s.filter(l=>{if(typeof l=="boolean"||!l||!l.properties)return!1;const{[n]:h}=l.properties;if(h){const p={type:"object",properties:{[n]:h}};return t.isValid(p,a,r)||i}return!1});return!i&&u.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[e]):u.flatMap(l=>{const h=l,[p]=is(n,h.properties),g={...h,properties:p};return Fe(t,g,r,a,i,o,c).map(v=>We(e,v))})}const Tf={type:"object",$id:nd,properties:{__not_really_there__:{type:"number"}}};function Bi(t,e,r,n,s){let i=0;return r&&(Ie(r.properties)?i+=Tl(r.properties,(o,a,c)=>{const u=X(n,c);if(typeof a=="boolean")return o;if(Ee(a,be)){const l=Re(t,a,e,u,s);return o+Bi(t,e,l,u||{},s)}if((Ee(a,Ce)||Ee(a,je))&&u){const l=Ee(a,Ce)?Ce:je,h=pt(a);return o+qt(t,e,u,X(a,l),-1,h,s)}if(a.type==="object")return Ie(u)&&(o+=1),o+Bi(t,e,a,u,s);if(a.type===Rt(u)){let l=o+1;return a.default?l+=u===a.default?1:-1:a.const&&(l+=u===a.const?1:-1),l}return o},0):Vr(r.type)&&r.type===Rt(n)&&(i+=1)),i}function qt(t,e,r,n,s=-1,i,o){const a=n.map(p=>Nt(p,e,[])),c=du(r,n,i);if(uu(c))return c;const u=a.reduce((p,g,_)=>(ss(t,r,[Tf,g],e,i)===1&&p.push(_),p),[]);if(u.length===1)return u[0];u.length||lu(a.length,p=>u.push(p));const l=new Set,{bestIndex:h}=u.reduce((p,g)=>{const{bestScore:_}=p,v=a[g],m=Bi(t,e,v,r,o);return l.add(m),m>_?{bestIndex:g,bestScore:m}:p},{bestIndex:s,bestScore:0});return l.size===1&&s>=0?s:h}function Wi(t){return Array.isArray(t.items)&&t.items.length>0&&t.items.every(e=>ae(e))}function It(t){return t==null}function jt(t,e,r=!1,n=!1,s=!1){if(Array.isArray(e)){const i=Array.isArray(t)?t:[],o=s?i:e,a=s?e:i,c=o.map((u,l)=>a[l]!==void 0?jt(i[l],e[l],r,n,s):u);return(r||s)&&c.length<a.length&&c.push(...a.slice(c.length)),c}if(ae(e)){const i=Object.assign({},t);return Object.keys(e).reduce((o,a)=>{const c=X(e,a),u=ae(t)&&a in t,l=a in e;return o[a]=jt(t?X(t,a):{},c,r,n,s&&(u||!l)),o},i)}return n&&(!It(t)&&It(e)||typeof e=="number"&&isNaN(e))||s&&!It(e)?t:e}function Le(t,e,r=!1){return Object.keys(e).reduce((n,s)=>{const i=t?t[s]:{},o=e[s];if(t&&s in t&&ae(o))n[s]=Le(i,o,r);else if(r&&Array.isArray(i)&&Array.isArray(o)){let a=o;r==="preventDuplicates"&&(a=o.reduce((c,u)=>(i.includes(u)||c.push(u),c),[])),n[s]=i.concat(a)}else n[s]=o;return n},Object.assign({},t))}function ju(t){return Array.isArray(t.enum)&&t.enum.length===1||ze in t}function ps(t,e,r={},n){const s=Re(t,e,r,void 0,n),i=s.oneOf||s.anyOf;return Array.isArray(s.enum)?!0:Array.isArray(i)?i.every(o=>typeof o!="boolean"&&ju(o)):!1}function ys(t,e,r,n){return!e.uniqueItems||!e.items||typeof e.items=="boolean"?!1:ps(t,e.items,r,n)}function Tu(t){const e=t[ze],r=Be(t);return ae(e)&&Vr(e?.$data)&&r!=="object"&&r!=="array"}function kf(t){if(td in t&&Array.isArray(t.enum)&&t.enum.length===1)return t.enum[0];if(ze in t)return t.const;throw new Error("schema cannot be inferred as a constant")}function Tt(t,e){const r=t;if(t.enum){let i;if(e){const{enumNames:o}=se(e);i=o}return!i&&r.enumNames&&(i=r.enumNames),t.enum.map((o,a)=>({label:i?.[a]||String(o),value:o}))}let n,s;return t.anyOf?(n=t.anyOf,s=e?.anyOf):t.oneOf&&(n=t.oneOf,s=e?.oneOf),n&&n.map((i,o)=>{const{title:a}=se(s?.[o]),c=i,u=kf(c),l=a||c.title||String(u);return{schema:c,label:l,value:u}})}const Ff=["string","number","integer","boolean","null"];var yt;(function(t){t[t.Ignore=0]="Ignore",t[t.Invert=1]="Invert",t[t.Fallback=2]="Fallback"})(yt||(yt={}));function Si(t,e=yt.Ignore,r=-1){if(r>=0){if(Array.isArray(t.items)&&r<t.items.length){const n=t.items[r];if(typeof n!="boolean")return n}}else if(t.items&&!Array.isArray(t.items)&&typeof t.items!="boolean")return t.items;return e!==yt.Ignore&&ae(t.additionalItems)?t.additionalItems:{}}function eo(t,e,r,n,s,i=[],o={},a=!1){const{emptyObjectFields:c="populateAllDefaults"}=o;if(n||a)t[e]=r;else if(c!=="skipDefaults"){const u=s===void 0?i.includes(e):s;ae(r)?c==="skipEmptyDefaults"?ht(r)||(t[e]=r):(!ht(r)||i.includes(e))&&(u||c!=="populateRequiredDefaults")&&(t[e]=r):r!==void 0&&(c==="populateAllDefaults"||c==="skipEmptyDefaults"||u&&i.includes(e))&&(t[e]=r)}}function Xe(t,e,r={}){const{parentDefaults:n,rawFormData:s,rootSchema:i={},includeUndefinedValues:o=!1,_recurseList:a=[],experimental_defaultFormStateBehavior:c=void 0,experimental_customMergeAllOf:u=void 0,required:l,shouldMergeDefaultsIntoFormData:h=!1}=r;let p=ae(s)?s:{};const g=ae(e)?e:{};let _=n,v=null,m=c,d=a;if(g[ze]!==void 0&&c?.constAsDefaults!=="never"&&!Tu(g))_=g[ze];else if(ae(_)&&ae(g.default))_=Le(_,g.default);else if(ed in g&&!g[je]&&!g[Ce])_=g.default;else if(be in g){const b=g[be];a.includes(b)||(d=a.concat(b),v=cu(b,i)),v&&!_&&(_=g.default),h&&v&&!ae(s)&&(p=s)}else if(Ur in g){const b={...to(t,g,r,_),...p};v=Nu(t,g,i,!1,[],b,u)[0]}else if(Wi(g))_=g.items.map((b,$)=>Xe(t,b,{rootSchema:i,includeUndefinedValues:o,_recurseList:a,experimental_defaultFormStateBehavior:c,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(n)?n[$]:void 0,rawFormData:p,required:l,shouldMergeDefaultsIntoFormData:h}));else if(Ce in g){const{oneOf:b,...$}=g;if(b.length===0)return;const w=pt(g),{type:S="null"}=$;!Array.isArray(S)&&Ff.includes(S)&&m?.constAsDefaults==="skipOneOf"&&(m={...m,constAsDefaults:"never"}),v=b[qt(t,i,s??g.default,b,0,w,u)],v=We($,v)}else if(je in g){const{anyOf:b,...$}=g;if(b.length===0)return;const w=pt(g);v=b[qt(t,i,s??g.default,b,0,w,u)],v=We($,v)}if(v)return Xe(t,v,{rootSchema:i,includeUndefinedValues:o,_recurseList:d,experimental_defaultFormStateBehavior:m,experimental_customMergeAllOf:u,parentDefaults:_,rawFormData:s??p,required:l,shouldMergeDefaultsIntoFormData:h});_===void 0&&(_=g.default);const f=to(t,g,r,_);let y=f??_;if(h){const{arrayMinItems:b={}}=c||{},{mergeExtraDefaults:$}=b,w=Df(t,g,i,s,c,u);(!ae(s)||_t in g)&&(y=jt(y,w,$,!0))}return y}function Df(t,e,r,n,s,i){const o=!ju(e)&&ps(t,e,r,i);let a=n;if(o){const u=Tt(e);a=u?.some(h=>pe(h.value,n))?n:void 0}return e[ze]&&s?.constAsDefaults==="always"&&(a=e.const),a}function Mf(t,e,{rawFormData:r,rootSchema:n={},includeUndefinedValues:s=!1,_recurseList:i=[],experimental_defaultFormStateBehavior:o=void 0,experimental_customMergeAllOf:a=void 0,required:c,shouldMergeDefaultsIntoFormData:u}={},l){{const h=ae(r)?r:{},p=e,g=o?.allOf==="populateDefaults"&&_t in p?Re(t,p,n,h,a):p,_=g[ze],v=Object.keys(g.properties||{}).reduce((m,d)=>{var f;const y=X(g,[ve,d]),b=ae(_)&&_[d]!==void 0,$=(ae(y)&&ze in y||b)&&o?.constAsDefaults!=="never"&&!Tu(y),w=Xe(t,y,{rootSchema:n,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:s===!0,parentDefaults:X(l,[d]),rawFormData:X(h,[d]),required:(f=g.required)===null||f===void 0?void 0:f.includes(d),shouldMergeDefaultsIntoFormData:u});return eo(m,d,w,s,c,g.required,o,$),m},{});if(g.additionalProperties){const m=ae(g.additionalProperties)?g.additionalProperties:{},d=new Set;ae(l)&&Object.keys(l).filter(y=>!g.properties||!g.properties[y]).forEach(y=>d.add(y));const f=[];Object.keys(h).filter(y=>!g.properties||!g.properties[y]).forEach(y=>{d.add(y),f.push(y)}),d.forEach(y=>{var b;const $=Xe(t,m,{rootSchema:n,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:s===!0,parentDefaults:X(l,[y]),rawFormData:X(h,[y]),required:(b=g.required)===null||b===void 0?void 0:b.includes(y),shouldMergeDefaultsIntoFormData:u});eo(v,y,$,s,c,f)})}return v}}function xf(t,e,{rawFormData:r,rootSchema:n={},_recurseList:s=[],experimental_defaultFormStateBehavior:i=void 0,experimental_customMergeAllOf:o=void 0,required:a,shouldMergeDefaultsIntoFormData:c}={},u){var l,h;const p=e,g=(l=i?.arrayMinItems)!==null&&l!==void 0?l:{},{populate:_,mergeExtraDefaults:v}=g,m=_==="never",d=_==="requiredOnly",f=_==="all"||!m&&!d,y=(h=g?.computeSkipPopulate)!==null&&h!==void 0?h:(()=>!1),$=i?.emptyObjectFields==="skipEmptyDefaults"?void 0:[];if(Array.isArray(u)&&(u=u.map((K,C)=>{const M=Si(p,yt.Fallback,C);return Xe(t,M,{rootSchema:n,_recurseList:s,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,parentDefaults:K,required:a,shouldMergeDefaultsIntoFormData:c})})),Array.isArray(r)){const K=Si(p);if(m)u=r;else{const C=r.map((U,H)=>Xe(t,K,{rootSchema:n,_recurseList:s,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,rawFormData:U,parentDefaults:X(u,[H]),required:a,shouldMergeDefaultsIntoFormData:c}));u=jt(u,C,(d&&a||f)&&v)}}if((ae(p)&&ze in p&&i?.constAsDefaults!=="never")===!1){if(m)return u??$;if(d&&!a)return u||void 0}const S=Array.isArray(u)?u.length:0;if(!p.minItems||ys(t,p,n,o)||y(t,p,n)||p.minItems<=S)return u||$;const I=u||[],A=Si(p,yt.Invert),q=A.default,F=new Array(p.minItems-S).fill(Xe(t,A,{parentDefaults:q,rootSchema:n,_recurseList:s,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,required:a,shouldMergeDefaultsIntoFormData:c}));return I.concat(F)}function to(t,e,r={},n){switch(Be(e)){case"object":return Mf(t,e,r,n);case"array":return xf(t,e,r,n)}}function ku(t,e,r,n,s=!1,i,o){if(!ae(e))throw new Error("Invalid schema: "+e);const a=Re(t,e,n,r,o),c=Xe(t,a,{rootSchema:n,includeUndefinedValues:s,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,rawFormData:r,shouldMergeDefaultsIntoFormData:!0});if(ae(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:u}=i||{};return jt(c,r,!0,u==="useDefaultIfFormDataUndefined",!0)}return c}function Fu(t={}){return"widget"in se(t)&&se(t).widget!=="hidden"}function Du(t,e,r={},n,s){if(r[ns]==="files")return!0;if(e.items){const i=Re(t,e.items,n,void 0,s);return i.type==="string"&&i.format==="data-url"}return!1}function Uf(t,e,r={},n,s,i){const o=se(r,s),{label:a=!0}=o;let c=!!a;const u=Be(e);return u==="array"&&(c=ys(t,e,n,i)||Du(t,e,r,n,i)||Fu(r)),u==="object"&&(c=!1),u==="boolean"&&!r[ns]&&(c=!1),r[sd]&&(c=!1),c}function Vf(t,e,r){if(!r)return e;const{errors:n,errorSchema:s}=e;let i=t.toErrorList(r),o=r;return ht(s)||(o=Le(s,r,!0),i=[...n].concat(i)),{errorSchema:o,errors:i}}const lt=Symbol("no Value");function Gi(t,e,r,n,s={},i){let o;if(Ee(r,ve)){const a={};if(Ee(n,ve)){const l=X(n,ve,{});Object.keys(l).forEach(h=>{Ee(s,h)&&(a[h]=void 0)})}const c=Object.keys(X(r,ve,{})),u={};c.forEach(l=>{const h=X(s,l);let p=X(n,[ve,l],{}),g=X(r,[ve,l],{});Ee(p,be)&&(p=Re(t,p,e,h,i)),Ee(g,be)&&(g=Re(t,g,e,h,i));const _=X(p,"type"),v=X(g,"type");if(!_||_===v)if(Ee(a,l)&&delete a[l],v==="object"||v==="array"&&Array.isArray(h)){const m=Gi(t,e,g,p,h,i);(m!==void 0||v==="array")&&(u[l]=m)}else{const m=X(g,"default",lt),d=X(p,"default",lt);m!==lt&&m!==h&&(d===h?a[l]=m:X(g,"readOnly")===!0&&(a[l]=void 0));const f=X(g,"const",lt),y=X(p,"const",lt);f!==lt&&f!==h&&(a[l]=y===h?f:void 0)}}),o={...typeof s=="string"||Array.isArray(s)?void 0:s,...a,...u}}else if(X(n,"type")==="array"&&X(r,"type")==="array"&&Array.isArray(s)){let a=X(n,"items"),c=X(r,"items");if(typeof a=="object"&&typeof c=="object"&&!Array.isArray(a)&&!Array.isArray(c)){Ee(a,be)&&(a=Re(t,a,e,s,i)),Ee(c,be)&&(c=Re(t,c,e,s,i));const u=X(a,"type"),l=X(c,"type");if(!u||u===l){const h=X(r,"maxItems",-1);l==="object"?o=s.reduce((p,g)=>{const _=Gi(t,e,c,a,g,i);return _!==void 0&&(h<0||p.length<h)&&p.push(_),p},[]):o=h>0&&s.length>h?s.slice(0,h):s}}else typeof a=="boolean"&&typeof c=="boolean"&&a===c&&(o=s)}return o}function Cr(t,e,r,n,s,i,o,a=[],c){if(be in e||Ur in e||_t in e){const h=Re(t,e,i,o,c);if(a.findIndex(g=>pe(g,h))===-1)return Cr(t,h,r,n,s,i,o,a.concat(h),c)}if(Ze in e&&!X(e,[Ze,be]))return Cr(t,X(e,Ze),r,n,s,i,o,a,c);const l={$id:s||r};if(Be(e)==="object"&&ve in e)for(const h in e.properties){const p=X(e,[ve,h]),g=l[Ye]+n+h;l[h]=Cr(t,ae(p)?p:{},r,n,g,i,X(o,[h]),a,c)}return l}function Lf(t,e,r,n,s,i="root",o="_",a){return Cr(t,e,i,o,r,n,s,void 0,a)}function at(t,e,r,n,s,i=[],o){if(be in e||Ur in e||_t in e){const c=Re(t,e,n,s,o);if(i.findIndex(l=>pe(l,c))===-1)return at(t,c,r,n,s,i.concat(c),o)}let a={[Ir]:r.replace(/^\./,"")};if(Ce in e||je in e){const c=Ce in e?e.oneOf:e.anyOf,u=pt(e),l=qt(t,n,s,c,0,u,o),h=c[l];a={...a,...at(t,h,r,n,s,i,o)}}if(zi in e&&e[zi]!==!1&&we(a,rs,!0),Ze in e&&Array.isArray(s)){const{items:c,additionalItems:u}=e;Array.isArray(c)?s.forEach((l,h)=>{c[h]?a[h]=at(t,c[h],`${r}.${h}`,n,l,i,o):u?a[h]=at(t,u,`${r}.${h}`,n,l,i,o):console.warn(`Unable to generate path schema for "${r}.${h}". No schema defined for it`)}):s.forEach((l,h)=>{a[h]=at(t,c,`${r}.${h}`,n,l,i,o)})}else if(ve in e)for(const c in e.properties){const u=X(e,[ve,c]);a[c]=at(t,u,`${r}.${c}`,n,X(s,[c]),i,o)}return a}function Kf(t,e,r="",n,s,i){return at(t,e,r,n,s,void 0,i)}class zf{constructor(e,r,n,s){this.rootSchema=r,this.validator=e,this.experimental_defaultFormStateBehavior=n,this.experimental_customMergeAllOf=s}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,r,n={},s){return!e||!r?!1:this.validator!==e||!pe(this.rootSchema,r)||!pe(this.experimental_defaultFormStateBehavior,n)||this.experimental_customMergeAllOf!==s}getDefaultFormState(e,r,n=!1){return ku(this.validator,e,r,this.rootSchema,n,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf)}getDisplayLabel(e,r,n){return Uf(this.validator,e,r,this.rootSchema,n,this.experimental_customMergeAllOf)}getClosestMatchingOption(e,r,n,s){return qt(this.validator,this.rootSchema,e,r,n,s,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,r,n){return ss(this.validator,e,r,this.rootSchema,n)}getMatchingOption(e,r,n){return fu(this.validator,e,r,this.rootSchema,n)}isFilesArray(e,r){return Du(this.validator,e,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return ys(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return ps(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}mergeValidationData(e,r){return Vf(this.validator,e,r)}retrieveSchema(e,r){return Re(this.validator,e,this.rootSchema,r,this.experimental_customMergeAllOf)}sanitizeDataForNewSchema(e,r,n){return Gi(this.validator,this.rootSchema,e,r,n,this.experimental_customMergeAllOf)}toIdSchema(e,r,n,s="root",i="_"){return Lf(this.validator,e,r,this.rootSchema,n,s,i,this.experimental_customMergeAllOf)}toPathSchema(e,r,n){return Kf(this.validator,e,r,this.rootSchema,n,this.experimental_customMergeAllOf)}}function Bf(t,e,r={},n){return new zf(t,e,r,n)}function Wf(t){var e;if(t.indexOf("data:")===-1)throw new Error("File is invalid: URI must be a dataURI");const n=t.slice(5).split(";base64,");if(n.length!==2)throw new Error("File is invalid: dataURI must be base64");const[s,i]=n,[o,...a]=s.split(";"),c=o||"",u=decodeURI(((e=a.map(l=>l.split("=")).find(([l])=>l==="name"))===null||e===void 0?void 0:e[1])||"unknown");try{const l=atob(i),h=new Array(l.length);for(let g=0;g<l.length;g++)h[g]=l.charCodeAt(g);return{blob:new window.Blob([new Uint8Array(h)],{type:c}),name:u}}catch(l){throw new Error("File is invalid: "+l.message)}}function Je(t,e){let r=String(t);for(;r.length<e;)r="0"+r;return r}function Mu(t,e){if(t<=0&&e<=0)t=new Date().getFullYear()+t,e=new Date().getFullYear()+e;else if(t<0||e<0)throw new Error(`Both start (${t}) and stop (${e}) must both be <= 0 or > 0, got one of each`);if(t>e)return Mu(e,t).reverse();const r=[];for(let n=t;n<=e;n++)r.push({value:n,label:Je(n,2)});return r}function Gf(t,e){let r=t;if(Array.isArray(e)){const n=r.split(/(%\d)/);e.forEach((s,i)=>{const o=n.findIndex(a=>a===`%${i+1}`);o>=0&&(n[o]=s)}),r=n.join("")}return r}function Hf(t,e){return Gf(t,e)}function De(t,e=[],r){if(Array.isArray(t))return t.map(i=>De(i,e)).filter(i=>i!==r);const n=t===""||t===null?-1:Number(t),s=e[n];return s?s.value:r}function Jf(t,e,r=[]){const n=De(t,r);return Array.isArray(e)?e.filter(s=>!pe(s,n)):pe(n,e)?void 0:e}function gs(t,e){return Array.isArray(e)?e.some(r=>pe(r,t)):pe(e,t)}function Yf(t,e=[],r=!1){const n=e.map((s,i)=>gs(s.value,t)?String(i):void 0).filter(s=>typeof s<"u");return r?n:n[0]}function Zf(t,e,r=[]){const n=De(t,r);if(!It(n)){const s=r.findIndex(a=>n===a.value),i=r.map(({value:a})=>a);return e.slice(0,s).concat(n,e.slice(s)).sort((a,c)=>+(i.indexOf(a)>i.indexOf(c)))}return e}function Xf(t,e,r,n){return n=typeof n=="function"?n:void 0,t==null?t:Zc(t,e,r,n)}class Qf{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let n=Array.isArray(e)&&e.length>0||typeof e=="string"?X(this.errorSchema,e):this.errorSchema;return!n&&e&&(n={},Xf(this.errorSchema,e,n,Object)),n}resetAllErrors(e){return this.errorSchema=e?Xc(e):{},this}addErrors(e,r){const n=this.getOrCreateErrorBlock(r);let s=X(n,Ae);return Array.isArray(s)||(s=[],n[Ae]=s),Array.isArray(e)?we(n,Ae,[...new Set([...s,...e])]):we(n,Ae,[...new Set([...s,e])]),this}setErrors(e,r){const n=this.getOrCreateErrorBlock(r),s=Array.isArray(e)?[...new Set([...e])]:[e];return we(n,Ae,s),this}clearErrors(e){const r=this.getOrCreateErrorBlock(e);return we(r,Ae,[]),this}}function eh(t,e,r=[1900,new Date().getFullYear()+2],n="YMD"){const{day:s,month:i,year:o,hour:a,minute:c,second:u}=t,l={type:"day",range:[1,31],value:s},h={type:"month",range:[1,12],value:i},p={type:"year",range:r,value:o},g=[];switch(n){case"MDY":g.push(h,l,p);break;case"DMY":g.push(l,h,p);break;default:g.push(p,h,l)}return e&&g.push({type:"hour",range:[0,23],value:a},{type:"minute",range:[0,59],value:c},{type:"second",range:[0,59],value:u}),g}function th(t){const e={};return t.multipleOf&&(e.step=t.multipleOf),(t.minimum||t.minimum===0)&&(e.min=t.minimum),(t.maximum||t.maximum===0)&&(e.max=t.maximum),e}function rh(t,e,r={},n=!0){const s={type:e||"text",...th(t)};return r.inputType?s.type=r.inputType:e||(t.type==="number"?(s.type="number",n&&s.step===void 0&&(s.step="any")):t.type==="integer"&&(s.type="number",s.step===void 0&&(s.step=1))),r.autocomplete&&(s.autoComplete=r.autocomplete),r.accept&&(s.accept=r.accept),s}const ro={props:{disabled:!1},submitText:"Submit",norender:!1};function nh(t={}){const e=se(t);if(e&&e[Tr]){const r=e[Tr];return{...ro,...r}}return ro}function ue(t,e,r={}){const{templates:n}=e;return t==="ButtonTemplates"?n[t]:r[t]||n[t]}var Ei={exports:{}},ce={};var no;function ih(){if(no)return ce;no=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function v(m){if(typeof m=="object"&&m!==null){var d=m.$$typeof;switch(d){case t:switch(m=m.type,m){case r:case s:case n:case u:case l:return m;default:switch(m=m&&m.$$typeof,m){case a:case o:case c:case p:case h:case i:return m;default:return d}}case e:return d}}}return ce.ContextConsumer=o,ce.ContextProvider=i,ce.Element=t,ce.ForwardRef=c,ce.Fragment=r,ce.Lazy=p,ce.Memo=h,ce.Portal=e,ce.Profiler=s,ce.StrictMode=n,ce.Suspense=u,ce.SuspenseList=l,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(m){return v(m)===o},ce.isContextProvider=function(m){return v(m)===i},ce.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},ce.isForwardRef=function(m){return v(m)===c},ce.isFragment=function(m){return v(m)===r},ce.isLazy=function(m){return v(m)===p},ce.isMemo=function(m){return v(m)===h},ce.isPortal=function(m){return v(m)===e},ce.isProfiler=function(m){return v(m)===s},ce.isStrictMode=function(m){return v(m)===n},ce.isSuspense=function(m){return v(m)===u},ce.isSuspenseList=function(m){return v(m)===l},ce.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===s||m===n||m===u||m===l||m===g||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===h||m.$$typeof===i||m.$$typeof===o||m.$$typeof===c||m.$$typeof===_||m.getModuleId!==void 0)},ce.typeOf=v,ce}var io;function sh(){return io||(io=1,Ei.exports=ih()),Ei.exports}var ah=sh();const so=Ft(ah),Oi={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function oh(t){let e=X(t,"MergedWidget");if(!e){const r=t.defaultProps&&t.defaultProps.options||{};e=({options:n,...s})=>j.jsx(t,{options:{...r,...n},...s}),we(t,"MergedWidget",e)}return e}function Ke(t,e,r={}){const n=Be(t);if(typeof e=="function"||e&&so.isForwardRef(te.createElement(e))||so.isMemo(e))return oh(e);if(typeof e!="string")throw new Error(`Unsupported widget definition: ${typeof e}`);if(e in r){const s=r[e];return Ke(t,s,r)}if(typeof n=="string"){if(!(n in Oi))throw new Error(`No widget for type '${n}'`);if(e in Oi[n]){const s=r[Oi[n][e]];return Ke(t,s,r)}}throw new Error(`No widget '${e}' for type '${n}'`)}function ch(t){let e=0;for(let r=0;r<t.length;r+=1){const n=t.charCodeAt(r);e=(e<<5)-e+n,e=e&e}return e.toString(16)}function uh(t){const e=new Set;return JSON.stringify(t,(r,n)=>(e.add(r),n)),ch(JSON.stringify(t,Array.from(e).sort()))}function lh(t,e,r={}){try{return Ke(t,e,r),!0}catch(n){const s=n;if(s.message&&(s.message.startsWith("No widget")||s.message.startsWith("Unsupported widget")))return!1;throw n}}function Mt(t,e){return`${Vr(t)?t:t[Ye]}__${e}`}function xt(t){return Mt(t,"description")}function xu(t){return Mt(t,"error")}function Hi(t){return Mt(t,"examples")}function Uu(t){return Mt(t,"help")}function Vu(t){return Mt(t,"title")}function ut(t,e=!1){const r=e?` ${Hi(t)}`:"";return`${xu(t)} ${xt(t)} ${Uu(t)}${r}`}function Lu(t,e){return`${t}-${e}`}function dh(t,e,r){return e?r:t}function fh(t){return t?new Date(t).toJSON():void 0}function hh(t,e){if(!Array.isArray(e))return t;const r=l=>l.reduce((h,p)=>(h[p]=!0,h),{}),n=l=>l.length>1?`properties '${l.join("', '")}'`:`property '${l[0]}'`,s=r(t),i=e.filter(l=>l==="*"||s[l]),o=r(i),a=t.filter(l=>!o[l]),c=i.indexOf("*");if(c===-1){if(a.length)throw new Error(`uiSchema order list does not contain ${n(a)}`);return i}if(c!==i.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const u=[...i];return u.splice(c,1,...a),u}function Pi(t,e=!0){if(!t)return{year:-1,month:-1,day:-1,hour:e?-1:0,minute:e?-1:0,second:e?-1:0};const r=new Date(t);if(Number.isNaN(r.getTime()))throw new Error("Unable to parse date "+t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:e?r.getUTCHours():0,minute:e?r.getUTCMinutes():0,second:e?r.getUTCSeconds():0}}function Rr(t){if(t.const||t.enum&&t.enum.length===1&&t.enum[0]===!0)return!0;if(t.anyOf&&t.anyOf.length===1)return Rr(t.anyOf[0]);if(t.oneOf&&t.oneOf.length===1)return Rr(t.oneOf[0]);if(t.allOf){const e=r=>Rr(r);return t.allOf.some(e)}return!1}function mh(t,e,r){const{props:n,state:s}=t;return!pe(n,e)||!pe(s,r)}function ao(t,e=!0){const{year:r,month:n,day:s,hour:i=0,minute:o=0,second:a=0}=t,c=Date.UTC(r,n-1,s,i,o,a),u=new Date(c).toJSON();return e?u:u.slice(0,10)}function kt(t,e=[]){if(!t)return[];let r=[];return Ae in t&&(r=r.concat(t[Ae].map(n=>{const s=`.${e.join(".")}`;return{property:s,message:n,stack:`${s} ${n}`}}))),Object.keys(t).reduce((n,s)=>{if(s!==Ae){const i=t[s];mt(i)&&(n=n.concat(kt(i,[...e,s])))}return n},r)}function Ku(t){return Xi(t)?Qi(t,Ki):Xl(t)?[t]:Zl(kl(Fl(t)))}function ph(t){const e=new Qf;return t.length&&t.forEach(r=>{const{property:n,message:s}=r,i=n==="."?[]:Ku(n);i.length>0&&i[0]===""&&i.splice(0,1),s&&e.addErrors(s,i)}),e.ErrorSchema}function vs(t){return Object.keys(t).reduce((e,r)=>{if(r==="addError")return e;{const n=t[r];return mt(n)?{...e,[r]:vs(n)}:{...e,[r]:n}}},{})}function yh(t){if(!t)return"";const e=new Date(t),r=Je(e.getFullYear(),4),n=Je(e.getMonth()+1,2),s=Je(e.getDate(),2),i=Je(e.getHours(),2),o=Je(e.getMinutes(),2),a=Je(e.getSeconds(),2),c=Je(e.getMilliseconds(),3);return`${r}-${n}-${s}T${i}:${o}:${a}.${c}`}function Nr(t,e){if(!e)return t;const{errors:r,errorSchema:n}=t;let s=kt(e),i=e;return ht(n)||(i=Le(n,e,!0),s=[...r].concat(s)),{errorSchema:i,errors:s}}function gh(t){for(const e in t){const r=t,n=r[e];e===be&&typeof n=="string"&&n.startsWith("#")?r[e]=su+n:r[e]=_s(n)}return t}function vh(t){for(let e=0;e<t.length;e++)t[e]=_s(t[e]);return t}function _s(t){return Array.isArray(t)?vh([...t]):Ie(t)?gh({...t}):t}function _h(t,e){if(t==null)return{};var r=Qi(Qc(t),function(n){return[n]});return e=Jc(e),zl(t,r,function(n,s){return e(n,s[0])})}var bh=200;function $h(t,e,r,n){var s=-1,i=Ml,o=!0,a=t.length,c=[],u=e.length;if(!a)return c;e.length>=bh&&(i=xl,o=!1,e=new Dl(e));e:for(;++s<a;){var l=t[s],h=l;if(l=l!==0?l:0,o&&h===h){for(var p=u;p--;)if(e[p]===h)continue e;c.push(l)}else i(e,h,n)||c.push(l)}return c}var wh=Pl(function(t,e){return Ps(t)?$h(t,Yc(e,1,Ps,!0)):[]});function Sh(t,e){const r=mt(t),n=mt(e);if(t===e||!r&&!n)return[];if(r&&!n)return $t(t);if(!r&&n)return $t(e);{const s=$t(_h(t,(o,a)=>!pe(o,X(e,a)))),i=wh($t(e),$t(t));return[...s,...i]}}var he;(function(t){t.ArrayItemTitle="Item",t.MissingItems="Missing items definition",t.YesLabel="Yes",t.NoLabel="No",t.CloseLabel="Close",t.ErrorsLabel="Errors",t.NewStringDefault="New Value",t.AddButton="Add",t.AddItemButton="Add Item",t.CopyButton="Copy",t.MoveDownButton="Move down",t.MoveUpButton="Move up",t.RemoveButton="Remove",t.NowLabel="Now",t.ClearLabel="Clear",t.AriaDateLabel="Select a date",t.PreviewLabel="Preview",t.DecrementAriaLabel="Decrease value by 1",t.IncrementAriaLabel="Increase value by 1",t.UnknownFieldType="Unknown field type %1",t.OptionPrefix="Option %1",t.TitleOptionPrefix="%1 option %2",t.KeyLabel="%1 Key",t.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',t.UnsupportedField="Unsupported field schema.",t.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",t.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",t.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",t.FilesInfo="**%1** (%2, %3 bytes)"})(he||(he={}));function Ji(){return Bl("rjsf-array-item-")}function oo(t){return Array.isArray(t)?t.map(e=>({key:Ji(),item:e})):[]}function St(t){return Array.isArray(t)?t.map(e=>e.item):[]}class Eh extends te.Component{constructor(e){super(e);const{formData:r=[]}=e,n=oo(r);this.state={keyedFormData:n,updatedKeyedFormData:!1}}static getDerivedStateFromProps(e,r){if(r.updatedKeyedFormData)return{updatedKeyedFormData:!1};const n=Array.isArray(e.formData)?e.formData:[],s=r.keyedFormData||[];return{keyedFormData:n.length===s.length?s.map((o,a)=>({key:o.key,item:n[a]})):oo(n)}}get itemTitle(){const{schema:e,registry:r}=this.props,{translateString:n}=r;return X(e,[Ze,"title"],X(e,[Ze,"description"],n(he.ArrayItemTitle)))}isItemRequired(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}canAddItem(e){const{schema:r,uiSchema:n,registry:s}=this.props;let{addable:i}=se(n,s.globalUiOptions);return i!==!1&&(r.maxItems!==void 0?i=e.length<r.maxItems:i=!0),i}_getNewFormDataRow=()=>{const{schema:e,registry:r}=this.props,{schemaUtils:n}=r;let s=e.items;return Wi(e)&&Ql(e)&&(s=e.additionalItems),n.getDefaultFormState(s)};_handleAddClick(e,r){e&&e.preventDefault();const{onChange:n,errorSchema:s}=this.props,{keyedFormData:i}=this.state;let o;if(s){o={};for(const u in s){const l=parseInt(u);r===void 0||l<r?we(o,[l],s[u]):l>=r&&we(o,[l+1],s[u])}}const a={key:Ji(),item:this._getNewFormDataRow()},c=[...i];r!==void 0?c.splice(r,0,a):c.push(a),this.setState({keyedFormData:c,updatedKeyedFormData:!0},()=>n(St(c),o))}onAddClick=e=>{this._handleAddClick(e)};onAddIndexClick=e=>r=>{this._handleAddClick(r,e)};onCopyIndexClick=e=>r=>{r&&r.preventDefault();const{onChange:n,errorSchema:s}=this.props,{keyedFormData:i}=this.state;let o;if(s){o={};for(const u in s){const l=parseInt(u);l<=e?we(o,[l],s[u]):l>e&&we(o,[l+1],s[u])}}const a={key:Ji(),item:Xc(i[e].item)},c=[...i];e!==void 0?c.splice(e+1,0,a):c.push(a),this.setState({keyedFormData:c,updatedKeyedFormData:!0},()=>n(St(c),o))};onDropIndexClick=e=>r=>{r&&r.preventDefault();const{onChange:n,errorSchema:s}=this.props,{keyedFormData:i}=this.state;let o;if(s){o={};for(const c in s){const u=parseInt(c);u<e?we(o,[u],s[c]):u>e&&we(o,[u-1],s[c])}}const a=i.filter((c,u)=>u!==e);this.setState({keyedFormData:a,updatedKeyedFormData:!0},()=>n(St(a),o))};onReorderClick=(e,r)=>n=>{n&&(n.preventDefault(),n.currentTarget.blur());const{onChange:s,errorSchema:i}=this.props;let o;if(i){o={};for(const l in i){const h=parseInt(l);h==e?we(o,[r],i[e]):h==r?we(o,[e],i[r]):we(o,[l],i[h])}}const{keyedFormData:a}=this.state;function c(){const l=a.slice();return l.splice(e,1),l.splice(r,0,a[e]),l}const u=c();this.setState({keyedFormData:u},()=>s(St(u),o))};onChangeForIndex=e=>(r,n,s)=>{const{formData:i,onChange:o,errorSchema:a}=this.props,u=(Array.isArray(i)?i:[]).map((l,h)=>e===h?typeof r>"u"?null:r:l);o(u,a&&a&&{...a,[e]:n},s)};onSelectChange=e=>{const{onChange:r,idSchema:n}=this.props;r(e,void 0,n&&n.$id)};render(){const{schema:e,uiSchema:r,idSchema:n,registry:s}=this.props,{schemaUtils:i,translateString:o}=s;if(!(Ze in e)){const a=se(r),c=ue("UnsupportedFieldTemplate",s,a);return j.jsx(c,{schema:e,idSchema:n,reason:o(he.MissingItems),registry:s})}return i.isMultiSelect(e)?this.renderMultiSelect():Fu(r)?this.renderCustomWidget():Wi(e)?this.renderFixedArray():i.isFilesArray(e,r)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:e,uiSchema:r={},errorSchema:n,idSchema:s,name:i,title:o,disabled:a=!1,readonly:c=!1,autofocus:u=!1,required:l=!1,registry:h,onBlur:p,onFocus:g,idPrefix:_,idSeparator:v="_",rawErrors:m}=this.props,{keyedFormData:d}=this.state,f=e.title||o||i,{schemaUtils:y,formContext:b}=h,$=se(r),w=Ie(e.items)?e.items:{},S=y.retrieveSchema(w),I=St(this.state.keyedFormData),A=this.canAddItem(I),q={canAdd:A,items:d.map((K,C)=>{const{key:M,item:U}=K,H=U,ee=y.retrieveSchema(w,H),W=n?n[C]:void 0,Q=s.$id+v+C,V=y.toIdSchema(ee,Q,H,_,v);return this.renderArrayFieldItem({key:M,index:C,name:i&&`${i}-${C}`,title:f?`${f}-${C+1}`:void 0,canAdd:A,canMoveUp:C>0,canMoveDown:C<I.length-1,itemSchema:ee,itemIdSchema:V,itemErrorSchema:W,itemData:H,itemUiSchema:r.items,autofocus:u&&C===0,onBlur:p,onFocus:g,rawErrors:m,totalItems:d.length})}),className:`field field-array field-array-of-${S.type}`,disabled:a,idSchema:s,uiSchema:r,onAddClick:this.onAddClick,readonly:c,required:l,schema:e,title:f,formContext:b,formData:I,rawErrors:m,registry:h},F=ue("ArrayFieldTemplate",h,$);return j.jsx(F,{...q})}renderCustomWidget(){const{schema:e,idSchema:r,uiSchema:n,disabled:s=!1,readonly:i=!1,autofocus:o=!1,required:a=!1,hideError:c,placeholder:u,onBlur:l,onFocus:h,formData:p=[],registry:g,rawErrors:_,name:v}=this.props,{widgets:m,formContext:d,globalUiOptions:f,schemaUtils:y}=g,{widget:b,title:$,...w}=se(n,f),S=Ke(e,b,m),I=$??e.title??v,A=y.getDisplayLabel(e,n,f);return j.jsx(S,{id:r.$id,name:v,multiple:!0,onChange:this.onSelectChange,onBlur:l,onFocus:h,options:w,schema:e,uiSchema:n,registry:g,value:p,disabled:s,readonly:i,hideError:c,required:a,label:I,hideLabel:!A,placeholder:u,formContext:d,autofocus:o,rawErrors:_})}renderMultiSelect(){const{schema:e,idSchema:r,uiSchema:n,formData:s=[],disabled:i=!1,readonly:o=!1,autofocus:a=!1,required:c=!1,placeholder:u,onBlur:l,onFocus:h,registry:p,rawErrors:g,name:_}=this.props,{widgets:v,schemaUtils:m,formContext:d,globalUiOptions:f}=p,y=m.retrieveSchema(e.items,s),b=Tt(y,n),{widget:$="select",title:w,...S}=se(n,f),I=Ke(e,$,v),A=w??e.title??_,q=m.getDisplayLabel(e,n,f);return j.jsx(I,{id:r.$id,name:_,multiple:!0,onChange:this.onSelectChange,onBlur:l,onFocus:h,options:{...S,enumOptions:b},schema:e,uiSchema:n,registry:p,value:s,disabled:i,readonly:o,required:c,label:A,hideLabel:!q,placeholder:u,formContext:d,autofocus:a,rawErrors:g})}renderFiles(){const{schema:e,uiSchema:r,idSchema:n,name:s,disabled:i=!1,readonly:o=!1,autofocus:a=!1,required:c=!1,onBlur:u,onFocus:l,registry:h,formData:p=[],rawErrors:g}=this.props,{widgets:_,formContext:v,globalUiOptions:m,schemaUtils:d}=h,{widget:f="files",title:y,...b}=se(r,m),$=Ke(e,f,_),w=y??e.title??s,S=d.getDisplayLabel(e,r,m);return j.jsx($,{options:b,id:n.$id,name:s,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:l,schema:e,uiSchema:r,value:p,disabled:i,readonly:o,required:c,registry:h,formContext:v,autofocus:a,rawErrors:g,label:w,hideLabel:!S})}renderFixedArray(){const{schema:e,uiSchema:r={},formData:n=[],errorSchema:s,idPrefix:i,idSeparator:o="_",idSchema:a,name:c,title:u,disabled:l=!1,readonly:h=!1,autofocus:p=!1,required:g=!1,registry:_,onBlur:v,onFocus:m,rawErrors:d}=this.props,{keyedFormData:f}=this.state;let{formData:y=[]}=this.props;const b=e.title||u||c,$=se(r),{schemaUtils:w,formContext:S}=_,A=(Ie(e.items)?e.items:[]).map((M,U)=>w.retrieveSchema(M,n[U])),q=Ie(e.additionalItems)?w.retrieveSchema(e.additionalItems,n):null;(!y||y.length<A.length)&&(y=y||[],y=y.concat(new Array(A.length-y.length)));const F=this.canAddItem(y)&&!!q,K={canAdd:F,className:"field field-array field-array-fixed-items",disabled:l,idSchema:a,formData:n,items:f.map((M,U)=>{const{key:H,item:ee}=M,W=ee,Q=U>=A.length,V=(Q&&Ie(e.additionalItems)?w.retrieveSchema(e.additionalItems,W):A[U])||{},N=a.$id+o+U,x=w.toIdSchema(V,N,W,i,o),T=Q?r.additionalItems||{}:Array.isArray(r.items)?r.items[U]:r.items||{},E=s?s[U]:void 0;return this.renderArrayFieldItem({key:H,index:U,name:c&&`${c}-${U}`,title:b?`${b}-${U+1}`:void 0,canAdd:F,canRemove:Q,canMoveUp:U>=A.length+1,canMoveDown:Q&&U<y.length-1,itemSchema:V,itemData:W,itemUiSchema:T,itemIdSchema:x,itemErrorSchema:E,autofocus:p&&U===0,onBlur:v,onFocus:m,rawErrors:d,totalItems:f.length})}),onAddClick:this.onAddClick,readonly:h,required:g,registry:_,schema:e,uiSchema:r,title:b,formContext:S,errorSchema:s,rawErrors:d},C=ue("ArrayFieldTemplate",_,$);return j.jsx(C,{...K})}renderArrayFieldItem(e){const{key:r,index:n,name:s,canAdd:i,canRemove:o=!0,canMoveUp:a,canMoveDown:c,itemSchema:u,itemData:l,itemUiSchema:h,itemIdSchema:p,itemErrorSchema:g,autofocus:_,onBlur:v,onFocus:m,rawErrors:d,totalItems:f,title:y}=e,{disabled:b,hideError:$,idPrefix:w,idSeparator:S,readonly:I,uiSchema:A,registry:q,formContext:F}=this.props,{fields:{ArraySchemaField:K,SchemaField:C},globalUiOptions:M}=q,U=K||C,{orderable:H=!0,removable:ee=!0,copyable:W=!1}=se(A,M),Q={moveUp:H&&a,moveDown:H&&c,copy:W&&i,remove:ee&&o,toolbar:!1};return Q.toolbar=Object.keys(Q).some(V=>Q[V]),{children:j.jsx(U,{name:s,title:y,index:n,schema:u,uiSchema:h,formData:l,formContext:F,errorSchema:g,idPrefix:w,idSeparator:S,idSchema:p,required:this.isItemRequired(u),onChange:this.onChangeForIndex(n),onBlur:v,onFocus:m,registry:q,disabled:b,readonly:I,hideError:$,autofocus:_,rawErrors:d}),className:"array-item",disabled:b,canAdd:i,hasCopy:Q.copy,hasToolbar:Q.toolbar,hasMoveUp:Q.moveUp,hasMoveDown:Q.moveDown,hasRemove:Q.remove,index:n,totalItems:f,key:r,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:I,registry:q,schema:u,uiSchema:h}}}function Oh(t){const{schema:e,name:r,uiSchema:n,idSchema:s,formData:i,registry:o,required:a,disabled:c,readonly:u,hideError:l,autofocus:h,title:p,onChange:g,onFocus:_,onBlur:v,rawErrors:m}=t,{title:d}=e,{widgets:f,formContext:y,translateString:b,globalUiOptions:$}=o,{widget:w="checkbox",title:S,label:I=!0,...A}=se(n,$),q=Ke(e,w,f),F=b(he.YesLabel),K=b(he.NoLabel);let C;const M=S??d??p??r;if(Array.isArray(e.oneOf))C=Tt({oneOf:e.oneOf.map(U=>{if(Ie(U))return{...U,title:U.title||(U.const===!0?F:K)}}).filter(U=>U)},n);else{const U=e,H=e.enum??[!0,!1];!U.enumNames&&H.length===2&&H.every(ee=>typeof ee=="boolean")?C=[{value:H[0],label:H[0]?F:K},{value:H[1],label:H[1]?F:K}]:C=Tt({enum:H,enumNames:U.enumNames},n)}return j.jsx(q,{options:{...A,enumOptions:C},schema:e,uiSchema:n,id:s.$id,name:r,onChange:g,onFocus:_,onBlur:v,label:M,hideLabel:!I,value:i,required:a,disabled:c,readonly:u,hideError:l,registry:o,formContext:y,autofocus:h,rawErrors:m})}class co extends te.Component{constructor(e){super(e);const{formData:r,options:n,registry:{schemaUtils:s}}=this.props,i=n.map(o=>s.retrieveSchema(o,r));this.state={retrievedOptions:i,selectedOption:this.getMatchingOption(0,r,i)}}componentDidUpdate(e,r){const{formData:n,options:s,idSchema:i}=this.props,{selectedOption:o}=this.state;let a=this.state;if(!pe(e.options,s)){const{registry:{schemaUtils:c}}=this.props,u=s.map(l=>c.retrieveSchema(l,n));a={selectedOption:o,retrievedOptions:u}}if(!pe(n,e.formData)&&i.$id===e.idSchema.$id){const{retrievedOptions:c}=a,u=this.getMatchingOption(o,n,c);r&&u!==o&&(a={selectedOption:u,retrievedOptions:c})}a!==this.state&&this.setState(a)}getMatchingOption(e,r,n){const{schema:s,registry:{schemaUtils:i}}=this.props,o=pt(s);return i.getClosestMatchingOption(r,n,e,o)}onOptionChange=e=>{const{selectedOption:r,retrievedOptions:n}=this.state,{formData:s,onChange:i,registry:o}=this.props,{schemaUtils:a}=o,c=e!==void 0?parseInt(e,10):-1;if(c===r)return;const u=c>=0?n[c]:void 0,l=r>=0?n[r]:void 0;let h=a.sanitizeDataForNewSchema(u,l,s);u&&(h=a.getDefaultFormState(u,h,"excludeObjectChildren")),this.setState({selectedOption:c},()=>{i(h,void 0,this.getFieldId())})};getFieldId(){const{idSchema:e,schema:r}=this.props;return`${e.$id}${r.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:r=!1,errorSchema:n={},formContext:s,onBlur:i,onFocus:o,readonly:a,registry:c,schema:u,uiSchema:l}=this.props,{widgets:h,fields:p,translateString:g,globalUiOptions:_,schemaUtils:v}=c,{SchemaField:m}=p,{selectedOption:d,retrievedOptions:f}=this.state,{widget:y="select",placeholder:b,autofocus:$,autocomplete:w,title:S=u.title,...I}=se(l,_),A=Ke({type:"number"},y,h),q=X(n,Ae,[]),F=Fr(n,[Ae]),K=v.getDisplayLabel(u,l,_),C=d>=0&&f[d]||null;let M;if(C){const{required:V}=u;M=V?We({required:V},C):C}let U=[];Ce in u&&l&&Ce in l?Array.isArray(l[Ce])?U=l[Ce]:console.warn(`uiSchema.oneOf is not an array for "${S||e}"`):je in u&&l&&je in l&&(Array.isArray(l[je])?U=l[je]:console.warn(`uiSchema.anyOf is not an array for "${S||e}"`));let H=l;d>=0&&U.length>d&&(H=U[d]);const ee=S?he.TitleOptionPrefix:he.OptionPrefix,W=S?[S]:[],Q=f.map((V,N)=>{const{title:x=V.title}=se(U[N]);return{label:x||g(ee,W.concat(String(N+1))),value:N}});return j.jsxs("div",{className:"panel panel-default panel-body",children:[j.jsx("div",{className:"form-group",children:j.jsx(A,{id:this.getFieldId(),name:`${e}${u.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:i,onFocus:o,disabled:r||ht(Q),multiple:!1,rawErrors:q,errorSchema:F,value:d>=0?d:void 0,options:{enumOptions:Q,...I},registry:c,formContext:s,placeholder:b,autocomplete:w,autofocus:$,label:S??e,hideLabel:!K,readonly:a})}),M&&M.type!=="null"&&j.jsx(m,{...this.props,schema:M,uiSchema:H})]})}}const Ph=/\.([0-9]*0)*$/,Ah=/[0.]0*$/;function Ih(t){const{registry:e,onChange:r,formData:n,value:s}=t,[i,o]=te.useState(s),{StringField:a}=e.fields;let c=n;const u=te.useCallback((l,h,p)=>{o(l),`${l}`.charAt(0)==="."&&(l=`0${l}`);const g=typeof l=="string"&&l.match(Ph)?Is(l.replace(Ah,"")):Is(l);r(g,h,p)},[r]);if(typeof i=="string"&&typeof c=="number"){const l=new RegExp(`^(${String(c).replace(".","\\.")})?\\.?0*$`);i.match(l)&&(c=i)}return j.jsx(a,{...t,formData:c,onChange:u})}function ot(){return ot=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ot.apply(this,arguments)}const Ch=["children","options"],uo=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((t,e)=>(t[e.toLowerCase()]=e,t),{class:"className",for:"htmlFor"}),lo={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Rh=["style","script","pre"],Nh=["src","href","data","formAction","srcDoc","action"],qh=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,jh=/\n{2,}$/,fo=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Th=/^ *> ?/gm,kh=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Fh=/^ {2,}\n/,Dh=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,ho=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,mo=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Mh=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,xh=/^(?:\n *)*\n/,Uh=/\r\n?/g,Vh=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Lh=/^\[\^([^\]]+)]/,Kh=/\f/g,zh=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Bh=/^\s*?\[(x|\s)\]/,po=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,yo=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,go=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ai=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Wh=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,vo=/^<!--[\s\S]*?(?:-->)/,Gh=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ii=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Hh=/^\{.*\}$/,Jh=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Yh=/^<([^ >]+[:@\/][^ >]+)>/,Zh=/-([a-z])?/gi,_o=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Xh=/^[^\n]+(?: \n|\n{2,})/,Qh=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,em=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,tm=/^\[([^\]]*)\] ?\[([^\]]*)\]/,rm=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,nm=/\t/g,im=/(^ *\||\| *$)/g,sm=/^ *:-+: *$/,am=/^ *:-+ *$/,om=/^ *-+: *$/,zr=t=>`(?=[\\s\\S]+?\\1${t?"\\1":""})`,Br="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",cm=RegExp(`^([*_])\\1${zr(1)}${Br}\\1\\1(?!\\1)`),um=RegExp(`^([*_])${zr(0)}${Br}\\1(?!\\1)`),lm=RegExp(`^(==)${zr(0)}${Br}\\1`),dm=RegExp(`^(~~)${zr(0)}${Br}\\1`),fm=/^(:[a-zA-Z0-9-_]+:)/,hm=/^\\([^0-9A-Za-z\s])/,mm=/\\([^0-9A-Za-z\s])/g,pm=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,ym=/^\n+/,gm=/^([ \t]*)/,vm=/(?:^|\n)( *)$/,bs="(?:\\d+\\.)",$s="(?:[*+-])";function zu(t){return"( *)("+(t===1?bs:$s)+") +"}const Bu=zu(1),Wu=zu(2);function Gu(t){return RegExp("^"+(t===1?Bu:Wu))}const _m=Gu(1),bm=Gu(2);function Hu(t){return RegExp("^"+(t===1?Bu:Wu)+"[^\\n]*(?:\\n(?!\\1"+(t===1?bs:$s)+" )[^\\n]*)*(\\n|$)","gm")}const $m=Hu(1),wm=Hu(2);function Ju(t){const e=t===1?bs:$s;return RegExp("^( *)("+e+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+e+" (?!"+e+" ))\\n*|\\s*\\n*$)")}const Yu=Ju(1),Zu=Ju(2);function bo(t,e){const r=e===1,n=r?Yu:Zu,s=r?$m:wm,i=r?_m:bm;return{t:o=>i.test(o),o:gt(function(o,a){const c=vm.exec(a.prevCapture);return c&&(a.list||!a.inline&&!a.simple)?n.exec(o=c[1]+o):null}),i:1,u(o,a,c){const u=r?+o[2]:void 0,l=o[0].replace(jh,`
3
+ `+P)}function N(L,B,P,R,D,z){if(L.length){const G=D.complexResolvers[B];if(!G||!G.resolver)throw new Error("No resolver found for "+B);const Z=P.map(ye=>L.reduce((me,ie)=>(ye[ie]!==void 0&&(me[ie]=ye[ie]),me),{})),le=g(Z,e),ge=G.keywords.reduce((ye,me)=>({...ye,[me]:(ie,_e=[])=>R(ie,null,z.concat(me,_e))}),{}),fe=G.resolver(le,z.concat(B),ge,D);return u(fe)||V(le,z.concat(B)),fe}}function x(L){return{required:L}}const T=["properties","patternProperties","definitions","dependencies"],E=["anyOf","oneOf"],O=["additionalProperties","additionalItems","contains","propertyNames","not","items"],k={type(L){if(L.some(Array.isArray)){const B=L.map(function(R){return Array.isArray(R)?R:[R]}),P=o.apply(null,B);if(P.length===1)return P[0];if(P.length>1)return p(P)}},dependencies(L,B,P){return S(L).reduce(function(D,z){const G=H(L,z);let Z=g(G.filter(w),c);const le=Z.filter(Array.isArray);if(le.length){if(le.length===Z.length)D[z]=$(Z);else{const ge=Z.filter(d),fe=le.map(x);D[z]=P(ge.concat(fe),z)}return D}return Z=g(Z,e),D[z]=P(Z,z),D},{})},oneOf(L,B,P){const R=Q(t(L)),D=ee(R,P),z=g(D,e);if(z.length)return z},not(L){return{anyOf:L}},pattern(L){return L.map(B=>"(?="+B+")").join("")},multipleOf(L){let B=L.slice(0),P=1;for(;B.some(R=>!Number.isInteger(R));)B=B.map(R=>R*10),P=P*10;return r(B)/P},enum(L){const B=a.apply(null,L.concat(c));if(B.length)return h(B)}};k.$id=I,k.$ref=I,k.$schema=I,k.additionalItems=b,k.additionalProperties=b,k.anyOf=k.oneOf,k.contains=b,k.default=I,k.definitions=k.dependencies,k.description=I,k.examples=C,k.exclusiveMaximum=F,k.exclusiveMinimum=q,k.items=v,k.maximum=F,k.maxItems=F,k.maxLength=F,k.maxProperties=F,k.minimum=q,k.minItems=q,k.minLength=q,k.minProperties=q,k.properties=_,k.propertyNames=b,k.required=A,k.title=I,k.uniqueItems=K;const Y={properties:_,items:v};function J(L,B,P){B=n(B,{ignoreAdditionalProperties:!1,resolvers:k,complexResolvers:Y,deep:!0});const R=Object.entries(B.complexResolvers);function D(Z,le,ge){Z=t(Z.filter(w)),ge=ge||[];const fe=u(le)?le:{};if(!Z.length)return;if(Z.some(f))return!1;if(Z.every(y))return!0;Z=Z.filter(u);const ye=S(Z);if(B.deep&&m(ye,"allOf"))return J({allOf:Z},B);const me=R.map(([ie,_e])=>ye.filter(Oe=>_e.keywords.includes(Oe)));return me.forEach(ie=>l(ye,ie)),ye.forEach(function(ie){const _e=H(Z,ie),Oe=g(_e.filter(w),M(ie));if(Oe.length===1&&m(E,ie))fe[ie]=Oe[0].map(Ne=>D([Ne],Ne));else if(Oe.length===1&&!m(T,ie)&&!m(O,ie))fe[ie]=Oe[0];else{const Ne=B.resolvers[ie]||B.resolvers.defaultResolver;if(!Ne)throw new Error("No resolver found for key "+ie+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const tt=(bt,Vt=[])=>D(bt,null,ge.concat(ie,Vt));fe[ie]=Ne(Oe,ge.concat(ie),tt,B),fe[ie]===void 0?V(Oe,ge.concat(ie)):fe[ie]===void 0&&delete fe[ie]}}),R.reduce((ie,[_e,Oe],Ne)=>({...ie,...N(me[Ne],_e,Z,D,B,ge)}),fe)}const z=i(U(L));return D(z)}return J.options={resolvers:k},wi=J,wi}var Of=Ef();const Pf=Ft(Of);function pt(t){let e;const r=X(t,"discriminator.propertyName",void 0);return Vr(r)?e=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),e}function Rt(t){return Array.isArray(t)?"array":typeof t=="string"?"string":t==null?"null":typeof t=="boolean"?"boolean":isNaN(t)?typeof t=="object"?"object":"string":"number"}function Be(t){let{type:e}=t;return!e&&t.const?Rt(t.const):!e&&t.enum?"string":!e&&(t.properties||t.additionalProperties)?"object":(Array.isArray(e)&&(e.length===2&&e.includes("null")?e=e.find(r=>r!=="null"):e=e[0]),e)}function We(t,e){const r=Object.assign({},t);return Object.keys(e).reduce((n,s)=>{const i=t?t[s]:{},o=e[s];return t&&s in t&&ae(o)?n[s]=We(i,o):t&&e&&(Be(t)==="object"||Be(e)==="object")&&s===id&&Array.isArray(i)&&Array.isArray(o)?n[s]=jl(i,o):n[s]=o,n},r)}function Re(t,e,r={},n,s){return Fe(t,e,r,n,void 0,void 0,s)[0]}function Af(t,e,r,n,s,i,o){const{if:a,then:c,else:u,...l}=e,h=t.isValid(a,i||{},r);let p=[l],g=[];if(n)c&&typeof c!="boolean"&&(g=g.concat(Fe(t,c,r,i,n,s,o))),u&&typeof u!="boolean"&&(g=g.concat(Fe(t,u,r,i,n,s,o)));else{const _=h?c:u;_&&typeof _!="boolean"&&(g=g.concat(Fe(t,_,r,i,n,s,o)))}return g.length&&(p=g.map(_=>We(l,_))),p.flatMap(_=>Fe(t,_,r,i,n,s,o))}function Cu(t){return t.reduce((r,n)=>n.length>1?n.flatMap(s=>lu(r.length,i=>[...r[i]].concat(s))):(r.forEach(s=>s.push(n[0])),r),[[]])}function If(t,e,r,n,s,i,o){const a=Ru(t,e,r,n,s,i);if(a.length>1||a[0]!==e)return a;if(Ur in e)return Nu(t,e,r,n,s,i).flatMap(u=>Fe(t,u,r,i,n,s,o));if(_t in e&&Array.isArray(e.allOf)){const c=e.allOf.map(l=>Fe(t,l,r,i,n,s,o));return Cu(c).map(l=>({...e,allOf:l}))}return[e]}function Ru(t,e,r,n,s,i,o){const a=Nt(e,r,s);return a!==e?Fe(t,a,r,i,n,s,o):[e]}function Nt(t,e,r){if(!ae(t))return t;let n=t;if(be in n){const{$ref:s,...i}=n;if(r.includes(s))return n;r.push(s),n={...cu(s,e),...i}}if(ve in n){const s=[],i=Ed(n[ve],(o,a,c)=>{const u=[...r];o[c]=Nt(a,e,u),s.push(u)},{});Jl(r,Ad(Pd(s))),n={...n,[ve]:i}}return Ze in n&&!Array.isArray(n.items)&&typeof n.items!="boolean"&&(n={...n,items:Nt(n.items,e,r)}),pe(t,n)?t:n}function Cf(t,e,r,n,s){const i={...e,properties:{...e.properties}},o=n&&ae(n)?n:{};return Object.keys(o).forEach(a=>{if(a in i.properties)return;let c={};typeof i.additionalProperties!="boolean"?be in i.additionalProperties?c=Re(t,{$ref:X(i.additionalProperties,[be])},r,o,s):"type"in i.additionalProperties?c={...i.additionalProperties}:je in i.additionalProperties||Ce in i.additionalProperties?c={type:"object",...i.additionalProperties}:c={type:Rt(X(o,[a]))}:c={type:Rt(X(o,[a]))},i.properties[a]=c,we(i.properties,[a,Dt],!0)}),i}function Fe(t,e,r,n,s=!1,i=[],o){return ae(e)?If(t,e,r,s,i,n,o).flatMap(c=>{var u;let l=c;if(rd in l)return Af(t,l,r,s,i,n,o);if(_t in l){if(s){const{allOf:p,...g}=l;return[...p,g]}try{const p=[],g=[];(u=l.allOf)===null||u===void 0||u.forEach(_=>{typeof _=="object"&&_.contains?p.push(_):g.push(_)}),p.length&&(l={...l,allOf:g}),l=o?o(l):Pf(l,{deep:!1}),p.length&&(l.allOf=p)}catch(p){console.warn(`could not merge subschemas in allOf:
4
+ `,p);const{allOf:g,..._}=l;return _}}return zi in l&&l.additionalProperties!==!1?Cf(t,l,r,n,o):l}):[{}]}function Rf(t,e,r,n,s){let i;const{oneOf:o,anyOf:a,...c}=e;if(Array.isArray(o)?i=o:Array.isArray(a)&&(i=a),i){const u=s===void 0&&n?{}:s,l=pt(e);i=i.map(p=>Nt(p,r,[]));const h=ss(t,u,i,r,l);if(n)return i.map(p=>We(c,p));e=We(c,i[h])}return[e]}function Nu(t,e,r,n,s,i,o){const{dependencies:a,...c}=e;return Rf(t,c,r,n,i).flatMap(l=>qu(t,a,l,r,n,s,i,o))}function qu(t,e,r,n,s,i,o,a){let c=[r];for(const u in e){if(!s&&X(o,[u])===void 0||r.properties&&!(u in r.properties))continue;const[l,h]=is(u,e);return Array.isArray(h)?c[0]=Nf(r,h):ae(h)&&(c=qf(t,r,n,u,h,s,i,o,a)),c.flatMap(p=>qu(t,l,p,n,s,i,o,a))}return c}function Nf(t,e){if(!e)return t;const r=Array.isArray(t.required)?Array.from(new Set([...t.required,...e])):e;return{...t,required:r}}function qf(t,e,r,n,s,i,o,a,c){return Fe(t,s,r,a,i,o,c).flatMap(l=>{const{oneOf:h,...p}=l;if(e=We(e,p),h===void 0)return e;const g=h.map(v=>typeof v=="boolean"||!(be in v)?[v]:Ru(t,v,r,i,o,a));return Cu(g).flatMap(v=>jf(t,e,r,n,v,i,o,a,c))})}function jf(t,e,r,n,s,i,o,a,c){const u=s.filter(l=>{if(typeof l=="boolean"||!l||!l.properties)return!1;const{[n]:h}=l.properties;if(h){const p={type:"object",properties:{[n]:h}};return t.isValid(p,a,r)||i}return!1});return!i&&u.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[e]):u.flatMap(l=>{const h=l,[p]=is(n,h.properties),g={...h,properties:p};return Fe(t,g,r,a,i,o,c).map(v=>We(e,v))})}const Tf={type:"object",$id:nd,properties:{__not_really_there__:{type:"number"}}};function Bi(t,e,r,n,s){let i=0;return r&&(Ie(r.properties)?i+=Tl(r.properties,(o,a,c)=>{const u=X(n,c);if(typeof a=="boolean")return o;if(Ee(a,be)){const l=Re(t,a,e,u,s);return o+Bi(t,e,l,u||{},s)}if((Ee(a,Ce)||Ee(a,je))&&u){const l=Ee(a,Ce)?Ce:je,h=pt(a);return o+qt(t,e,u,X(a,l),-1,h,s)}if(a.type==="object")return Ie(u)&&(o+=1),o+Bi(t,e,a,u,s);if(a.type===Rt(u)){let l=o+1;return a.default?l+=u===a.default?1:-1:a.const&&(l+=u===a.const?1:-1),l}return o},0):Vr(r.type)&&r.type===Rt(n)&&(i+=1)),i}function qt(t,e,r,n,s=-1,i,o){const a=n.map(p=>Nt(p,e,[])),c=du(r,n,i);if(uu(c))return c;const u=a.reduce((p,g,_)=>(ss(t,r,[Tf,g],e,i)===1&&p.push(_),p),[]);if(u.length===1)return u[0];u.length||lu(a.length,p=>u.push(p));const l=new Set,{bestIndex:h}=u.reduce((p,g)=>{const{bestScore:_}=p,v=a[g],m=Bi(t,e,v,r,o);return l.add(m),m>_?{bestIndex:g,bestScore:m}:p},{bestIndex:s,bestScore:0});return l.size===1&&s>=0?s:h}function Wi(t){return Array.isArray(t.items)&&t.items.length>0&&t.items.every(e=>ae(e))}function It(t){return t==null}function jt(t,e,r=!1,n=!1,s=!1){if(Array.isArray(e)){const i=Array.isArray(t)?t:[],o=s?i:e,a=s?e:i,c=o.map((u,l)=>a[l]!==void 0?jt(i[l],e[l],r,n,s):u);return(r||s)&&c.length<a.length&&c.push(...a.slice(c.length)),c}if(ae(e)){const i=Object.assign({},t);return Object.keys(e).reduce((o,a)=>{const c=X(e,a),u=ae(t)&&a in t,l=a in e;return o[a]=jt(t?X(t,a):{},c,r,n,s&&(u||!l)),o},i)}return n&&(!It(t)&&It(e)||typeof e=="number"&&isNaN(e))||s&&!It(e)?t:e}function Le(t,e,r=!1){return Object.keys(e).reduce((n,s)=>{const i=t?t[s]:{},o=e[s];if(t&&s in t&&ae(o))n[s]=Le(i,o,r);else if(r&&Array.isArray(i)&&Array.isArray(o)){let a=o;r==="preventDuplicates"&&(a=o.reduce((c,u)=>(i.includes(u)||c.push(u),c),[])),n[s]=i.concat(a)}else n[s]=o;return n},Object.assign({},t))}function ju(t){return Array.isArray(t.enum)&&t.enum.length===1||ze in t}function ps(t,e,r={},n){const s=Re(t,e,r,void 0,n),i=s.oneOf||s.anyOf;return Array.isArray(s.enum)?!0:Array.isArray(i)?i.every(o=>typeof o!="boolean"&&ju(o)):!1}function ys(t,e,r,n){return!e.uniqueItems||!e.items||typeof e.items=="boolean"?!1:ps(t,e.items,r,n)}function Tu(t){const e=t[ze],r=Be(t);return ae(e)&&Vr(e?.$data)&&r!=="object"&&r!=="array"}function kf(t){if(td in t&&Array.isArray(t.enum)&&t.enum.length===1)return t.enum[0];if(ze in t)return t.const;throw new Error("schema cannot be inferred as a constant")}function Tt(t,e){const r=t;if(t.enum){let i;if(e){const{enumNames:o}=se(e);i=o}return!i&&r.enumNames&&(i=r.enumNames),t.enum.map((o,a)=>({label:i?.[a]||String(o),value:o}))}let n,s;return t.anyOf?(n=t.anyOf,s=e?.anyOf):t.oneOf&&(n=t.oneOf,s=e?.oneOf),n&&n.map((i,o)=>{const{title:a}=se(s?.[o]),c=i,u=kf(c),l=a||c.title||String(u);return{schema:c,label:l,value:u}})}const Ff=["string","number","integer","boolean","null"];var yt;(function(t){t[t.Ignore=0]="Ignore",t[t.Invert=1]="Invert",t[t.Fallback=2]="Fallback"})(yt||(yt={}));function Si(t,e=yt.Ignore,r=-1){if(r>=0){if(Array.isArray(t.items)&&r<t.items.length){const n=t.items[r];if(typeof n!="boolean")return n}}else if(t.items&&!Array.isArray(t.items)&&typeof t.items!="boolean")return t.items;return e!==yt.Ignore&&ae(t.additionalItems)?t.additionalItems:{}}function eo(t,e,r,n,s,i=[],o={},a=!1){const{emptyObjectFields:c="populateAllDefaults"}=o;if(n||a)t[e]=r;else if(c!=="skipDefaults"){const u=s===void 0?i.includes(e):s;ae(r)?c==="skipEmptyDefaults"?ht(r)||(t[e]=r):(!ht(r)||i.includes(e))&&(u||c!=="populateRequiredDefaults")&&(t[e]=r):r!==void 0&&(c==="populateAllDefaults"||c==="skipEmptyDefaults"||u&&i.includes(e))&&(t[e]=r)}}function Xe(t,e,r={}){const{parentDefaults:n,rawFormData:s,rootSchema:i={},includeUndefinedValues:o=!1,_recurseList:a=[],experimental_defaultFormStateBehavior:c=void 0,experimental_customMergeAllOf:u=void 0,required:l,shouldMergeDefaultsIntoFormData:h=!1}=r;let p=ae(s)?s:{};const g=ae(e)?e:{};let _=n,v=null,m=c,d=a;if(g[ze]!==void 0&&c?.constAsDefaults!=="never"&&!Tu(g))_=g[ze];else if(ae(_)&&ae(g.default))_=Le(_,g.default);else if(ed in g&&!g[je]&&!g[Ce])_=g.default;else if(be in g){const b=g[be];a.includes(b)||(d=a.concat(b),v=cu(b,i)),v&&!_&&(_=g.default),h&&v&&!ae(s)&&(p=s)}else if(Ur in g){const b={...to(t,g,r,_),...p};v=Nu(t,g,i,!1,[],b,u)[0]}else if(Wi(g))_=g.items.map((b,$)=>Xe(t,b,{rootSchema:i,includeUndefinedValues:o,_recurseList:a,experimental_defaultFormStateBehavior:c,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(n)?n[$]:void 0,rawFormData:p,required:l,shouldMergeDefaultsIntoFormData:h}));else if(Ce in g){const{oneOf:b,...$}=g;if(b.length===0)return;const w=pt(g),{type:S="null"}=$;!Array.isArray(S)&&Ff.includes(S)&&m?.constAsDefaults==="skipOneOf"&&(m={...m,constAsDefaults:"never"}),v=b[qt(t,i,s??g.default,b,0,w,u)],v=We($,v)}else if(je in g){const{anyOf:b,...$}=g;if(b.length===0)return;const w=pt(g);v=b[qt(t,i,s??g.default,b,0,w,u)],v=We($,v)}if(v)return Xe(t,v,{rootSchema:i,includeUndefinedValues:o,_recurseList:d,experimental_defaultFormStateBehavior:m,experimental_customMergeAllOf:u,parentDefaults:_,rawFormData:s??p,required:l,shouldMergeDefaultsIntoFormData:h});_===void 0&&(_=g.default);const f=to(t,g,r,_);let y=f??_;if(h){const{arrayMinItems:b={}}=c||{},{mergeExtraDefaults:$}=b,w=Df(t,g,i,s,c,u);(!ae(s)||_t in g)&&(y=jt(y,w,$,!0))}return y}function Df(t,e,r,n,s,i){const o=!ju(e)&&ps(t,e,r,i);let a=n;if(o){const u=Tt(e);a=u?.some(h=>pe(h.value,n))?n:void 0}return e[ze]&&s?.constAsDefaults==="always"&&(a=e.const),a}function Mf(t,e,{rawFormData:r,rootSchema:n={},includeUndefinedValues:s=!1,_recurseList:i=[],experimental_defaultFormStateBehavior:o=void 0,experimental_customMergeAllOf:a=void 0,required:c,shouldMergeDefaultsIntoFormData:u}={},l){{const h=ae(r)?r:{},p=e,g=o?.allOf==="populateDefaults"&&_t in p?Re(t,p,n,h,a):p,_=g[ze],v=Object.keys(g.properties||{}).reduce((m,d)=>{var f;const y=X(g,[ve,d]),b=ae(_)&&_[d]!==void 0,$=(ae(y)&&ze in y||b)&&o?.constAsDefaults!=="never"&&!Tu(y),w=Xe(t,y,{rootSchema:n,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:s===!0,parentDefaults:X(l,[d]),rawFormData:X(h,[d]),required:(f=g.required)===null||f===void 0?void 0:f.includes(d),shouldMergeDefaultsIntoFormData:u});return eo(m,d,w,s,c,g.required,o,$),m},{});if(g.additionalProperties){const m=ae(g.additionalProperties)?g.additionalProperties:{},d=new Set;ae(l)&&Object.keys(l).filter(y=>!g.properties||!g.properties[y]).forEach(y=>d.add(y));const f=[];Object.keys(h).filter(y=>!g.properties||!g.properties[y]).forEach(y=>{d.add(y),f.push(y)}),d.forEach(y=>{var b;const $=Xe(t,m,{rootSchema:n,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:s===!0,parentDefaults:X(l,[y]),rawFormData:X(h,[y]),required:(b=g.required)===null||b===void 0?void 0:b.includes(y),shouldMergeDefaultsIntoFormData:u});eo(v,y,$,s,c,f)})}return v}}function xf(t,e,{rawFormData:r,rootSchema:n={},_recurseList:s=[],experimental_defaultFormStateBehavior:i=void 0,experimental_customMergeAllOf:o=void 0,required:a,shouldMergeDefaultsIntoFormData:c}={},u){var l,h;const p=e,g=(l=i?.arrayMinItems)!==null&&l!==void 0?l:{},{populate:_,mergeExtraDefaults:v}=g,m=_==="never",d=_==="requiredOnly",f=_==="all"||!m&&!d,y=(h=g?.computeSkipPopulate)!==null&&h!==void 0?h:(()=>!1),$=i?.emptyObjectFields==="skipEmptyDefaults"?void 0:[];if(Array.isArray(u)&&(u=u.map((K,C)=>{const M=Si(p,yt.Fallback,C);return Xe(t,M,{rootSchema:n,_recurseList:s,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,parentDefaults:K,required:a,shouldMergeDefaultsIntoFormData:c})})),Array.isArray(r)){const K=Si(p);if(m)u=r;else{const C=r.map((U,H)=>Xe(t,K,{rootSchema:n,_recurseList:s,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,rawFormData:U,parentDefaults:X(u,[H]),required:a,shouldMergeDefaultsIntoFormData:c}));u=jt(u,C,(d&&a||f)&&v)}}if((ae(p)&&ze in p&&i?.constAsDefaults!=="never")===!1){if(m)return u??$;if(d&&!a)return u||void 0}const S=Array.isArray(u)?u.length:0;if(!p.minItems||ys(t,p,n,o)||y(t,p,n)||p.minItems<=S)return u||$;const I=u||[],A=Si(p,yt.Invert),q=A.default,F=new Array(p.minItems-S).fill(Xe(t,A,{parentDefaults:q,rootSchema:n,_recurseList:s,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,required:a,shouldMergeDefaultsIntoFormData:c}));return I.concat(F)}function to(t,e,r={},n){switch(Be(e)){case"object":return Mf(t,e,r,n);case"array":return xf(t,e,r,n)}}function ku(t,e,r,n,s=!1,i,o){if(!ae(e))throw new Error("Invalid schema: "+e);const a=Re(t,e,n,r,o),c=Xe(t,a,{rootSchema:n,includeUndefinedValues:s,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:o,rawFormData:r,shouldMergeDefaultsIntoFormData:!0});if(ae(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:u}=i||{};return jt(c,r,!0,u==="useDefaultIfFormDataUndefined",!0)}return c}function Fu(t={}){return"widget"in se(t)&&se(t).widget!=="hidden"}function Du(t,e,r={},n,s){if(r[ns]==="files")return!0;if(e.items){const i=Re(t,e.items,n,void 0,s);return i.type==="string"&&i.format==="data-url"}return!1}function Uf(t,e,r={},n,s,i){const o=se(r,s),{label:a=!0}=o;let c=!!a;const u=Be(e);return u==="array"&&(c=ys(t,e,n,i)||Du(t,e,r,n,i)||Fu(r)),u==="object"&&(c=!1),u==="boolean"&&!r[ns]&&(c=!1),r[sd]&&(c=!1),c}function Vf(t,e,r){if(!r)return e;const{errors:n,errorSchema:s}=e;let i=t.toErrorList(r),o=r;return ht(s)||(o=Le(s,r,!0),i=[...n].concat(i)),{errorSchema:o,errors:i}}const lt=Symbol("no Value");function Gi(t,e,r,n,s={},i){let o;if(Ee(r,ve)){const a={};if(Ee(n,ve)){const l=X(n,ve,{});Object.keys(l).forEach(h=>{Ee(s,h)&&(a[h]=void 0)})}const c=Object.keys(X(r,ve,{})),u={};c.forEach(l=>{const h=X(s,l);let p=X(n,[ve,l],{}),g=X(r,[ve,l],{});Ee(p,be)&&(p=Re(t,p,e,h,i)),Ee(g,be)&&(g=Re(t,g,e,h,i));const _=X(p,"type"),v=X(g,"type");if(!_||_===v)if(Ee(a,l)&&delete a[l],v==="object"||v==="array"&&Array.isArray(h)){const m=Gi(t,e,g,p,h,i);(m!==void 0||v==="array")&&(u[l]=m)}else{const m=X(g,"default",lt),d=X(p,"default",lt);m!==lt&&m!==h&&(d===h?a[l]=m:X(g,"readOnly")===!0&&(a[l]=void 0));const f=X(g,"const",lt),y=X(p,"const",lt);f!==lt&&f!==h&&(a[l]=y===h?f:void 0)}}),o={...typeof s=="string"||Array.isArray(s)?void 0:s,...a,...u}}else if(X(n,"type")==="array"&&X(r,"type")==="array"&&Array.isArray(s)){let a=X(n,"items"),c=X(r,"items");if(typeof a=="object"&&typeof c=="object"&&!Array.isArray(a)&&!Array.isArray(c)){Ee(a,be)&&(a=Re(t,a,e,s,i)),Ee(c,be)&&(c=Re(t,c,e,s,i));const u=X(a,"type"),l=X(c,"type");if(!u||u===l){const h=X(r,"maxItems",-1);l==="object"?o=s.reduce((p,g)=>{const _=Gi(t,e,c,a,g,i);return _!==void 0&&(h<0||p.length<h)&&p.push(_),p},[]):o=h>0&&s.length>h?s.slice(0,h):s}}else typeof a=="boolean"&&typeof c=="boolean"&&a===c&&(o=s)}return o}function Cr(t,e,r,n,s,i,o,a=[],c){if(be in e||Ur in e||_t in e){const h=Re(t,e,i,o,c);if(a.findIndex(g=>pe(g,h))===-1)return Cr(t,h,r,n,s,i,o,a.concat(h),c)}if(Ze in e&&!X(e,[Ze,be]))return Cr(t,X(e,Ze),r,n,s,i,o,a,c);const l={$id:s||r};if(Be(e)==="object"&&ve in e)for(const h in e.properties){const p=X(e,[ve,h]),g=l[Je]+n+h;l[h]=Cr(t,ae(p)?p:{},r,n,g,i,X(o,[h]),a,c)}return l}function Lf(t,e,r,n,s,i="root",o="_",a){return Cr(t,e,i,o,r,n,s,void 0,a)}function at(t,e,r,n,s,i=[],o){if(be in e||Ur in e||_t in e){const c=Re(t,e,n,s,o);if(i.findIndex(l=>pe(l,c))===-1)return at(t,c,r,n,s,i.concat(c),o)}let a={[Ir]:r.replace(/^\./,"")};if(Ce in e||je in e){const c=Ce in e?e.oneOf:e.anyOf,u=pt(e),l=qt(t,n,s,c,0,u,o),h=c[l];a={...a,...at(t,h,r,n,s,i,o)}}if(zi in e&&e[zi]!==!1&&we(a,rs,!0),Ze in e&&Array.isArray(s)){const{items:c,additionalItems:u}=e;Array.isArray(c)?s.forEach((l,h)=>{c[h]?a[h]=at(t,c[h],`${r}.${h}`,n,l,i,o):u?a[h]=at(t,u,`${r}.${h}`,n,l,i,o):console.warn(`Unable to generate path schema for "${r}.${h}". No schema defined for it`)}):s.forEach((l,h)=>{a[h]=at(t,c,`${r}.${h}`,n,l,i,o)})}else if(ve in e)for(const c in e.properties){const u=X(e,[ve,c]);a[c]=at(t,u,`${r}.${c}`,n,X(s,[c]),i,o)}return a}function Kf(t,e,r="",n,s,i){return at(t,e,r,n,s,void 0,i)}class zf{constructor(e,r,n,s){this.rootSchema=r,this.validator=e,this.experimental_defaultFormStateBehavior=n,this.experimental_customMergeAllOf=s}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,r,n={},s){return!e||!r?!1:this.validator!==e||!pe(this.rootSchema,r)||!pe(this.experimental_defaultFormStateBehavior,n)||this.experimental_customMergeAllOf!==s}getDefaultFormState(e,r,n=!1){return ku(this.validator,e,r,this.rootSchema,n,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf)}getDisplayLabel(e,r,n){return Uf(this.validator,e,r,this.rootSchema,n,this.experimental_customMergeAllOf)}getClosestMatchingOption(e,r,n,s){return qt(this.validator,this.rootSchema,e,r,n,s,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,r,n){return ss(this.validator,e,r,this.rootSchema,n)}getMatchingOption(e,r,n){return fu(this.validator,e,r,this.rootSchema,n)}isFilesArray(e,r){return Du(this.validator,e,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return ys(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return ps(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}mergeValidationData(e,r){return Vf(this.validator,e,r)}retrieveSchema(e,r){return Re(this.validator,e,this.rootSchema,r,this.experimental_customMergeAllOf)}sanitizeDataForNewSchema(e,r,n){return Gi(this.validator,this.rootSchema,e,r,n,this.experimental_customMergeAllOf)}toIdSchema(e,r,n,s="root",i="_"){return Lf(this.validator,e,r,this.rootSchema,n,s,i,this.experimental_customMergeAllOf)}toPathSchema(e,r,n){return Kf(this.validator,e,r,this.rootSchema,n,this.experimental_customMergeAllOf)}}function Bf(t,e,r={},n){return new zf(t,e,r,n)}function Wf(t){var e;if(t.indexOf("data:")===-1)throw new Error("File is invalid: URI must be a dataURI");const n=t.slice(5).split(";base64,");if(n.length!==2)throw new Error("File is invalid: dataURI must be base64");const[s,i]=n,[o,...a]=s.split(";"),c=o||"",u=decodeURI(((e=a.map(l=>l.split("=")).find(([l])=>l==="name"))===null||e===void 0?void 0:e[1])||"unknown");try{const l=atob(i),h=new Array(l.length);for(let g=0;g<l.length;g++)h[g]=l.charCodeAt(g);return{blob:new window.Blob([new Uint8Array(h)],{type:c}),name:u}}catch(l){throw new Error("File is invalid: "+l.message)}}function Ye(t,e){let r=String(t);for(;r.length<e;)r="0"+r;return r}function Mu(t,e){if(t<=0&&e<=0)t=new Date().getFullYear()+t,e=new Date().getFullYear()+e;else if(t<0||e<0)throw new Error(`Both start (${t}) and stop (${e}) must both be <= 0 or > 0, got one of each`);if(t>e)return Mu(e,t).reverse();const r=[];for(let n=t;n<=e;n++)r.push({value:n,label:Ye(n,2)});return r}function Gf(t,e){let r=t;if(Array.isArray(e)){const n=r.split(/(%\d)/);e.forEach((s,i)=>{const o=n.findIndex(a=>a===`%${i+1}`);o>=0&&(n[o]=s)}),r=n.join("")}return r}function Hf(t,e){return Gf(t,e)}function De(t,e=[],r){if(Array.isArray(t))return t.map(i=>De(i,e)).filter(i=>i!==r);const n=t===""||t===null?-1:Number(t),s=e[n];return s?s.value:r}function Yf(t,e,r=[]){const n=De(t,r);return Array.isArray(e)?e.filter(s=>!pe(s,n)):pe(n,e)?void 0:e}function gs(t,e){return Array.isArray(e)?e.some(r=>pe(r,t)):pe(e,t)}function Jf(t,e=[],r=!1){const n=e.map((s,i)=>gs(s.value,t)?String(i):void 0).filter(s=>typeof s<"u");return r?n:n[0]}function Zf(t,e,r=[]){const n=De(t,r);if(!It(n)){const s=r.findIndex(a=>n===a.value),i=r.map(({value:a})=>a);return e.slice(0,s).concat(n,e.slice(s)).sort((a,c)=>+(i.indexOf(a)>i.indexOf(c)))}return e}function Xf(t,e,r,n){return n=typeof n=="function"?n:void 0,t==null?t:Zc(t,e,r,n)}class Qf{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let n=Array.isArray(e)&&e.length>0||typeof e=="string"?X(this.errorSchema,e):this.errorSchema;return!n&&e&&(n={},Xf(this.errorSchema,e,n,Object)),n}resetAllErrors(e){return this.errorSchema=e?Xc(e):{},this}addErrors(e,r){const n=this.getOrCreateErrorBlock(r);let s=X(n,Ae);return Array.isArray(s)||(s=[],n[Ae]=s),Array.isArray(e)?we(n,Ae,[...new Set([...s,...e])]):we(n,Ae,[...new Set([...s,e])]),this}setErrors(e,r){const n=this.getOrCreateErrorBlock(r),s=Array.isArray(e)?[...new Set([...e])]:[e];return we(n,Ae,s),this}clearErrors(e){const r=this.getOrCreateErrorBlock(e);return we(r,Ae,[]),this}}function eh(t,e,r=[1900,new Date().getFullYear()+2],n="YMD"){const{day:s,month:i,year:o,hour:a,minute:c,second:u}=t,l={type:"day",range:[1,31],value:s},h={type:"month",range:[1,12],value:i},p={type:"year",range:r,value:o},g=[];switch(n){case"MDY":g.push(h,l,p);break;case"DMY":g.push(l,h,p);break;default:g.push(p,h,l)}return e&&g.push({type:"hour",range:[0,23],value:a},{type:"minute",range:[0,59],value:c},{type:"second",range:[0,59],value:u}),g}function th(t){const e={};return t.multipleOf&&(e.step=t.multipleOf),(t.minimum||t.minimum===0)&&(e.min=t.minimum),(t.maximum||t.maximum===0)&&(e.max=t.maximum),e}function rh(t,e,r={},n=!0){const s={type:e||"text",...th(t)};return r.inputType?s.type=r.inputType:e||(t.type==="number"?(s.type="number",n&&s.step===void 0&&(s.step="any")):t.type==="integer"&&(s.type="number",s.step===void 0&&(s.step=1))),r.autocomplete&&(s.autoComplete=r.autocomplete),r.accept&&(s.accept=r.accept),s}const ro={props:{disabled:!1},submitText:"Submit",norender:!1};function nh(t={}){const e=se(t);if(e&&e[Tr]){const r=e[Tr];return{...ro,...r}}return ro}function ue(t,e,r={}){const{templates:n}=e;return t==="ButtonTemplates"?n[t]:r[t]||n[t]}var Ei={exports:{}},ce={};var no;function ih(){if(no)return ce;no=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function v(m){if(typeof m=="object"&&m!==null){var d=m.$$typeof;switch(d){case t:switch(m=m.type,m){case r:case s:case n:case u:case l:return m;default:switch(m=m&&m.$$typeof,m){case a:case o:case c:case p:case h:case i:return m;default:return d}}case e:return d}}}return ce.ContextConsumer=o,ce.ContextProvider=i,ce.Element=t,ce.ForwardRef=c,ce.Fragment=r,ce.Lazy=p,ce.Memo=h,ce.Portal=e,ce.Profiler=s,ce.StrictMode=n,ce.Suspense=u,ce.SuspenseList=l,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(m){return v(m)===o},ce.isContextProvider=function(m){return v(m)===i},ce.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},ce.isForwardRef=function(m){return v(m)===c},ce.isFragment=function(m){return v(m)===r},ce.isLazy=function(m){return v(m)===p},ce.isMemo=function(m){return v(m)===h},ce.isPortal=function(m){return v(m)===e},ce.isProfiler=function(m){return v(m)===s},ce.isStrictMode=function(m){return v(m)===n},ce.isSuspense=function(m){return v(m)===u},ce.isSuspenseList=function(m){return v(m)===l},ce.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===s||m===n||m===u||m===l||m===g||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===h||m.$$typeof===i||m.$$typeof===o||m.$$typeof===c||m.$$typeof===_||m.getModuleId!==void 0)},ce.typeOf=v,ce}var io;function sh(){return io||(io=1,Ei.exports=ih()),Ei.exports}var ah=sh();const so=Ft(ah),Oi={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function oh(t){let e=X(t,"MergedWidget");if(!e){const r=t.defaultProps&&t.defaultProps.options||{};e=({options:n,...s})=>j.jsx(t,{options:{...r,...n},...s}),we(t,"MergedWidget",e)}return e}function Ke(t,e,r={}){const n=Be(t);if(typeof e=="function"||e&&so.isForwardRef(te.createElement(e))||so.isMemo(e))return oh(e);if(typeof e!="string")throw new Error(`Unsupported widget definition: ${typeof e}`);if(e in r){const s=r[e];return Ke(t,s,r)}if(typeof n=="string"){if(!(n in Oi))throw new Error(`No widget for type '${n}'`);if(e in Oi[n]){const s=r[Oi[n][e]];return Ke(t,s,r)}}throw new Error(`No widget '${e}' for type '${n}'`)}function ch(t){let e=0;for(let r=0;r<t.length;r+=1){const n=t.charCodeAt(r);e=(e<<5)-e+n,e=e&e}return e.toString(16)}function uh(t){const e=new Set;return JSON.stringify(t,(r,n)=>(e.add(r),n)),ch(JSON.stringify(t,Array.from(e).sort()))}function lh(t,e,r={}){try{return Ke(t,e,r),!0}catch(n){const s=n;if(s.message&&(s.message.startsWith("No widget")||s.message.startsWith("Unsupported widget")))return!1;throw n}}function Mt(t,e){return`${Vr(t)?t:t[Je]}__${e}`}function xt(t){return Mt(t,"description")}function xu(t){return Mt(t,"error")}function Hi(t){return Mt(t,"examples")}function Uu(t){return Mt(t,"help")}function Vu(t){return Mt(t,"title")}function ut(t,e=!1){const r=e?` ${Hi(t)}`:"";return`${xu(t)} ${xt(t)} ${Uu(t)}${r}`}function Lu(t,e){return`${t}-${e}`}function dh(t,e,r){return e?r:t}function fh(t){return t?new Date(t).toJSON():void 0}function hh(t,e){if(!Array.isArray(e))return t;const r=l=>l.reduce((h,p)=>(h[p]=!0,h),{}),n=l=>l.length>1?`properties '${l.join("', '")}'`:`property '${l[0]}'`,s=r(t),i=e.filter(l=>l==="*"||s[l]),o=r(i),a=t.filter(l=>!o[l]),c=i.indexOf("*");if(c===-1){if(a.length)throw new Error(`uiSchema order list does not contain ${n(a)}`);return i}if(c!==i.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const u=[...i];return u.splice(c,1,...a),u}function Pi(t,e=!0){if(!t)return{year:-1,month:-1,day:-1,hour:e?-1:0,minute:e?-1:0,second:e?-1:0};const r=new Date(t);if(Number.isNaN(r.getTime()))throw new Error("Unable to parse date "+t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:e?r.getUTCHours():0,minute:e?r.getUTCMinutes():0,second:e?r.getUTCSeconds():0}}function Rr(t){if(t.const||t.enum&&t.enum.length===1&&t.enum[0]===!0)return!0;if(t.anyOf&&t.anyOf.length===1)return Rr(t.anyOf[0]);if(t.oneOf&&t.oneOf.length===1)return Rr(t.oneOf[0]);if(t.allOf){const e=r=>Rr(r);return t.allOf.some(e)}return!1}function mh(t,e,r){const{props:n,state:s}=t;return!pe(n,e)||!pe(s,r)}function ao(t,e=!0){const{year:r,month:n,day:s,hour:i=0,minute:o=0,second:a=0}=t,c=Date.UTC(r,n-1,s,i,o,a),u=new Date(c).toJSON();return e?u:u.slice(0,10)}function kt(t,e=[]){if(!t)return[];let r=[];return Ae in t&&(r=r.concat(t[Ae].map(n=>{const s=`.${e.join(".")}`;return{property:s,message:n,stack:`${s} ${n}`}}))),Object.keys(t).reduce((n,s)=>{if(s!==Ae){const i=t[s];mt(i)&&(n=n.concat(kt(i,[...e,s])))}return n},r)}function Ku(t){return Xi(t)?Qi(t,Ki):Xl(t)?[t]:Zl(kl(Fl(t)))}function ph(t){const e=new Qf;return t.length&&t.forEach(r=>{const{property:n,message:s}=r,i=n==="."?[]:Ku(n);i.length>0&&i[0]===""&&i.splice(0,1),s&&e.addErrors(s,i)}),e.ErrorSchema}function vs(t){return Object.keys(t).reduce((e,r)=>{if(r==="addError")return e;{const n=t[r];return mt(n)?{...e,[r]:vs(n)}:{...e,[r]:n}}},{})}function yh(t){if(!t)return"";const e=new Date(t),r=Ye(e.getFullYear(),4),n=Ye(e.getMonth()+1,2),s=Ye(e.getDate(),2),i=Ye(e.getHours(),2),o=Ye(e.getMinutes(),2),a=Ye(e.getSeconds(),2),c=Ye(e.getMilliseconds(),3);return`${r}-${n}-${s}T${i}:${o}:${a}.${c}`}function Nr(t,e){if(!e)return t;const{errors:r,errorSchema:n}=t;let s=kt(e),i=e;return ht(n)||(i=Le(n,e,!0),s=[...r].concat(s)),{errorSchema:i,errors:s}}function gh(t){for(const e in t){const r=t,n=r[e];e===be&&typeof n=="string"&&n.startsWith("#")?r[e]=su+n:r[e]=_s(n)}return t}function vh(t){for(let e=0;e<t.length;e++)t[e]=_s(t[e]);return t}function _s(t){return Array.isArray(t)?vh([...t]):Ie(t)?gh({...t}):t}function _h(t,e){if(t==null)return{};var r=Qi(Qc(t),function(n){return[n]});return e=Yc(e),zl(t,r,function(n,s){return e(n,s[0])})}var bh=200;function $h(t,e,r,n){var s=-1,i=Ml,o=!0,a=t.length,c=[],u=e.length;if(!a)return c;e.length>=bh&&(i=xl,o=!1,e=new Dl(e));e:for(;++s<a;){var l=t[s],h=l;if(l=l!==0?l:0,o&&h===h){for(var p=u;p--;)if(e[p]===h)continue e;c.push(l)}else i(e,h,n)||c.push(l)}return c}var wh=Pl(function(t,e){return Ps(t)?$h(t,Jc(e,1,Ps,!0)):[]});function Sh(t,e){const r=mt(t),n=mt(e);if(t===e||!r&&!n)return[];if(r&&!n)return $t(t);if(!r&&n)return $t(e);{const s=$t(_h(t,(o,a)=>!pe(o,X(e,a)))),i=wh($t(e),$t(t));return[...s,...i]}}var he;(function(t){t.ArrayItemTitle="Item",t.MissingItems="Missing items definition",t.YesLabel="Yes",t.NoLabel="No",t.CloseLabel="Close",t.ErrorsLabel="Errors",t.NewStringDefault="New Value",t.AddButton="Add",t.AddItemButton="Add Item",t.CopyButton="Copy",t.MoveDownButton="Move down",t.MoveUpButton="Move up",t.RemoveButton="Remove",t.NowLabel="Now",t.ClearLabel="Clear",t.AriaDateLabel="Select a date",t.PreviewLabel="Preview",t.DecrementAriaLabel="Decrease value by 1",t.IncrementAriaLabel="Increase value by 1",t.UnknownFieldType="Unknown field type %1",t.OptionPrefix="Option %1",t.TitleOptionPrefix="%1 option %2",t.KeyLabel="%1 Key",t.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',t.UnsupportedField="Unsupported field schema.",t.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",t.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",t.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",t.FilesInfo="**%1** (%2, %3 bytes)"})(he||(he={}));function Yi(){return Bl("rjsf-array-item-")}function oo(t){return Array.isArray(t)?t.map(e=>({key:Yi(),item:e})):[]}function St(t){return Array.isArray(t)?t.map(e=>e.item):[]}class Eh extends te.Component{constructor(e){super(e);const{formData:r=[]}=e,n=oo(r);this.state={keyedFormData:n,updatedKeyedFormData:!1}}static getDerivedStateFromProps(e,r){if(r.updatedKeyedFormData)return{updatedKeyedFormData:!1};const n=Array.isArray(e.formData)?e.formData:[],s=r.keyedFormData||[];return{keyedFormData:n.length===s.length?s.map((o,a)=>({key:o.key,item:n[a]})):oo(n)}}get itemTitle(){const{schema:e,registry:r}=this.props,{translateString:n}=r;return X(e,[Ze,"title"],X(e,[Ze,"description"],n(he.ArrayItemTitle)))}isItemRequired(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}canAddItem(e){const{schema:r,uiSchema:n,registry:s}=this.props;let{addable:i}=se(n,s.globalUiOptions);return i!==!1&&(r.maxItems!==void 0?i=e.length<r.maxItems:i=!0),i}_getNewFormDataRow=()=>{const{schema:e,registry:r}=this.props,{schemaUtils:n}=r;let s=e.items;return Wi(e)&&Ql(e)&&(s=e.additionalItems),n.getDefaultFormState(s)};_handleAddClick(e,r){e&&e.preventDefault();const{onChange:n,errorSchema:s}=this.props,{keyedFormData:i}=this.state;let o;if(s){o={};for(const u in s){const l=parseInt(u);r===void 0||l<r?we(o,[l],s[u]):l>=r&&we(o,[l+1],s[u])}}const a={key:Yi(),item:this._getNewFormDataRow()},c=[...i];r!==void 0?c.splice(r,0,a):c.push(a),this.setState({keyedFormData:c,updatedKeyedFormData:!0},()=>n(St(c),o))}onAddClick=e=>{this._handleAddClick(e)};onAddIndexClick=e=>r=>{this._handleAddClick(r,e)};onCopyIndexClick=e=>r=>{r&&r.preventDefault();const{onChange:n,errorSchema:s}=this.props,{keyedFormData:i}=this.state;let o;if(s){o={};for(const u in s){const l=parseInt(u);l<=e?we(o,[l],s[u]):l>e&&we(o,[l+1],s[u])}}const a={key:Yi(),item:Xc(i[e].item)},c=[...i];e!==void 0?c.splice(e+1,0,a):c.push(a),this.setState({keyedFormData:c,updatedKeyedFormData:!0},()=>n(St(c),o))};onDropIndexClick=e=>r=>{r&&r.preventDefault();const{onChange:n,errorSchema:s}=this.props,{keyedFormData:i}=this.state;let o;if(s){o={};for(const c in s){const u=parseInt(c);u<e?we(o,[u],s[c]):u>e&&we(o,[u-1],s[c])}}const a=i.filter((c,u)=>u!==e);this.setState({keyedFormData:a,updatedKeyedFormData:!0},()=>n(St(a),o))};onReorderClick=(e,r)=>n=>{n&&(n.preventDefault(),n.currentTarget.blur());const{onChange:s,errorSchema:i}=this.props;let o;if(i){o={};for(const l in i){const h=parseInt(l);h==e?we(o,[r],i[e]):h==r?we(o,[e],i[r]):we(o,[l],i[h])}}const{keyedFormData:a}=this.state;function c(){const l=a.slice();return l.splice(e,1),l.splice(r,0,a[e]),l}const u=c();this.setState({keyedFormData:u},()=>s(St(u),o))};onChangeForIndex=e=>(r,n,s)=>{const{formData:i,onChange:o,errorSchema:a}=this.props,u=(Array.isArray(i)?i:[]).map((l,h)=>e===h?typeof r>"u"?null:r:l);o(u,a&&a&&{...a,[e]:n},s)};onSelectChange=e=>{const{onChange:r,idSchema:n}=this.props;r(e,void 0,n&&n.$id)};render(){const{schema:e,uiSchema:r,idSchema:n,registry:s}=this.props,{schemaUtils:i,translateString:o}=s;if(!(Ze in e)){const a=se(r),c=ue("UnsupportedFieldTemplate",s,a);return j.jsx(c,{schema:e,idSchema:n,reason:o(he.MissingItems),registry:s})}return i.isMultiSelect(e)?this.renderMultiSelect():Fu(r)?this.renderCustomWidget():Wi(e)?this.renderFixedArray():i.isFilesArray(e,r)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:e,uiSchema:r={},errorSchema:n,idSchema:s,name:i,title:o,disabled:a=!1,readonly:c=!1,autofocus:u=!1,required:l=!1,registry:h,onBlur:p,onFocus:g,idPrefix:_,idSeparator:v="_",rawErrors:m}=this.props,{keyedFormData:d}=this.state,f=e.title||o||i,{schemaUtils:y,formContext:b}=h,$=se(r),w=Ie(e.items)?e.items:{},S=y.retrieveSchema(w),I=St(this.state.keyedFormData),A=this.canAddItem(I),q={canAdd:A,items:d.map((K,C)=>{const{key:M,item:U}=K,H=U,ee=y.retrieveSchema(w,H),W=n?n[C]:void 0,Q=s.$id+v+C,V=y.toIdSchema(ee,Q,H,_,v);return this.renderArrayFieldItem({key:M,index:C,name:i&&`${i}-${C}`,title:f?`${f}-${C+1}`:void 0,canAdd:A,canMoveUp:C>0,canMoveDown:C<I.length-1,itemSchema:ee,itemIdSchema:V,itemErrorSchema:W,itemData:H,itemUiSchema:r.items,autofocus:u&&C===0,onBlur:p,onFocus:g,rawErrors:m,totalItems:d.length})}),className:`field field-array field-array-of-${S.type}`,disabled:a,idSchema:s,uiSchema:r,onAddClick:this.onAddClick,readonly:c,required:l,schema:e,title:f,formContext:b,formData:I,rawErrors:m,registry:h},F=ue("ArrayFieldTemplate",h,$);return j.jsx(F,{...q})}renderCustomWidget(){const{schema:e,idSchema:r,uiSchema:n,disabled:s=!1,readonly:i=!1,autofocus:o=!1,required:a=!1,hideError:c,placeholder:u,onBlur:l,onFocus:h,formData:p=[],registry:g,rawErrors:_,name:v}=this.props,{widgets:m,formContext:d,globalUiOptions:f,schemaUtils:y}=g,{widget:b,title:$,...w}=se(n,f),S=Ke(e,b,m),I=$??e.title??v,A=y.getDisplayLabel(e,n,f);return j.jsx(S,{id:r.$id,name:v,multiple:!0,onChange:this.onSelectChange,onBlur:l,onFocus:h,options:w,schema:e,uiSchema:n,registry:g,value:p,disabled:s,readonly:i,hideError:c,required:a,label:I,hideLabel:!A,placeholder:u,formContext:d,autofocus:o,rawErrors:_})}renderMultiSelect(){const{schema:e,idSchema:r,uiSchema:n,formData:s=[],disabled:i=!1,readonly:o=!1,autofocus:a=!1,required:c=!1,placeholder:u,onBlur:l,onFocus:h,registry:p,rawErrors:g,name:_}=this.props,{widgets:v,schemaUtils:m,formContext:d,globalUiOptions:f}=p,y=m.retrieveSchema(e.items,s),b=Tt(y,n),{widget:$="select",title:w,...S}=se(n,f),I=Ke(e,$,v),A=w??e.title??_,q=m.getDisplayLabel(e,n,f);return j.jsx(I,{id:r.$id,name:_,multiple:!0,onChange:this.onSelectChange,onBlur:l,onFocus:h,options:{...S,enumOptions:b},schema:e,uiSchema:n,registry:p,value:s,disabled:i,readonly:o,required:c,label:A,hideLabel:!q,placeholder:u,formContext:d,autofocus:a,rawErrors:g})}renderFiles(){const{schema:e,uiSchema:r,idSchema:n,name:s,disabled:i=!1,readonly:o=!1,autofocus:a=!1,required:c=!1,onBlur:u,onFocus:l,registry:h,formData:p=[],rawErrors:g}=this.props,{widgets:_,formContext:v,globalUiOptions:m,schemaUtils:d}=h,{widget:f="files",title:y,...b}=se(r,m),$=Ke(e,f,_),w=y??e.title??s,S=d.getDisplayLabel(e,r,m);return j.jsx($,{options:b,id:n.$id,name:s,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:l,schema:e,uiSchema:r,value:p,disabled:i,readonly:o,required:c,registry:h,formContext:v,autofocus:a,rawErrors:g,label:w,hideLabel:!S})}renderFixedArray(){const{schema:e,uiSchema:r={},formData:n=[],errorSchema:s,idPrefix:i,idSeparator:o="_",idSchema:a,name:c,title:u,disabled:l=!1,readonly:h=!1,autofocus:p=!1,required:g=!1,registry:_,onBlur:v,onFocus:m,rawErrors:d}=this.props,{keyedFormData:f}=this.state;let{formData:y=[]}=this.props;const b=e.title||u||c,$=se(r),{schemaUtils:w,formContext:S}=_,A=(Ie(e.items)?e.items:[]).map((M,U)=>w.retrieveSchema(M,n[U])),q=Ie(e.additionalItems)?w.retrieveSchema(e.additionalItems,n):null;(!y||y.length<A.length)&&(y=y||[],y=y.concat(new Array(A.length-y.length)));const F=this.canAddItem(y)&&!!q,K={canAdd:F,className:"field field-array field-array-fixed-items",disabled:l,idSchema:a,formData:n,items:f.map((M,U)=>{const{key:H,item:ee}=M,W=ee,Q=U>=A.length,V=(Q&&Ie(e.additionalItems)?w.retrieveSchema(e.additionalItems,W):A[U])||{},N=a.$id+o+U,x=w.toIdSchema(V,N,W,i,o),T=Q?r.additionalItems||{}:Array.isArray(r.items)?r.items[U]:r.items||{},E=s?s[U]:void 0;return this.renderArrayFieldItem({key:H,index:U,name:c&&`${c}-${U}`,title:b?`${b}-${U+1}`:void 0,canAdd:F,canRemove:Q,canMoveUp:U>=A.length+1,canMoveDown:Q&&U<y.length-1,itemSchema:V,itemData:W,itemUiSchema:T,itemIdSchema:x,itemErrorSchema:E,autofocus:p&&U===0,onBlur:v,onFocus:m,rawErrors:d,totalItems:f.length})}),onAddClick:this.onAddClick,readonly:h,required:g,registry:_,schema:e,uiSchema:r,title:b,formContext:S,errorSchema:s,rawErrors:d},C=ue("ArrayFieldTemplate",_,$);return j.jsx(C,{...K})}renderArrayFieldItem(e){const{key:r,index:n,name:s,canAdd:i,canRemove:o=!0,canMoveUp:a,canMoveDown:c,itemSchema:u,itemData:l,itemUiSchema:h,itemIdSchema:p,itemErrorSchema:g,autofocus:_,onBlur:v,onFocus:m,rawErrors:d,totalItems:f,title:y}=e,{disabled:b,hideError:$,idPrefix:w,idSeparator:S,readonly:I,uiSchema:A,registry:q,formContext:F}=this.props,{fields:{ArraySchemaField:K,SchemaField:C},globalUiOptions:M}=q,U=K||C,{orderable:H=!0,removable:ee=!0,copyable:W=!1}=se(A,M),Q={moveUp:H&&a,moveDown:H&&c,copy:W&&i,remove:ee&&o,toolbar:!1};return Q.toolbar=Object.keys(Q).some(V=>Q[V]),{children:j.jsx(U,{name:s,title:y,index:n,schema:u,uiSchema:h,formData:l,formContext:F,errorSchema:g,idPrefix:w,idSeparator:S,idSchema:p,required:this.isItemRequired(u),onChange:this.onChangeForIndex(n),onBlur:v,onFocus:m,registry:q,disabled:b,readonly:I,hideError:$,autofocus:_,rawErrors:d}),className:"array-item",disabled:b,canAdd:i,hasCopy:Q.copy,hasToolbar:Q.toolbar,hasMoveUp:Q.moveUp,hasMoveDown:Q.moveDown,hasRemove:Q.remove,index:n,totalItems:f,key:r,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:I,registry:q,schema:u,uiSchema:h}}}function Oh(t){const{schema:e,name:r,uiSchema:n,idSchema:s,formData:i,registry:o,required:a,disabled:c,readonly:u,hideError:l,autofocus:h,title:p,onChange:g,onFocus:_,onBlur:v,rawErrors:m}=t,{title:d}=e,{widgets:f,formContext:y,translateString:b,globalUiOptions:$}=o,{widget:w="checkbox",title:S,label:I=!0,...A}=se(n,$),q=Ke(e,w,f),F=b(he.YesLabel),K=b(he.NoLabel);let C;const M=S??d??p??r;if(Array.isArray(e.oneOf))C=Tt({oneOf:e.oneOf.map(U=>{if(Ie(U))return{...U,title:U.title||(U.const===!0?F:K)}}).filter(U=>U)},n);else{const U=e,H=e.enum??[!0,!1];!U.enumNames&&H.length===2&&H.every(ee=>typeof ee=="boolean")?C=[{value:H[0],label:H[0]?F:K},{value:H[1],label:H[1]?F:K}]:C=Tt({enum:H,enumNames:U.enumNames},n)}return j.jsx(q,{options:{...A,enumOptions:C},schema:e,uiSchema:n,id:s.$id,name:r,onChange:g,onFocus:_,onBlur:v,label:M,hideLabel:!I,value:i,required:a,disabled:c,readonly:u,hideError:l,registry:o,formContext:y,autofocus:h,rawErrors:m})}class co extends te.Component{constructor(e){super(e);const{formData:r,options:n,registry:{schemaUtils:s}}=this.props,i=n.map(o=>s.retrieveSchema(o,r));this.state={retrievedOptions:i,selectedOption:this.getMatchingOption(0,r,i)}}componentDidUpdate(e,r){const{formData:n,options:s,idSchema:i}=this.props,{selectedOption:o}=this.state;let a=this.state;if(!pe(e.options,s)){const{registry:{schemaUtils:c}}=this.props,u=s.map(l=>c.retrieveSchema(l,n));a={selectedOption:o,retrievedOptions:u}}if(!pe(n,e.formData)&&i.$id===e.idSchema.$id){const{retrievedOptions:c}=a,u=this.getMatchingOption(o,n,c);r&&u!==o&&(a={selectedOption:u,retrievedOptions:c})}a!==this.state&&this.setState(a)}getMatchingOption(e,r,n){const{schema:s,registry:{schemaUtils:i}}=this.props,o=pt(s);return i.getClosestMatchingOption(r,n,e,o)}onOptionChange=e=>{const{selectedOption:r,retrievedOptions:n}=this.state,{formData:s,onChange:i,registry:o}=this.props,{schemaUtils:a}=o,c=e!==void 0?parseInt(e,10):-1;if(c===r)return;const u=c>=0?n[c]:void 0,l=r>=0?n[r]:void 0;let h=a.sanitizeDataForNewSchema(u,l,s);u&&(h=a.getDefaultFormState(u,h,"excludeObjectChildren")),this.setState({selectedOption:c},()=>{i(h,void 0,this.getFieldId())})};getFieldId(){const{idSchema:e,schema:r}=this.props;return`${e.$id}${r.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:r=!1,errorSchema:n={},formContext:s,onBlur:i,onFocus:o,readonly:a,registry:c,schema:u,uiSchema:l}=this.props,{widgets:h,fields:p,translateString:g,globalUiOptions:_,schemaUtils:v}=c,{SchemaField:m}=p,{selectedOption:d,retrievedOptions:f}=this.state,{widget:y="select",placeholder:b,autofocus:$,autocomplete:w,title:S=u.title,...I}=se(l,_),A=Ke({type:"number"},y,h),q=X(n,Ae,[]),F=Fr(n,[Ae]),K=v.getDisplayLabel(u,l,_),C=d>=0&&f[d]||null;let M;if(C){const{required:V}=u;M=V?We({required:V},C):C}let U=[];Ce in u&&l&&Ce in l?Array.isArray(l[Ce])?U=l[Ce]:console.warn(`uiSchema.oneOf is not an array for "${S||e}"`):je in u&&l&&je in l&&(Array.isArray(l[je])?U=l[je]:console.warn(`uiSchema.anyOf is not an array for "${S||e}"`));let H=l;d>=0&&U.length>d&&(H=U[d]);const ee=S?he.TitleOptionPrefix:he.OptionPrefix,W=S?[S]:[],Q=f.map((V,N)=>{const{title:x=V.title}=se(U[N]);return{label:x||g(ee,W.concat(String(N+1))),value:N}});return j.jsxs("div",{className:"panel panel-default panel-body",children:[j.jsx("div",{className:"form-group",children:j.jsx(A,{id:this.getFieldId(),name:`${e}${u.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:i,onFocus:o,disabled:r||ht(Q),multiple:!1,rawErrors:q,errorSchema:F,value:d>=0?d:void 0,options:{enumOptions:Q,...I},registry:c,formContext:s,placeholder:b,autocomplete:w,autofocus:$,label:S??e,hideLabel:!K,readonly:a})}),M&&M.type!=="null"&&j.jsx(m,{...this.props,schema:M,uiSchema:H})]})}}const Ph=/\.([0-9]*0)*$/,Ah=/[0.]0*$/;function Ih(t){const{registry:e,onChange:r,formData:n,value:s}=t,[i,o]=te.useState(s),{StringField:a}=e.fields;let c=n;const u=te.useCallback((l,h,p)=>{o(l),`${l}`.charAt(0)==="."&&(l=`0${l}`);const g=typeof l=="string"&&l.match(Ph)?Is(l.replace(Ah,"")):Is(l);r(g,h,p)},[r]);if(typeof i=="string"&&typeof c=="number"){const l=new RegExp(`^(${String(c).replace(".","\\.")})?\\.?0*$`);i.match(l)&&(c=i)}return j.jsx(a,{...t,formData:c,onChange:u})}function ot(){return ot=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ot.apply(this,arguments)}const Ch=["children","options"],uo=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((t,e)=>(t[e.toLowerCase()]=e,t),{class:"className",for:"htmlFor"}),lo={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Rh=["style","script","pre"],Nh=["src","href","data","formAction","srcDoc","action"],qh=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,jh=/\n{2,}$/,fo=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Th=/^ *> ?/gm,kh=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Fh=/^ {2,}\n/,Dh=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,ho=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,mo=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Mh=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,xh=/^(?:\n *)*\n/,Uh=/\r\n?/g,Vh=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Lh=/^\[\^([^\]]+)]/,Kh=/\f/g,zh=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Bh=/^\s*?\[(x|\s)\]/,po=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,yo=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,go=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ai=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Wh=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,vo=/^<!--[\s\S]*?(?:-->)/,Gh=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ii=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Hh=/^\{.*\}$/,Yh=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Jh=/^<([^ >]+[:@\/][^ >]+)>/,Zh=/-([a-z])?/gi,_o=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Xh=/^[^\n]+(?: \n|\n{2,})/,Qh=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,em=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,tm=/^\[([^\]]*)\] ?\[([^\]]*)\]/,rm=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,nm=/\t/g,im=/(^ *\||\| *$)/g,sm=/^ *:-+: *$/,am=/^ *:-+ *$/,om=/^ *-+: *$/,zr=t=>`(?=[\\s\\S]+?\\1${t?"\\1":""})`,Br="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",cm=RegExp(`^([*_])\\1${zr(1)}${Br}\\1\\1(?!\\1)`),um=RegExp(`^([*_])${zr(0)}${Br}\\1(?!\\1)`),lm=RegExp(`^(==)${zr(0)}${Br}\\1`),dm=RegExp(`^(~~)${zr(0)}${Br}\\1`),fm=/^(:[a-zA-Z0-9-_]+:)/,hm=/^\\([^0-9A-Za-z\s])/,mm=/\\([^0-9A-Za-z\s])/g,pm=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,ym=/^\n+/,gm=/^([ \t]*)/,vm=/(?:^|\n)( *)$/,bs="(?:\\d+\\.)",$s="(?:[*+-])";function zu(t){return"( *)("+(t===1?bs:$s)+") +"}const Bu=zu(1),Wu=zu(2);function Gu(t){return RegExp("^"+(t===1?Bu:Wu))}const _m=Gu(1),bm=Gu(2);function Hu(t){return RegExp("^"+(t===1?Bu:Wu)+"[^\\n]*(?:\\n(?!\\1"+(t===1?bs:$s)+" )[^\\n]*)*(\\n|$)","gm")}const $m=Hu(1),wm=Hu(2);function Yu(t){const e=t===1?bs:$s;return RegExp("^( *)("+e+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+e+" (?!"+e+" ))\\n*|\\s*\\n*$)")}const Ju=Yu(1),Zu=Yu(2);function bo(t,e){const r=e===1,n=r?Ju:Zu,s=r?$m:wm,i=r?_m:bm;return{t:o=>i.test(o),o:gt(function(o,a){const c=vm.exec(a.prevCapture);return c&&(a.list||!a.inline&&!a.simple)?n.exec(o=c[1]+o):null}),i:1,u(o,a,c){const u=r?+o[2]:void 0,l=o[0].replace(jh,`
5
5
  `).match(s);let h=!1;return{items:l.map(function(p,g){const _=i.exec(p)[0].length,v=RegExp("^ {1,"+_+"}","gm"),m=p.replace(v,"").replace(i,""),d=g===l.length-1,f=m.indexOf(`
6
6
 
7
7
  `)!==-1||d&&h;h=f;const y=c.inline,b=c.list;let $;c.list=!0,f?(c.inline=!1,$=Ct(m)+`
8
8
 
9
9
  `):(c.inline=!0,$=Ct(m));const w=a($,c);return c.inline=y,c.list=b,w}),ordered:r,start:u}},l:(o,a,c)=>t(o.ordered?"ol":"ul",{key:c.key,start:o.type==="20"?o.start:void 0},o.items.map(function(u,l){return t("li",{key:l},a(u,c))}))}}const Sm=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Em=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function $o(t){return typeof t=="string"}function Ct(t){let e=t.length;for(;e>0&&t[e-1]<=" ";)e--;return t.slice(0,e)}function qr(t,e){return t.startsWith(e)}function Om(t,e,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(qr(t,r[n]))return!0;return!1}return r(t,e)}function Et(t){return t.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Pm(t){return om.test(t)?"right":sm.test(t)?"center":am.test(t)?"left":null}function wo(t,e,r,n){const s=r.inTable;r.inTable=!0;let i=[[]],o="";function a(){if(!o)return;const c=i[i.length-1];c.push.apply(c,e(o,r)),o=""}return t.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((c,u,l)=>{c.trim()==="|"&&(a(),n)?u!==0&&u!==l.length-1&&i.push([]):o+=c}),a(),r.inTable=s,i}function Am(t,e,r){r.inline=!0;const n=t[2]?t[2].replace(im,"").split("|").map(Pm):[],s=t[3]?(function(o,a,c){return o.trim().split(`
10
- `).map(function(u){return wo(u,a,c,!0)})})(t[3],e,r):[],i=wo(t[1],e,r,!!s.length);return r.inline=!1,s.length?{align:n,cells:s,header:i,type:"25"}:{children:i,type:"21"}}function So(t,e){return t.align[e]==null?{}:{textAlign:t.align[e]}}function gt(t){return t.inline=1,t}function rt(t){return gt(function(e,r){return r.inline?t.exec(e):null})}function Ge(t){return gt(function(e,r){return r.inline||r.simple?t.exec(e):null})}function Me(t){return function(e,r){return r.inline||r.simple?null:t.exec(e)}}function Lt(t){return gt(function(e){return t.exec(e)})}const Im=/(javascript|vbscript|data(?!:image)):/i;function Cm(t){try{const e=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(Im.test(e))return null}catch{return null}return t}function ke(t){return t&&t.replace(mm,"$1")}function jr(t,e,r){const n=r.inline||!1,s=r.simple||!1;r.inline=!0,r.simple=!0;const i=t(e,r);return r.inline=n,r.simple=s,i}function Rm(t,e,r){const n=r.inline||!1,s=r.simple||!1;r.inline=!1,r.simple=!0;const i=t(e,r);return r.inline=n,r.simple=s,i}function Nm(t,e,r){const n=r.inline||!1;r.inline=!1;const s=t(e,r);return r.inline=n,s}const Ci=(t,e,r)=>({children:jr(e,t[2],r)});function Ri(){return{}}function Ni(){return null}function qm(...t){return t.filter(Boolean).join(" ")}function qi(t,e,r){let n=t;const s=e.split(".");for(;s.length&&(n=n[s[0]],n!==void 0);)s.shift();return n||r}function jm(t="",e={}){e.overrides=e.overrides||{},e.namedCodesToUnicode=e.namedCodesToUnicode?ot({},lo,e.namedCodesToUnicode):lo;const r=e.slugify||Et,n=e.sanitizer||Cm,s=e.createElement||te.createElement,i=[fo,ho,mo,e.enforceAtxHeadings?yo:po,go,_o,Yu,Zu],o=[...i,Xh,Ai,vo,Ii];function a(d,f){for(let y=0;y<d.length;y++)if(d[y].test(f))return!0;return!1}function c(d,f,...y){const b=qi(e.overrides,d+".props",{});return s((function($,w){const S=qi(w,$);return S?typeof S=="function"||typeof S=="object"&&"render"in S?S:qi(w,$+".component",$):$})(d,e.overrides),ot({},f,b,{className:qm(f?.className,b.className)||void 0}),...y)}function u(d){d=d.replace(zh,"");let f=!1;e.forceInline?f=!0:e.forceBlock||(f=rm.test(d)===!1);const y=v(_(f?d:Ct(d).replace(ym,"")+`
10
+ `).map(function(u){return wo(u,a,c,!0)})})(t[3],e,r):[],i=wo(t[1],e,r,!!s.length);return r.inline=!1,s.length?{align:n,cells:s,header:i,type:"25"}:{children:i,type:"21"}}function So(t,e){return t.align[e]==null?{}:{textAlign:t.align[e]}}function gt(t){return t.inline=1,t}function rt(t){return gt(function(e,r){return r.inline?t.exec(e):null})}function Ge(t){return gt(function(e,r){return r.inline||r.simple?t.exec(e):null})}function Me(t){return function(e,r){return r.inline||r.simple?null:t.exec(e)}}function Lt(t){return gt(function(e){return t.exec(e)})}const Im=/(javascript|vbscript|data(?!:image)):/i;function Cm(t){try{const e=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(Im.test(e))return null}catch{return null}return t}function ke(t){return t&&t.replace(mm,"$1")}function jr(t,e,r){const n=r.inline||!1,s=r.simple||!1;r.inline=!0,r.simple=!0;const i=t(e,r);return r.inline=n,r.simple=s,i}function Rm(t,e,r){const n=r.inline||!1,s=r.simple||!1;r.inline=!1,r.simple=!0;const i=t(e,r);return r.inline=n,r.simple=s,i}function Nm(t,e,r){const n=r.inline||!1;r.inline=!1;const s=t(e,r);return r.inline=n,s}const Ci=(t,e,r)=>({children:jr(e,t[2],r)});function Ri(){return{}}function Ni(){return null}function qm(...t){return t.filter(Boolean).join(" ")}function qi(t,e,r){let n=t;const s=e.split(".");for(;s.length&&(n=n[s[0]],n!==void 0);)s.shift();return n||r}function jm(t="",e={}){e.overrides=e.overrides||{},e.namedCodesToUnicode=e.namedCodesToUnicode?ot({},lo,e.namedCodesToUnicode):lo;const r=e.slugify||Et,n=e.sanitizer||Cm,s=e.createElement||te.createElement,i=[fo,ho,mo,e.enforceAtxHeadings?yo:po,go,_o,Ju,Zu],o=[...i,Xh,Ai,vo,Ii];function a(d,f){for(let y=0;y<d.length;y++)if(d[y].test(f))return!0;return!1}function c(d,f,...y){const b=qi(e.overrides,d+".props",{});return s((function($,w){const S=qi(w,$);return S?typeof S=="function"||typeof S=="object"&&"render"in S?S:qi(w,$+".component",$):$})(d,e.overrides),ot({},f,b,{className:qm(f?.className,b.className)||void 0}),...y)}function u(d){d=d.replace(zh,"");let f=!1;e.forceInline?f=!0:e.forceBlock||(f=rm.test(d)===!1);const y=v(_(f?d:Ct(d).replace(ym,"")+`
11
11
 
12
- `,{inline:f}));for(;$o(y[y.length-1])&&!y[y.length-1].trim();)y.pop();if(e.wrapper===null)return y;const b=e.wrapper||(f?"span":"div");let $;if(y.length>1||e.forceWrapper)$=y;else{if(y.length===1)return $=y[0],typeof $=="string"?c("span",{key:"outer"},$):$;$=null}return s(b,{key:"outer"},$)}function l(d,f){if(!f||!f.trim())return null;const y=f.match(qh);return y?y.reduce(function(b,$){const w=$.indexOf("=");if(w!==-1){const S=(function(F){return F.indexOf("-")!==-1&&F.match(Gh)===null&&(F=F.replace(Zh,function(K,C){return C.toUpperCase()})),F})($.slice(0,w)).trim(),I=(function(F){const K=F[0];return(K==='"'||K==="'")&&F.length>=2&&F[F.length-1]===K?F.slice(1,-1):F})($.slice(w+1).trim()),A=uo[S]||S;if(A==="ref")return b;const q=b[A]=(function(F,K,C,M){return K==="style"?(function(U){const H=[];let ee="",W=!1,Q=!1,V="";if(!U)return H;for(let x=0;x<U.length;x++){const T=U[x];if(T!=='"'&&T!=="'"||W||(Q?T===V&&(Q=!1,V=""):(Q=!0,V=T)),T==="("&&ee.endsWith("url")?W=!0:T===")"&&W&&(W=!1),T!==";"||Q||W)ee+=T;else{const E=ee.trim();if(E){const O=E.indexOf(":");if(O>0){const k=E.slice(0,O).trim(),J=E.slice(O+1).trim();H.push([k,J])}}ee=""}}const N=ee.trim();if(N){const x=N.indexOf(":");if(x>0){const T=N.slice(0,x).trim(),E=N.slice(x+1).trim();H.push([T,E])}}return H})(C).reduce(function(U,[H,ee]){return U[H.replace(/(-[a-z])/g,W=>W[1].toUpperCase())]=M(ee,F,H),U},{}):Nh.indexOf(K)!==-1?M(ke(C),F,K):(C.match(Hh)&&(C=ke(C.slice(1,C.length-1))),C==="true"||C!=="false"&&C)})(d,S,I,n);typeof q=="string"&&(Ai.test(q)||Ii.test(q))&&(b[A]=u(q.trim()))}else $!=="style"&&(b[uo[$]||$]=!0);return b},{}):null}const h=[],p={},g={0:{t:[">"],o:Me(fo),i:1,u(d,f,y){const[,b,$]=d[0].replace(Th,"").match(kh);return{alert:b,children:f($,y)}},l(d,f,y){const b={key:y.key};return d.alert&&(b.className="markdown-alert-"+r(d.alert.toLowerCase(),Et),d.children.unshift({attrs:{},children:[{type:"27",text:d.alert}],noInnerParse:!0,type:"11",tag:"header"})),c("blockquote",b,f(d.children,y))}},1:{t:[" "],o:Lt(Fh),i:1,u:Ri,l:(d,f,y)=>c("br",{key:y.key})},2:{t:["--","__","**","- ","* ","_ "],o:Me(Dh),i:1,u:Ri,l:(d,f,y)=>c("hr",{key:y.key})},3:{t:[" "],o:Me(mo),i:0,u:d=>({lang:void 0,text:ke(Ct(d[0].replace(/^ {4}/gm,"")))}),l:(d,f,y)=>c("pre",{key:y.key},c("code",ot({},d.attrs,{className:d.lang?"lang-"+d.lang:""}),d.text))},4:{t:["```","~~~"],o:Me(ho),i:0,u:d=>({attrs:l("code",d[3]||""),lang:d[2]||void 0,text:d[4],type:"3"})},5:{t:["`"],o:Ge(Mh),i:3,u:d=>({text:ke(d[2])}),l:(d,f,y)=>c("code",{key:y.key},d.text)},6:{t:["[^"],o:Me(Vh),i:0,u:d=>(h.push({footnote:d[2],identifier:d[1]}),{}),l:Ni},7:{t:["[^"],o:rt(Lh),i:1,u:d=>({target:"#"+r(d[1],Et),text:d[1]}),l:(d,f,y)=>c("a",{key:y.key,href:n(d.target,"a","href")},c("sup",{key:y.key},d.text))},8:{t:["[ ]","[x]"],o:rt(Bh),i:1,u:d=>({completed:d[1].toLowerCase()==="x"}),l:(d,f,y)=>c("input",{checked:d.completed,key:y.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Me(e.enforceAtxHeadings?yo:po),i:1,u:(d,f,y)=>({children:jr(f,d[2],y),id:r(d[2],Et),level:d[1].length}),l:(d,f,y)=>c("h"+d.level,{id:d.id,key:y.key},f(d.children,y))},10:{t:d=>{const f=d.indexOf(`
13
- `);return f>0&&f<d.length-1&&(d[f+1]==="="||d[f+1]==="-")},o:Me(go),i:1,u:(d,f,y)=>({children:jr(f,d[1],y),level:d[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Lt(Ai),i:1,u(d,f,y){const[,b]=d[3].match(gm),$=RegExp("^"+b,"gm"),w=d[3].replace($,""),S=a(o,w)?Nm:jr,I=d[1].toLowerCase(),A=Rh.indexOf(I)!==-1,q=(A?I:d[1]).trim(),F={attrs:l(q,d[2]),noInnerParse:A,tag:q};if(y.inAnchor=y.inAnchor||I==="a",A)F.text=d[3];else{const K=y.inHTML;y.inHTML=!0,F.children=S(f,w,y),y.inHTML=K}return y.inAnchor=!1,F},l:(d,f,y)=>c(d.tag,ot({key:y.key},d.attrs),d.text||(d.children?f(d.children,y):""))},13:{t:["<"],o:Lt(Ii),i:1,u(d){const f=d[1].trim();return{attrs:l(f,d[2]||""),tag:f}},l:(d,f,y)=>c(d.tag,ot({},d.attrs,{key:y.key}))},12:{t:["<!--"],o:Lt(vo),i:1,u:()=>({}),l:Ni},14:{t:["!["],o:Ge(Em),i:1,u:d=>({alt:ke(d[1]),target:ke(d[2]),title:ke(d[3])}),l:(d,f,y)=>c("img",{key:y.key,alt:d.alt||void 0,title:d.title||void 0,src:n(d.target,"img","src")})},15:{t:["["],o:rt(Sm),i:3,u:(d,f,y)=>({children:Rm(f,d[1],y),target:ke(d[2]),title:ke(d[3])}),l:(d,f,y)=>c("a",{key:y.key,href:n(d.target,"a","href"),title:d.title},f(d.children,y))},16:{t:["<"],o:rt(Yh),i:0,u(d){let f=d[1],y=!1;return f.indexOf("@")!==-1&&f.indexOf("//")===-1&&(y=!0,f=f.replace("mailto:","")),{children:[{text:f,type:"27"}],target:y?"mailto:"+f:f,type:"15"}}},17:{t:(d,f)=>!f.inAnchor&&!e.disableAutoLink&&(qr(d,"http://")||qr(d,"https://")),o:rt(Jh),i:0,u:d=>({children:[{text:d[1],type:"27"}],target:d[1],title:void 0,type:"15"})},20:bo(c,1),33:bo(c,2),19:{t:[`
12
+ `,{inline:f}));for(;$o(y[y.length-1])&&!y[y.length-1].trim();)y.pop();if(e.wrapper===null)return y;const b=e.wrapper||(f?"span":"div");let $;if(y.length>1||e.forceWrapper)$=y;else{if(y.length===1)return $=y[0],typeof $=="string"?c("span",{key:"outer"},$):$;$=null}return s(b,{key:"outer"},$)}function l(d,f){if(!f||!f.trim())return null;const y=f.match(qh);return y?y.reduce(function(b,$){const w=$.indexOf("=");if(w!==-1){const S=(function(F){return F.indexOf("-")!==-1&&F.match(Gh)===null&&(F=F.replace(Zh,function(K,C){return C.toUpperCase()})),F})($.slice(0,w)).trim(),I=(function(F){const K=F[0];return(K==='"'||K==="'")&&F.length>=2&&F[F.length-1]===K?F.slice(1,-1):F})($.slice(w+1).trim()),A=uo[S]||S;if(A==="ref")return b;const q=b[A]=(function(F,K,C,M){return K==="style"?(function(U){const H=[];let ee="",W=!1,Q=!1,V="";if(!U)return H;for(let x=0;x<U.length;x++){const T=U[x];if(T!=='"'&&T!=="'"||W||(Q?T===V&&(Q=!1,V=""):(Q=!0,V=T)),T==="("&&ee.endsWith("url")?W=!0:T===")"&&W&&(W=!1),T!==";"||Q||W)ee+=T;else{const E=ee.trim();if(E){const O=E.indexOf(":");if(O>0){const k=E.slice(0,O).trim(),Y=E.slice(O+1).trim();H.push([k,Y])}}ee=""}}const N=ee.trim();if(N){const x=N.indexOf(":");if(x>0){const T=N.slice(0,x).trim(),E=N.slice(x+1).trim();H.push([T,E])}}return H})(C).reduce(function(U,[H,ee]){return U[H.replace(/(-[a-z])/g,W=>W[1].toUpperCase())]=M(ee,F,H),U},{}):Nh.indexOf(K)!==-1?M(ke(C),F,K):(C.match(Hh)&&(C=ke(C.slice(1,C.length-1))),C==="true"||C!=="false"&&C)})(d,S,I,n);typeof q=="string"&&(Ai.test(q)||Ii.test(q))&&(b[A]=u(q.trim()))}else $!=="style"&&(b[uo[$]||$]=!0);return b},{}):null}const h=[],p={},g={0:{t:[">"],o:Me(fo),i:1,u(d,f,y){const[,b,$]=d[0].replace(Th,"").match(kh);return{alert:b,children:f($,y)}},l(d,f,y){const b={key:y.key};return d.alert&&(b.className="markdown-alert-"+r(d.alert.toLowerCase(),Et),d.children.unshift({attrs:{},children:[{type:"27",text:d.alert}],noInnerParse:!0,type:"11",tag:"header"})),c("blockquote",b,f(d.children,y))}},1:{t:[" "],o:Lt(Fh),i:1,u:Ri,l:(d,f,y)=>c("br",{key:y.key})},2:{t:["--","__","**","- ","* ","_ "],o:Me(Dh),i:1,u:Ri,l:(d,f,y)=>c("hr",{key:y.key})},3:{t:[" "],o:Me(mo),i:0,u:d=>({lang:void 0,text:ke(Ct(d[0].replace(/^ {4}/gm,"")))}),l:(d,f,y)=>c("pre",{key:y.key},c("code",ot({},d.attrs,{className:d.lang?"lang-"+d.lang:""}),d.text))},4:{t:["```","~~~"],o:Me(ho),i:0,u:d=>({attrs:l("code",d[3]||""),lang:d[2]||void 0,text:d[4],type:"3"})},5:{t:["`"],o:Ge(Mh),i:3,u:d=>({text:ke(d[2])}),l:(d,f,y)=>c("code",{key:y.key},d.text)},6:{t:["[^"],o:Me(Vh),i:0,u:d=>(h.push({footnote:d[2],identifier:d[1]}),{}),l:Ni},7:{t:["[^"],o:rt(Lh),i:1,u:d=>({target:"#"+r(d[1],Et),text:d[1]}),l:(d,f,y)=>c("a",{key:y.key,href:n(d.target,"a","href")},c("sup",{key:y.key},d.text))},8:{t:["[ ]","[x]"],o:rt(Bh),i:1,u:d=>({completed:d[1].toLowerCase()==="x"}),l:(d,f,y)=>c("input",{checked:d.completed,key:y.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Me(e.enforceAtxHeadings?yo:po),i:1,u:(d,f,y)=>({children:jr(f,d[2],y),id:r(d[2],Et),level:d[1].length}),l:(d,f,y)=>c("h"+d.level,{id:d.id,key:y.key},f(d.children,y))},10:{t:d=>{const f=d.indexOf(`
13
+ `);return f>0&&f<d.length-1&&(d[f+1]==="="||d[f+1]==="-")},o:Me(go),i:1,u:(d,f,y)=>({children:jr(f,d[1],y),level:d[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Lt(Ai),i:1,u(d,f,y){const[,b]=d[3].match(gm),$=RegExp("^"+b,"gm"),w=d[3].replace($,""),S=a(o,w)?Nm:jr,I=d[1].toLowerCase(),A=Rh.indexOf(I)!==-1,q=(A?I:d[1]).trim(),F={attrs:l(q,d[2]),noInnerParse:A,tag:q};if(y.inAnchor=y.inAnchor||I==="a",A)F.text=d[3];else{const K=y.inHTML;y.inHTML=!0,F.children=S(f,w,y),y.inHTML=K}return y.inAnchor=!1,F},l:(d,f,y)=>c(d.tag,ot({key:y.key},d.attrs),d.text||(d.children?f(d.children,y):""))},13:{t:["<"],o:Lt(Ii),i:1,u(d){const f=d[1].trim();return{attrs:l(f,d[2]||""),tag:f}},l:(d,f,y)=>c(d.tag,ot({},d.attrs,{key:y.key}))},12:{t:["<!--"],o:Lt(vo),i:1,u:()=>({}),l:Ni},14:{t:["!["],o:Ge(Em),i:1,u:d=>({alt:ke(d[1]),target:ke(d[2]),title:ke(d[3])}),l:(d,f,y)=>c("img",{key:y.key,alt:d.alt||void 0,title:d.title||void 0,src:n(d.target,"img","src")})},15:{t:["["],o:rt(Sm),i:3,u:(d,f,y)=>({children:Rm(f,d[1],y),target:ke(d[2]),title:ke(d[3])}),l:(d,f,y)=>c("a",{key:y.key,href:n(d.target,"a","href"),title:d.title},f(d.children,y))},16:{t:["<"],o:rt(Jh),i:0,u(d){let f=d[1],y=!1;return f.indexOf("@")!==-1&&f.indexOf("//")===-1&&(y=!0,f=f.replace("mailto:","")),{children:[{text:f,type:"27"}],target:y?"mailto:"+f:f,type:"15"}}},17:{t:(d,f)=>!f.inAnchor&&!e.disableAutoLink&&(qr(d,"http://")||qr(d,"https://")),o:rt(Yh),i:0,u:d=>({children:[{text:d[1],type:"27"}],target:d[1],title:void 0,type:"15"})},20:bo(c,1),33:bo(c,2),19:{t:[`
14
14
  `],o:Me(xh),i:3,u:Ri,l:()=>`
15
15
  `},21:{o:gt(function(d,f){if(f.inline||f.simple||f.inHTML&&d.indexOf(`
16
16
 
@@ -18,11 +18,11 @@ import{as as Ft,fW as Dc,tz as Mc,g0 as Qe,tA as ol,tB as xc,g3 as Uc,fV as cl,f
18
18
 
19
19
  `)===-1)return null;let y="",b=0;for(;;){const w=d.indexOf(`
20
20
  `,b),S=d.slice(b,w===-1?void 0:w+1);if(a(i,S)||(y+=S,w===-1||!S.trim()))break;b=w+1}const $=Ct(y);return $===""?null:[y,,$]}),i:3,u:Ci,l:(d,f,y)=>c("p",{key:y.key},f(d.children,y))},22:{t:["["],o:rt(Qh),i:0,u:d=>(p[d[1]]={target:d[2],title:d[4]},{}),l:Ni},23:{t:["!["],o:Ge(em),i:0,u:d=>({alt:d[1]?ke(d[1]):void 0,ref:d[2]}),l:(d,f,y)=>p[d.ref]?c("img",{key:y.key,alt:d.alt,src:n(p[d.ref].target,"img","src"),title:p[d.ref].title}):null},24:{t:d=>d[0]==="["&&d.indexOf("](")===-1,o:rt(tm),i:0,u:(d,f,y)=>({children:f(d[1],y),fallbackChildren:d[0],ref:d[2]}),l:(d,f,y)=>p[d.ref]?c("a",{key:y.key,href:n(p[d.ref].target,"a","href"),title:p[d.ref].title},f(d.children,y)):c("span",{key:y.key},d.fallbackChildren)},25:{t:["|"],o:Me(_o),i:1,u:Am,l(d,f,y){const b=d;return c("table",{key:y.key},c("thead",null,c("tr",null,b.header.map(function($,w){return c("th",{key:w,style:So(b,w)},f($,y))}))),c("tbody",null,b.cells.map(function($,w){return c("tr",{key:w},$.map(function(S,I){return c("td",{key:I,style:So(b,I)},f(S,y))}))})))}},27:{o:gt(function(d,f){let y;return qr(d,":")&&(y=fm.exec(d)),y||pm.exec(d)}),i:4,u(d){const f=d[0];return{text:f.indexOf("&")===-1?f:f.replace(Wh,(y,b)=>e.namedCodesToUnicode[b]||y)}},l:d=>d.text},28:{t:["**","__"],o:Ge(cm),i:2,u:(d,f,y)=>({children:f(d[2],y)}),l:(d,f,y)=>c("strong",{key:y.key},f(d.children,y))},29:{t:d=>{const f=d[0];return(f==="*"||f==="_")&&d[1]!==f},o:Ge(um),i:3,u:(d,f,y)=>({children:f(d[2],y)}),l:(d,f,y)=>c("em",{key:y.key},f(d.children,y))},30:{t:["\\"],o:Ge(hm),i:1,u:d=>({text:d[1],type:"27"})},31:{t:["=="],o:Ge(lm),i:3,u:Ci,l:(d,f,y)=>c("mark",{key:y.key},f(d.children,y))},32:{t:["~~"],o:Ge(dm),i:3,u:Ci,l:(d,f,y)=>c("del",{key:y.key},f(d.children,y))}};e.disableParsingRawHTML===!0&&(delete g[11],delete g[13]);const _=(function(d){var f=Object.keys(d);function y(b,$){var w=[];if($.prevCapture=$.prevCapture||"",b.trim())for(;b;)for(var S=0;S<f.length;){var I=f[S],A=d[I];if(!A.t||Om(b,$,A.t)){var q=A.o(b,$);if(q&&q[0]){b=b.substring(q[0].length);var F=A.u(q,y,$);$.prevCapture+=q[0],F.type||(F.type=I),w.push(F);break}S++}else S++}return $.prevCapture="",w}return f.sort(function(b,$){return d[b].i-d[$].i||(b<$?-1:1)}),function(b,$){return y((function(w){return w.replace(Uh,`
21
- `).replace(Kh,"").replace(nm," ")})(b),$)}})(g),v=(function(d,f){return function y(b,$={}){if(Array.isArray(b)){const w=$.key,S=[];let I=!1;for(let A=0;A<b.length;A++){$.key=A;const q=y(b[A],$),F=$o(q);F&&I?S[S.length-1]+=q:q!==null&&S.push(q),I=F}return $.key=w,S}return(function(w,S,I){const A=d[w.type].l;return f?f(()=>A(w,S,I),w,S,I):A(w,S,I)})(b,y,$)}})(g,e.renderRule),m=u(t);return h.length?c("div",null,m,c("footer",{key:"footer"},h.map(function(d){return c("div",{id:r(d.identifier,Et),key:d.identifier},d.identifier,v(_(d.footnote,{inline:!0})))}))):m}const Wr=t=>{let{children:e,options:r}=t,n=(function(s,i){if(s==null)return{};var o,a,c={},u=Object.keys(s);for(a=0;a<u.length;a++)i.indexOf(o=u[a])>=0||(c[o]=s[o]);return c})(t,Ch);return te.cloneElement(jm(e??"",r),n)};function Tm(t,e){return t==null?!0:au(t,e)}class km extends te.Component{state={wasPropertyKeyModified:!1,additionalProperties:{}};isRequired(e){const{schema:r}=this.props;return Array.isArray(r.required)&&r.required.indexOf(e)!==-1}onPropertyChange=(e,r=!1)=>(n,s,i)=>{const{formData:o,onChange:a,errorSchema:c}=this.props;n===void 0&&r&&(n="");const u={...o,[e]:n};a(u,c&&c&&{...c,[e]:s},i)};onDropPropertyClick=e=>r=>{r.preventDefault();const{onChange:n,formData:s}=this.props,i={...s};Tm(i,e),n(i)};getAvailableKey=(e,r)=>{const{uiSchema:n,registry:s}=this.props,{duplicateKeySuffixSeparator:i="-"}=se(n,s.globalUiOptions);let o=0,a=e;for(;Ee(r,a);)a=`${e}${i}${++o}`;return a};onKeyChange=e=>(r,n)=>{if(e===r)return;const{formData:s,onChange:i,errorSchema:o}=this.props;r=this.getAvailableKey(r,s);const a={...s},c={[e]:r},u=Object.keys(a).map(h=>({[c[h]||h]:a[h]})),l=Object.assign({},...u);this.setState({wasPropertyKeyModified:!0}),i(l,o&&o&&{...o,[r]:n})};getDefaultValue(e){const{registry:{translateString:r}}=this.props;switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return r(he.NewStringDefault)}}handleAddClick=e=>()=>{if(!e.additionalProperties)return;const{formData:r,onChange:n,registry:s}=this.props,i={...r};let o,a,c;if(Ie(e.additionalProperties)){o=e.additionalProperties.type,a=e.additionalProperties.const,c=e.additionalProperties.default;let h=e.additionalProperties;if(be in h){const{schemaUtils:p}=s;h=p.retrieveSchema({$ref:h[be]},r),o=h.type,a=h.const,c=h.default}!o&&(je in h||Ce in h)&&(o="object")}const u=this.getAvailableKey("newKey",i),l=a??c??this.getDefaultValue(o);we(i,u,l),n(i)};render(){const{schema:e,uiSchema:r={},formData:n,errorSchema:s,idSchema:i,name:o,required:a=!1,disabled:c,readonly:u,hideError:l,idPrefix:h,idSeparator:p,onBlur:g,onFocus:_,registry:v,title:m}=this.props,{fields:d,formContext:f,schemaUtils:y,translateString:b,globalUiOptions:$}=v,{SchemaField:w}=d,S=y.retrieveSchema(e,n),I=se(r,$),{properties:A={}}=S,q=I.title??S.title??m??o,F=I.description??S.description;let K;try{const U=Object.keys(A);K=hh(U,I.order)}catch(U){return j.jsxs("div",{children:[j.jsx("p",{className:"config-error",style:{color:"red"},children:j.jsx(Wr,{options:{disableParsingRawHTML:!0},children:b(he.InvalidObjectField,[o||"root",U.message])})}),j.jsx("pre",{children:JSON.stringify(S)})]})}const C=ue("ObjectFieldTemplate",v,I),M={title:I.label===!1?"":q,description:I.label===!1?void 0:F,properties:K.map(U=>{const H=Ee(S,[ve,U,Dt]),ee=H?r.additionalProperties:r[U],W=se(ee).widget==="hidden",Q=X(i,[U],{});return{content:j.jsx(w,{name:U,required:this.isRequired(U),schema:X(S,[ve,U],{}),uiSchema:ee,errorSchema:X(s,U),idSchema:Q,idPrefix:h,idSeparator:p,formData:X(n,U),formContext:f,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(U),onChange:this.onPropertyChange(U,H),onBlur:g,onFocus:_,registry:v,disabled:c,readonly:u,hideError:l,onDropPropertyClick:this.onDropPropertyClick},U),name:U,readonly:u,disabled:c,required:a,hidden:W}}),readonly:u,disabled:c,required:a,idSchema:i,uiSchema:r,errorSchema:s,schema:S,formData:n,formContext:f,registry:v};return j.jsx(C,{...M,onAddClick:this.handleAddClick})}}const Fm={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Dm(t,e,r,n){const s=e.field,{fields:i,translateString:o}=n;if(typeof s=="function")return s;if(typeof s=="string"&&s in i)return i[s];const a=Be(t),c=Array.isArray(a)?a[0]:a||"",u=t.$id;let l=Fm[c];return u&&u in i&&(l=u),!l&&(t.anyOf||t.oneOf)?()=>null:l in i?i[l]:()=>{const h=ue("UnsupportedFieldTemplate",n,e);return j.jsx(h,{schema:t,idSchema:r,reason:o(he.UnknownFieldType,[String(t.type)]),registry:n})}}function Mm(t){const{schema:e,idSchema:r,uiSchema:n,formData:s,errorSchema:i,idPrefix:o,idSeparator:a,name:c,onChange:u,onKeyChange:l,onDropPropertyClick:h,required:p,registry:g,wasPropertyKeyModified:_=!1}=t,{formContext:v,schemaUtils:m,globalUiOptions:d}=g,f=se(n,d),y=ue("FieldTemplate",g,f),b=ue("DescriptionFieldTemplate",g,f),$=ue("FieldHelpTemplate",g,f),w=ue("FieldErrorTemplate",g,f),S=m.retrieveSchema(e,s),I=r[Ye],A=Le(m.toIdSchema(S,I,s,o,a),r),q=te.useCallback((G,Z,le)=>u(G,Z,le||I),[I,u]),F=Dm(S,f,A,g),K=!!(f.disabled??t.disabled),C=!!(f.readonly??(t.readonly||t.schema.readOnly||S.readOnly)),M=f.hideError,U=M===void 0?t.hideError:!!M,H=!!(f.autofocus??t.autofocus);if(Object.keys(S).length===0)return null;const ee=m.getDisplayLabel(S,n,d),{__errors:W,...Q}=i||{},V=Fr(n,["ui:classNames","classNames","ui:style"]);At in V&&(V[At]=Fr(V[At],["classNames","style"]));const N=j.jsx(F,{...t,onChange:q,idSchema:A,schema:S,uiSchema:V,disabled:K,readonly:C,hideError:U,autofocus:H,errorSchema:Q,formContext:v,rawErrors:W}),x=A[Ye];let T;_?T=c:T=Dt in S?c:f.title||t.schema.title||S.title||t.title||c;const E=f.description||t.schema.description||S.description||"",O=f.enableMarkdownInDescription?j.jsx(Wr,{options:{disableParsingRawHTML:!0},children:E}):E,k=f.help,J=f.widget==="hidden",Y=["form-group","field",`field-${Be(S)}`];!U&&W&&W.length>0&&Y.push("field-error has-error has-danger"),n?.classNames&&Y.push(n.classNames),f.classNames&&Y.push(f.classNames);const L=j.jsx($,{help:k,idSchema:A,schema:S,uiSchema:n,hasErrors:!U&&W&&W.length>0,registry:g}),B=U||(S.anyOf||S.oneOf)&&!m.isSelect(S)?void 0:j.jsx(w,{errors:W,errorSchema:i,idSchema:A,schema:S,uiSchema:n,registry:g}),P={description:j.jsx(b,{id:xt(x),description:O,schema:S,uiSchema:n,registry:g}),rawDescription:E,help:L,rawHelp:typeof k=="string"?k:void 0,errors:B,rawErrors:U?void 0:W,id:x,label:T,hidden:J,onChange:u,onKeyChange:l,onDropPropertyClick:h,required:p,disabled:K,readonly:C,hideError:U,displayLabel:ee,classNames:Y.join(" ").trim(),style:f.style,formContext:v,formData:s,schema:S,uiSchema:n,registry:g},R=g.fields.AnyOfField,D=g.fields.OneOfField,z=n?.["ui:field"]&&n?.["ui:fieldReplacesAnyOrOneOf"]===!0;return j.jsx(y,{...P,children:j.jsxs(j.Fragment,{children:[N,S.anyOf&&!z&&!m.isSelect(S)&&j.jsx(R,{name:c,disabled:K,readonly:C,hideError:U,errorSchema:i,formData:s,formContext:v,idPrefix:o,idSchema:A,idSeparator:a,onBlur:t.onBlur,onChange:t.onChange,onFocus:t.onFocus,options:S.anyOf.map(G=>m.retrieveSchema(Ie(G)?G:{},s)),registry:g,required:p,schema:S,uiSchema:n}),S.oneOf&&!z&&!m.isSelect(S)&&j.jsx(D,{name:c,disabled:K,readonly:C,hideError:U,errorSchema:i,formData:s,formContext:v,idPrefix:o,idSchema:A,idSeparator:a,onBlur:t.onBlur,onChange:t.onChange,onFocus:t.onFocus,options:S.oneOf.map(G=>m.retrieveSchema(Ie(G)?G:{},s)),registry:g,required:p,schema:S,uiSchema:n})]})})}class xm extends te.Component{shouldComponentUpdate(e){return!pe(this.props,e)}render(){return j.jsx(Mm,{...this.props})}}function Um(t){const{schema:e,name:r,uiSchema:n,idSchema:s,formData:i,required:o,disabled:a=!1,readonly:c=!1,autofocus:u=!1,onChange:l,onBlur:h,onFocus:p,registry:g,rawErrors:_,hideError:v}=t,{title:m,format:d}=e,{widgets:f,formContext:y,schemaUtils:b,globalUiOptions:$}=g,w=b.isSelect(e)?Tt(e,n):void 0;let S=w?"select":"text";d&&lh(e,d,f)&&(S=d);const{widget:I=S,placeholder:A="",title:q,...F}=se(n),K=b.getDisplayLabel(e,n,$),C=q??m??r,M=Ke(e,I,f);return j.jsx(M,{options:{...F,enumOptions:w},schema:e,uiSchema:n,id:s.$id,name:r,label:C,hideLabel:!K,hideError:v,value:i,onChange:l,onBlur:h,onFocus:p,required:o,disabled:a,readonly:c,formContext:y,autofocus:u,registry:g,placeholder:A,rawErrors:_})}function Vm(t){const{formData:e,onChange:r}=t;return te.useEffect(()=>{e===void 0&&r(null)},[e,r]),null}function Lm(){return{AnyOfField:co,ArrayField:Eh,BooleanField:Oh,NumberField:Ih,ObjectField:km,OneOfField:co,SchemaField:xm,StringField:Um,NullField:Vm}}function Km(t){const{idSchema:e,description:r,registry:n,schema:s,uiSchema:i}=t,o=se(i,n.globalUiOptions),{label:a=!0}=o;if(!r||!a)return null;const c=ue("DescriptionFieldTemplate",n,o);return j.jsx(c,{id:xt(e),description:r,schema:s,uiSchema:i,registry:n})}function zm(t){const{children:e,className:r,disabled:n,hasToolbar:s,hasMoveDown:i,hasMoveUp:o,hasRemove:a,hasCopy:c,index:u,onCopyIndexClick:l,onDropIndexClick:h,onReorderClick:p,readonly:g,registry:_,uiSchema:v}=t,{CopyButton:m,MoveDownButton:d,MoveUpButton:f,RemoveButton:y}=_.templates.ButtonTemplates,b={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return j.jsxs("div",{className:r,children:[j.jsx("div",{className:s?"col-xs-9":"col-xs-12",children:e}),s&&j.jsx("div",{className:"col-xs-3 array-item-toolbox",children:j.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(o||i)&&j.jsx(f,{style:b,disabled:n||g||!o,onClick:p(u,u-1),uiSchema:v,registry:_}),(o||i)&&j.jsx(d,{style:b,disabled:n||g||!i,onClick:p(u,u+1),uiSchema:v,registry:_}),c&&j.jsx(m,{style:b,disabled:n||g,onClick:l(u),uiSchema:v,registry:_}),a&&j.jsx(y,{style:b,disabled:n||g,onClick:h(u),uiSchema:v,registry:_})]})})]})}function Bm(t){const{canAdd:e,className:r,disabled:n,idSchema:s,uiSchema:i,items:o,onAddClick:a,readonly:c,registry:u,required:l,schema:h,title:p}=t,g=se(i),_=ue("ArrayFieldDescriptionTemplate",u,g),v=ue("ArrayFieldItemTemplate",u,g),m=ue("ArrayFieldTitleTemplate",u,g),{ButtonTemplates:{AddButton:d}}=u.templates;return j.jsxs("fieldset",{className:r,id:s.$id,children:[j.jsx(m,{idSchema:s,title:g.title||p,required:l,schema:h,uiSchema:i,registry:u}),j.jsx(_,{idSchema:s,description:g.description||h.description,schema:h,uiSchema:i,registry:u}),j.jsx("div",{className:"row array-item-list",children:o&&o.map(({key:f,...y})=>j.jsx(v,{...y},f))}),e&&j.jsx(d,{className:"array-item-add",onClick:a,disabled:n||c,uiSchema:i,registry:u})]})}function Wm(t){const{idSchema:e,title:r,schema:n,uiSchema:s,required:i,registry:o}=t,a=se(s,o.globalUiOptions),{label:c=!0}=a;if(!r||!c)return null;const u=ue("TitleFieldTemplate",o,a);return j.jsx(u,{id:Vu(e),title:r,required:i,schema:n,uiSchema:s,registry:o})}function Gm(t){const{id:e,name:r,value:n,readonly:s,disabled:i,autofocus:o,onBlur:a,onFocus:c,onChange:u,onChangeOverride:l,options:h,schema:p,uiSchema:g,formContext:_,registry:v,rawErrors:m,type:d,hideLabel:f,hideError:y,...b}=t;if(!e)throw console.log("No id for",t),new Error(`no id for props ${JSON.stringify(t)}`);const $={...b,...rh(p,d,h)};let w;$.type==="number"||$.type==="integer"?w=n||n===0?n:"":w=n??"";const S=te.useCallback(({target:{value:q}})=>u(q===""?h.emptyValue:q),[u,h]),I=te.useCallback(({target:q})=>a(e,q&&q.value),[a,e]),A=te.useCallback(({target:q})=>c(e,q&&q.value),[c,e]);return j.jsxs(j.Fragment,{children:[j.jsx("input",{id:e,name:e,className:"form-control",readOnly:s,disabled:i,autoFocus:o,value:w,...$,list:p.examples?Hi(e):void 0,onChange:l||S,onBlur:I,onFocus:A,"aria-describedby":ut(e,!!p.examples)}),Array.isArray(p.examples)&&j.jsx("datalist",{id:Hi(e),children:p.examples.concat(p.default&&!p.examples.includes(p.default)?[p.default]:[]).map(q=>j.jsx("option",{value:q},q))},`datalist_${e}`)]})}function Hm({uiSchema:t}){const{submitText:e,norender:r,props:n={}}=nh(t);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...n,className:`btn btn-info ${n.className||""}`,children:e})})}function Ut(t){const{iconType:e="default",icon:r,className:n,uiSchema:s,registry:i,...o}=t;return j.jsx("button",{type:"button",className:`btn btn-${e} ${n}`,...o,children:j.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function Jm(t){const{registry:{translateString:e}}=t;return j.jsx(Ut,{title:e(he.CopyButton),className:"array-item-copy",...t,icon:"copy"})}function Ym(t){const{registry:{translateString:e}}=t;return j.jsx(Ut,{title:e(he.MoveDownButton),className:"array-item-move-down",...t,icon:"arrow-down"})}function Zm(t){const{registry:{translateString:e}}=t;return j.jsx(Ut,{title:e(he.MoveUpButton),className:"array-item-move-up",...t,icon:"arrow-up"})}function Xm(t){const{registry:{translateString:e}}=t;return j.jsx(Ut,{title:e(he.RemoveButton),className:"array-item-remove",...t,iconType:"danger",icon:"remove"})}function Qm({className:t,onClick:e,disabled:r,registry:n}){const{translateString:s}=n;return j.jsx("div",{className:"row",children:j.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${t}`,children:j.jsx(Ut,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:s(he.AddButton),onClick:e,disabled:r,registry:n})})})}function ep(){return{SubmitButton:Hm,AddButton:Qm,CopyButton:Jm,MoveDownButton:Ym,MoveUpButton:Zm,RemoveButton:Xm}}function tp(t){const{id:e,description:r}=t;return r?typeof r=="string"?j.jsx("p",{id:e,className:"field-description",children:r}):j.jsx("div",{id:e,className:"field-description",children:r}):null}function rp({errors:t,registry:e}){const{translateString:r}=e;return j.jsxs("div",{className:"panel panel-danger errors",children:[j.jsx("div",{className:"panel-heading",children:j.jsx("h3",{className:"panel-title",children:r(he.ErrorsLabel)})}),j.jsx("ul",{className:"list-group",children:t.map((n,s)=>j.jsx("li",{className:"list-group-item text-danger",children:n.stack},s))})]})}const np="*";function Xu(t){const{label:e,required:r,id:n}=t;return e?j.jsxs("label",{className:"control-label",htmlFor:n,children:[e,r&&j.jsx("span",{className:"required",children:np})]}):null}function ip(t){const{id:e,label:r,children:n,errors:s,help:i,description:o,hidden:a,required:c,displayLabel:u,registry:l,uiSchema:h}=t,p=se(h),g=ue("WrapIfAdditionalTemplate",l,p);return a?j.jsx("div",{className:"hidden",children:n}):j.jsxs(g,{...t,children:[u&&j.jsx(Xu,{label:r,required:c,id:e}),u&&o?o:null,n,s,i]})}function sp(t){const{errors:e=[],idSchema:r}=t;if(e.length===0)return null;const n=xu(r);return j.jsx("div",{children:j.jsx("ul",{id:n,className:"error-detail bs-callout bs-callout-info",children:e.filter(s=>!!s).map((s,i)=>j.jsx("li",{className:"text-danger",children:s},i))})})}function ap(t){const{idSchema:e,help:r}=t;if(!r)return null;const n=Uu(e);return typeof r=="string"?j.jsx("p",{id:n,className:"help-block",children:r}):j.jsx("div",{id:n,className:"help-block",children:r})}function op(t){const{description:e,disabled:r,formData:n,idSchema:s,onAddClick:i,properties:o,readonly:a,registry:c,required:u,schema:l,title:h,uiSchema:p}=t,g=se(p),_=ue("TitleFieldTemplate",c,g),v=ue("DescriptionFieldTemplate",c,g),{ButtonTemplates:{AddButton:m}}=c.templates;return j.jsxs("fieldset",{id:s.$id,children:[h&&j.jsx(_,{id:Vu(s),title:h,required:u,schema:l,uiSchema:p,registry:c}),e&&j.jsx(v,{id:xt(s),description:e,schema:l,uiSchema:p,registry:c}),o.map(d=>d.content),od(l,p,n)&&j.jsx(m,{className:"object-property-expand",onClick:i(l),disabled:r||a,uiSchema:p,registry:c})]})}const cp="*";function up(t){const{id:e,title:r,required:n}=t;return j.jsxs("legend",{id:e,children:[r,n&&j.jsx("span",{className:"required",children:cp})]})}function lp(t){const{schema:e,idSchema:r,reason:n,registry:s}=t,{translateString:i}=s;let o=he.UnsupportedField;const a=[];return r&&r.$id&&(o=he.UnsupportedFieldWithId,a.push(r.$id)),n&&(o=o===he.UnsupportedField?he.UnsupportedFieldWithReason:he.UnsupportedFieldWithIdAndReason,a.push(n)),j.jsxs("div",{className:"unsupported-field",children:[j.jsx("p",{children:j.jsx(Wr,{options:{disableParsingRawHTML:!0},children:i(o,a)})}),e&&j.jsx("pre",{children:JSON.stringify(e,null,2)})]})}function dp(t){const{id:e,classNames:r,style:n,disabled:s,label:i,onKeyChange:o,onDropPropertyClick:a,readonly:c,required:u,schema:l,children:h,uiSchema:p,registry:g}=t,{templates:_,translateString:v}=g,{RemoveButton:m}=_.ButtonTemplates,d=v(he.KeyLabel,[i]);return Dt in l?j.jsx("div",{className:r,style:n,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col-xs-5 form-additional",children:j.jsxs("div",{className:"form-group",children:[j.jsx(Xu,{label:d,required:u,id:`${e}-key`}),j.jsx("input",{className:"form-control",type:"text",id:`${e}-key`,onBlur:({target:y})=>o(y&&y.value),defaultValue:i})]})}),j.jsx("div",{className:"form-additional form-group col-xs-5",children:h}),j.jsx("div",{className:"col-xs-2",children:j.jsx(m,{className:"array-item-remove btn-block",style:{border:"0"},disabled:s||c,onClick:a(i),uiSchema:p,registry:g})})]})}):j.jsx("div",{className:r,style:n,children:h})}function fp(){return{ArrayFieldDescriptionTemplate:Km,ArrayFieldItemTemplate:zm,ArrayFieldTemplate:Bm,ArrayFieldTitleTemplate:Wm,ButtonTemplates:ep(),BaseInputTemplate:Gm,DescriptionFieldTemplate:tp,ErrorListTemplate:rp,FieldTemplate:ip,FieldErrorTemplate:sp,FieldHelpTemplate:ap,ObjectFieldTemplate:op,TitleFieldTemplate:up,UnsupportedFieldTemplate:lp,WrapIfAdditionalTemplate:dp}}function hp(t){return Object.values(t).every(e=>e!==-1)}function mp({type:t,range:e,value:r,select:n,rootId:s,name:i,disabled:o,readonly:a,autofocus:c,registry:u,onBlur:l,onFocus:h}){const p=s+"_"+t,{SelectWidget:g}=u.widgets;return j.jsx(g,{schema:{type:"integer"},id:p,name:i,className:"form-control",options:{enumOptions:Mu(e[0],e[1])},placeholder:t,value:r,disabled:o,readonly:a,autofocus:c,onChange:_=>n(t,_),onBlur:l,onFocus:h,registry:u,label:"","aria-describedby":ut(s)})}function pp({time:t=!1,disabled:e=!1,readonly:r=!1,autofocus:n=!1,options:s,id:i,name:o,registry:a,onBlur:c,onFocus:u,onChange:l,value:h}){const{translateString:p}=a,[g,_]=te.useState(h),[v,m]=te.useReducer((b,$)=>({...b,...$}),Pi(h,t));te.useEffect(()=>{const b=ao(v,t);hp(v)&&b!==h?l(b):g!==h&&(_(h),m(Pi(h,t)))},[t,h,l,v,g]);const d=te.useCallback((b,$)=>{m({[b]:$})},[]),f=te.useCallback(b=>{if(b.preventDefault(),e||r)return;const $=Pi(new Date().toJSON(),t);l(ao($,t))},[e,r,t]),y=te.useCallback(b=>{b.preventDefault(),!(e||r)&&l(void 0)},[e,r,l]);return j.jsxs("ul",{className:"list-inline",children:[eh(v,t,s.yearsRange,s.format).map((b,$)=>j.jsx("li",{className:"list-inline-item",children:j.jsx(mp,{rootId:i,name:o,select:d,...b,disabled:e,readonly:r,registry:a,onBlur:c,onFocus:u,autofocus:n&&$===0})},$)),(s.hideNowButton!=="undefined"?!s.hideNowButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:f,children:p(he.NowLabel)})}),(s.hideClearButton!=="undefined"?!s.hideClearButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:y,children:p(he.ClearLabel)})})]})}function yp({time:t=!0,...e}){const{AltDateWidget:r}=e.registry.widgets;return j.jsx(r,{time:t,...e})}function gp({schema:t,uiSchema:e,options:r,id:n,value:s,disabled:i,readonly:o,label:a,hideLabel:c,autofocus:u=!1,onBlur:l,onFocus:h,onChange:p,registry:g}){const _=ue("DescriptionFieldTemplate",g,r),v=Rr(t),m=te.useCallback(b=>p(b.target.checked),[p]),d=te.useCallback(b=>l(n,b.target.checked),[l,n]),f=te.useCallback(b=>h(n,b.target.checked),[h,n]),y=r.description??t.description;return j.jsxs("div",{className:`checkbox ${i||o?"disabled":""}`,children:[!c&&!!y&&j.jsx(_,{id:xt(n),description:y,schema:t,uiSchema:e,registry:g}),j.jsxs("label",{children:[j.jsx("input",{type:"checkbox",id:n,name:n,checked:typeof s>"u"?!1:s,required:v,disabled:i||o,autoFocus:u,onChange:m,onBlur:d,onFocus:f,"aria-describedby":ut(n)}),dh(j.jsx("span",{children:a}),c)]})]})}function vp({id:t,disabled:e,options:{inline:r=!1,enumOptions:n,enumDisabled:s,emptyValue:i},value:o,autofocus:a=!1,readonly:c,onChange:u,onBlur:l,onFocus:h}){const p=Array.isArray(o)?o:[o],g=te.useCallback(({target:v})=>l(t,De(v&&v.value,n,i)),[l,t]),_=te.useCallback(({target:v})=>h(t,De(v&&v.value,n,i)),[h,t]);return j.jsx("div",{className:"checkboxes",id:t,children:Array.isArray(n)&&n.map((v,m)=>{const d=gs(v.value,p),f=Array.isArray(s)&&s.indexOf(v.value)!==-1,y=e||f||c?"disabled":"",b=w=>{w.target.checked?u(Zf(m,p,n)):u(Jf(m,p,n))},$=j.jsxs("span",{children:[j.jsx("input",{type:"checkbox",id:Lu(t,m),name:t,checked:d,value:String(m),disabled:e||f||c,autoFocus:a&&m===0,onChange:b,onBlur:g,onFocus:_,"aria-describedby":ut(t)}),j.jsx("span",{children:v.label})]});return r?j.jsx("label",{className:`checkbox-inline ${y}`,children:$},m):j.jsx("div",{className:`checkbox ${y}`,children:j.jsx("label",{children:$})},m)})})}function _p(t){const{disabled:e,readonly:r,options:n,registry:s}=t,i=ue("BaseInputTemplate",s,n);return j.jsx(i,{type:"color",...t,disabled:e||r})}function bp(t){const{onChange:e,options:r,registry:n}=t,s=ue("BaseInputTemplate",n,r),i=te.useCallback(o=>e(o||void 0),[e]);return j.jsx(s,{type:"date",...t,onChange:i})}function $p(t){const{onChange:e,value:r,options:n,registry:s}=t,i=ue("BaseInputTemplate",s,n);return j.jsx(i,{type:"datetime-local",...t,value:yh(r),onChange:o=>e(fh(o))})}function wp(t){const{options:e,registry:r}=t,n=ue("BaseInputTemplate",r,e);return j.jsx(n,{type:"email",...t})}function Sp(t,e){return t===null?null:t.replace(";base64",`;name=${encodeURIComponent(e)};base64`)}function Ep(t){const{name:e,size:r,type:n}=t;return new Promise((s,i)=>{const o=new window.FileReader;o.onerror=i,o.onload=a=>{typeof a.target?.result=="string"?s({dataURL:Sp(a.target.result,e),name:e,size:r,type:n}):s({dataURL:null,name:e,size:r,type:n})},o.readAsDataURL(t)})}function Op(t){return Promise.all(Array.from(t).map(Ep))}function Pp({fileInfo:t,registry:e}){const{translateString:r}=e,{dataURL:n,type:s,name:i}=t;return n?["image/jpeg","image/png"].includes(s)?j.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):j.jsxs(j.Fragment,{children:[" ",j.jsx("a",{download:`preview-${i}`,href:n,className:"file-download",children:r(he.PreviewLabel)})]}):null}function Ap({filesInfo:t,registry:e,preview:r,onRemove:n,options:s}){if(t.length===0)return null;const{translateString:i}=e,{RemoveButton:o}=ue("ButtonTemplates",e,s);return j.jsx("ul",{className:"file-info",children:t.map((a,c)=>{const{name:u,size:l,type:h}=a,p=()=>n(c);return j.jsxs("li",{children:[j.jsx(Wr,{children:i(he.FilesInfo,[u,h,String(l)])}),r&&j.jsx(Pp,{fileInfo:a,registry:e}),j.jsx(o,{onClick:p,registry:e})]},c)})})}function Ip(t){return t.reduce((e,r)=>{if(!r)return e;try{const{blob:n,name:s}=Wf(r);return[...e,{dataURL:r,name:s,size:n.size,type:n.type}]}catch{return e}},[])}function Cp(t){const{disabled:e,readonly:r,required:n,multiple:s,onChange:i,value:o,options:a,registry:c}=t,u=ue("BaseInputTemplate",c,a),l=te.useCallback(g=>{g.target.files&&Op(g.target.files).then(_=>{const v=_.map(m=>m.dataURL);i(s?o.concat(v):v[0])})},[s,o,i]),h=te.useMemo(()=>Ip(Array.isArray(o)?o:[o]),[o]),p=te.useCallback(g=>{if(s){const _=o.filter((v,m)=>m!==g);i(_)}else i(void 0)},[s,o,i]);return j.jsxs("div",{children:[j.jsx(u,{...t,disabled:e||r,type:"file",required:o?!1:n,onChangeOverride:l,value:"",accept:a.accept?String(a.accept):void 0}),j.jsx(Ap,{filesInfo:h,onRemove:p,registry:c,preview:a.filePreview,options:a})]})}function Rp({id:t,value:e}){return j.jsx("input",{type:"hidden",id:t,name:t,value:typeof e>"u"?"":e})}function Np(t){const{options:e,registry:r}=t,n=ue("BaseInputTemplate",r,e);return j.jsx(n,{type:"password",...t})}function qp({options:t,value:e,required:r,disabled:n,readonly:s,autofocus:i=!1,onBlur:o,onFocus:a,onChange:c,id:u}){const{enumOptions:l,enumDisabled:h,inline:p,emptyValue:g}=t,_=te.useCallback(({target:m})=>o(u,De(m&&m.value,l,g)),[o,u]),v=te.useCallback(({target:m})=>a(u,De(m&&m.value,l,g)),[a,u]);return j.jsx("div",{className:"field-radio-group",id:u,children:Array.isArray(l)&&l.map((m,d)=>{const f=gs(m.value,e),y=Array.isArray(h)&&h.indexOf(m.value)!==-1,b=n||y||s?"disabled":"",$=()=>c(m.value),w=j.jsxs("span",{children:[j.jsx("input",{type:"radio",id:Lu(u,d),checked:f,name:u,required:r,value:String(d),disabled:n||y||s,autoFocus:i&&d===0,onChange:$,onBlur:_,onFocus:v,"aria-describedby":ut(u)}),j.jsx("span",{children:m.label})]});return p?j.jsx("label",{className:`radio-inline ${b}`,children:w},d):j.jsx("div",{className:`radio ${b}`,children:j.jsx("label",{children:w})},d)})})}function jp(t){const{value:e,registry:{templates:{BaseInputTemplate:r}}}=t;return j.jsxs("div",{className:"field-range-wrapper",children:[j.jsx(r,{type:"range",...t}),j.jsx("span",{className:"range-view",children:e})]})}function ji(t,e){return e?Array.from(t.target.options).slice().filter(r=>r.selected).map(r=>r.value):t.target.value}function Tp({schema:t,id:e,options:r,value:n,required:s,disabled:i,readonly:o,multiple:a=!1,autofocus:c=!1,onChange:u,onBlur:l,onFocus:h,placeholder:p}){const{enumOptions:g,enumDisabled:_,emptyValue:v}=r,m=a?[]:"",d=te.useCallback(w=>{const S=ji(w,a);return h(e,De(S,g,v))},[h,e,t,a,g,v]),f=te.useCallback(w=>{const S=ji(w,a);return l(e,De(S,g,v))},[l,e,t,a,g,v]),y=te.useCallback(w=>{const S=ji(w,a);return u(De(S,g,v))},[u,t,a,g,v]),b=Yf(n,g,a),$=!a&&t.default===void 0;return j.jsxs("select",{id:e,name:e,multiple:a,className:"form-control",value:typeof b>"u"?m:b,required:s,disabled:i||o,autoFocus:c,onBlur:f,onFocus:d,onChange:y,"aria-describedby":ut(e),children:[$&&j.jsx("option",{value:"",children:p}),Array.isArray(g)&&g.map(({value:w,label:S},I)=>{const A=_&&_.indexOf(w)!==-1;return j.jsx("option",{value:String(I),disabled:A,children:S},I)})]})}function Qu({id:t,options:e={},placeholder:r,value:n,required:s,disabled:i,readonly:o,autofocus:a=!1,onChange:c,onBlur:u,onFocus:l}){const h=te.useCallback(({target:{value:_}})=>c(_===""?e.emptyValue:_),[c,e.emptyValue]),p=te.useCallback(({target:_})=>u(t,_&&_.value),[u,t]),g=te.useCallback(({target:_})=>l(t,_&&_.value),[t,l]);return j.jsx("textarea",{id:t,name:t,className:"form-control",value:n||"",placeholder:r,required:s,disabled:i,readOnly:o,autoFocus:a,rows:e.rows,onBlur:p,onFocus:g,onChange:h,"aria-describedby":ut(t)})}Qu.defaultProps={autofocus:!1,options:{}};function kp(t){const{options:e,registry:r}=t,n=ue("BaseInputTemplate",r,e);return j.jsx(n,{...t})}function Fp(t){const{onChange:e,options:r,registry:n}=t,s=ue("BaseInputTemplate",n,r),i=te.useCallback(o=>e(o?`${o}:00`:void 0),[e]);return j.jsx(s,{type:"time",...t,onChange:i})}function Dp(t){const{options:e,registry:r}=t,n=ue("BaseInputTemplate",r,e);return j.jsx(n,{type:"url",...t})}function Mp(t){const{options:e,registry:r}=t,n=ue("BaseInputTemplate",r,e);return j.jsx(n,{type:"number",...t})}function xp(){return{AltDateWidget:pp,AltDateTimeWidget:yp,CheckboxWidget:gp,CheckboxesWidget:vp,ColorWidget:_p,DateWidget:bp,DateTimeWidget:$p,EmailWidget:wp,FileWidget:Cp,HiddenWidget:Rp,PasswordWidget:Np,RadioWidget:qp,RangeWidget:jp,SelectWidget:Tp,TextWidget:kp,TextareaWidget:Qu,TimeWidget:Fp,UpDownWidget:Mp,URLWidget:Dp}}function Up(){return{fields:Lm(),templates:fp(),widgets:xp(),rootSchema:{},formContext:{},translateString:Hf}}class dg extends te.Component{formElement;constructor(e){if(super(e),!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!pe(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=te.createRef()}getSnapshotBeforeUpdate(e,r){if(!pe(this.props,e)){const n=Sh(this.props.formData,e.formData),s=!pe(e.schema,this.props.schema),i=n.length>0||!pe(e.formData,this.props.formData),o=this.getStateFromProps(this.props,this.props.formData,s||i?void 0:this.state.retrievedSchema,s,n),a=!pe(o,r);return{nextState:o,shouldUpdate:a}}return{shouldUpdate:!1}}componentDidUpdate(e,r,n){if(n.shouldUpdate){const{nextState:s}=n;!pe(s.formData,this.props.formData)&&!pe(s.formData,r.formData)&&this.props.onChange&&this.props.onChange(s),this.setState(s)}}getStateFromProps(e,r,n,s=!1,i=[]){const o=this.state||{},a="schema"in e?e.schema:this.props.schema,c=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},u=typeof r<"u",l="liveValidate"in e?e.liveValidate:this.props.liveValidate,h=u&&!e.noValidate&&l,p=a,g="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,_="experimental_customMergeAllOf"in e?e.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let v=o.schemaUtils;(!v||v.doesSchemaUtilsDiffer(e.validator,p,g,_))&&(v=Bf(e.validator,p,g,_));const m=v.getDefaultFormState(a,r),d=this.updateRetrievedSchema(n??v.retrieveSchema(a,m)),f=()=>e.noValidate||s?{errors:[],errorSchema:{}}:e.liveValidate?{errors:o.errors||[],errorSchema:o.errorSchema||{}}:{errors:o.schemaValidationErrors||[],errorSchema:o.schemaValidationErrorSchema||{}};let y,b,$=o.schemaValidationErrors,w=o.schemaValidationErrorSchema;if(h){const A=this.validate(m,a,v,d);y=A.errors,n===void 0?b=A.errorSchema:b=Le(this.state?.errorSchema,A.errorSchema,"preventDuplicates"),$=y,w=b}else{const A=f();if(y=A.errors,b=A.errorSchema,i.length>0){const q=i.reduce((F,K)=>(F[K]=void 0,F),{});b=w=Le(A.errorSchema,q,"preventDuplicates")}}if(e.extraErrors){const A=Nr({errorSchema:b,errors:y},e.extraErrors);b=A.errorSchema,y=A.errors}const S=v.toIdSchema(d,c["ui:rootFieldId"],m,e.idPrefix,e.idSeparator);return{schemaUtils:v,schema:a,uiSchema:c,idSchema:S,formData:m,edit:u,errors:y,errorSchema:b,schemaValidationErrors:$,schemaValidationErrorSchema:w,retrievedSchema:d}}shouldComponentUpdate(e,r){return mh(this,e,r)}getPreviousCustomValidateErrors(){const{customValidate:e,uiSchema:r}=this.props,n=this.state.formData;let s={};if(typeof e=="function"){const i=e(n,kr(n),r);s=vs(i)}return s}validate(e,r=this.props.schema,n,s){const i=n||this.state.schemaUtils,{customValidate:o,transformErrors:a,uiSchema:c}=this.props,u=s??i.retrieveSchema(r,e);return i.getValidator().validateFormData(e,u,o,a,c)}renderErrors(e){const{errors:r,errorSchema:n,schema:s,uiSchema:i}=this.state,{formContext:o}=this.props,a=se(i),c=ue("ErrorListTemplate",e,a);return r&&r.length?j.jsx(c,{errors:r,errorSchema:n||{},schema:s,uiSchema:i,formContext:o,registry:e}):null}getUsedFormData=(e,r)=>{if(r.length===0&&typeof e!="object")return e;const n=As(e,r);return Array.isArray(e)?Object.keys(n).map(s=>n[s]):n};getFieldNames=(e,r)=>{const n=(s,i=[],o=[[]])=>(Object.keys(s).forEach(a=>{if(typeof s[a]=="object"){const c=o.map(u=>[...u,a]);s[a][rs]&&s[a][Ir]!==""?i.push(s[a][Ir]):n(s[a],i,c)}else a===Ir&&s[a]!==""&&o.forEach(c=>{const u=X(r,c);(typeof u!="object"||ht(u)||Array.isArray(u)&&u.every(l=>typeof l!="object"))&&i.push(c)})}),i);return n(e)};omitExtraData=e=>{const{schema:r,schemaUtils:n}=this.state,s=n.retrieveSchema(r,e),i=n.toPathSchema(s,"",e),o=this.getFieldNames(i,e);return this.getUsedFormData(e,o)};filterErrorsBasedOnSchema(e,r,n){const{retrievedSchema:s,schemaUtils:i}=this.state,o=r??s,a=i.toPathSchema(o,"",n),c=this.getFieldNames(a,n),u=As(e,c);r?.type!=="object"&&r?.type!=="array"&&(u.__errors=e.__errors);const l=this.getPreviousCustomValidateErrors(),h=(g=[],_)=>g.length===0?g:g.filter(v=>!_.includes(v)),p=(g,_={})=>(Ul(g,(v,m)=>{const d=_[m];It(v)||Array.isArray(v)&&v.length===0?delete g[m]:ae(v)&&ae(d)&&Array.isArray(d?.__errors)?g[m]=h(v.__errors,d.__errors):typeof v=="object"&&!Array.isArray(v.__errors)&&p(v,_[m])}),g);return p(u,l)}onChange=(e,r,n)=>{const{extraErrors:s,omitExtraData:i,liveOmit:o,noValidate:a,liveValidate:c,onChange:u}=this.props,{schemaUtils:l,schema:h}=this.state;let p=this.state.retrievedSchema;if(ae(e)||Array.isArray(e)){const m=this.getStateFromProps(this.props,e);e=m.formData,p=m.retrievedSchema}const g=!a&&c;let _={formData:e,schema:h},v=e;if(i===!0&&o===!0&&(v=this.omitExtraData(e),_={formData:v}),g){const m=this.validate(v,h,l,p);let d=m.errors,f=m.errorSchema;const y=d,b=f;if(s){const $=Nr(m,s);f=$.errorSchema,d=$.errors}if(r){const $=this.filterErrorsBasedOnSchema(r,p,v);f=Le(f,$,"preventDuplicates")}_={formData:v,errors:d,errorSchema:f,schemaValidationErrors:y,schemaValidationErrorSchema:b}}else if(!a&&r){const m=s?Le(r,s,"preventDuplicates"):r;_={formData:v,errorSchema:m,errors:kt(m)}}this.setState(_,()=>u&&u({...this.state,..._},n))};updateRetrievedSchema(e){return pe(e,this.state?.retrievedSchema)?this.state.retrievedSchema:e}reset=()=>{const{onChange:e}=this.props,s={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(s,()=>e&&e({...this.state,...s}))};onBlur=(e,r)=>{const{onBlur:n}=this.props;n&&n(e,r)};onFocus=(e,r)=>{const{onFocus:n}=this.props;n&&n(e,r)};onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:r,extraErrors:n,noValidate:s,onSubmit:i}=this.props;let{formData:o}=this.state;if(r===!0&&(o=this.omitExtraData(o)),s||this.validateFormWithFormData(o)){const a=n||{},c=n?kt(n):[];this.setState({formData:o,errors:c,errorSchema:a,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{i&&i({...this.state,formData:o,status:"submitted"},e)})}};getRegistry(){const{translateString:e,uiSchema:r={}}=this.props,{schemaUtils:n}=this.state,{fields:s,templates:i,widgets:o,formContext:a,translateString:c}=Up();return{fields:{...s,...this.props.fields},templates:{...i,...this.props.templates,ButtonTemplates:{...i.ButtonTemplates,...this.props.templates?.ButtonTemplates}},widgets:{...o,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||a,schemaUtils:n,translateString:e||c,globalUiOptions:r[ad]}}submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}};focusOnError(e){const{idPrefix:r="root",idSeparator:n="_"}=this.props,{property:s}=e,i=Ku(s);i[0]===""?i[0]=r:i.unshift(r);const o=i.join(n);let a=this.formElement.current.elements[o];a||(a=this.formElement.current.querySelector(`input[id^="${o}"`)),a&&a.length&&(a=a[0]),a&&a.focus()}validateFormWithFormData=e=>{const{extraErrors:r,extraErrorsBlockSubmit:n,focusOnFirstError:s,onError:i}=this.props,{errors:o}=this.state,a=this.validate(e);let c=a.errors,u=a.errorSchema;const l=c,h=u,p=c.length>0||r&&n;if(p){if(r){const g=Nr(a,r);u=g.errorSchema,c=g.errors}s&&(typeof s=="function"?s(c[0]):this.focusOnError(c[0])),this.setState({errors:c,errorSchema:u,schemaValidationErrors:l,schemaValidationErrorSchema:h},()=>{i?i(c):console.error("Form validation failed",c)})}else o.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!p};validateForm(){const{omitExtraData:e}=this.props;let{formData:r}=this.state;return e===!0&&(r=this.omitExtraData(r)),this.validateFormWithFormData(r)}render(){const{children:e,id:r,idPrefix:n,idSeparator:s,className:i="",tagName:o,name:a,method:c,target:u,action:l,autoComplete:h,enctype:p,acceptcharset:g,acceptCharset:_,noHtml5Validate:v=!1,disabled:m,readonly:d,formContext:f,showErrorList:y="top",_internalFormWrapper:b}=this.props,{schema:$,uiSchema:w,formData:S,errorSchema:I,idSchema:A}=this.state,q=this.getRegistry(),{SchemaField:F}=q.fields,{SubmitButton:K}=q.templates.ButtonTemplates,C=b?o:void 0,M=b||o||"form";let{[Tr]:U={}}=se(w);m&&(U={...U,props:{...U.props,disabled:!0}});const H={[At]:{[Tr]:U}};return j.jsxs(M,{className:i||"rjsf",id:r,name:a,method:c,target:u,action:l,autoComplete:h,encType:p,acceptCharset:_||g,noValidate:v,onSubmit:this.onSubmit,as:C,ref:this.formElement,children:[y==="top"&&this.renderErrors(q),j.jsx(F,{name:"",schema:$,uiSchema:w,errorSchema:I,idSchema:A,idPrefix:n,idSeparator:s,formContext:f,formData:S,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:q,disabled:m,readonly:d}),e||j.jsx(K,{uiSchema:H,registry:q}),y==="bottom"&&this.renderErrors(q)]})}}var Kt={exports:{}},Ti={},xe={},nt={},ki={},Fi={},Di={},Eo;function Dr(){return Eo||(Eo=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(f){if(super(),!t.IDENTIFIER.test(f))throw new Error("CodeGen: name must be a valid identifier");this.str=f}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class n extends e{constructor(f){super(),this._items=typeof f=="string"?[f]:f}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const f=this._items[0];return f===""||f==='""'}get str(){var f;return(f=this._str)!==null&&f!==void 0?f:this._str=this._items.reduce((y,b)=>`${y}${b}`,"")}get names(){var f;return(f=this._names)!==null&&f!==void 0?f:this._names=this._items.reduce((y,b)=>(b instanceof r&&(y[b.str]=(y[b.str]||0)+1),y),{})}}t._Code=n,t.nil=new n("");function s(d,...f){const y=[d[0]];let b=0;for(;b<f.length;)a(y,f[b]),y.push(d[++b]);return new n(y)}t._=s;const i=new n("+");function o(d,...f){const y=[g(d[0])];let b=0;for(;b<f.length;)y.push(i),a(y,f[b]),y.push(i,g(d[++b]));return c(y),new n(y)}t.str=o;function a(d,f){f instanceof n?d.push(...f._items):f instanceof r?d.push(f):d.push(h(f))}t.addCodeArg=a;function c(d){let f=1;for(;f<d.length-1;){if(d[f]===i){const y=u(d[f-1],d[f+1]);if(y!==void 0){d.splice(f-1,3,y);continue}d[f++]="+"}f++}}function u(d,f){if(f==='""')return d;if(d==='""')return f;if(typeof d=="string")return f instanceof r||d[d.length-1]!=='"'?void 0:typeof f!="string"?`${d.slice(0,-1)}${f}"`:f[0]==='"'?d.slice(0,-1)+f.slice(1):void 0;if(typeof f=="string"&&f[0]==='"'&&!(d instanceof r))return`"${d}${f.slice(1)}`}function l(d,f){return f.emptyStr()?d:d.emptyStr()?f:o`${d}${f}`}t.strConcat=l;function h(d){return typeof d=="number"||typeof d=="boolean"||d===null?d:g(Array.isArray(d)?d.join(","):d)}function p(d){return new n(g(d))}t.stringify=p;function g(d){return JSON.stringify(d).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=g;function _(d){return typeof d=="string"&&t.IDENTIFIER.test(d)?new n(`.${d}`):s`[${d}]`}t.getProperty=_;function v(d){if(typeof d=="string"&&t.IDENTIFIER.test(d))return new n(`${d}`);throw new Error(`CodeGen: invalid export name: ${d}, use explicit $id name mapping`)}t.getEsmExportName=v;function m(d){return new n(d.toString())}t.regexpCode=m})(Di)),Di}var Mi={},Oo;function Po(){return Oo||(Oo=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=Dr();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class s{constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,this._parent=l}toName(u){return u instanceof e.Name?u:this.name(u)}name(u){return new e.Name(this._newName(u))}_newName(u){const l=this._names[u]||this._nameGroup(u);return`${u}${l.index++}`}_nameGroup(u){var l,h;if(!((h=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||h===void 0)&&h.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}t.Scope=s;class i extends e.Name{constructor(u,l){super(l),this.prefix=u}setValue(u,{property:l,itemIndex:h}){this.value=u,this.scopePath=(0,e._)`.${new e.Name(l)}[${h}]`}}t.ValueScopeName=i;const o=(0,e._)`\n`;class a extends s{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?o:e.nil}}get(){return this._scope}name(u){return new i(u,this._newName(u))}value(u,l){var h;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const p=this.toName(u),{prefix:g}=p,_=(h=l.key)!==null&&h!==void 0?h:l.ref;let v=this._values[g];if(v){const f=v.get(_);if(f)return f}else v=this._values[g]=new Map;v.set(_,p);const m=this._scope[g]||(this._scope[g]=[]),d=m.length;return m[d]=l.ref,p.setValue(l,{property:g,itemIndex:d}),p}getValue(u,l){const h=this._values[u];if(h)return h.get(l)}scopeRefs(u,l=this._values){return this._reduceValues(l,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,e._)`${u}${h.scopePath}`})}scopeCode(u=this._values,l,h){return this._reduceValues(u,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},l,h)}_reduceValues(u,l,h={},p){let g=e.nil;for(const _ in u){const v=u[_];if(!v)continue;const m=h[_]=h[_]||new Map;v.forEach(d=>{if(m.has(d))return;m.set(d,n.Started);let f=l(d);if(f){const y=this.opts.es5?t.varKinds.var:t.varKinds.const;g=(0,e._)`${g}${y} ${d} = ${f};${this.opts._n}`}else if(f=p?.(d))g=(0,e._)`${g}${f}${this.opts._n}`;else throw new r(d);m.set(d,n.Completed)})}return g}}t.ValueScope=a})(Mi)),Mi}var Ao;function ne(){return Ao||(Ao=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=Dr(),r=Po();var n=Dr();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}});var s=Po();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class i{optimizeNodes(){return this}optimizeNames(E,O){return this}}class o extends i{constructor(E,O,k){super(),this.varKind=E,this.name=O,this.rhs=k}render({es5:E,_n:O}){const k=E?r.varKinds.var:this.varKind,J=this.rhs===void 0?"":` = ${this.rhs}`;return`${k} ${this.name}${J};`+O}optimizeNames(E,O){if(E[this.name.str])return this.rhs&&(this.rhs=M(this.rhs,E,O)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends i{constructor(E,O,k){super(),this.lhs=E,this.rhs=O,this.sideEffects=k}render({_n:E}){return`${this.lhs} = ${this.rhs};`+E}optimizeNames(E,O){if(!(this.lhs instanceof e.Name&&!E[this.lhs.str]&&!this.sideEffects))return this.rhs=M(this.rhs,E,O),this}get names(){const E=this.lhs instanceof e.Name?{}:{...this.lhs.names};return C(E,this.rhs)}}class c extends a{constructor(E,O,k,J){super(E,k,J),this.op=O}render({_n:E}){return`${this.lhs} ${this.op}= ${this.rhs};`+E}}class u extends i{constructor(E){super(),this.label=E,this.names={}}render({_n:E}){return`${this.label}:`+E}}class l extends i{constructor(E){super(),this.label=E,this.names={}}render({_n:E}){return`break${this.label?` ${this.label}`:""};`+E}}class h extends i{constructor(E){super(),this.error=E}render({_n:E}){return`throw ${this.error};`+E}get names(){return this.error.names}}class p extends i{constructor(E){super(),this.code=E}render({_n:E}){return`${this.code};`+E}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(E,O){return this.code=M(this.code,E,O),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class g extends i{constructor(E=[]){super(),this.nodes=E}render(E){return this.nodes.reduce((O,k)=>O+k.render(E),"")}optimizeNodes(){const{nodes:E}=this;let O=E.length;for(;O--;){const k=E[O].optimizeNodes();Array.isArray(k)?E.splice(O,1,...k):k?E[O]=k:E.splice(O,1)}return E.length>0?this:void 0}optimizeNames(E,O){const{nodes:k}=this;let J=k.length;for(;J--;){const Y=k[J];Y.optimizeNames(E,O)||(U(E,Y.names),k.splice(J,1))}return k.length>0?this:void 0}get names(){return this.nodes.reduce((E,O)=>K(E,O.names),{})}}class _ extends g{render(E){return"{"+E._n+super.render(E)+"}"+E._n}}class v extends g{}class m extends _{}m.kind="else";class d extends _{constructor(E,O){super(O),this.condition=E}render(E){let O=`if(${this.condition})`+super.render(E);return this.else&&(O+="else "+this.else.render(E)),O}optimizeNodes(){super.optimizeNodes();const E=this.condition;if(E===!0)return this.nodes;let O=this.else;if(O){const k=O.optimizeNodes();O=this.else=Array.isArray(k)?new m(k):k}if(O)return E===!1?O instanceof d?O:O.nodes:this.nodes.length?this:new d(H(E),O instanceof d?[O]:O.nodes);if(!(E===!1||!this.nodes.length))return this}optimizeNames(E,O){var k;if(this.else=(k=this.else)===null||k===void 0?void 0:k.optimizeNames(E,O),!!(super.optimizeNames(E,O)||this.else))return this.condition=M(this.condition,E,O),this}get names(){const E=super.names;return C(E,this.condition),this.else&&K(E,this.else.names),E}}d.kind="if";class f extends _{}f.kind="for";class y extends f{constructor(E){super(),this.iteration=E}render(E){return`for(${this.iteration})`+super.render(E)}optimizeNames(E,O){if(super.optimizeNames(E,O))return this.iteration=M(this.iteration,E,O),this}get names(){return K(super.names,this.iteration.names)}}class b extends f{constructor(E,O,k,J){super(),this.varKind=E,this.name=O,this.from=k,this.to=J}render(E){const O=E.es5?r.varKinds.var:this.varKind,{name:k,from:J,to:Y}=this;return`for(${O} ${k}=${J}; ${k}<${Y}; ${k}++)`+super.render(E)}get names(){const E=C(super.names,this.from);return C(E,this.to)}}class $ extends f{constructor(E,O,k,J){super(),this.loop=E,this.varKind=O,this.name=k,this.iterable=J}render(E){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(E)}optimizeNames(E,O){if(super.optimizeNames(E,O))return this.iterable=M(this.iterable,E,O),this}get names(){return K(super.names,this.iterable.names)}}class w extends _{constructor(E,O,k){super(),this.name=E,this.args=O,this.async=k}render(E){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(E)}}w.kind="func";class S extends g{render(E){return"return "+super.render(E)}}S.kind="return";class I extends _{render(E){let O="try"+super.render(E);return this.catch&&(O+=this.catch.render(E)),this.finally&&(O+=this.finally.render(E)),O}optimizeNodes(){var E,O;return super.optimizeNodes(),(E=this.catch)===null||E===void 0||E.optimizeNodes(),(O=this.finally)===null||O===void 0||O.optimizeNodes(),this}optimizeNames(E,O){var k,J;return super.optimizeNames(E,O),(k=this.catch)===null||k===void 0||k.optimizeNames(E,O),(J=this.finally)===null||J===void 0||J.optimizeNames(E,O),this}get names(){const E=super.names;return this.catch&&K(E,this.catch.names),this.finally&&K(E,this.finally.names),E}}class A extends _{constructor(E){super(),this.error=E}render(E){return`catch(${this.error})`+super.render(E)}}A.kind="catch";class q extends _{render(E){return"finally"+super.render(E)}}q.kind="finally";class F{constructor(E,O={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...O,_n:O.lines?`
22
- `:""},this._extScope=E,this._scope=new r.Scope({parent:E}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(E){return this._scope.name(E)}scopeName(E){return this._extScope.name(E)}scopeValue(E,O){const k=this._extScope.value(E,O);return(this._values[k.prefix]||(this._values[k.prefix]=new Set)).add(k),k}getScopeValue(E,O){return this._extScope.getValue(E,O)}scopeRefs(E){return this._extScope.scopeRefs(E,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(E,O,k,J){const Y=this._scope.toName(O);return k!==void 0&&J&&(this._constants[Y.str]=k),this._leafNode(new o(E,Y,k)),Y}const(E,O,k){return this._def(r.varKinds.const,E,O,k)}let(E,O,k){return this._def(r.varKinds.let,E,O,k)}var(E,O,k){return this._def(r.varKinds.var,E,O,k)}assign(E,O,k){return this._leafNode(new a(E,O,k))}add(E,O){return this._leafNode(new c(E,t.operators.ADD,O))}code(E){return typeof E=="function"?E():E!==e.nil&&this._leafNode(new p(E)),this}object(...E){const O=["{"];for(const[k,J]of E)O.length>1&&O.push(","),O.push(k),(k!==J||this.opts.es5)&&(O.push(":"),(0,e.addCodeArg)(O,J));return O.push("}"),new e._Code(O)}if(E,O,k){if(this._blockNode(new d(E)),O&&k)this.code(O).else().code(k).endIf();else if(O)this.code(O).endIf();else if(k)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(E){return this._elseNode(new d(E))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(d,m)}_for(E,O){return this._blockNode(E),O&&this.code(O).endFor(),this}for(E,O){return this._for(new y(E),O)}forRange(E,O,k,J,Y=this.opts.es5?r.varKinds.var:r.varKinds.let){const L=this._scope.toName(E);return this._for(new b(Y,L,O,k),()=>J(L))}forOf(E,O,k,J=r.varKinds.const){const Y=this._scope.toName(E);if(this.opts.es5){const L=O instanceof e.Name?O:this.var("_arr",O);return this.forRange("_i",0,(0,e._)`${L}.length`,B=>{this.var(Y,(0,e._)`${L}[${B}]`),k(Y)})}return this._for(new $("of",J,Y,O),()=>k(Y))}forIn(E,O,k,J=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(E,(0,e._)`Object.keys(${O})`,k);const Y=this._scope.toName(E);return this._for(new $("in",J,Y,O),()=>k(Y))}endFor(){return this._endBlockNode(f)}label(E){return this._leafNode(new u(E))}break(E){return this._leafNode(new l(E))}return(E){const O=new S;if(this._blockNode(O),this.code(E),O.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(E,O,k){if(!O&&!k)throw new Error('CodeGen: "try" without "catch" and "finally"');const J=new I;if(this._blockNode(J),this.code(E),O){const Y=this.name("e");this._currNode=J.catch=new A(Y),O(Y)}return k&&(this._currNode=J.finally=new q,this.code(k)),this._endBlockNode(A,q)}throw(E){return this._leafNode(new h(E))}block(E,O){return this._blockStarts.push(this._nodes.length),E&&this.code(E).endBlock(O),this}endBlock(E){const O=this._blockStarts.pop();if(O===void 0)throw new Error("CodeGen: not in self-balancing block");const k=this._nodes.length-O;if(k<0||E!==void 0&&k!==E)throw new Error(`CodeGen: wrong number of nodes: ${k} vs ${E} expected`);return this._nodes.length=O,this}func(E,O=e.nil,k,J){return this._blockNode(new w(E,O,k)),J&&this.code(J).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(E=1){for(;E-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(E){return this._currNode.nodes.push(E),this}_blockNode(E){this._currNode.nodes.push(E),this._nodes.push(E)}_endBlockNode(E,O){const k=this._currNode;if(k instanceof E||O&&k instanceof O)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${O?`${E.kind}/${O.kind}`:E.kind}"`)}_elseNode(E){const O=this._currNode;if(!(O instanceof d))throw new Error('CodeGen: "else" without "if"');return this._currNode=O.else=E,this}get _root(){return this._nodes[0]}get _currNode(){const E=this._nodes;return E[E.length-1]}set _currNode(E){const O=this._nodes;O[O.length-1]=E}}t.CodeGen=F;function K(T,E){for(const O in E)T[O]=(T[O]||0)+(E[O]||0);return T}function C(T,E){return E instanceof e._CodeOrName?K(T,E.names):T}function M(T,E,O){if(T instanceof e.Name)return k(T);if(!J(T))return T;return new e._Code(T._items.reduce((Y,L)=>(L instanceof e.Name&&(L=k(L)),L instanceof e._Code?Y.push(...L._items):Y.push(L),Y),[]));function k(Y){const L=O[Y.str];return L===void 0||E[Y.str]!==1?Y:(delete E[Y.str],L)}function J(Y){return Y instanceof e._Code&&Y._items.some(L=>L instanceof e.Name&&E[L.str]===1&&O[L.str]!==void 0)}}function U(T,E){for(const O in E)T[O]=(T[O]||0)-(E[O]||0)}function H(T){return typeof T=="boolean"||typeof T=="number"||T===null?!T:(0,e._)`!${x(T)}`}t.not=H;const ee=N(t.operators.AND);function W(...T){return T.reduce(ee)}t.and=W;const Q=N(t.operators.OR);function V(...T){return T.reduce(Q)}t.or=V;function N(T){return(E,O)=>E===e.nil?O:O===e.nil?E:(0,e._)`${x(E)} ${T} ${x(O)}`}function x(T){return T instanceof e.Name?T:(0,e._)`(${T})`}})(Fi)),Fi}var re={},Io;function oe(){if(Io)return re;Io=1,Object.defineProperty(re,"__esModule",{value:!0}),re.checkStrictMode=re.getErrorPath=re.Type=re.useFunc=re.setEvaluated=re.evaluatedPropsToName=re.mergeEvaluated=re.eachItem=re.unescapeJsonPointer=re.escapeJsonPointer=re.escapeFragment=re.unescapeFragment=re.schemaRefOrVal=re.schemaHasRulesButRef=re.schemaHasRules=re.checkUnknownRules=re.alwaysValidSchema=re.toHash=void 0;const t=ne(),e=Dr();function r($){const w={};for(const S of $)w[S]=!0;return w}re.toHash=r;function n($,w){return typeof w=="boolean"?w:Object.keys(w).length===0?!0:(s($,w),!i(w,$.self.RULES.all))}re.alwaysValidSchema=n;function s($,w=$.schema){const{opts:S,self:I}=$;if(!S.strictSchema||typeof w=="boolean")return;const A=I.RULES.keywords;for(const q in w)A[q]||b($,`unknown keyword: "${q}"`)}re.checkUnknownRules=s;function i($,w){if(typeof $=="boolean")return!$;for(const S in $)if(w[S])return!0;return!1}re.schemaHasRules=i;function o($,w){if(typeof $=="boolean")return!$;for(const S in $)if(S!=="$ref"&&w.all[S])return!0;return!1}re.schemaHasRulesButRef=o;function a({topSchemaRef:$,schemaPath:w},S,I,A){if(!A){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,t._)`${S}`}return(0,t._)`${$}${w}${(0,t.getProperty)(I)}`}re.schemaRefOrVal=a;function c($){return h(decodeURIComponent($))}re.unescapeFragment=c;function u($){return encodeURIComponent(l($))}re.escapeFragment=u;function l($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}re.escapeJsonPointer=l;function h($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}re.unescapeJsonPointer=h;function p($,w){if(Array.isArray($))for(const S of $)w(S);else w($)}re.eachItem=p;function g({mergeNames:$,mergeToName:w,mergeValues:S,resultToName:I}){return(A,q,F,K)=>{const C=F===void 0?q:F instanceof t.Name?(q instanceof t.Name?$(A,q,F):w(A,q,F),F):q instanceof t.Name?(w(A,F,q),q):S(q,F);return K===t.Name&&!(C instanceof t.Name)?I(A,C):C}}re.mergeEvaluated={props:g({mergeNames:($,w,S)=>$.if((0,t._)`${S} !== true && ${w} !== undefined`,()=>{$.if((0,t._)`${w} === true`,()=>$.assign(S,!0),()=>$.assign(S,(0,t._)`${S} || {}`).code((0,t._)`Object.assign(${S}, ${w})`))}),mergeToName:($,w,S)=>$.if((0,t._)`${S} !== true`,()=>{w===!0?$.assign(S,!0):($.assign(S,(0,t._)`${S} || {}`),v($,S,w))}),mergeValues:($,w)=>$===!0?!0:{...$,...w},resultToName:_}),items:g({mergeNames:($,w,S)=>$.if((0,t._)`${S} !== true && ${w} !== undefined`,()=>$.assign(S,(0,t._)`${w} === true ? true : ${S} > ${w} ? ${S} : ${w}`)),mergeToName:($,w,S)=>$.if((0,t._)`${S} !== true`,()=>$.assign(S,w===!0?!0:(0,t._)`${S} > ${w} ? ${S} : ${w}`)),mergeValues:($,w)=>$===!0?!0:Math.max($,w),resultToName:($,w)=>$.var("items",w)})};function _($,w){if(w===!0)return $.var("props",!0);const S=$.var("props",(0,t._)`{}`);return w!==void 0&&v($,S,w),S}re.evaluatedPropsToName=_;function v($,w,S){Object.keys(S).forEach(I=>$.assign((0,t._)`${w}${(0,t.getProperty)(I)}`,!0))}re.setEvaluated=v;const m={};function d($,w){return $.scopeValue("func",{ref:w,code:m[w.code]||(m[w.code]=new e._Code(w.code))})}re.useFunc=d;var f;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(f||(re.Type=f={}));function y($,w,S){if($ instanceof t.Name){const I=w===f.Num;return S?I?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:I?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,t.getProperty)($).toString():"/"+l($)}re.getErrorPath=y;function b($,w,S=$.opts.strictSchema){if(S){if(w=`strict mode: ${w}`,S===!0)throw new Error(w);$.self.logger.warn(w)}}return re.checkStrictMode=b,re}var zt={},Co;function et(){if(Co)return zt;Co=1,Object.defineProperty(zt,"__esModule",{value:!0});const t=ne(),e={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return zt.default=e,zt}var Ro;function Gr(){return Ro||(Ro=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=ne(),r=oe(),n=et();t.keywordError={message:({keyword:m})=>(0,e.str)`must pass "${m}" keyword validation`},t.keyword$DataError={message:({keyword:m,schemaType:d})=>d?(0,e.str)`"${m}" keyword must be ${d} ($data)`:(0,e.str)`"${m}" keyword is invalid ($data)`};function s(m,d=t.keywordError,f,y){const{it:b}=m,{gen:$,compositeRule:w,allErrors:S}=b,I=h(m,d,f);y??(w||S)?c($,I):u(b,(0,e._)`[${I}]`)}t.reportError=s;function i(m,d=t.keywordError,f){const{it:y}=m,{gen:b,compositeRule:$,allErrors:w}=y,S=h(m,d,f);c(b,S),$||w||u(y,n.default.vErrors)}t.reportExtraError=i;function o(m,d){m.assign(n.default.errors,d),m.if((0,e._)`${n.default.vErrors} !== null`,()=>m.if(d,()=>m.assign((0,e._)`${n.default.vErrors}.length`,d),()=>m.assign(n.default.vErrors,null)))}t.resetErrorsCount=o;function a({gen:m,keyword:d,schemaValue:f,data:y,errsCount:b,it:$}){if(b===void 0)throw new Error("ajv implementation error");const w=m.name("err");m.forRange("i",b,n.default.errors,S=>{m.const(w,(0,e._)`${n.default.vErrors}[${S}]`),m.if((0,e._)`${w}.instancePath === undefined`,()=>m.assign((0,e._)`${w}.instancePath`,(0,e.strConcat)(n.default.instancePath,$.errorPath))),m.assign((0,e._)`${w}.schemaPath`,(0,e.str)`${$.errSchemaPath}/${d}`),$.opts.verbose&&(m.assign((0,e._)`${w}.schema`,f),m.assign((0,e._)`${w}.data`,y))})}t.extendErrors=a;function c(m,d){const f=m.const("err",d);m.if((0,e._)`${n.default.vErrors} === null`,()=>m.assign(n.default.vErrors,(0,e._)`[${f}]`),(0,e._)`${n.default.vErrors}.push(${f})`),m.code((0,e._)`${n.default.errors}++`)}function u(m,d){const{gen:f,validateName:y,schemaEnv:b}=m;b.$async?f.throw((0,e._)`new ${m.ValidationError}(${d})`):(f.assign((0,e._)`${y}.errors`,d),f.return(!1))}const l={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function h(m,d,f){const{createErrors:y}=m.it;return y===!1?(0,e._)`{}`:p(m,d,f)}function p(m,d,f={}){const{gen:y,it:b}=m,$=[g(b,f),_(m,f)];return v(m,d,$),y.object(...$)}function g({errorPath:m},{instancePath:d}){const f=d?(0,e.str)`${m}${(0,r.getErrorPath)(d,r.Type.Str)}`:m;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,f)]}function _({keyword:m,it:{errSchemaPath:d}},{schemaPath:f,parentSchema:y}){let b=y?d:(0,e.str)`${d}/${m}`;return f&&(b=(0,e.str)`${b}${(0,r.getErrorPath)(f,r.Type.Str)}`),[l.schemaPath,b]}function v(m,{params:d,message:f},y){const{keyword:b,data:$,schemaValue:w,it:S}=m,{opts:I,propertyName:A,topSchemaRef:q,schemaPath:F}=S;y.push([l.keyword,b],[l.params,typeof d=="function"?d(m):d||(0,e._)`{}`]),I.messages&&y.push([l.message,typeof f=="function"?f(m):f]),I.verbose&&y.push([l.schema,w],[l.parentSchema,(0,e._)`${q}${F}`],[n.default.data,$]),A&&y.push([l.propertyName,A])}})(ki)),ki}var No;function Vp(){if(No)return nt;No=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.boolOrEmptySchema=nt.topBoolOrEmptySchema=void 0;const t=Gr(),e=ne(),r=et(),n={message:"boolean schema is false"};function s(a){const{gen:c,schema:u,validateName:l}=a;u===!1?o(a,!1):typeof u=="object"&&u.$async===!0?c.return(r.default.data):(c.assign((0,e._)`${l}.errors`,null),c.return(!0))}nt.topBoolOrEmptySchema=s;function i(a,c){const{gen:u,schema:l}=a;l===!1?(u.var(c,!1),o(a)):u.var(c,!0)}nt.boolOrEmptySchema=i;function o(a,c){const{gen:u,data:l}=a,h={gen:u,keyword:"false schema",data:l,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,t.reportError)(h,n,void 0,c)}return nt}var $e={},it={},qo;function el(){if(qo)return it;qo=1,Object.defineProperty(it,"__esModule",{value:!0}),it.getRules=it.isJSONType=void 0;const t=["string","number","integer","boolean","null","object","array"],e=new Set(t);function r(s){return typeof s=="string"&&e.has(s)}it.isJSONType=r;function n(){const s={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...s,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},s.number,s.string,s.array,s.object],post:{rules:[]},all:{},keywords:{}}}return it.getRules=n,it}var Ue={},jo;function tl(){if(jo)return Ue;jo=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.shouldUseRule=Ue.shouldUseGroup=Ue.schemaHasRulesForType=void 0;function t({schema:n,self:s},i){const o=s.RULES.types[i];return o&&o!==!0&&e(n,o)}Ue.schemaHasRulesForType=t;function e(n,s){return s.rules.some(i=>r(n,i))}Ue.shouldUseGroup=e;function r(n,s){var i;return n[s.keyword]!==void 0||((i=s.definition.implements)===null||i===void 0?void 0:i.some(o=>n[o]!==void 0))}return Ue.shouldUseRule=r,Ue}var To;function Mr(){if(To)return $e;To=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.reportTypeError=$e.checkDataTypes=$e.checkDataType=$e.coerceAndCheckDataType=$e.getJSONTypes=$e.getSchemaTypes=$e.DataType=void 0;const t=el(),e=tl(),r=Gr(),n=ne(),s=oe();var i;(function(f){f[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong"})(i||($e.DataType=i={}));function o(f){const y=a(f.type);if(y.includes("null")){if(f.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!y.length&&f.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');f.nullable===!0&&y.push("null")}return y}$e.getSchemaTypes=o;function a(f){const y=Array.isArray(f)?f:f?[f]:[];if(y.every(t.isJSONType))return y;throw new Error("type must be JSONType or JSONType[]: "+y.join(","))}$e.getJSONTypes=a;function c(f,y){const{gen:b,data:$,opts:w}=f,S=l(y,w.coerceTypes),I=y.length>0&&!(S.length===0&&y.length===1&&(0,e.schemaHasRulesForType)(f,y[0]));if(I){const A=_(y,$,w.strictNumbers,i.Wrong);b.if(A,()=>{S.length?h(f,y,S):m(f)})}return I}$e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function l(f,y){return y?f.filter(b=>u.has(b)||y==="array"&&b==="array"):[]}function h(f,y,b){const{gen:$,data:w,opts:S}=f,I=$.let("dataType",(0,n._)`typeof ${w}`),A=$.let("coerced",(0,n._)`undefined`);S.coerceTypes==="array"&&$.if((0,n._)`${I} == 'object' && Array.isArray(${w}) && ${w}.length == 1`,()=>$.assign(w,(0,n._)`${w}[0]`).assign(I,(0,n._)`typeof ${w}`).if(_(y,w,S.strictNumbers),()=>$.assign(A,w))),$.if((0,n._)`${A} !== undefined`);for(const F of b)(u.has(F)||F==="array"&&S.coerceTypes==="array")&&q(F);$.else(),m(f),$.endIf(),$.if((0,n._)`${A} !== undefined`,()=>{$.assign(w,A),p(f,A)});function q(F){switch(F){case"string":$.elseIf((0,n._)`${I} == "number" || ${I} == "boolean"`).assign(A,(0,n._)`"" + ${w}`).elseIf((0,n._)`${w} === null`).assign(A,(0,n._)`""`);return;case"number":$.elseIf((0,n._)`${I} == "boolean" || ${w} === null
21
+ `).replace(Kh,"").replace(nm," ")})(b),$)}})(g),v=(function(d,f){return function y(b,$={}){if(Array.isArray(b)){const w=$.key,S=[];let I=!1;for(let A=0;A<b.length;A++){$.key=A;const q=y(b[A],$),F=$o(q);F&&I?S[S.length-1]+=q:q!==null&&S.push(q),I=F}return $.key=w,S}return(function(w,S,I){const A=d[w.type].l;return f?f(()=>A(w,S,I),w,S,I):A(w,S,I)})(b,y,$)}})(g,e.renderRule),m=u(t);return h.length?c("div",null,m,c("footer",{key:"footer"},h.map(function(d){return c("div",{id:r(d.identifier,Et),key:d.identifier},d.identifier,v(_(d.footnote,{inline:!0})))}))):m}const Wr=t=>{let{children:e,options:r}=t,n=(function(s,i){if(s==null)return{};var o,a,c={},u=Object.keys(s);for(a=0;a<u.length;a++)i.indexOf(o=u[a])>=0||(c[o]=s[o]);return c})(t,Ch);return te.cloneElement(jm(e??"",r),n)};function Tm(t,e){return t==null?!0:au(t,e)}class km extends te.Component{state={wasPropertyKeyModified:!1,additionalProperties:{}};isRequired(e){const{schema:r}=this.props;return Array.isArray(r.required)&&r.required.indexOf(e)!==-1}onPropertyChange=(e,r=!1)=>(n,s,i)=>{const{formData:o,onChange:a,errorSchema:c}=this.props;n===void 0&&r&&(n="");const u={...o,[e]:n};a(u,c&&c&&{...c,[e]:s},i)};onDropPropertyClick=e=>r=>{r.preventDefault();const{onChange:n,formData:s}=this.props,i={...s};Tm(i,e),n(i)};getAvailableKey=(e,r)=>{const{uiSchema:n,registry:s}=this.props,{duplicateKeySuffixSeparator:i="-"}=se(n,s.globalUiOptions);let o=0,a=e;for(;Ee(r,a);)a=`${e}${i}${++o}`;return a};onKeyChange=e=>(r,n)=>{if(e===r)return;const{formData:s,onChange:i,errorSchema:o}=this.props;r=this.getAvailableKey(r,s);const a={...s},c={[e]:r},u=Object.keys(a).map(h=>({[c[h]||h]:a[h]})),l=Object.assign({},...u);this.setState({wasPropertyKeyModified:!0}),i(l,o&&o&&{...o,[r]:n})};getDefaultValue(e){const{registry:{translateString:r}}=this.props;switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return r(he.NewStringDefault)}}handleAddClick=e=>()=>{if(!e.additionalProperties)return;const{formData:r,onChange:n,registry:s}=this.props,i={...r};let o,a,c;if(Ie(e.additionalProperties)){o=e.additionalProperties.type,a=e.additionalProperties.const,c=e.additionalProperties.default;let h=e.additionalProperties;if(be in h){const{schemaUtils:p}=s;h=p.retrieveSchema({$ref:h[be]},r),o=h.type,a=h.const,c=h.default}!o&&(je in h||Ce in h)&&(o="object")}const u=this.getAvailableKey("newKey",i),l=a??c??this.getDefaultValue(o);we(i,u,l),n(i)};render(){const{schema:e,uiSchema:r={},formData:n,errorSchema:s,idSchema:i,name:o,required:a=!1,disabled:c,readonly:u,hideError:l,idPrefix:h,idSeparator:p,onBlur:g,onFocus:_,registry:v,title:m}=this.props,{fields:d,formContext:f,schemaUtils:y,translateString:b,globalUiOptions:$}=v,{SchemaField:w}=d,S=y.retrieveSchema(e,n),I=se(r,$),{properties:A={}}=S,q=I.title??S.title??m??o,F=I.description??S.description;let K;try{const U=Object.keys(A);K=hh(U,I.order)}catch(U){return j.jsxs("div",{children:[j.jsx("p",{className:"config-error",style:{color:"red"},children:j.jsx(Wr,{options:{disableParsingRawHTML:!0},children:b(he.InvalidObjectField,[o||"root",U.message])})}),j.jsx("pre",{children:JSON.stringify(S)})]})}const C=ue("ObjectFieldTemplate",v,I),M={title:I.label===!1?"":q,description:I.label===!1?void 0:F,properties:K.map(U=>{const H=Ee(S,[ve,U,Dt]),ee=H?r.additionalProperties:r[U],W=se(ee).widget==="hidden",Q=X(i,[U],{});return{content:j.jsx(w,{name:U,required:this.isRequired(U),schema:X(S,[ve,U],{}),uiSchema:ee,errorSchema:X(s,U),idSchema:Q,idPrefix:h,idSeparator:p,formData:X(n,U),formContext:f,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(U),onChange:this.onPropertyChange(U,H),onBlur:g,onFocus:_,registry:v,disabled:c,readonly:u,hideError:l,onDropPropertyClick:this.onDropPropertyClick},U),name:U,readonly:u,disabled:c,required:a,hidden:W}}),readonly:u,disabled:c,required:a,idSchema:i,uiSchema:r,errorSchema:s,schema:S,formData:n,formContext:f,registry:v};return j.jsx(C,{...M,onAddClick:this.handleAddClick})}}const Fm={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Dm(t,e,r,n){const s=e.field,{fields:i,translateString:o}=n;if(typeof s=="function")return s;if(typeof s=="string"&&s in i)return i[s];const a=Be(t),c=Array.isArray(a)?a[0]:a||"",u=t.$id;let l=Fm[c];return u&&u in i&&(l=u),!l&&(t.anyOf||t.oneOf)?()=>null:l in i?i[l]:()=>{const h=ue("UnsupportedFieldTemplate",n,e);return j.jsx(h,{schema:t,idSchema:r,reason:o(he.UnknownFieldType,[String(t.type)]),registry:n})}}function Mm(t){const{schema:e,idSchema:r,uiSchema:n,formData:s,errorSchema:i,idPrefix:o,idSeparator:a,name:c,onChange:u,onKeyChange:l,onDropPropertyClick:h,required:p,registry:g,wasPropertyKeyModified:_=!1}=t,{formContext:v,schemaUtils:m,globalUiOptions:d}=g,f=se(n,d),y=ue("FieldTemplate",g,f),b=ue("DescriptionFieldTemplate",g,f),$=ue("FieldHelpTemplate",g,f),w=ue("FieldErrorTemplate",g,f),S=m.retrieveSchema(e,s),I=r[Je],A=Le(m.toIdSchema(S,I,s,o,a),r),q=te.useCallback((G,Z,le)=>u(G,Z,le||I),[I,u]),F=Dm(S,f,A,g),K=!!(f.disabled??t.disabled),C=!!(f.readonly??(t.readonly||t.schema.readOnly||S.readOnly)),M=f.hideError,U=M===void 0?t.hideError:!!M,H=!!(f.autofocus??t.autofocus);if(Object.keys(S).length===0)return null;const ee=m.getDisplayLabel(S,n,d),{__errors:W,...Q}=i||{},V=Fr(n,["ui:classNames","classNames","ui:style"]);At in V&&(V[At]=Fr(V[At],["classNames","style"]));const N=j.jsx(F,{...t,onChange:q,idSchema:A,schema:S,uiSchema:V,disabled:K,readonly:C,hideError:U,autofocus:H,errorSchema:Q,formContext:v,rawErrors:W}),x=A[Je];let T;_?T=c:T=Dt in S?c:f.title||t.schema.title||S.title||t.title||c;const E=f.description||t.schema.description||S.description||"",O=f.enableMarkdownInDescription?j.jsx(Wr,{options:{disableParsingRawHTML:!0},children:E}):E,k=f.help,Y=f.widget==="hidden",J=["form-group","field",`field-${Be(S)}`];!U&&W&&W.length>0&&J.push("field-error has-error has-danger"),n?.classNames&&J.push(n.classNames),f.classNames&&J.push(f.classNames);const L=j.jsx($,{help:k,idSchema:A,schema:S,uiSchema:n,hasErrors:!U&&W&&W.length>0,registry:g}),B=U||(S.anyOf||S.oneOf)&&!m.isSelect(S)?void 0:j.jsx(w,{errors:W,errorSchema:i,idSchema:A,schema:S,uiSchema:n,registry:g}),P={description:j.jsx(b,{id:xt(x),description:O,schema:S,uiSchema:n,registry:g}),rawDescription:E,help:L,rawHelp:typeof k=="string"?k:void 0,errors:B,rawErrors:U?void 0:W,id:x,label:T,hidden:Y,onChange:u,onKeyChange:l,onDropPropertyClick:h,required:p,disabled:K,readonly:C,hideError:U,displayLabel:ee,classNames:J.join(" ").trim(),style:f.style,formContext:v,formData:s,schema:S,uiSchema:n,registry:g},R=g.fields.AnyOfField,D=g.fields.OneOfField,z=n?.["ui:field"]&&n?.["ui:fieldReplacesAnyOrOneOf"]===!0;return j.jsx(y,{...P,children:j.jsxs(j.Fragment,{children:[N,S.anyOf&&!z&&!m.isSelect(S)&&j.jsx(R,{name:c,disabled:K,readonly:C,hideError:U,errorSchema:i,formData:s,formContext:v,idPrefix:o,idSchema:A,idSeparator:a,onBlur:t.onBlur,onChange:t.onChange,onFocus:t.onFocus,options:S.anyOf.map(G=>m.retrieveSchema(Ie(G)?G:{},s)),registry:g,required:p,schema:S,uiSchema:n}),S.oneOf&&!z&&!m.isSelect(S)&&j.jsx(D,{name:c,disabled:K,readonly:C,hideError:U,errorSchema:i,formData:s,formContext:v,idPrefix:o,idSchema:A,idSeparator:a,onBlur:t.onBlur,onChange:t.onChange,onFocus:t.onFocus,options:S.oneOf.map(G=>m.retrieveSchema(Ie(G)?G:{},s)),registry:g,required:p,schema:S,uiSchema:n})]})})}class xm extends te.Component{shouldComponentUpdate(e){return!pe(this.props,e)}render(){return j.jsx(Mm,{...this.props})}}function Um(t){const{schema:e,name:r,uiSchema:n,idSchema:s,formData:i,required:o,disabled:a=!1,readonly:c=!1,autofocus:u=!1,onChange:l,onBlur:h,onFocus:p,registry:g,rawErrors:_,hideError:v}=t,{title:m,format:d}=e,{widgets:f,formContext:y,schemaUtils:b,globalUiOptions:$}=g,w=b.isSelect(e)?Tt(e,n):void 0;let S=w?"select":"text";d&&lh(e,d,f)&&(S=d);const{widget:I=S,placeholder:A="",title:q,...F}=se(n),K=b.getDisplayLabel(e,n,$),C=q??m??r,M=Ke(e,I,f);return j.jsx(M,{options:{...F,enumOptions:w},schema:e,uiSchema:n,id:s.$id,name:r,label:C,hideLabel:!K,hideError:v,value:i,onChange:l,onBlur:h,onFocus:p,required:o,disabled:a,readonly:c,formContext:y,autofocus:u,registry:g,placeholder:A,rawErrors:_})}function Vm(t){const{formData:e,onChange:r}=t;return te.useEffect(()=>{e===void 0&&r(null)},[e,r]),null}function Lm(){return{AnyOfField:co,ArrayField:Eh,BooleanField:Oh,NumberField:Ih,ObjectField:km,OneOfField:co,SchemaField:xm,StringField:Um,NullField:Vm}}function Km(t){const{idSchema:e,description:r,registry:n,schema:s,uiSchema:i}=t,o=se(i,n.globalUiOptions),{label:a=!0}=o;if(!r||!a)return null;const c=ue("DescriptionFieldTemplate",n,o);return j.jsx(c,{id:xt(e),description:r,schema:s,uiSchema:i,registry:n})}function zm(t){const{children:e,className:r,disabled:n,hasToolbar:s,hasMoveDown:i,hasMoveUp:o,hasRemove:a,hasCopy:c,index:u,onCopyIndexClick:l,onDropIndexClick:h,onReorderClick:p,readonly:g,registry:_,uiSchema:v}=t,{CopyButton:m,MoveDownButton:d,MoveUpButton:f,RemoveButton:y}=_.templates.ButtonTemplates,b={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return j.jsxs("div",{className:r,children:[j.jsx("div",{className:s?"col-xs-9":"col-xs-12",children:e}),s&&j.jsx("div",{className:"col-xs-3 array-item-toolbox",children:j.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(o||i)&&j.jsx(f,{style:b,disabled:n||g||!o,onClick:p(u,u-1),uiSchema:v,registry:_}),(o||i)&&j.jsx(d,{style:b,disabled:n||g||!i,onClick:p(u,u+1),uiSchema:v,registry:_}),c&&j.jsx(m,{style:b,disabled:n||g,onClick:l(u),uiSchema:v,registry:_}),a&&j.jsx(y,{style:b,disabled:n||g,onClick:h(u),uiSchema:v,registry:_})]})})]})}function Bm(t){const{canAdd:e,className:r,disabled:n,idSchema:s,uiSchema:i,items:o,onAddClick:a,readonly:c,registry:u,required:l,schema:h,title:p}=t,g=se(i),_=ue("ArrayFieldDescriptionTemplate",u,g),v=ue("ArrayFieldItemTemplate",u,g),m=ue("ArrayFieldTitleTemplate",u,g),{ButtonTemplates:{AddButton:d}}=u.templates;return j.jsxs("fieldset",{className:r,id:s.$id,children:[j.jsx(m,{idSchema:s,title:g.title||p,required:l,schema:h,uiSchema:i,registry:u}),j.jsx(_,{idSchema:s,description:g.description||h.description,schema:h,uiSchema:i,registry:u}),j.jsx("div",{className:"row array-item-list",children:o&&o.map(({key:f,...y})=>j.jsx(v,{...y},f))}),e&&j.jsx(d,{className:"array-item-add",onClick:a,disabled:n||c,uiSchema:i,registry:u})]})}function Wm(t){const{idSchema:e,title:r,schema:n,uiSchema:s,required:i,registry:o}=t,a=se(s,o.globalUiOptions),{label:c=!0}=a;if(!r||!c)return null;const u=ue("TitleFieldTemplate",o,a);return j.jsx(u,{id:Vu(e),title:r,required:i,schema:n,uiSchema:s,registry:o})}function Gm(t){const{id:e,name:r,value:n,readonly:s,disabled:i,autofocus:o,onBlur:a,onFocus:c,onChange:u,onChangeOverride:l,options:h,schema:p,uiSchema:g,formContext:_,registry:v,rawErrors:m,type:d,hideLabel:f,hideError:y,...b}=t;if(!e)throw console.log("No id for",t),new Error(`no id for props ${JSON.stringify(t)}`);const $={...b,...rh(p,d,h)};let w;$.type==="number"||$.type==="integer"?w=n||n===0?n:"":w=n??"";const S=te.useCallback(({target:{value:q}})=>u(q===""?h.emptyValue:q),[u,h]),I=te.useCallback(({target:q})=>a(e,q&&q.value),[a,e]),A=te.useCallback(({target:q})=>c(e,q&&q.value),[c,e]);return j.jsxs(j.Fragment,{children:[j.jsx("input",{id:e,name:e,className:"form-control",readOnly:s,disabled:i,autoFocus:o,value:w,...$,list:p.examples?Hi(e):void 0,onChange:l||S,onBlur:I,onFocus:A,"aria-describedby":ut(e,!!p.examples)}),Array.isArray(p.examples)&&j.jsx("datalist",{id:Hi(e),children:p.examples.concat(p.default&&!p.examples.includes(p.default)?[p.default]:[]).map(q=>j.jsx("option",{value:q},q))},`datalist_${e}`)]})}function Hm({uiSchema:t}){const{submitText:e,norender:r,props:n={}}=nh(t);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...n,className:`btn btn-info ${n.className||""}`,children:e})})}function Ut(t){const{iconType:e="default",icon:r,className:n,uiSchema:s,registry:i,...o}=t;return j.jsx("button",{type:"button",className:`btn btn-${e} ${n}`,...o,children:j.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function Ym(t){const{registry:{translateString:e}}=t;return j.jsx(Ut,{title:e(he.CopyButton),className:"array-item-copy",...t,icon:"copy"})}function Jm(t){const{registry:{translateString:e}}=t;return j.jsx(Ut,{title:e(he.MoveDownButton),className:"array-item-move-down",...t,icon:"arrow-down"})}function Zm(t){const{registry:{translateString:e}}=t;return j.jsx(Ut,{title:e(he.MoveUpButton),className:"array-item-move-up",...t,icon:"arrow-up"})}function Xm(t){const{registry:{translateString:e}}=t;return j.jsx(Ut,{title:e(he.RemoveButton),className:"array-item-remove",...t,iconType:"danger",icon:"remove"})}function Qm({className:t,onClick:e,disabled:r,registry:n}){const{translateString:s}=n;return j.jsx("div",{className:"row",children:j.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${t}`,children:j.jsx(Ut,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:s(he.AddButton),onClick:e,disabled:r,registry:n})})})}function ep(){return{SubmitButton:Hm,AddButton:Qm,CopyButton:Ym,MoveDownButton:Jm,MoveUpButton:Zm,RemoveButton:Xm}}function tp(t){const{id:e,description:r}=t;return r?typeof r=="string"?j.jsx("p",{id:e,className:"field-description",children:r}):j.jsx("div",{id:e,className:"field-description",children:r}):null}function rp({errors:t,registry:e}){const{translateString:r}=e;return j.jsxs("div",{className:"panel panel-danger errors",children:[j.jsx("div",{className:"panel-heading",children:j.jsx("h3",{className:"panel-title",children:r(he.ErrorsLabel)})}),j.jsx("ul",{className:"list-group",children:t.map((n,s)=>j.jsx("li",{className:"list-group-item text-danger",children:n.stack},s))})]})}const np="*";function Xu(t){const{label:e,required:r,id:n}=t;return e?j.jsxs("label",{className:"control-label",htmlFor:n,children:[e,r&&j.jsx("span",{className:"required",children:np})]}):null}function ip(t){const{id:e,label:r,children:n,errors:s,help:i,description:o,hidden:a,required:c,displayLabel:u,registry:l,uiSchema:h}=t,p=se(h),g=ue("WrapIfAdditionalTemplate",l,p);return a?j.jsx("div",{className:"hidden",children:n}):j.jsxs(g,{...t,children:[u&&j.jsx(Xu,{label:r,required:c,id:e}),u&&o?o:null,n,s,i]})}function sp(t){const{errors:e=[],idSchema:r}=t;if(e.length===0)return null;const n=xu(r);return j.jsx("div",{children:j.jsx("ul",{id:n,className:"error-detail bs-callout bs-callout-info",children:e.filter(s=>!!s).map((s,i)=>j.jsx("li",{className:"text-danger",children:s},i))})})}function ap(t){const{idSchema:e,help:r}=t;if(!r)return null;const n=Uu(e);return typeof r=="string"?j.jsx("p",{id:n,className:"help-block",children:r}):j.jsx("div",{id:n,className:"help-block",children:r})}function op(t){const{description:e,disabled:r,formData:n,idSchema:s,onAddClick:i,properties:o,readonly:a,registry:c,required:u,schema:l,title:h,uiSchema:p}=t,g=se(p),_=ue("TitleFieldTemplate",c,g),v=ue("DescriptionFieldTemplate",c,g),{ButtonTemplates:{AddButton:m}}=c.templates;return j.jsxs("fieldset",{id:s.$id,children:[h&&j.jsx(_,{id:Vu(s),title:h,required:u,schema:l,uiSchema:p,registry:c}),e&&j.jsx(v,{id:xt(s),description:e,schema:l,uiSchema:p,registry:c}),o.map(d=>d.content),od(l,p,n)&&j.jsx(m,{className:"object-property-expand",onClick:i(l),disabled:r||a,uiSchema:p,registry:c})]})}const cp="*";function up(t){const{id:e,title:r,required:n}=t;return j.jsxs("legend",{id:e,children:[r,n&&j.jsx("span",{className:"required",children:cp})]})}function lp(t){const{schema:e,idSchema:r,reason:n,registry:s}=t,{translateString:i}=s;let o=he.UnsupportedField;const a=[];return r&&r.$id&&(o=he.UnsupportedFieldWithId,a.push(r.$id)),n&&(o=o===he.UnsupportedField?he.UnsupportedFieldWithReason:he.UnsupportedFieldWithIdAndReason,a.push(n)),j.jsxs("div",{className:"unsupported-field",children:[j.jsx("p",{children:j.jsx(Wr,{options:{disableParsingRawHTML:!0},children:i(o,a)})}),e&&j.jsx("pre",{children:JSON.stringify(e,null,2)})]})}function dp(t){const{id:e,classNames:r,style:n,disabled:s,label:i,onKeyChange:o,onDropPropertyClick:a,readonly:c,required:u,schema:l,children:h,uiSchema:p,registry:g}=t,{templates:_,translateString:v}=g,{RemoveButton:m}=_.ButtonTemplates,d=v(he.KeyLabel,[i]);return Dt in l?j.jsx("div",{className:r,style:n,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col-xs-5 form-additional",children:j.jsxs("div",{className:"form-group",children:[j.jsx(Xu,{label:d,required:u,id:`${e}-key`}),j.jsx("input",{className:"form-control",type:"text",id:`${e}-key`,onBlur:({target:y})=>o(y&&y.value),defaultValue:i})]})}),j.jsx("div",{className:"form-additional form-group col-xs-5",children:h}),j.jsx("div",{className:"col-xs-2",children:j.jsx(m,{className:"array-item-remove btn-block",style:{border:"0"},disabled:s||c,onClick:a(i),uiSchema:p,registry:g})})]})}):j.jsx("div",{className:r,style:n,children:h})}function fp(){return{ArrayFieldDescriptionTemplate:Km,ArrayFieldItemTemplate:zm,ArrayFieldTemplate:Bm,ArrayFieldTitleTemplate:Wm,ButtonTemplates:ep(),BaseInputTemplate:Gm,DescriptionFieldTemplate:tp,ErrorListTemplate:rp,FieldTemplate:ip,FieldErrorTemplate:sp,FieldHelpTemplate:ap,ObjectFieldTemplate:op,TitleFieldTemplate:up,UnsupportedFieldTemplate:lp,WrapIfAdditionalTemplate:dp}}function hp(t){return Object.values(t).every(e=>e!==-1)}function mp({type:t,range:e,value:r,select:n,rootId:s,name:i,disabled:o,readonly:a,autofocus:c,registry:u,onBlur:l,onFocus:h}){const p=s+"_"+t,{SelectWidget:g}=u.widgets;return j.jsx(g,{schema:{type:"integer"},id:p,name:i,className:"form-control",options:{enumOptions:Mu(e[0],e[1])},placeholder:t,value:r,disabled:o,readonly:a,autofocus:c,onChange:_=>n(t,_),onBlur:l,onFocus:h,registry:u,label:"","aria-describedby":ut(s)})}function pp({time:t=!1,disabled:e=!1,readonly:r=!1,autofocus:n=!1,options:s,id:i,name:o,registry:a,onBlur:c,onFocus:u,onChange:l,value:h}){const{translateString:p}=a,[g,_]=te.useState(h),[v,m]=te.useReducer((b,$)=>({...b,...$}),Pi(h,t));te.useEffect(()=>{const b=ao(v,t);hp(v)&&b!==h?l(b):g!==h&&(_(h),m(Pi(h,t)))},[t,h,l,v,g]);const d=te.useCallback((b,$)=>{m({[b]:$})},[]),f=te.useCallback(b=>{if(b.preventDefault(),e||r)return;const $=Pi(new Date().toJSON(),t);l(ao($,t))},[e,r,t]),y=te.useCallback(b=>{b.preventDefault(),!(e||r)&&l(void 0)},[e,r,l]);return j.jsxs("ul",{className:"list-inline",children:[eh(v,t,s.yearsRange,s.format).map((b,$)=>j.jsx("li",{className:"list-inline-item",children:j.jsx(mp,{rootId:i,name:o,select:d,...b,disabled:e,readonly:r,registry:a,onBlur:c,onFocus:u,autofocus:n&&$===0})},$)),(s.hideNowButton!=="undefined"?!s.hideNowButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:f,children:p(he.NowLabel)})}),(s.hideClearButton!=="undefined"?!s.hideClearButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:y,children:p(he.ClearLabel)})})]})}function yp({time:t=!0,...e}){const{AltDateWidget:r}=e.registry.widgets;return j.jsx(r,{time:t,...e})}function gp({schema:t,uiSchema:e,options:r,id:n,value:s,disabled:i,readonly:o,label:a,hideLabel:c,autofocus:u=!1,onBlur:l,onFocus:h,onChange:p,registry:g}){const _=ue("DescriptionFieldTemplate",g,r),v=Rr(t),m=te.useCallback(b=>p(b.target.checked),[p]),d=te.useCallback(b=>l(n,b.target.checked),[l,n]),f=te.useCallback(b=>h(n,b.target.checked),[h,n]),y=r.description??t.description;return j.jsxs("div",{className:`checkbox ${i||o?"disabled":""}`,children:[!c&&!!y&&j.jsx(_,{id:xt(n),description:y,schema:t,uiSchema:e,registry:g}),j.jsxs("label",{children:[j.jsx("input",{type:"checkbox",id:n,name:n,checked:typeof s>"u"?!1:s,required:v,disabled:i||o,autoFocus:u,onChange:m,onBlur:d,onFocus:f,"aria-describedby":ut(n)}),dh(j.jsx("span",{children:a}),c)]})]})}function vp({id:t,disabled:e,options:{inline:r=!1,enumOptions:n,enumDisabled:s,emptyValue:i},value:o,autofocus:a=!1,readonly:c,onChange:u,onBlur:l,onFocus:h}){const p=Array.isArray(o)?o:[o],g=te.useCallback(({target:v})=>l(t,De(v&&v.value,n,i)),[l,t]),_=te.useCallback(({target:v})=>h(t,De(v&&v.value,n,i)),[h,t]);return j.jsx("div",{className:"checkboxes",id:t,children:Array.isArray(n)&&n.map((v,m)=>{const d=gs(v.value,p),f=Array.isArray(s)&&s.indexOf(v.value)!==-1,y=e||f||c?"disabled":"",b=w=>{w.target.checked?u(Zf(m,p,n)):u(Yf(m,p,n))},$=j.jsxs("span",{children:[j.jsx("input",{type:"checkbox",id:Lu(t,m),name:t,checked:d,value:String(m),disabled:e||f||c,autoFocus:a&&m===0,onChange:b,onBlur:g,onFocus:_,"aria-describedby":ut(t)}),j.jsx("span",{children:v.label})]});return r?j.jsx("label",{className:`checkbox-inline ${y}`,children:$},m):j.jsx("div",{className:`checkbox ${y}`,children:j.jsx("label",{children:$})},m)})})}function _p(t){const{disabled:e,readonly:r,options:n,registry:s}=t,i=ue("BaseInputTemplate",s,n);return j.jsx(i,{type:"color",...t,disabled:e||r})}function bp(t){const{onChange:e,options:r,registry:n}=t,s=ue("BaseInputTemplate",n,r),i=te.useCallback(o=>e(o||void 0),[e]);return j.jsx(s,{type:"date",...t,onChange:i})}function $p(t){const{onChange:e,value:r,options:n,registry:s}=t,i=ue("BaseInputTemplate",s,n);return j.jsx(i,{type:"datetime-local",...t,value:yh(r),onChange:o=>e(fh(o))})}function wp(t){const{options:e,registry:r}=t,n=ue("BaseInputTemplate",r,e);return j.jsx(n,{type:"email",...t})}function Sp(t,e){return t===null?null:t.replace(";base64",`;name=${encodeURIComponent(e)};base64`)}function Ep(t){const{name:e,size:r,type:n}=t;return new Promise((s,i)=>{const o=new window.FileReader;o.onerror=i,o.onload=a=>{typeof a.target?.result=="string"?s({dataURL:Sp(a.target.result,e),name:e,size:r,type:n}):s({dataURL:null,name:e,size:r,type:n})},o.readAsDataURL(t)})}function Op(t){return Promise.all(Array.from(t).map(Ep))}function Pp({fileInfo:t,registry:e}){const{translateString:r}=e,{dataURL:n,type:s,name:i}=t;return n?["image/jpeg","image/png"].includes(s)?j.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):j.jsxs(j.Fragment,{children:[" ",j.jsx("a",{download:`preview-${i}`,href:n,className:"file-download",children:r(he.PreviewLabel)})]}):null}function Ap({filesInfo:t,registry:e,preview:r,onRemove:n,options:s}){if(t.length===0)return null;const{translateString:i}=e,{RemoveButton:o}=ue("ButtonTemplates",e,s);return j.jsx("ul",{className:"file-info",children:t.map((a,c)=>{const{name:u,size:l,type:h}=a,p=()=>n(c);return j.jsxs("li",{children:[j.jsx(Wr,{children:i(he.FilesInfo,[u,h,String(l)])}),r&&j.jsx(Pp,{fileInfo:a,registry:e}),j.jsx(o,{onClick:p,registry:e})]},c)})})}function Ip(t){return t.reduce((e,r)=>{if(!r)return e;try{const{blob:n,name:s}=Wf(r);return[...e,{dataURL:r,name:s,size:n.size,type:n.type}]}catch{return e}},[])}function Cp(t){const{disabled:e,readonly:r,required:n,multiple:s,onChange:i,value:o,options:a,registry:c}=t,u=ue("BaseInputTemplate",c,a),l=te.useCallback(g=>{g.target.files&&Op(g.target.files).then(_=>{const v=_.map(m=>m.dataURL);i(s?o.concat(v):v[0])})},[s,o,i]),h=te.useMemo(()=>Ip(Array.isArray(o)?o:[o]),[o]),p=te.useCallback(g=>{if(s){const _=o.filter((v,m)=>m!==g);i(_)}else i(void 0)},[s,o,i]);return j.jsxs("div",{children:[j.jsx(u,{...t,disabled:e||r,type:"file",required:o?!1:n,onChangeOverride:l,value:"",accept:a.accept?String(a.accept):void 0}),j.jsx(Ap,{filesInfo:h,onRemove:p,registry:c,preview:a.filePreview,options:a})]})}function Rp({id:t,value:e}){return j.jsx("input",{type:"hidden",id:t,name:t,value:typeof e>"u"?"":e})}function Np(t){const{options:e,registry:r}=t,n=ue("BaseInputTemplate",r,e);return j.jsx(n,{type:"password",...t})}function qp({options:t,value:e,required:r,disabled:n,readonly:s,autofocus:i=!1,onBlur:o,onFocus:a,onChange:c,id:u}){const{enumOptions:l,enumDisabled:h,inline:p,emptyValue:g}=t,_=te.useCallback(({target:m})=>o(u,De(m&&m.value,l,g)),[o,u]),v=te.useCallback(({target:m})=>a(u,De(m&&m.value,l,g)),[a,u]);return j.jsx("div",{className:"field-radio-group",id:u,children:Array.isArray(l)&&l.map((m,d)=>{const f=gs(m.value,e),y=Array.isArray(h)&&h.indexOf(m.value)!==-1,b=n||y||s?"disabled":"",$=()=>c(m.value),w=j.jsxs("span",{children:[j.jsx("input",{type:"radio",id:Lu(u,d),checked:f,name:u,required:r,value:String(d),disabled:n||y||s,autoFocus:i&&d===0,onChange:$,onBlur:_,onFocus:v,"aria-describedby":ut(u)}),j.jsx("span",{children:m.label})]});return p?j.jsx("label",{className:`radio-inline ${b}`,children:w},d):j.jsx("div",{className:`radio ${b}`,children:j.jsx("label",{children:w})},d)})})}function jp(t){const{value:e,registry:{templates:{BaseInputTemplate:r}}}=t;return j.jsxs("div",{className:"field-range-wrapper",children:[j.jsx(r,{type:"range",...t}),j.jsx("span",{className:"range-view",children:e})]})}function ji(t,e){return e?Array.from(t.target.options).slice().filter(r=>r.selected).map(r=>r.value):t.target.value}function Tp({schema:t,id:e,options:r,value:n,required:s,disabled:i,readonly:o,multiple:a=!1,autofocus:c=!1,onChange:u,onBlur:l,onFocus:h,placeholder:p}){const{enumOptions:g,enumDisabled:_,emptyValue:v}=r,m=a?[]:"",d=te.useCallback(w=>{const S=ji(w,a);return h(e,De(S,g,v))},[h,e,t,a,g,v]),f=te.useCallback(w=>{const S=ji(w,a);return l(e,De(S,g,v))},[l,e,t,a,g,v]),y=te.useCallback(w=>{const S=ji(w,a);return u(De(S,g,v))},[u,t,a,g,v]),b=Jf(n,g,a),$=!a&&t.default===void 0;return j.jsxs("select",{id:e,name:e,multiple:a,className:"form-control",value:typeof b>"u"?m:b,required:s,disabled:i||o,autoFocus:c,onBlur:f,onFocus:d,onChange:y,"aria-describedby":ut(e),children:[$&&j.jsx("option",{value:"",children:p}),Array.isArray(g)&&g.map(({value:w,label:S},I)=>{const A=_&&_.indexOf(w)!==-1;return j.jsx("option",{value:String(I),disabled:A,children:S},I)})]})}function Qu({id:t,options:e={},placeholder:r,value:n,required:s,disabled:i,readonly:o,autofocus:a=!1,onChange:c,onBlur:u,onFocus:l}){const h=te.useCallback(({target:{value:_}})=>c(_===""?e.emptyValue:_),[c,e.emptyValue]),p=te.useCallback(({target:_})=>u(t,_&&_.value),[u,t]),g=te.useCallback(({target:_})=>l(t,_&&_.value),[t,l]);return j.jsx("textarea",{id:t,name:t,className:"form-control",value:n||"",placeholder:r,required:s,disabled:i,readOnly:o,autoFocus:a,rows:e.rows,onBlur:p,onFocus:g,onChange:h,"aria-describedby":ut(t)})}Qu.defaultProps={autofocus:!1,options:{}};function kp(t){const{options:e,registry:r}=t,n=ue("BaseInputTemplate",r,e);return j.jsx(n,{...t})}function Fp(t){const{onChange:e,options:r,registry:n}=t,s=ue("BaseInputTemplate",n,r),i=te.useCallback(o=>e(o?`${o}:00`:void 0),[e]);return j.jsx(s,{type:"time",...t,onChange:i})}function Dp(t){const{options:e,registry:r}=t,n=ue("BaseInputTemplate",r,e);return j.jsx(n,{type:"url",...t})}function Mp(t){const{options:e,registry:r}=t,n=ue("BaseInputTemplate",r,e);return j.jsx(n,{type:"number",...t})}function xp(){return{AltDateWidget:pp,AltDateTimeWidget:yp,CheckboxWidget:gp,CheckboxesWidget:vp,ColorWidget:_p,DateWidget:bp,DateTimeWidget:$p,EmailWidget:wp,FileWidget:Cp,HiddenWidget:Rp,PasswordWidget:Np,RadioWidget:qp,RangeWidget:jp,SelectWidget:Tp,TextWidget:kp,TextareaWidget:Qu,TimeWidget:Fp,UpDownWidget:Mp,URLWidget:Dp}}function Up(){return{fields:Lm(),templates:fp(),widgets:xp(),rootSchema:{},formContext:{},translateString:Hf}}class dg extends te.Component{formElement;constructor(e){if(super(e),!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!pe(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=te.createRef()}getSnapshotBeforeUpdate(e,r){if(!pe(this.props,e)){const n=Sh(this.props.formData,e.formData),s=!pe(e.schema,this.props.schema),i=n.length>0||!pe(e.formData,this.props.formData),o=this.getStateFromProps(this.props,this.props.formData,s||i?void 0:this.state.retrievedSchema,s,n),a=!pe(o,r);return{nextState:o,shouldUpdate:a}}return{shouldUpdate:!1}}componentDidUpdate(e,r,n){if(n.shouldUpdate){const{nextState:s}=n;!pe(s.formData,this.props.formData)&&!pe(s.formData,r.formData)&&this.props.onChange&&this.props.onChange(s),this.setState(s)}}getStateFromProps(e,r,n,s=!1,i=[]){const o=this.state||{},a="schema"in e?e.schema:this.props.schema,c=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},u=typeof r<"u",l="liveValidate"in e?e.liveValidate:this.props.liveValidate,h=u&&!e.noValidate&&l,p=a,g="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,_="experimental_customMergeAllOf"in e?e.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let v=o.schemaUtils;(!v||v.doesSchemaUtilsDiffer(e.validator,p,g,_))&&(v=Bf(e.validator,p,g,_));const m=v.getDefaultFormState(a,r),d=this.updateRetrievedSchema(n??v.retrieveSchema(a,m)),f=()=>e.noValidate||s?{errors:[],errorSchema:{}}:e.liveValidate?{errors:o.errors||[],errorSchema:o.errorSchema||{}}:{errors:o.schemaValidationErrors||[],errorSchema:o.schemaValidationErrorSchema||{}};let y,b,$=o.schemaValidationErrors,w=o.schemaValidationErrorSchema;if(h){const A=this.validate(m,a,v,d);y=A.errors,n===void 0?b=A.errorSchema:b=Le(this.state?.errorSchema,A.errorSchema,"preventDuplicates"),$=y,w=b}else{const A=f();if(y=A.errors,b=A.errorSchema,i.length>0){const q=i.reduce((F,K)=>(F[K]=void 0,F),{});b=w=Le(A.errorSchema,q,"preventDuplicates")}}if(e.extraErrors){const A=Nr({errorSchema:b,errors:y},e.extraErrors);b=A.errorSchema,y=A.errors}const S=v.toIdSchema(d,c["ui:rootFieldId"],m,e.idPrefix,e.idSeparator);return{schemaUtils:v,schema:a,uiSchema:c,idSchema:S,formData:m,edit:u,errors:y,errorSchema:b,schemaValidationErrors:$,schemaValidationErrorSchema:w,retrievedSchema:d}}shouldComponentUpdate(e,r){return mh(this,e,r)}getPreviousCustomValidateErrors(){const{customValidate:e,uiSchema:r}=this.props,n=this.state.formData;let s={};if(typeof e=="function"){const i=e(n,kr(n),r);s=vs(i)}return s}validate(e,r=this.props.schema,n,s){const i=n||this.state.schemaUtils,{customValidate:o,transformErrors:a,uiSchema:c}=this.props,u=s??i.retrieveSchema(r,e);return i.getValidator().validateFormData(e,u,o,a,c)}renderErrors(e){const{errors:r,errorSchema:n,schema:s,uiSchema:i}=this.state,{formContext:o}=this.props,a=se(i),c=ue("ErrorListTemplate",e,a);return r&&r.length?j.jsx(c,{errors:r,errorSchema:n||{},schema:s,uiSchema:i,formContext:o,registry:e}):null}getUsedFormData=(e,r)=>{if(r.length===0&&typeof e!="object")return e;const n=As(e,r);return Array.isArray(e)?Object.keys(n).map(s=>n[s]):n};getFieldNames=(e,r)=>{const n=(s,i=[],o=[[]])=>(Object.keys(s).forEach(a=>{if(typeof s[a]=="object"){const c=o.map(u=>[...u,a]);s[a][rs]&&s[a][Ir]!==""?i.push(s[a][Ir]):n(s[a],i,c)}else a===Ir&&s[a]!==""&&o.forEach(c=>{const u=X(r,c);(typeof u!="object"||ht(u)||Array.isArray(u)&&u.every(l=>typeof l!="object"))&&i.push(c)})}),i);return n(e)};omitExtraData=e=>{const{schema:r,schemaUtils:n}=this.state,s=n.retrieveSchema(r,e),i=n.toPathSchema(s,"",e),o=this.getFieldNames(i,e);return this.getUsedFormData(e,o)};filterErrorsBasedOnSchema(e,r,n){const{retrievedSchema:s,schemaUtils:i}=this.state,o=r??s,a=i.toPathSchema(o,"",n),c=this.getFieldNames(a,n),u=As(e,c);r?.type!=="object"&&r?.type!=="array"&&(u.__errors=e.__errors);const l=this.getPreviousCustomValidateErrors(),h=(g=[],_)=>g.length===0?g:g.filter(v=>!_.includes(v)),p=(g,_={})=>(Ul(g,(v,m)=>{const d=_[m];It(v)||Array.isArray(v)&&v.length===0?delete g[m]:ae(v)&&ae(d)&&Array.isArray(d?.__errors)?g[m]=h(v.__errors,d.__errors):typeof v=="object"&&!Array.isArray(v.__errors)&&p(v,_[m])}),g);return p(u,l)}onChange=(e,r,n)=>{const{extraErrors:s,omitExtraData:i,liveOmit:o,noValidate:a,liveValidate:c,onChange:u}=this.props,{schemaUtils:l,schema:h}=this.state;let p=this.state.retrievedSchema;if(ae(e)||Array.isArray(e)){const m=this.getStateFromProps(this.props,e);e=m.formData,p=m.retrievedSchema}const g=!a&&c;let _={formData:e,schema:h},v=e;if(i===!0&&o===!0&&(v=this.omitExtraData(e),_={formData:v}),g){const m=this.validate(v,h,l,p);let d=m.errors,f=m.errorSchema;const y=d,b=f;if(s){const $=Nr(m,s);f=$.errorSchema,d=$.errors}if(r){const $=this.filterErrorsBasedOnSchema(r,p,v);f=Le(f,$,"preventDuplicates")}_={formData:v,errors:d,errorSchema:f,schemaValidationErrors:y,schemaValidationErrorSchema:b}}else if(!a&&r){const m=s?Le(r,s,"preventDuplicates"):r;_={formData:v,errorSchema:m,errors:kt(m)}}this.setState(_,()=>u&&u({...this.state,..._},n))};updateRetrievedSchema(e){return pe(e,this.state?.retrievedSchema)?this.state.retrievedSchema:e}reset=()=>{const{onChange:e}=this.props,s={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(s,()=>e&&e({...this.state,...s}))};onBlur=(e,r)=>{const{onBlur:n}=this.props;n&&n(e,r)};onFocus=(e,r)=>{const{onFocus:n}=this.props;n&&n(e,r)};onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:r,extraErrors:n,noValidate:s,onSubmit:i}=this.props;let{formData:o}=this.state;if(r===!0&&(o=this.omitExtraData(o)),s||this.validateFormWithFormData(o)){const a=n||{},c=n?kt(n):[];this.setState({formData:o,errors:c,errorSchema:a,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{i&&i({...this.state,formData:o,status:"submitted"},e)})}};getRegistry(){const{translateString:e,uiSchema:r={}}=this.props,{schemaUtils:n}=this.state,{fields:s,templates:i,widgets:o,formContext:a,translateString:c}=Up();return{fields:{...s,...this.props.fields},templates:{...i,...this.props.templates,ButtonTemplates:{...i.ButtonTemplates,...this.props.templates?.ButtonTemplates}},widgets:{...o,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||a,schemaUtils:n,translateString:e||c,globalUiOptions:r[ad]}}submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}};focusOnError(e){const{idPrefix:r="root",idSeparator:n="_"}=this.props,{property:s}=e,i=Ku(s);i[0]===""?i[0]=r:i.unshift(r);const o=i.join(n);let a=this.formElement.current.elements[o];a||(a=this.formElement.current.querySelector(`input[id^="${o}"`)),a&&a.length&&(a=a[0]),a&&a.focus()}validateFormWithFormData=e=>{const{extraErrors:r,extraErrorsBlockSubmit:n,focusOnFirstError:s,onError:i}=this.props,{errors:o}=this.state,a=this.validate(e);let c=a.errors,u=a.errorSchema;const l=c,h=u,p=c.length>0||r&&n;if(p){if(r){const g=Nr(a,r);u=g.errorSchema,c=g.errors}s&&(typeof s=="function"?s(c[0]):this.focusOnError(c[0])),this.setState({errors:c,errorSchema:u,schemaValidationErrors:l,schemaValidationErrorSchema:h},()=>{i?i(c):console.error("Form validation failed",c)})}else o.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!p};validateForm(){const{omitExtraData:e}=this.props;let{formData:r}=this.state;return e===!0&&(r=this.omitExtraData(r)),this.validateFormWithFormData(r)}render(){const{children:e,id:r,idPrefix:n,idSeparator:s,className:i="",tagName:o,name:a,method:c,target:u,action:l,autoComplete:h,enctype:p,acceptcharset:g,acceptCharset:_,noHtml5Validate:v=!1,disabled:m,readonly:d,formContext:f,showErrorList:y="top",_internalFormWrapper:b}=this.props,{schema:$,uiSchema:w,formData:S,errorSchema:I,idSchema:A}=this.state,q=this.getRegistry(),{SchemaField:F}=q.fields,{SubmitButton:K}=q.templates.ButtonTemplates,C=b?o:void 0,M=b||o||"form";let{[Tr]:U={}}=se(w);m&&(U={...U,props:{...U.props,disabled:!0}});const H={[At]:{[Tr]:U}};return j.jsxs(M,{className:i||"rjsf",id:r,name:a,method:c,target:u,action:l,autoComplete:h,encType:p,acceptCharset:_||g,noValidate:v,onSubmit:this.onSubmit,as:C,ref:this.formElement,children:[y==="top"&&this.renderErrors(q),j.jsx(F,{name:"",schema:$,uiSchema:w,errorSchema:I,idSchema:A,idPrefix:n,idSeparator:s,formContext:f,formData:S,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:q,disabled:m,readonly:d}),e||j.jsx(K,{uiSchema:H,registry:q}),y==="bottom"&&this.renderErrors(q)]})}}var Kt={exports:{}},Ti={},xe={},nt={},ki={},Fi={},Di={},Eo;function Dr(){return Eo||(Eo=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(f){if(super(),!t.IDENTIFIER.test(f))throw new Error("CodeGen: name must be a valid identifier");this.str=f}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class n extends e{constructor(f){super(),this._items=typeof f=="string"?[f]:f}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const f=this._items[0];return f===""||f==='""'}get str(){var f;return(f=this._str)!==null&&f!==void 0?f:this._str=this._items.reduce((y,b)=>`${y}${b}`,"")}get names(){var f;return(f=this._names)!==null&&f!==void 0?f:this._names=this._items.reduce((y,b)=>(b instanceof r&&(y[b.str]=(y[b.str]||0)+1),y),{})}}t._Code=n,t.nil=new n("");function s(d,...f){const y=[d[0]];let b=0;for(;b<f.length;)a(y,f[b]),y.push(d[++b]);return new n(y)}t._=s;const i=new n("+");function o(d,...f){const y=[g(d[0])];let b=0;for(;b<f.length;)y.push(i),a(y,f[b]),y.push(i,g(d[++b]));return c(y),new n(y)}t.str=o;function a(d,f){f instanceof n?d.push(...f._items):f instanceof r?d.push(f):d.push(h(f))}t.addCodeArg=a;function c(d){let f=1;for(;f<d.length-1;){if(d[f]===i){const y=u(d[f-1],d[f+1]);if(y!==void 0){d.splice(f-1,3,y);continue}d[f++]="+"}f++}}function u(d,f){if(f==='""')return d;if(d==='""')return f;if(typeof d=="string")return f instanceof r||d[d.length-1]!=='"'?void 0:typeof f!="string"?`${d.slice(0,-1)}${f}"`:f[0]==='"'?d.slice(0,-1)+f.slice(1):void 0;if(typeof f=="string"&&f[0]==='"'&&!(d instanceof r))return`"${d}${f.slice(1)}`}function l(d,f){return f.emptyStr()?d:d.emptyStr()?f:o`${d}${f}`}t.strConcat=l;function h(d){return typeof d=="number"||typeof d=="boolean"||d===null?d:g(Array.isArray(d)?d.join(","):d)}function p(d){return new n(g(d))}t.stringify=p;function g(d){return JSON.stringify(d).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=g;function _(d){return typeof d=="string"&&t.IDENTIFIER.test(d)?new n(`.${d}`):s`[${d}]`}t.getProperty=_;function v(d){if(typeof d=="string"&&t.IDENTIFIER.test(d))return new n(`${d}`);throw new Error(`CodeGen: invalid export name: ${d}, use explicit $id name mapping`)}t.getEsmExportName=v;function m(d){return new n(d.toString())}t.regexpCode=m})(Di)),Di}var Mi={},Oo;function Po(){return Oo||(Oo=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=Dr();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class s{constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,this._parent=l}toName(u){return u instanceof e.Name?u:this.name(u)}name(u){return new e.Name(this._newName(u))}_newName(u){const l=this._names[u]||this._nameGroup(u);return`${u}${l.index++}`}_nameGroup(u){var l,h;if(!((h=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||h===void 0)&&h.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}t.Scope=s;class i extends e.Name{constructor(u,l){super(l),this.prefix=u}setValue(u,{property:l,itemIndex:h}){this.value=u,this.scopePath=(0,e._)`.${new e.Name(l)}[${h}]`}}t.ValueScopeName=i;const o=(0,e._)`\n`;class a extends s{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?o:e.nil}}get(){return this._scope}name(u){return new i(u,this._newName(u))}value(u,l){var h;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const p=this.toName(u),{prefix:g}=p,_=(h=l.key)!==null&&h!==void 0?h:l.ref;let v=this._values[g];if(v){const f=v.get(_);if(f)return f}else v=this._values[g]=new Map;v.set(_,p);const m=this._scope[g]||(this._scope[g]=[]),d=m.length;return m[d]=l.ref,p.setValue(l,{property:g,itemIndex:d}),p}getValue(u,l){const h=this._values[u];if(h)return h.get(l)}scopeRefs(u,l=this._values){return this._reduceValues(l,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,e._)`${u}${h.scopePath}`})}scopeCode(u=this._values,l,h){return this._reduceValues(u,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},l,h)}_reduceValues(u,l,h={},p){let g=e.nil;for(const _ in u){const v=u[_];if(!v)continue;const m=h[_]=h[_]||new Map;v.forEach(d=>{if(m.has(d))return;m.set(d,n.Started);let f=l(d);if(f){const y=this.opts.es5?t.varKinds.var:t.varKinds.const;g=(0,e._)`${g}${y} ${d} = ${f};${this.opts._n}`}else if(f=p?.(d))g=(0,e._)`${g}${f}${this.opts._n}`;else throw new r(d);m.set(d,n.Completed)})}return g}}t.ValueScope=a})(Mi)),Mi}var Ao;function ne(){return Ao||(Ao=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=Dr(),r=Po();var n=Dr();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}});var s=Po();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class i{optimizeNodes(){return this}optimizeNames(E,O){return this}}class o extends i{constructor(E,O,k){super(),this.varKind=E,this.name=O,this.rhs=k}render({es5:E,_n:O}){const k=E?r.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${k} ${this.name}${Y};`+O}optimizeNames(E,O){if(E[this.name.str])return this.rhs&&(this.rhs=M(this.rhs,E,O)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class a extends i{constructor(E,O,k){super(),this.lhs=E,this.rhs=O,this.sideEffects=k}render({_n:E}){return`${this.lhs} = ${this.rhs};`+E}optimizeNames(E,O){if(!(this.lhs instanceof e.Name&&!E[this.lhs.str]&&!this.sideEffects))return this.rhs=M(this.rhs,E,O),this}get names(){const E=this.lhs instanceof e.Name?{}:{...this.lhs.names};return C(E,this.rhs)}}class c extends a{constructor(E,O,k,Y){super(E,k,Y),this.op=O}render({_n:E}){return`${this.lhs} ${this.op}= ${this.rhs};`+E}}class u extends i{constructor(E){super(),this.label=E,this.names={}}render({_n:E}){return`${this.label}:`+E}}class l extends i{constructor(E){super(),this.label=E,this.names={}}render({_n:E}){return`break${this.label?` ${this.label}`:""};`+E}}class h extends i{constructor(E){super(),this.error=E}render({_n:E}){return`throw ${this.error};`+E}get names(){return this.error.names}}class p extends i{constructor(E){super(),this.code=E}render({_n:E}){return`${this.code};`+E}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(E,O){return this.code=M(this.code,E,O),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class g extends i{constructor(E=[]){super(),this.nodes=E}render(E){return this.nodes.reduce((O,k)=>O+k.render(E),"")}optimizeNodes(){const{nodes:E}=this;let O=E.length;for(;O--;){const k=E[O].optimizeNodes();Array.isArray(k)?E.splice(O,1,...k):k?E[O]=k:E.splice(O,1)}return E.length>0?this:void 0}optimizeNames(E,O){const{nodes:k}=this;let Y=k.length;for(;Y--;){const J=k[Y];J.optimizeNames(E,O)||(U(E,J.names),k.splice(Y,1))}return k.length>0?this:void 0}get names(){return this.nodes.reduce((E,O)=>K(E,O.names),{})}}class _ extends g{render(E){return"{"+E._n+super.render(E)+"}"+E._n}}class v extends g{}class m extends _{}m.kind="else";class d extends _{constructor(E,O){super(O),this.condition=E}render(E){let O=`if(${this.condition})`+super.render(E);return this.else&&(O+="else "+this.else.render(E)),O}optimizeNodes(){super.optimizeNodes();const E=this.condition;if(E===!0)return this.nodes;let O=this.else;if(O){const k=O.optimizeNodes();O=this.else=Array.isArray(k)?new m(k):k}if(O)return E===!1?O instanceof d?O:O.nodes:this.nodes.length?this:new d(H(E),O instanceof d?[O]:O.nodes);if(!(E===!1||!this.nodes.length))return this}optimizeNames(E,O){var k;if(this.else=(k=this.else)===null||k===void 0?void 0:k.optimizeNames(E,O),!!(super.optimizeNames(E,O)||this.else))return this.condition=M(this.condition,E,O),this}get names(){const E=super.names;return C(E,this.condition),this.else&&K(E,this.else.names),E}}d.kind="if";class f extends _{}f.kind="for";class y extends f{constructor(E){super(),this.iteration=E}render(E){return`for(${this.iteration})`+super.render(E)}optimizeNames(E,O){if(super.optimizeNames(E,O))return this.iteration=M(this.iteration,E,O),this}get names(){return K(super.names,this.iteration.names)}}class b extends f{constructor(E,O,k,Y){super(),this.varKind=E,this.name=O,this.from=k,this.to=Y}render(E){const O=E.es5?r.varKinds.var:this.varKind,{name:k,from:Y,to:J}=this;return`for(${O} ${k}=${Y}; ${k}<${J}; ${k}++)`+super.render(E)}get names(){const E=C(super.names,this.from);return C(E,this.to)}}class $ extends f{constructor(E,O,k,Y){super(),this.loop=E,this.varKind=O,this.name=k,this.iterable=Y}render(E){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(E)}optimizeNames(E,O){if(super.optimizeNames(E,O))return this.iterable=M(this.iterable,E,O),this}get names(){return K(super.names,this.iterable.names)}}class w extends _{constructor(E,O,k){super(),this.name=E,this.args=O,this.async=k}render(E){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(E)}}w.kind="func";class S extends g{render(E){return"return "+super.render(E)}}S.kind="return";class I extends _{render(E){let O="try"+super.render(E);return this.catch&&(O+=this.catch.render(E)),this.finally&&(O+=this.finally.render(E)),O}optimizeNodes(){var E,O;return super.optimizeNodes(),(E=this.catch)===null||E===void 0||E.optimizeNodes(),(O=this.finally)===null||O===void 0||O.optimizeNodes(),this}optimizeNames(E,O){var k,Y;return super.optimizeNames(E,O),(k=this.catch)===null||k===void 0||k.optimizeNames(E,O),(Y=this.finally)===null||Y===void 0||Y.optimizeNames(E,O),this}get names(){const E=super.names;return this.catch&&K(E,this.catch.names),this.finally&&K(E,this.finally.names),E}}class A extends _{constructor(E){super(),this.error=E}render(E){return`catch(${this.error})`+super.render(E)}}A.kind="catch";class q extends _{render(E){return"finally"+super.render(E)}}q.kind="finally";class F{constructor(E,O={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...O,_n:O.lines?`
22
+ `:""},this._extScope=E,this._scope=new r.Scope({parent:E}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(E){return this._scope.name(E)}scopeName(E){return this._extScope.name(E)}scopeValue(E,O){const k=this._extScope.value(E,O);return(this._values[k.prefix]||(this._values[k.prefix]=new Set)).add(k),k}getScopeValue(E,O){return this._extScope.getValue(E,O)}scopeRefs(E){return this._extScope.scopeRefs(E,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(E,O,k,Y){const J=this._scope.toName(O);return k!==void 0&&Y&&(this._constants[J.str]=k),this._leafNode(new o(E,J,k)),J}const(E,O,k){return this._def(r.varKinds.const,E,O,k)}let(E,O,k){return this._def(r.varKinds.let,E,O,k)}var(E,O,k){return this._def(r.varKinds.var,E,O,k)}assign(E,O,k){return this._leafNode(new a(E,O,k))}add(E,O){return this._leafNode(new c(E,t.operators.ADD,O))}code(E){return typeof E=="function"?E():E!==e.nil&&this._leafNode(new p(E)),this}object(...E){const O=["{"];for(const[k,Y]of E)O.length>1&&O.push(","),O.push(k),(k!==Y||this.opts.es5)&&(O.push(":"),(0,e.addCodeArg)(O,Y));return O.push("}"),new e._Code(O)}if(E,O,k){if(this._blockNode(new d(E)),O&&k)this.code(O).else().code(k).endIf();else if(O)this.code(O).endIf();else if(k)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(E){return this._elseNode(new d(E))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(d,m)}_for(E,O){return this._blockNode(E),O&&this.code(O).endFor(),this}for(E,O){return this._for(new y(E),O)}forRange(E,O,k,Y,J=this.opts.es5?r.varKinds.var:r.varKinds.let){const L=this._scope.toName(E);return this._for(new b(J,L,O,k),()=>Y(L))}forOf(E,O,k,Y=r.varKinds.const){const J=this._scope.toName(E);if(this.opts.es5){const L=O instanceof e.Name?O:this.var("_arr",O);return this.forRange("_i",0,(0,e._)`${L}.length`,B=>{this.var(J,(0,e._)`${L}[${B}]`),k(J)})}return this._for(new $("of",Y,J,O),()=>k(J))}forIn(E,O,k,Y=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(E,(0,e._)`Object.keys(${O})`,k);const J=this._scope.toName(E);return this._for(new $("in",Y,J,O),()=>k(J))}endFor(){return this._endBlockNode(f)}label(E){return this._leafNode(new u(E))}break(E){return this._leafNode(new l(E))}return(E){const O=new S;if(this._blockNode(O),this.code(E),O.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(E,O,k){if(!O&&!k)throw new Error('CodeGen: "try" without "catch" and "finally"');const Y=new I;if(this._blockNode(Y),this.code(E),O){const J=this.name("e");this._currNode=Y.catch=new A(J),O(J)}return k&&(this._currNode=Y.finally=new q,this.code(k)),this._endBlockNode(A,q)}throw(E){return this._leafNode(new h(E))}block(E,O){return this._blockStarts.push(this._nodes.length),E&&this.code(E).endBlock(O),this}endBlock(E){const O=this._blockStarts.pop();if(O===void 0)throw new Error("CodeGen: not in self-balancing block");const k=this._nodes.length-O;if(k<0||E!==void 0&&k!==E)throw new Error(`CodeGen: wrong number of nodes: ${k} vs ${E} expected`);return this._nodes.length=O,this}func(E,O=e.nil,k,Y){return this._blockNode(new w(E,O,k)),Y&&this.code(Y).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(E=1){for(;E-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(E){return this._currNode.nodes.push(E),this}_blockNode(E){this._currNode.nodes.push(E),this._nodes.push(E)}_endBlockNode(E,O){const k=this._currNode;if(k instanceof E||O&&k instanceof O)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${O?`${E.kind}/${O.kind}`:E.kind}"`)}_elseNode(E){const O=this._currNode;if(!(O instanceof d))throw new Error('CodeGen: "else" without "if"');return this._currNode=O.else=E,this}get _root(){return this._nodes[0]}get _currNode(){const E=this._nodes;return E[E.length-1]}set _currNode(E){const O=this._nodes;O[O.length-1]=E}}t.CodeGen=F;function K(T,E){for(const O in E)T[O]=(T[O]||0)+(E[O]||0);return T}function C(T,E){return E instanceof e._CodeOrName?K(T,E.names):T}function M(T,E,O){if(T instanceof e.Name)return k(T);if(!Y(T))return T;return new e._Code(T._items.reduce((J,L)=>(L instanceof e.Name&&(L=k(L)),L instanceof e._Code?J.push(...L._items):J.push(L),J),[]));function k(J){const L=O[J.str];return L===void 0||E[J.str]!==1?J:(delete E[J.str],L)}function Y(J){return J instanceof e._Code&&J._items.some(L=>L instanceof e.Name&&E[L.str]===1&&O[L.str]!==void 0)}}function U(T,E){for(const O in E)T[O]=(T[O]||0)-(E[O]||0)}function H(T){return typeof T=="boolean"||typeof T=="number"||T===null?!T:(0,e._)`!${x(T)}`}t.not=H;const ee=N(t.operators.AND);function W(...T){return T.reduce(ee)}t.and=W;const Q=N(t.operators.OR);function V(...T){return T.reduce(Q)}t.or=V;function N(T){return(E,O)=>E===e.nil?O:O===e.nil?E:(0,e._)`${x(E)} ${T} ${x(O)}`}function x(T){return T instanceof e.Name?T:(0,e._)`(${T})`}})(Fi)),Fi}var re={},Io;function oe(){if(Io)return re;Io=1,Object.defineProperty(re,"__esModule",{value:!0}),re.checkStrictMode=re.getErrorPath=re.Type=re.useFunc=re.setEvaluated=re.evaluatedPropsToName=re.mergeEvaluated=re.eachItem=re.unescapeJsonPointer=re.escapeJsonPointer=re.escapeFragment=re.unescapeFragment=re.schemaRefOrVal=re.schemaHasRulesButRef=re.schemaHasRules=re.checkUnknownRules=re.alwaysValidSchema=re.toHash=void 0;const t=ne(),e=Dr();function r($){const w={};for(const S of $)w[S]=!0;return w}re.toHash=r;function n($,w){return typeof w=="boolean"?w:Object.keys(w).length===0?!0:(s($,w),!i(w,$.self.RULES.all))}re.alwaysValidSchema=n;function s($,w=$.schema){const{opts:S,self:I}=$;if(!S.strictSchema||typeof w=="boolean")return;const A=I.RULES.keywords;for(const q in w)A[q]||b($,`unknown keyword: "${q}"`)}re.checkUnknownRules=s;function i($,w){if(typeof $=="boolean")return!$;for(const S in $)if(w[S])return!0;return!1}re.schemaHasRules=i;function o($,w){if(typeof $=="boolean")return!$;for(const S in $)if(S!=="$ref"&&w.all[S])return!0;return!1}re.schemaHasRulesButRef=o;function a({topSchemaRef:$,schemaPath:w},S,I,A){if(!A){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,t._)`${S}`}return(0,t._)`${$}${w}${(0,t.getProperty)(I)}`}re.schemaRefOrVal=a;function c($){return h(decodeURIComponent($))}re.unescapeFragment=c;function u($){return encodeURIComponent(l($))}re.escapeFragment=u;function l($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}re.escapeJsonPointer=l;function h($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}re.unescapeJsonPointer=h;function p($,w){if(Array.isArray($))for(const S of $)w(S);else w($)}re.eachItem=p;function g({mergeNames:$,mergeToName:w,mergeValues:S,resultToName:I}){return(A,q,F,K)=>{const C=F===void 0?q:F instanceof t.Name?(q instanceof t.Name?$(A,q,F):w(A,q,F),F):q instanceof t.Name?(w(A,F,q),q):S(q,F);return K===t.Name&&!(C instanceof t.Name)?I(A,C):C}}re.mergeEvaluated={props:g({mergeNames:($,w,S)=>$.if((0,t._)`${S} !== true && ${w} !== undefined`,()=>{$.if((0,t._)`${w} === true`,()=>$.assign(S,!0),()=>$.assign(S,(0,t._)`${S} || {}`).code((0,t._)`Object.assign(${S}, ${w})`))}),mergeToName:($,w,S)=>$.if((0,t._)`${S} !== true`,()=>{w===!0?$.assign(S,!0):($.assign(S,(0,t._)`${S} || {}`),v($,S,w))}),mergeValues:($,w)=>$===!0?!0:{...$,...w},resultToName:_}),items:g({mergeNames:($,w,S)=>$.if((0,t._)`${S} !== true && ${w} !== undefined`,()=>$.assign(S,(0,t._)`${w} === true ? true : ${S} > ${w} ? ${S} : ${w}`)),mergeToName:($,w,S)=>$.if((0,t._)`${S} !== true`,()=>$.assign(S,w===!0?!0:(0,t._)`${S} > ${w} ? ${S} : ${w}`)),mergeValues:($,w)=>$===!0?!0:Math.max($,w),resultToName:($,w)=>$.var("items",w)})};function _($,w){if(w===!0)return $.var("props",!0);const S=$.var("props",(0,t._)`{}`);return w!==void 0&&v($,S,w),S}re.evaluatedPropsToName=_;function v($,w,S){Object.keys(S).forEach(I=>$.assign((0,t._)`${w}${(0,t.getProperty)(I)}`,!0))}re.setEvaluated=v;const m={};function d($,w){return $.scopeValue("func",{ref:w,code:m[w.code]||(m[w.code]=new e._Code(w.code))})}re.useFunc=d;var f;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(f||(re.Type=f={}));function y($,w,S){if($ instanceof t.Name){const I=w===f.Num;return S?I?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:I?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,t.getProperty)($).toString():"/"+l($)}re.getErrorPath=y;function b($,w,S=$.opts.strictSchema){if(S){if(w=`strict mode: ${w}`,S===!0)throw new Error(w);$.self.logger.warn(w)}}return re.checkStrictMode=b,re}var zt={},Co;function et(){if(Co)return zt;Co=1,Object.defineProperty(zt,"__esModule",{value:!0});const t=ne(),e={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return zt.default=e,zt}var Ro;function Gr(){return Ro||(Ro=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=ne(),r=oe(),n=et();t.keywordError={message:({keyword:m})=>(0,e.str)`must pass "${m}" keyword validation`},t.keyword$DataError={message:({keyword:m,schemaType:d})=>d?(0,e.str)`"${m}" keyword must be ${d} ($data)`:(0,e.str)`"${m}" keyword is invalid ($data)`};function s(m,d=t.keywordError,f,y){const{it:b}=m,{gen:$,compositeRule:w,allErrors:S}=b,I=h(m,d,f);y??(w||S)?c($,I):u(b,(0,e._)`[${I}]`)}t.reportError=s;function i(m,d=t.keywordError,f){const{it:y}=m,{gen:b,compositeRule:$,allErrors:w}=y,S=h(m,d,f);c(b,S),$||w||u(y,n.default.vErrors)}t.reportExtraError=i;function o(m,d){m.assign(n.default.errors,d),m.if((0,e._)`${n.default.vErrors} !== null`,()=>m.if(d,()=>m.assign((0,e._)`${n.default.vErrors}.length`,d),()=>m.assign(n.default.vErrors,null)))}t.resetErrorsCount=o;function a({gen:m,keyword:d,schemaValue:f,data:y,errsCount:b,it:$}){if(b===void 0)throw new Error("ajv implementation error");const w=m.name("err");m.forRange("i",b,n.default.errors,S=>{m.const(w,(0,e._)`${n.default.vErrors}[${S}]`),m.if((0,e._)`${w}.instancePath === undefined`,()=>m.assign((0,e._)`${w}.instancePath`,(0,e.strConcat)(n.default.instancePath,$.errorPath))),m.assign((0,e._)`${w}.schemaPath`,(0,e.str)`${$.errSchemaPath}/${d}`),$.opts.verbose&&(m.assign((0,e._)`${w}.schema`,f),m.assign((0,e._)`${w}.data`,y))})}t.extendErrors=a;function c(m,d){const f=m.const("err",d);m.if((0,e._)`${n.default.vErrors} === null`,()=>m.assign(n.default.vErrors,(0,e._)`[${f}]`),(0,e._)`${n.default.vErrors}.push(${f})`),m.code((0,e._)`${n.default.errors}++`)}function u(m,d){const{gen:f,validateName:y,schemaEnv:b}=m;b.$async?f.throw((0,e._)`new ${m.ValidationError}(${d})`):(f.assign((0,e._)`${y}.errors`,d),f.return(!1))}const l={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function h(m,d,f){const{createErrors:y}=m.it;return y===!1?(0,e._)`{}`:p(m,d,f)}function p(m,d,f={}){const{gen:y,it:b}=m,$=[g(b,f),_(m,f)];return v(m,d,$),y.object(...$)}function g({errorPath:m},{instancePath:d}){const f=d?(0,e.str)`${m}${(0,r.getErrorPath)(d,r.Type.Str)}`:m;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,f)]}function _({keyword:m,it:{errSchemaPath:d}},{schemaPath:f,parentSchema:y}){let b=y?d:(0,e.str)`${d}/${m}`;return f&&(b=(0,e.str)`${b}${(0,r.getErrorPath)(f,r.Type.Str)}`),[l.schemaPath,b]}function v(m,{params:d,message:f},y){const{keyword:b,data:$,schemaValue:w,it:S}=m,{opts:I,propertyName:A,topSchemaRef:q,schemaPath:F}=S;y.push([l.keyword,b],[l.params,typeof d=="function"?d(m):d||(0,e._)`{}`]),I.messages&&y.push([l.message,typeof f=="function"?f(m):f]),I.verbose&&y.push([l.schema,w],[l.parentSchema,(0,e._)`${q}${F}`],[n.default.data,$]),A&&y.push([l.propertyName,A])}})(ki)),ki}var No;function Vp(){if(No)return nt;No=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.boolOrEmptySchema=nt.topBoolOrEmptySchema=void 0;const t=Gr(),e=ne(),r=et(),n={message:"boolean schema is false"};function s(a){const{gen:c,schema:u,validateName:l}=a;u===!1?o(a,!1):typeof u=="object"&&u.$async===!0?c.return(r.default.data):(c.assign((0,e._)`${l}.errors`,null),c.return(!0))}nt.topBoolOrEmptySchema=s;function i(a,c){const{gen:u,schema:l}=a;l===!1?(u.var(c,!1),o(a)):u.var(c,!0)}nt.boolOrEmptySchema=i;function o(a,c){const{gen:u,data:l}=a,h={gen:u,keyword:"false schema",data:l,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,t.reportError)(h,n,void 0,c)}return nt}var $e={},it={},qo;function el(){if(qo)return it;qo=1,Object.defineProperty(it,"__esModule",{value:!0}),it.getRules=it.isJSONType=void 0;const t=["string","number","integer","boolean","null","object","array"],e=new Set(t);function r(s){return typeof s=="string"&&e.has(s)}it.isJSONType=r;function n(){const s={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...s,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},s.number,s.string,s.array,s.object],post:{rules:[]},all:{},keywords:{}}}return it.getRules=n,it}var Ue={},jo;function tl(){if(jo)return Ue;jo=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.shouldUseRule=Ue.shouldUseGroup=Ue.schemaHasRulesForType=void 0;function t({schema:n,self:s},i){const o=s.RULES.types[i];return o&&o!==!0&&e(n,o)}Ue.schemaHasRulesForType=t;function e(n,s){return s.rules.some(i=>r(n,i))}Ue.shouldUseGroup=e;function r(n,s){var i;return n[s.keyword]!==void 0||((i=s.definition.implements)===null||i===void 0?void 0:i.some(o=>n[o]!==void 0))}return Ue.shouldUseRule=r,Ue}var To;function Mr(){if(To)return $e;To=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.reportTypeError=$e.checkDataTypes=$e.checkDataType=$e.coerceAndCheckDataType=$e.getJSONTypes=$e.getSchemaTypes=$e.DataType=void 0;const t=el(),e=tl(),r=Gr(),n=ne(),s=oe();var i;(function(f){f[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong"})(i||($e.DataType=i={}));function o(f){const y=a(f.type);if(y.includes("null")){if(f.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!y.length&&f.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');f.nullable===!0&&y.push("null")}return y}$e.getSchemaTypes=o;function a(f){const y=Array.isArray(f)?f:f?[f]:[];if(y.every(t.isJSONType))return y;throw new Error("type must be JSONType or JSONType[]: "+y.join(","))}$e.getJSONTypes=a;function c(f,y){const{gen:b,data:$,opts:w}=f,S=l(y,w.coerceTypes),I=y.length>0&&!(S.length===0&&y.length===1&&(0,e.schemaHasRulesForType)(f,y[0]));if(I){const A=_(y,$,w.strictNumbers,i.Wrong);b.if(A,()=>{S.length?h(f,y,S):m(f)})}return I}$e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function l(f,y){return y?f.filter(b=>u.has(b)||y==="array"&&b==="array"):[]}function h(f,y,b){const{gen:$,data:w,opts:S}=f,I=$.let("dataType",(0,n._)`typeof ${w}`),A=$.let("coerced",(0,n._)`undefined`);S.coerceTypes==="array"&&$.if((0,n._)`${I} == 'object' && Array.isArray(${w}) && ${w}.length == 1`,()=>$.assign(w,(0,n._)`${w}[0]`).assign(I,(0,n._)`typeof ${w}`).if(_(y,w,S.strictNumbers),()=>$.assign(A,w))),$.if((0,n._)`${A} !== undefined`);for(const F of b)(u.has(F)||F==="array"&&S.coerceTypes==="array")&&q(F);$.else(),m(f),$.endIf(),$.if((0,n._)`${A} !== undefined`,()=>{$.assign(w,A),p(f,A)});function q(F){switch(F){case"string":$.elseIf((0,n._)`${I} == "number" || ${I} == "boolean"`).assign(A,(0,n._)`"" + ${w}`).elseIf((0,n._)`${w} === null`).assign(A,(0,n._)`""`);return;case"number":$.elseIf((0,n._)`${I} == "boolean" || ${w} === null
23
23
  || (${I} == "string" && ${w} && ${w} == +${w})`).assign(A,(0,n._)`+${w}`);return;case"integer":$.elseIf((0,n._)`${I} === "boolean" || ${w} === null
24
24
  || (${I} === "string" && ${w} && ${w} == +${w} && !(${w} % 1))`).assign(A,(0,n._)`+${w}`);return;case"boolean":$.elseIf((0,n._)`${w} === "false" || ${w} === 0 || ${w} === null`).assign(A,!1).elseIf((0,n._)`${w} === "true" || ${w} === 1`).assign(A,!0);return;case"null":$.elseIf((0,n._)`${w} === "" || ${w} === 0 || ${w} === false`),$.assign(A,null);return;case"array":$.elseIf((0,n._)`${I} === "string" || ${I} === "number"
25
- || ${I} === "boolean" || ${w} === null`).assign(A,(0,n._)`[${w}]`)}}}function p({gen:f,parentData:y,parentDataProperty:b},$){f.if((0,n._)`${y} !== undefined`,()=>f.assign((0,n._)`${y}[${b}]`,$))}function g(f,y,b,$=i.Correct){const w=$===i.Correct?n.operators.EQ:n.operators.NEQ;let S;switch(f){case"null":return(0,n._)`${y} ${w} null`;case"array":S=(0,n._)`Array.isArray(${y})`;break;case"object":S=(0,n._)`${y} && typeof ${y} == "object" && !Array.isArray(${y})`;break;case"integer":S=I((0,n._)`!(${y} % 1) && !isNaN(${y})`);break;case"number":S=I();break;default:return(0,n._)`typeof ${y} ${w} ${f}`}return $===i.Correct?S:(0,n.not)(S);function I(A=n.nil){return(0,n.and)((0,n._)`typeof ${y} == "number"`,A,b?(0,n._)`isFinite(${y})`:n.nil)}}$e.checkDataType=g;function _(f,y,b,$){if(f.length===1)return g(f[0],y,b,$);let w;const S=(0,s.toHash)(f);if(S.array&&S.object){const I=(0,n._)`typeof ${y} != "object"`;w=S.null?I:(0,n._)`!${y} || ${I}`,delete S.null,delete S.array,delete S.object}else w=n.nil;S.number&&delete S.integer;for(const I in S)w=(0,n.and)(w,g(I,y,b,$));return w}$e.checkDataTypes=_;const v={message:({schema:f})=>`must be ${f}`,params:({schema:f,schemaValue:y})=>typeof f=="string"?(0,n._)`{type: ${f}}`:(0,n._)`{type: ${y}}`};function m(f){const y=d(f);(0,r.reportError)(y,v)}$e.reportTypeError=m;function d(f){const{gen:y,data:b,schema:$}=f,w=(0,s.schemaRefOrVal)(f,$,"type");return{gen:y,keyword:"type",data:b,schema:$.type,schemaCode:w,schemaValue:w,parentSchema:$,params:{},it:f}}return $e}var Ot={},ko;function Lp(){if(ko)return Ot;ko=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.assignDefaults=void 0;const t=ne(),e=oe();function r(s,i){const{properties:o,items:a}=s.schema;if(i==="object"&&o)for(const c in o)n(s,c,o[c].default);else i==="array"&&Array.isArray(a)&&a.forEach((c,u)=>n(s,u,c.default))}Ot.assignDefaults=r;function n(s,i,o){const{gen:a,compositeRule:c,data:u,opts:l}=s;if(o===void 0)return;const h=(0,t._)`${u}${(0,t.getProperty)(i)}`;if(c){(0,e.checkStrictMode)(s,`default is ignored for: ${h}`);return}let p=(0,t._)`${h} === undefined`;l.useDefaults==="empty"&&(p=(0,t._)`${p} || ${h} === null || ${h} === ""`),a.if(p,(0,t._)`${h} = ${(0,t.stringify)(o)}`)}return Ot}var qe={},de={},Fo;function Te(){if(Fo)return de;Fo=1,Object.defineProperty(de,"__esModule",{value:!0}),de.validateUnion=de.validateArray=de.usePattern=de.callValidateCode=de.schemaProperties=de.allSchemaProperties=de.noPropertyInData=de.propertyInData=de.isOwnProperty=de.hasPropFunc=de.reportMissingProp=de.checkMissingProp=de.checkReportMissingProp=void 0;const t=ne(),e=oe(),r=et(),n=oe();function s(f,y){const{gen:b,data:$,it:w}=f;b.if(l(b,$,y,w.opts.ownProperties),()=>{f.setParams({missingProperty:(0,t._)`${y}`},!0),f.error()})}de.checkReportMissingProp=s;function i({gen:f,data:y,it:{opts:b}},$,w){return(0,t.or)(...$.map(S=>(0,t.and)(l(f,y,S,b.ownProperties),(0,t._)`${w} = ${S}`)))}de.checkMissingProp=i;function o(f,y){f.setParams({missingProperty:y},!0),f.error()}de.reportMissingProp=o;function a(f){return f.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}de.hasPropFunc=a;function c(f,y,b){return(0,t._)`${a(f)}.call(${y}, ${b})`}de.isOwnProperty=c;function u(f,y,b,$){const w=(0,t._)`${y}${(0,t.getProperty)(b)} !== undefined`;return $?(0,t._)`${w} && ${c(f,y,b)}`:w}de.propertyInData=u;function l(f,y,b,$){const w=(0,t._)`${y}${(0,t.getProperty)(b)} === undefined`;return $?(0,t.or)(w,(0,t.not)(c(f,y,b))):w}de.noPropertyInData=l;function h(f){return f?Object.keys(f).filter(y=>y!=="__proto__"):[]}de.allSchemaProperties=h;function p(f,y){return h(y).filter(b=>!(0,e.alwaysValidSchema)(f,y[b]))}de.schemaProperties=p;function g({schemaCode:f,data:y,it:{gen:b,topSchemaRef:$,schemaPath:w,errorPath:S},it:I},A,q,F){const K=F?(0,t._)`${f}, ${y}, ${$}${w}`:y,C=[[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,S)],[r.default.parentData,I.parentData],[r.default.parentDataProperty,I.parentDataProperty],[r.default.rootData,r.default.rootData]];I.opts.dynamicRef&&C.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const M=(0,t._)`${K}, ${b.object(...C)}`;return q!==t.nil?(0,t._)`${A}.call(${q}, ${M})`:(0,t._)`${A}(${M})`}de.callValidateCode=g;const _=(0,t._)`new RegExp`;function v({gen:f,it:{opts:y}},b){const $=y.unicodeRegExp?"u":"",{regExp:w}=y.code,S=w(b,$);return f.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,t._)`${w.code==="new RegExp"?_:(0,n.useFunc)(f,w)}(${b}, ${$})`})}de.usePattern=v;function m(f){const{gen:y,data:b,keyword:$,it:w}=f,S=y.name("valid");if(w.allErrors){const A=y.let("valid",!0);return I(()=>y.assign(A,!1)),A}return y.var(S,!0),I(()=>y.break()),S;function I(A){const q=y.const("len",(0,t._)`${b}.length`);y.forRange("i",0,q,F=>{f.subschema({keyword:$,dataProp:F,dataPropType:e.Type.Num},S),y.if((0,t.not)(S),A)})}}de.validateArray=m;function d(f){const{gen:y,schema:b,keyword:$,it:w}=f;if(!Array.isArray(b))throw new Error("ajv implementation error");if(b.some(q=>(0,e.alwaysValidSchema)(w,q))&&!w.opts.unevaluated)return;const I=y.let("valid",!1),A=y.name("_valid");y.block(()=>b.forEach((q,F)=>{const K=f.subschema({keyword:$,schemaProp:F,compositeRule:!0},A);y.assign(I,(0,t._)`${I} || ${A}`),f.mergeValidEvaluated(K,A)||y.if((0,t.not)(I))})),f.result(I,()=>f.reset(),()=>f.error(!0))}return de.validateUnion=d,de}var Do;function Kp(){if(Do)return qe;Do=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.validateKeywordUsage=qe.validSchemaType=qe.funcKeywordCode=qe.macroKeywordCode=void 0;const t=ne(),e=et(),r=Te(),n=Gr();function s(p,g){const{gen:_,keyword:v,schema:m,parentSchema:d,it:f}=p,y=g.macro.call(f.self,m,d,f),b=u(_,v,y);f.opts.validateSchema!==!1&&f.self.validateSchema(y,!0);const $=_.name("valid");p.subschema({schema:y,schemaPath:t.nil,errSchemaPath:`${f.errSchemaPath}/${v}`,topSchemaRef:b,compositeRule:!0},$),p.pass($,()=>p.error(!0))}qe.macroKeywordCode=s;function i(p,g){var _;const{gen:v,keyword:m,schema:d,parentSchema:f,$data:y,it:b}=p;c(b,g);const $=!y&&g.compile?g.compile.call(b.self,d,f,b):g.validate,w=u(v,m,$),S=v.let("valid");p.block$data(S,I),p.ok((_=g.valid)!==null&&_!==void 0?_:S);function I(){if(g.errors===!1)F(),g.modifying&&o(p),K(()=>p.error());else{const C=g.async?A():q();g.modifying&&o(p),K(()=>a(p,C))}}function A(){const C=v.let("ruleErrs",null);return v.try(()=>F((0,t._)`await `),M=>v.assign(S,!1).if((0,t._)`${M} instanceof ${b.ValidationError}`,()=>v.assign(C,(0,t._)`${M}.errors`),()=>v.throw(M))),C}function q(){const C=(0,t._)`${w}.errors`;return v.assign(C,null),F(t.nil),C}function F(C=g.async?(0,t._)`await `:t.nil){const M=b.opts.passContext?e.default.this:e.default.self,U=!("compile"in g&&!y||g.schema===!1);v.assign(S,(0,t._)`${C}${(0,r.callValidateCode)(p,w,M,U)}`,g.modifying)}function K(C){var M;v.if((0,t.not)((M=g.valid)!==null&&M!==void 0?M:S),C)}}qe.funcKeywordCode=i;function o(p){const{gen:g,data:_,it:v}=p;g.if(v.parentData,()=>g.assign(_,(0,t._)`${v.parentData}[${v.parentDataProperty}]`))}function a(p,g){const{gen:_}=p;_.if((0,t._)`Array.isArray(${g})`,()=>{_.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${g} : ${e.default.vErrors}.concat(${g})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,n.extendErrors)(p)},()=>p.error())}function c({schemaEnv:p},g){if(g.async&&!p.$async)throw new Error("async keyword in sync schema")}function u(p,g,_){if(_===void 0)throw new Error(`keyword "${g}" failed to compile`);return p.scopeValue("keyword",typeof _=="function"?{ref:_}:{ref:_,code:(0,t.stringify)(_)})}function l(p,g,_=!1){return!g.length||g.some(v=>v==="array"?Array.isArray(p):v==="object"?p&&typeof p=="object"&&!Array.isArray(p):typeof p==v||_&&typeof p>"u")}qe.validSchemaType=l;function h({schema:p,opts:g,self:_,errSchemaPath:v},m,d){if(Array.isArray(m.keyword)?!m.keyword.includes(d):m.keyword!==d)throw new Error("ajv implementation error");const f=m.dependencies;if(f?.some(y=>!Object.prototype.hasOwnProperty.call(p,y)))throw new Error(`parent schema must have dependencies of ${d}: ${f.join(",")}`);if(m.validateSchema&&!m.validateSchema(p[d])){const b=`keyword "${d}" value is invalid at path "${v}": `+_.errorsText(m.validateSchema.errors);if(g.validateSchema==="log")_.logger.error(b);else throw new Error(b)}}return qe.validateKeywordUsage=h,qe}var Ve={},Mo;function zp(){if(Mo)return Ve;Mo=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.extendSubschemaMode=Ve.extendSubschemaData=Ve.getSubschema=void 0;const t=ne(),e=oe();function r(i,{keyword:o,schemaProp:a,schema:c,schemaPath:u,errSchemaPath:l,topSchemaRef:h}){if(o!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const p=i.schema[o];return a===void 0?{schema:p,schemaPath:(0,t._)`${i.schemaPath}${(0,t.getProperty)(o)}`,errSchemaPath:`${i.errSchemaPath}/${o}`}:{schema:p[a],schemaPath:(0,t._)`${i.schemaPath}${(0,t.getProperty)(o)}${(0,t.getProperty)(a)}`,errSchemaPath:`${i.errSchemaPath}/${o}/${(0,e.escapeFragment)(a)}`}}if(c!==void 0){if(u===void 0||l===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:u,topSchemaRef:h,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}Ve.getSubschema=r;function n(i,o,{dataProp:a,dataPropType:c,data:u,dataTypes:l,propertyName:h}){if(u!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=o;if(a!==void 0){const{errorPath:_,dataPathArr:v,opts:m}=o,d=p.let("data",(0,t._)`${o.data}${(0,t.getProperty)(a)}`,!0);g(d),i.errorPath=(0,t.str)`${_}${(0,e.getErrorPath)(a,c,m.jsPropertySyntax)}`,i.parentDataProperty=(0,t._)`${a}`,i.dataPathArr=[...v,i.parentDataProperty]}if(u!==void 0){const _=u instanceof t.Name?u:p.let("data",u,!0);g(_),h!==void 0&&(i.propertyName=h)}l&&(i.dataTypes=l);function g(_){i.data=_,i.dataLevel=o.dataLevel+1,i.dataTypes=[],o.definedProperties=new Set,i.parentData=o.data,i.dataNames=[...o.dataNames,_]}}Ve.extendSubschemaData=n;function s(i,{jtdDiscriminator:o,jtdMetadata:a,compositeRule:c,createErrors:u,allErrors:l}){c!==void 0&&(i.compositeRule=c),u!==void 0&&(i.createErrors=u),l!==void 0&&(i.allErrors=l),i.jtdDiscriminator=o,i.jtdMetadata=a}return Ve.extendSubschemaMode=s,Ve}var Se={},xi={exports:{}},xo;function Bp(){if(xo)return xi.exports;xo=1;var t=xi.exports=function(n,s,i){typeof s=="function"&&(i=s,s={}),i=s.cb||i;var o=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};e(s,o,a,n,"",n)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.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 e(n,s,i,o,a,c,u,l,h,p){if(o&&typeof o=="object"&&!Array.isArray(o)){s(o,a,c,u,l,h,p);for(var g in o){var _=o[g];if(Array.isArray(_)){if(g in t.arrayKeywords)for(var v=0;v<_.length;v++)e(n,s,i,_[v],a+"/"+g+"/"+v,c,a,g,o,v)}else if(g in t.propsKeywords){if(_&&typeof _=="object")for(var m in _)e(n,s,i,_[m],a+"/"+g+"/"+r(m),c,a,g,o,m)}else(g in t.keywords||n.allKeys&&!(g in t.skipKeywords))&&e(n,s,i,_,a+"/"+g,c,a,g,o)}i(o,a,c,u,l,h,p)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return xi.exports}var Uo;function Hr(){if(Uo)return Se;Uo=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.getSchemaRefs=Se.resolveUrl=Se.normalizeId=Se._getFullPath=Se.getFullPath=Se.inlineRef=void 0;const t=oe(),e=Gc(),r=Bp(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function s(v,m=!0){return typeof v=="boolean"?!0:m===!0?!o(v):m?a(v)<=m:!1}Se.inlineRef=s;const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(v){for(const m in v){if(i.has(m))return!0;const d=v[m];if(Array.isArray(d)&&d.some(o)||typeof d=="object"&&o(d))return!0}return!1}function a(v){let m=0;for(const d in v){if(d==="$ref")return 1/0;if(m++,!n.has(d)&&(typeof v[d]=="object"&&(0,t.eachItem)(v[d],f=>m+=a(f)),m===1/0))return 1/0}return m}function c(v,m="",d){d!==!1&&(m=h(m));const f=v.parse(m);return u(v,f)}Se.getFullPath=c;function u(v,m){return v.serialize(m).split("#")[0]+"#"}Se._getFullPath=u;const l=/#\/?$/;function h(v){return v?v.replace(l,""):""}Se.normalizeId=h;function p(v,m,d){return d=h(d),v.resolve(m,d)}Se.resolveUrl=p;const g=/^[a-z_][-a-z0-9._]*$/i;function _(v,m){if(typeof v=="boolean")return{};const{schemaId:d,uriResolver:f}=this.opts,y=h(v[d]||m),b={"":y},$=c(f,y,!1),w={},S=new Set;return r(v,{allKeys:!0},(q,F,K,C)=>{if(C===void 0)return;const M=$+F;let U=b[C];typeof q[d]=="string"&&(U=H.call(this,q[d])),ee.call(this,q.$anchor),ee.call(this,q.$dynamicAnchor),b[F]=U;function H(W){const Q=this.opts.uriResolver.resolve;if(W=h(U?Q(U,W):W),S.has(W))throw A(W);S.add(W);let V=this.refs[W];return typeof V=="string"&&(V=this.refs[V]),typeof V=="object"?I(q,V.schema,W):W!==h(M)&&(W[0]==="#"?(I(q,w[W],W),w[W]=q):this.refs[W]=M),W}function ee(W){if(typeof W=="string"){if(!g.test(W))throw new Error(`invalid anchor "${W}"`);H.call(this,`#${W}`)}}}),w;function I(q,F,K){if(F!==void 0&&!e(q,F))throw A(K)}function A(q){return new Error(`reference "${q}" resolves to more than one schema`)}}return Se.getSchemaRefs=_,Se}var Vo;function Jr(){if(Vo)return xe;Vo=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.getData=xe.KeywordCxt=xe.validateFunctionCode=void 0;const t=Vp(),e=Mr(),r=tl(),n=Mr(),s=Lp(),i=Kp(),o=zp(),a=ne(),c=et(),u=Hr(),l=oe(),h=Gr();function p(P){if($(P)&&(S(P),b(P))){m(P);return}g(P,()=>(0,t.topBoolOrEmptySchema)(P))}xe.validateFunctionCode=p;function g({gen:P,validateName:R,schema:D,schemaEnv:z,opts:G},Z){G.code.es5?P.func(R,(0,a._)`${c.default.data}, ${c.default.valCxt}`,z.$async,()=>{P.code((0,a._)`"use strict"; ${f(D,G)}`),v(P,G),P.code(Z)}):P.func(R,(0,a._)`${c.default.data}, ${_(G)}`,z.$async,()=>P.code(f(D,G)).code(Z))}function _(P){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${P.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}}={}`}function v(P,R){P.if(c.default.valCxt,()=>{P.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),P.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),P.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),P.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),R.dynamicRef&&P.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{P.var(c.default.instancePath,(0,a._)`""`),P.var(c.default.parentData,(0,a._)`undefined`),P.var(c.default.parentDataProperty,(0,a._)`undefined`),P.var(c.default.rootData,c.default.data),R.dynamicRef&&P.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function m(P){const{schema:R,opts:D,gen:z}=P;g(P,()=>{D.$comment&&R.$comment&&C(P),q(P),z.let(c.default.vErrors,null),z.let(c.default.errors,0),D.unevaluated&&d(P),I(P),M(P)})}function d(P){const{gen:R,validateName:D}=P;P.evaluated=R.const("evaluated",(0,a._)`${D}.evaluated`),R.if((0,a._)`${P.evaluated}.dynamicProps`,()=>R.assign((0,a._)`${P.evaluated}.props`,(0,a._)`undefined`)),R.if((0,a._)`${P.evaluated}.dynamicItems`,()=>R.assign((0,a._)`${P.evaluated}.items`,(0,a._)`undefined`))}function f(P,R){const D=typeof P=="object"&&P[R.schemaId];return D&&(R.code.source||R.code.process)?(0,a._)`/*# sourceURL=${D} */`:a.nil}function y(P,R){if($(P)&&(S(P),b(P))){w(P,R);return}(0,t.boolOrEmptySchema)(P,R)}function b({schema:P,self:R}){if(typeof P=="boolean")return!P;for(const D in P)if(R.RULES.all[D])return!0;return!1}function $(P){return typeof P.schema!="boolean"}function w(P,R){const{schema:D,gen:z,opts:G}=P;G.$comment&&D.$comment&&C(P),F(P),K(P);const Z=z.const("_errs",c.default.errors);I(P,Z),z.var(R,(0,a._)`${Z} === ${c.default.errors}`)}function S(P){(0,l.checkUnknownRules)(P),A(P)}function I(P,R){if(P.opts.jtd)return H(P,[],!1,R);const D=(0,e.getSchemaTypes)(P.schema),z=(0,e.coerceAndCheckDataType)(P,D);H(P,D,!z,R)}function A(P){const{schema:R,errSchemaPath:D,opts:z,self:G}=P;R.$ref&&z.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(R,G.RULES)&&G.logger.warn(`$ref: keywords ignored in schema at path "${D}"`)}function q(P){const{schema:R,opts:D}=P;R.default!==void 0&&D.useDefaults&&D.strictSchema&&(0,l.checkStrictMode)(P,"default is ignored in the schema root")}function F(P){const R=P.schema[P.opts.schemaId];R&&(P.baseId=(0,u.resolveUrl)(P.opts.uriResolver,P.baseId,R))}function K(P){if(P.schema.$async&&!P.schemaEnv.$async)throw new Error("async schema in sync schema")}function C({gen:P,schemaEnv:R,schema:D,errSchemaPath:z,opts:G}){const Z=D.$comment;if(G.$comment===!0)P.code((0,a._)`${c.default.self}.logger.log(${Z})`);else if(typeof G.$comment=="function"){const le=(0,a.str)`${z}/$comment`,ge=P.scopeValue("root",{ref:R.root});P.code((0,a._)`${c.default.self}.opts.$comment(${Z}, ${le}, ${ge}.schema)`)}}function M(P){const{gen:R,schemaEnv:D,validateName:z,ValidationError:G,opts:Z}=P;D.$async?R.if((0,a._)`${c.default.errors} === 0`,()=>R.return(c.default.data),()=>R.throw((0,a._)`new ${G}(${c.default.vErrors})`)):(R.assign((0,a._)`${z}.errors`,c.default.vErrors),Z.unevaluated&&U(P),R.return((0,a._)`${c.default.errors} === 0`))}function U({gen:P,evaluated:R,props:D,items:z}){D instanceof a.Name&&P.assign((0,a._)`${R}.props`,D),z instanceof a.Name&&P.assign((0,a._)`${R}.items`,z)}function H(P,R,D,z){const{gen:G,schema:Z,data:le,allErrors:ge,opts:fe,self:ye}=P,{RULES:me}=ye;if(Z.$ref&&(fe.ignoreKeywordsWithRef||!(0,l.schemaHasRulesButRef)(Z,me))){G.block(()=>J(P,"$ref",me.all.$ref.definition));return}fe.jtd||W(P,R),G.block(()=>{for(const _e of me.rules)ie(_e);ie(me.post)});function ie(_e){(0,r.shouldUseGroup)(Z,_e)&&(_e.type?(G.if((0,n.checkDataType)(_e.type,le,fe.strictNumbers)),ee(P,_e),R.length===1&&R[0]===_e.type&&D&&(G.else(),(0,n.reportTypeError)(P)),G.endIf()):ee(P,_e),ge||G.if((0,a._)`${c.default.errors} === ${z||0}`))}}function ee(P,R){const{gen:D,schema:z,opts:{useDefaults:G}}=P;G&&(0,s.assignDefaults)(P,R.type),D.block(()=>{for(const Z of R.rules)(0,r.shouldUseRule)(z,Z)&&J(P,Z.keyword,Z.definition,R.type)})}function W(P,R){P.schemaEnv.meta||!P.opts.strictTypes||(Q(P,R),P.opts.allowUnionTypes||V(P,R),N(P,P.dataTypes))}function Q(P,R){if(R.length){if(!P.dataTypes.length){P.dataTypes=R;return}R.forEach(D=>{T(P.dataTypes,D)||O(P,`type "${D}" not allowed by context "${P.dataTypes.join(",")}"`)}),E(P,R)}}function V(P,R){R.length>1&&!(R.length===2&&R.includes("null"))&&O(P,"use allowUnionTypes to allow union type keyword")}function N(P,R){const D=P.self.RULES.all;for(const z in D){const G=D[z];if(typeof G=="object"&&(0,r.shouldUseRule)(P.schema,G)){const{type:Z}=G.definition;Z.length&&!Z.some(le=>x(R,le))&&O(P,`missing type "${Z.join(",")}" for keyword "${z}"`)}}}function x(P,R){return P.includes(R)||R==="number"&&P.includes("integer")}function T(P,R){return P.includes(R)||R==="integer"&&P.includes("number")}function E(P,R){const D=[];for(const z of P.dataTypes)T(R,z)?D.push(z):R.includes("integer")&&z==="number"&&D.push("integer");P.dataTypes=D}function O(P,R){const D=P.schemaEnv.baseId+P.errSchemaPath;R+=` at "${D}" (strictTypes)`,(0,l.checkStrictMode)(P,R,P.opts.strictTypes)}class k{constructor(R,D,z){if((0,i.validateKeywordUsage)(R,D,z),this.gen=R.gen,this.allErrors=R.allErrors,this.keyword=z,this.data=R.data,this.schema=R.schema[z],this.$data=D.$data&&R.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,l.schemaRefOrVal)(R,this.schema,z,this.$data),this.schemaType=D.schemaType,this.parentSchema=R.schema,this.params={},this.it=R,this.def=D,this.$data)this.schemaCode=R.gen.const("vSchema",B(this.$data,R));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,D.schemaType,D.allowUndefined))throw new Error(`${z} value must be ${JSON.stringify(D.schemaType)}`);("code"in D?D.trackErrors:D.errors!==!1)&&(this.errsCount=R.gen.const("_errs",c.default.errors))}result(R,D,z){this.failResult((0,a.not)(R),D,z)}failResult(R,D,z){this.gen.if(R),z?z():this.error(),D?(this.gen.else(),D(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(R,D){this.failResult((0,a.not)(R),void 0,D)}fail(R){if(R===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(R),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(R){if(!this.$data)return this.fail(R);const{schemaCode:D}=this;this.fail((0,a._)`${D} !== undefined && (${(0,a.or)(this.invalid$data(),R)})`)}error(R,D,z){if(D){this.setParams(D),this._error(R,z),this.setParams({});return}this._error(R,z)}_error(R,D){(R?h.reportExtraError:h.reportError)(this,this.def.error,D)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(R){this.allErrors||this.gen.if(R)}setParams(R,D){D?Object.assign(this.params,R):this.params=R}block$data(R,D,z=a.nil){this.gen.block(()=>{this.check$data(R,z),D()})}check$data(R=a.nil,D=a.nil){if(!this.$data)return;const{gen:z,schemaCode:G,schemaType:Z,def:le}=this;z.if((0,a.or)((0,a._)`${G} === undefined`,D)),R!==a.nil&&z.assign(R,!0),(Z.length||le.validateSchema)&&(z.elseIf(this.invalid$data()),this.$dataError(),R!==a.nil&&z.assign(R,!1)),z.else()}invalid$data(){const{gen:R,schemaCode:D,schemaType:z,def:G,it:Z}=this;return(0,a.or)(le(),ge());function le(){if(z.length){if(!(D instanceof a.Name))throw new Error("ajv implementation error");const fe=Array.isArray(z)?z:[z];return(0,a._)`${(0,n.checkDataTypes)(fe,D,Z.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function ge(){if(G.validateSchema){const fe=R.scopeValue("validate$data",{ref:G.validateSchema});return(0,a._)`!${fe}(${D})`}return a.nil}}subschema(R,D){const z=(0,o.getSubschema)(this.it,R);(0,o.extendSubschemaData)(z,this.it,R),(0,o.extendSubschemaMode)(z,R);const G={...this.it,...z,items:void 0,props:void 0};return y(G,D),G}mergeEvaluated(R,D){const{it:z,gen:G}=this;z.opts.unevaluated&&(z.props!==!0&&R.props!==void 0&&(z.props=l.mergeEvaluated.props(G,R.props,z.props,D)),z.items!==!0&&R.items!==void 0&&(z.items=l.mergeEvaluated.items(G,R.items,z.items,D)))}mergeValidEvaluated(R,D){const{it:z,gen:G}=this;if(z.opts.unevaluated&&(z.props!==!0||z.items!==!0))return G.if(D,()=>this.mergeEvaluated(R,a.Name)),!0}}xe.KeywordCxt=k;function J(P,R,D,z){const G=new k(P,D,R);"code"in D?D.code(G,z):G.$data&&D.validate?(0,i.funcKeywordCode)(G,D):"macro"in D?(0,i.macroKeywordCode)(G,D):(D.compile||D.validate)&&(0,i.funcKeywordCode)(G,D)}const Y=/^\/(?:[^~]|~0|~1)*$/,L=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function B(P,{dataLevel:R,dataNames:D,dataPathArr:z}){let G,Z;if(P==="")return c.default.rootData;if(P[0]==="/"){if(!Y.test(P))throw new Error(`Invalid JSON-pointer: ${P}`);G=P,Z=c.default.rootData}else{const ye=L.exec(P);if(!ye)throw new Error(`Invalid JSON-pointer: ${P}`);const me=+ye[1];if(G=ye[2],G==="#"){if(me>=R)throw new Error(fe("property/index",me));return z[R-me]}if(me>R)throw new Error(fe("data",me));if(Z=D[R-me],!G)return Z}let le=Z;const ge=G.split("/");for(const ye of ge)ye&&(Z=(0,a._)`${Z}${(0,a.getProperty)((0,l.unescapeJsonPointer)(ye))}`,le=(0,a._)`${le} && ${Z}`);return le;function fe(ye,me){return`Cannot access ${ye} ${me} levels up, current level is ${R}`}}return xe.getData=B,xe}var Bt={},Lo;function ws(){if(Lo)return Bt;Lo=1,Object.defineProperty(Bt,"__esModule",{value:!0});class t extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Bt.default=t,Bt}var Wt={},Ko;function Yr(){if(Ko)return Wt;Ko=1,Object.defineProperty(Wt,"__esModule",{value:!0});const t=Hr();class e extends Error{constructor(n,s,i,o){super(o||`can't resolve reference ${i} from id ${s}`),this.missingRef=(0,t.resolveUrl)(n,s,i),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(n,this.missingRef))}}return Wt.default=e,Wt}var Pe={},zo;function Ss(){if(zo)return Pe;zo=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.resolveSchema=Pe.getCompilingSchema=Pe.resolveRef=Pe.compileSchema=Pe.SchemaEnv=void 0;const t=ne(),e=ws(),r=et(),n=Hr(),s=oe(),i=Jr();class o{constructor(d){var f;this.refs={},this.dynamicAnchors={};let y;typeof d.schema=="object"&&(y=d.schema),this.schema=d.schema,this.schemaId=d.schemaId,this.root=d.root||this,this.baseId=(f=d.baseId)!==null&&f!==void 0?f:(0,n.normalizeId)(y?.[d.schemaId||"$id"]),this.schemaPath=d.schemaPath,this.localRefs=d.localRefs,this.meta=d.meta,this.$async=y?.$async,this.refs={}}}Pe.SchemaEnv=o;function a(m){const d=l.call(this,m);if(d)return d;const f=(0,n.getFullPath)(this.opts.uriResolver,m.root.baseId),{es5:y,lines:b}=this.opts.code,{ownProperties:$}=this.opts,w=new t.CodeGen(this.scope,{es5:y,lines:b,ownProperties:$});let S;m.$async&&(S=w.scopeValue("Error",{ref:e.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const I=w.scopeName("validate");m.validateName=I;const A={gen:w,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:w.scopeValue("schema",this.opts.code.source===!0?{ref:m.schema,code:(0,t.stringify)(m.schema)}:{ref:m.schema}),validateName:I,ValidationError:S,schema:m.schema,schemaEnv:m,rootId:f,baseId:m.baseId||f,schemaPath:t.nil,errSchemaPath:m.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let q;try{this._compilations.add(m),(0,i.validateFunctionCode)(A),w.optimize(this.opts.code.optimize);const F=w.toString();q=`${w.scopeRefs(r.default.scope)}return ${F}`,this.opts.code.process&&(q=this.opts.code.process(q,m));const C=new Function(`${r.default.self}`,`${r.default.scope}`,q)(this,this.scope.get());if(this.scope.value(I,{ref:C}),C.errors=null,C.schema=m.schema,C.schemaEnv=m,m.$async&&(C.$async=!0),this.opts.code.source===!0&&(C.source={validateName:I,validateCode:F,scopeValues:w._values}),this.opts.unevaluated){const{props:M,items:U}=A;C.evaluated={props:M instanceof t.Name?void 0:M,items:U instanceof t.Name?void 0:U,dynamicProps:M instanceof t.Name,dynamicItems:U instanceof t.Name},C.source&&(C.source.evaluated=(0,t.stringify)(C.evaluated))}return m.validate=C,m}catch(F){throw delete m.validate,delete m.validateName,q&&this.logger.error("Error compiling schema, function code:",q),F}finally{this._compilations.delete(m)}}Pe.compileSchema=a;function c(m,d,f){var y;f=(0,n.resolveUrl)(this.opts.uriResolver,d,f);const b=m.refs[f];if(b)return b;let $=p.call(this,m,f);if($===void 0){const w=(y=m.localRefs)===null||y===void 0?void 0:y[f],{schemaId:S}=this.opts;w&&($=new o({schema:w,schemaId:S,root:m,baseId:d}))}if($!==void 0)return m.refs[f]=u.call(this,$)}Pe.resolveRef=c;function u(m){return(0,n.inlineRef)(m.schema,this.opts.inlineRefs)?m.schema:m.validate?m:a.call(this,m)}function l(m){for(const d of this._compilations)if(h(d,m))return d}Pe.getCompilingSchema=l;function h(m,d){return m.schema===d.schema&&m.root===d.root&&m.baseId===d.baseId}function p(m,d){let f;for(;typeof(f=this.refs[d])=="string";)d=f;return f||this.schemas[d]||g.call(this,m,d)}function g(m,d){const f=this.opts.uriResolver.parse(d),y=(0,n._getFullPath)(this.opts.uriResolver,f);let b=(0,n.getFullPath)(this.opts.uriResolver,m.baseId,void 0);if(Object.keys(m.schema).length>0&&y===b)return v.call(this,f,m);const $=(0,n.normalizeId)(y),w=this.refs[$]||this.schemas[$];if(typeof w=="string"){const S=g.call(this,m,w);return typeof S?.schema!="object"?void 0:v.call(this,f,S)}if(typeof w?.schema=="object"){if(w.validate||a.call(this,w),$===(0,n.normalizeId)(d)){const{schema:S}=w,{schemaId:I}=this.opts,A=S[I];return A&&(b=(0,n.resolveUrl)(this.opts.uriResolver,b,A)),new o({schema:S,schemaId:I,root:m,baseId:b})}return v.call(this,f,w)}}Pe.resolveSchema=g;const _=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function v(m,{baseId:d,schema:f,root:y}){var b;if(((b=m.fragment)===null||b===void 0?void 0:b[0])!=="/")return;for(const S of m.fragment.slice(1).split("/")){if(typeof f=="boolean")return;const I=f[(0,s.unescapeFragment)(S)];if(I===void 0)return;f=I;const A=typeof f=="object"&&f[this.opts.schemaId];!_.has(S)&&A&&(d=(0,n.resolveUrl)(this.opts.uriResolver,d,A))}let $;if(typeof f!="boolean"&&f.$ref&&!(0,s.schemaHasRulesButRef)(f,this.RULES)){const S=(0,n.resolveUrl)(this.opts.uriResolver,d,f.$ref);$=g.call(this,y,S)}const{schemaId:w}=this.opts;if($=$||new o({schema:f,schemaId:w,root:y,baseId:d}),$.schema!==$.root.schema)return $}return Pe}const Wp="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Gp="Meta-schema for $data reference (JSON AnySchema extension proposal)",Hp="object",Jp=["$data"],Yp={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Zp=!1,Xp={$id:Wp,description:Gp,type:Hp,required:Jp,properties:Yp,additionalProperties:Zp};var Gt={},Bo;function Qp(){if(Bo)return Gt;Bo=1,Object.defineProperty(Gt,"__esModule",{value:!0});const t=$l();return t.code='require("ajv/dist/runtime/uri").default',Gt.default=t,Gt}var Wo;function ey(){return Wo||(Wo=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=Jr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var r=ne();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=ws(),s=Yr(),i=el(),o=Ss(),a=ne(),c=Hr(),u=Mr(),l=oe(),h=Xp,p=Qp(),g=(V,N)=>new RegExp(V,N);g.code="new RegExp";const _=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m={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."},d={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},f=200;function y(V){var N,x,T,E,O,k,J,Y,L,B,P,R,D,z,G,Z,le,ge,fe,ye,me,ie,_e,Oe,Ne;const tt=V.strict,bt=(N=V.code)===null||N===void 0?void 0:N.optimize,Vt=bt===!0||bt===void 0?1:bt||0,Os=(T=(x=V.code)===null||x===void 0?void 0:x.regExp)!==null&&T!==void 0?T:g,al=(E=V.uriResolver)!==null&&E!==void 0?E:p.default;return{strictSchema:(k=(O=V.strictSchema)!==null&&O!==void 0?O:tt)!==null&&k!==void 0?k:!0,strictNumbers:(Y=(J=V.strictNumbers)!==null&&J!==void 0?J:tt)!==null&&Y!==void 0?Y:!0,strictTypes:(B=(L=V.strictTypes)!==null&&L!==void 0?L:tt)!==null&&B!==void 0?B:"log",strictTuples:(R=(P=V.strictTuples)!==null&&P!==void 0?P:tt)!==null&&R!==void 0?R:"log",strictRequired:(z=(D=V.strictRequired)!==null&&D!==void 0?D:tt)!==null&&z!==void 0?z:!1,code:V.code?{...V.code,optimize:Vt,regExp:Os}:{optimize:Vt,regExp:Os},loopRequired:(G=V.loopRequired)!==null&&G!==void 0?G:f,loopEnum:(Z=V.loopEnum)!==null&&Z!==void 0?Z:f,meta:(le=V.meta)!==null&&le!==void 0?le:!0,messages:(ge=V.messages)!==null&&ge!==void 0?ge:!0,inlineRefs:(fe=V.inlineRefs)!==null&&fe!==void 0?fe:!0,schemaId:(ye=V.schemaId)!==null&&ye!==void 0?ye:"$id",addUsedSchema:(me=V.addUsedSchema)!==null&&me!==void 0?me:!0,validateSchema:(ie=V.validateSchema)!==null&&ie!==void 0?ie:!0,validateFormats:(_e=V.validateFormats)!==null&&_e!==void 0?_e:!0,unicodeRegExp:(Oe=V.unicodeRegExp)!==null&&Oe!==void 0?Oe:!0,int32range:(Ne=V.int32range)!==null&&Ne!==void 0?Ne:!0,uriResolver:al}}class b{constructor(N={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts={...N,...y(N)};const{es5:x,lines:T}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:v,es5:x,lines:T}),this.logger=K(N.logger);const E=N.validateFormats;N.validateFormats=!1,this.RULES=(0,i.getRules)(),$.call(this,m,N,"NOT SUPPORTED"),$.call(this,d,N,"DEPRECATED","warn"),this._metaOpts=q.call(this),N.formats&&I.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&A.call(this,N.keywords),typeof N.meta=="object"&&this.addMetaSchema(N.meta),S.call(this),N.validateFormats=E}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:N,meta:x,schemaId:T}=this.opts;let E=h;T==="id"&&(E={...h},E.id=E.$id,delete E.$id),x&&N&&this.addMetaSchema(E,E[T],!1)}defaultMeta(){const{meta:N,schemaId:x}=this.opts;return this.opts.defaultMeta=typeof N=="object"?N[x]||N:void 0}validate(N,x){let T;if(typeof N=="string"){if(T=this.getSchema(N),!T)throw new Error(`no schema with key or ref "${N}"`)}else T=this.compile(N);const E=T(x);return"$async"in T||(this.errors=T.errors),E}compile(N,x){const T=this._addSchema(N,x);return T.validate||this._compileSchemaEnv(T)}compileAsync(N,x){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:T}=this.opts;return E.call(this,N,x);async function E(B,P){await O.call(this,B.$schema);const R=this._addSchema(B,P);return R.validate||k.call(this,R)}async function O(B){B&&!this.getSchema(B)&&await E.call(this,{$ref:B},!0)}async function k(B){try{return this._compileSchemaEnv(B)}catch(P){if(!(P instanceof s.default))throw P;return J.call(this,P),await Y.call(this,P.missingSchema),k.call(this,B)}}function J({missingSchema:B,missingRef:P}){if(this.refs[B])throw new Error(`AnySchema ${B} is loaded but ${P} cannot be resolved`)}async function Y(B){const P=await L.call(this,B);this.refs[B]||await O.call(this,P.$schema),this.refs[B]||this.addSchema(P,B,x)}async function L(B){const P=this._loading[B];if(P)return P;try{return await(this._loading[B]=T(B))}finally{delete this._loading[B]}}}addSchema(N,x,T,E=this.opts.validateSchema){if(Array.isArray(N)){for(const k of N)this.addSchema(k,void 0,T,E);return this}let O;if(typeof N=="object"){const{schemaId:k}=this.opts;if(O=N[k],O!==void 0&&typeof O!="string")throw new Error(`schema ${k} must be string`)}return x=(0,c.normalizeId)(x||O),this._checkUnique(x),this.schemas[x]=this._addSchema(N,T,x,E,!0),this}addMetaSchema(N,x,T=this.opts.validateSchema){return this.addSchema(N,x,!0,T),this}validateSchema(N,x){if(typeof N=="boolean")return!0;let T;if(T=N.$schema,T!==void 0&&typeof T!="string")throw new Error("$schema must be a string");if(T=T||this.opts.defaultMeta||this.defaultMeta(),!T)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const E=this.validate(T,N);if(!E&&x){const O="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(O);else throw new Error(O)}return E}getSchema(N){let x;for(;typeof(x=w.call(this,N))=="string";)N=x;if(x===void 0){const{schemaId:T}=this.opts,E=new o.SchemaEnv({schema:{},schemaId:T});if(x=o.resolveSchema.call(this,E,N),!x)return;this.refs[N]=x}return x.validate||this._compileSchemaEnv(x)}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":{const x=w.call(this,N);return typeof x=="object"&&this._cache.delete(x.schema),delete this.schemas[N],delete this.refs[N],this}case"object":{const x=N;this._cache.delete(x);let T=N[this.opts.schemaId];return T&&(T=(0,c.normalizeId)(T),delete this.schemas[T],delete this.refs[T]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(N){for(const x of N)this.addKeyword(x);return this}addKeyword(N,x){let T;if(typeof N=="string")T=N,typeof x=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),x.keyword=T);else if(typeof N=="object"&&x===void 0){if(x=N,T=x.keyword,Array.isArray(T)&&!T.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(M.call(this,T,x),!x)return(0,l.eachItem)(T,O=>U.call(this,O)),this;ee.call(this,x);const E={...x,type:(0,u.getJSONTypes)(x.type),schemaType:(0,u.getJSONTypes)(x.schemaType)};return(0,l.eachItem)(T,E.type.length===0?O=>U.call(this,O,E):O=>E.type.forEach(k=>U.call(this,O,E,k))),this}getKeyword(N){const x=this.RULES.all[N];return typeof x=="object"?x.definition:!!x}removeKeyword(N){const{RULES:x}=this;delete x.keywords[N],delete x.all[N];for(const T of x.rules){const E=T.rules.findIndex(O=>O.keyword===N);E>=0&&T.rules.splice(E,1)}return this}addFormat(N,x){return typeof x=="string"&&(x=new RegExp(x)),this.formats[N]=x,this}errorsText(N=this.errors,{separator:x=", ",dataVar:T="data"}={}){return!N||N.length===0?"No errors":N.map(E=>`${T}${E.instancePath} ${E.message}`).reduce((E,O)=>E+x+O)}$dataMetaSchema(N,x){const T=this.RULES.all;N=JSON.parse(JSON.stringify(N));for(const E of x){const O=E.split("/").slice(1);let k=N;for(const J of O)k=k[J];for(const J in T){const Y=T[J];if(typeof Y!="object")continue;const{$data:L}=Y.definition,B=k[J];L&&B&&(k[J]=Q(B))}}return N}_removeAllSchemas(N,x){for(const T in N){const E=N[T];(!x||x.test(T))&&(typeof E=="string"?delete N[T]:E&&!E.meta&&(this._cache.delete(E.schema),delete N[T]))}}_addSchema(N,x,T,E=this.opts.validateSchema,O=this.opts.addUsedSchema){let k;const{schemaId:J}=this.opts;if(typeof N=="object")k=N[J];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 Y=this._cache.get(N);if(Y!==void 0)return Y;T=(0,c.normalizeId)(k||T);const L=c.getSchemaRefs.call(this,N,T);return Y=new o.SchemaEnv({schema:N,schemaId:J,meta:x,baseId:T,localRefs:L}),this._cache.set(Y.schema,Y),O&&!T.startsWith("#")&&(T&&this._checkUnique(T),this.refs[T]=Y),E&&this.validateSchema(N,!0),Y}_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):o.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}_compileMetaSchema(N){const x=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,N)}finally{this.opts=x}}}b.ValidationError=n.default,b.MissingRefError=s.default,t.default=b;function $(V,N,x,T="error"){for(const E in V){const O=E;O in N&&this.logger[T](`${x}: option ${E}. ${V[O]}`)}}function w(V){return V=(0,c.normalizeId)(V),this.schemas[V]||this.refs[V]}function S(){const V=this.opts.schemas;if(V)if(Array.isArray(V))this.addSchema(V);else for(const N in V)this.addSchema(V[N],N)}function I(){for(const V in this.opts.formats){const N=this.opts.formats[V];N&&this.addFormat(V,N)}}function A(V){if(Array.isArray(V)){this.addVocabulary(V);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const N in V){const x=V[N];x.keyword||(x.keyword=N),this.addKeyword(x)}}function q(){const V={...this.opts};for(const N of _)delete V[N];return V}const F={log(){},warn(){},error(){}};function K(V){if(V===!1)return F;if(V===void 0)return console;if(V.log&&V.warn&&V.error)return V;throw new Error("logger must implement log, warn and error methods")}const C=/^[a-z_$][a-z0-9_$:-]*$/i;function M(V,N){const{RULES:x}=this;if((0,l.eachItem)(V,T=>{if(x.keywords[T])throw new Error(`Keyword ${T} is already defined`);if(!C.test(T))throw new Error(`Keyword ${T} has invalid name`)}),!!N&&N.$data&&!("code"in N||"validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function U(V,N,x){var T;const E=N?.post;if(x&&E)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:O}=this;let k=E?O.post:O.rules.find(({type:Y})=>Y===x);if(k||(k={type:x,rules:[]},O.rules.push(k)),O.keywords[V]=!0,!N)return;const J={keyword:V,definition:{...N,type:(0,u.getJSONTypes)(N.type),schemaType:(0,u.getJSONTypes)(N.schemaType)}};N.before?H.call(this,k,J,N.before):k.rules.push(J),O.all[V]=J,(T=N.implements)===null||T===void 0||T.forEach(Y=>this.addKeyword(Y))}function H(V,N,x){const T=V.rules.findIndex(E=>E.keyword===x);T>=0?V.rules.splice(T,0,N):(V.rules.push(N),this.logger.warn(`rule ${x} is not defined`))}function ee(V){let{metaSchema:N}=V;N!==void 0&&(V.$data&&this.opts.$data&&(N=Q(N)),V.validateSchema=this.compile(N,!0))}const W={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Q(V){return{anyOf:[V,W]}}})(Ti)),Ti}var Ht={},Jt={},Yt={},Go;function ty(){if(Go)return Yt;Go=1,Object.defineProperty(Yt,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Yt.default=t,Yt}var He={},Ho;function ry(){if(Ho)return He;Ho=1,Object.defineProperty(He,"__esModule",{value:!0}),He.callRef=He.getValidate=void 0;const t=Yr(),e=Te(),r=ne(),n=et(),s=Ss(),i=oe(),o={keyword:"$ref",schemaType:"string",code(u){const{gen:l,schema:h,it:p}=u,{baseId:g,schemaEnv:_,validateName:v,opts:m,self:d}=p,{root:f}=_;if((h==="#"||h==="#/")&&g===f.baseId)return b();const y=s.resolveRef.call(d,f,g,h);if(y===void 0)throw new t.default(p.opts.uriResolver,g,h);if(y instanceof s.SchemaEnv)return $(y);return w(y);function b(){if(_===f)return c(u,v,_,_.$async);const S=l.scopeValue("root",{ref:f});return c(u,(0,r._)`${S}.validate`,f,f.$async)}function $(S){const I=a(u,S);c(u,I,S,S.$async)}function w(S){const I=l.scopeValue("schema",m.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),A=l.name("valid"),q=u.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:I,errSchemaPath:h},A);u.mergeEvaluated(q),u.ok(A)}}};function a(u,l){const{gen:h}=u;return l.validate?h.scopeValue("validate",{ref:l.validate}):(0,r._)`${h.scopeValue("wrapper",{ref:l})}.validate`}He.getValidate=a;function c(u,l,h,p){const{gen:g,it:_}=u,{allErrors:v,schemaEnv:m,opts:d}=_,f=d.passContext?n.default.this:r.nil;p?y():b();function y(){if(!m.$async)throw new Error("async schema referenced by sync schema");const S=g.let("valid");g.try(()=>{g.code((0,r._)`await ${(0,e.callValidateCode)(u,l,f)}`),w(l),v||g.assign(S,!0)},I=>{g.if((0,r._)`!(${I} instanceof ${_.ValidationError})`,()=>g.throw(I)),$(I),v||g.assign(S,!1)}),u.ok(S)}function b(){u.result((0,e.callValidateCode)(u,l,f),()=>w(l),()=>$(l))}function $(S){const I=(0,r._)`${S}.errors`;g.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${I} : ${n.default.vErrors}.concat(${I})`),g.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function w(S){var I;if(!_.opts.unevaluated)return;const A=(I=h?.validate)===null||I===void 0?void 0:I.evaluated;if(_.props!==!0)if(A&&!A.dynamicProps)A.props!==void 0&&(_.props=i.mergeEvaluated.props(g,A.props,_.props));else{const q=g.var("props",(0,r._)`${S}.evaluated.props`);_.props=i.mergeEvaluated.props(g,q,_.props,r.Name)}if(_.items!==!0)if(A&&!A.dynamicItems)A.items!==void 0&&(_.items=i.mergeEvaluated.items(g,A.items,_.items));else{const q=g.var("items",(0,r._)`${S}.evaluated.items`);_.items=i.mergeEvaluated.items(g,q,_.items,r.Name)}}}return He.callRef=c,He.default=o,He}var Jo;function ny(){if(Jo)return Jt;Jo=1,Object.defineProperty(Jt,"__esModule",{value:!0});const t=ty(),e=ry(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return Jt.default=r,Jt}var Zt={},Xt={},Yo;function iy(){if(Yo)return Xt;Yo=1,Object.defineProperty(Xt,"__esModule",{value:!0});const t=ne(),e=t.operators,r={maximum:{okStr:"<=",ok:e.LTE,fail:e.GT},minimum:{okStr:">=",ok:e.GTE,fail:e.LT},exclusiveMaximum:{okStr:"<",ok:e.LT,fail:e.GTE},exclusiveMinimum:{okStr:">",ok:e.GT,fail:e.LTE}},n={message:({keyword:i,schemaCode:o})=>(0,t.str)`must be ${r[i].okStr} ${o}`,params:({keyword:i,schemaCode:o})=>(0,t._)`{comparison: ${r[i].okStr}, limit: ${o}}`},s={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(i){const{keyword:o,data:a,schemaCode:c}=i;i.fail$data((0,t._)`${a} ${r[o].fail} ${c} || isNaN(${a})`)}};return Xt.default=s,Xt}var Qt={},Zo;function sy(){if(Zo)return Qt;Zo=1,Object.defineProperty(Qt,"__esModule",{value:!0});const t=ne(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,t._)`{multipleOf: ${n}}`},code(n){const{gen:s,data:i,schemaCode:o,it:a}=n,c=a.opts.multipleOfPrecision,u=s.let("res"),l=c?(0,t._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}`:(0,t._)`${u} !== parseInt(${u})`;n.fail$data((0,t._)`(${o} === 0 || (${u} = ${i}/${o}, ${l}))`)}};return Qt.default=r,Qt}var er={},tr={},Xo;function ay(){if(Xo)return tr;Xo=1,Object.defineProperty(tr,"__esModule",{value:!0});function t(e){const r=e.length;let n=0,s=0,i;for(;s<r;)n++,i=e.charCodeAt(s++),i>=55296&&i<=56319&&s<r&&(i=e.charCodeAt(s),(i&64512)===56320&&s++);return n}return tr.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',tr}var Qo;function oy(){if(Qo)return er;Qo=1,Object.defineProperty(er,"__esModule",{value:!0});const t=ne(),e=oe(),r=ay(),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:o}){const a=i==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${a} than ${o} characters`},params:({schemaCode:i})=>(0,t._)`{limit: ${i}}`},code(i){const{keyword:o,data:a,schemaCode:c,it:u}=i,l=o==="maxLength"?t.operators.GT:t.operators.LT,h=u.opts.unicode===!1?(0,t._)`${a}.length`:(0,t._)`${(0,e.useFunc)(i.gen,r.default)}(${a})`;i.fail$data((0,t._)`${h} ${l} ${c}`)}};return er.default=s,er}var rr={},ec;function cy(){if(ec)return rr;ec=1,Object.defineProperty(rr,"__esModule",{value:!0});const t=Te(),e=oe(),r=ne(),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,r.str)`must match pattern "${i}"`,params:({schemaCode:i})=>(0,r._)`{pattern: ${i}}`},code(i){const{gen:o,data:a,$data:c,schema:u,schemaCode:l,it:h}=i,p=h.opts.unicodeRegExp?"u":"";if(c){const{regExp:g}=h.opts.code,_=g.code==="new RegExp"?(0,r._)`new RegExp`:(0,e.useFunc)(o,g),v=o.let("valid");o.try(()=>o.assign(v,(0,r._)`${_}(${l}, ${p}).test(${a})`),()=>o.assign(v,!1)),i.fail$data((0,r._)`!${v}`)}else{const g=(0,t.usePattern)(i,u);i.fail$data((0,r._)`!${g}.test(${a})`)}}};return rr.default=s,rr}var nr={},tc;function uy(){if(tc)return nr;tc=1,Object.defineProperty(nr,"__esModule",{value:!0});const t=ne(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const i=n==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${i} than ${s} properties`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:s,data:i,schemaCode:o}=n,a=s==="maxProperties"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`Object.keys(${i}).length ${a} ${o}`)}};return nr.default=r,nr}var ir={},rc;function ly(){if(rc)return ir;rc=1,Object.defineProperty(ir,"__esModule",{value:!0});const t=Te(),e=ne(),r=oe(),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:i}})=>(0,e.str)`must have required property '${i}'`,params:({params:{missingProperty:i}})=>(0,e._)`{missingProperty: ${i}}`},code(i){const{gen:o,schema:a,schemaCode:c,data:u,$data:l,it:h}=i,{opts:p}=h;if(!l&&a.length===0)return;const g=a.length>=p.loopRequired;if(h.allErrors?_():v(),p.strictRequired){const f=i.parentSchema.properties,{definedProperties:y}=i.it;for(const b of a)if(f?.[b]===void 0&&!y.has(b)){const $=h.schemaEnv.baseId+h.errSchemaPath,w=`required property "${b}" is not defined at "${$}" (strictRequired)`;(0,r.checkStrictMode)(h,w,h.opts.strictRequired)}}function _(){if(g||l)i.block$data(e.nil,m);else for(const f of a)(0,t.checkReportMissingProp)(i,f)}function v(){const f=o.let("missing");if(g||l){const y=o.let("valid",!0);i.block$data(y,()=>d(f,y)),i.ok(y)}else o.if((0,t.checkMissingProp)(i,a,f)),(0,t.reportMissingProp)(i,f),o.else()}function m(){o.forOf("prop",c,f=>{i.setParams({missingProperty:f}),o.if((0,t.noPropertyInData)(o,u,f,p.ownProperties),()=>i.error())})}function d(f,y){i.setParams({missingProperty:f}),o.forOf(f,c,()=>{o.assign(y,(0,t.propertyInData)(o,u,f,p.ownProperties)),o.if((0,e.not)(y),()=>{i.error(),o.break()})},e.nil)}}};return ir.default=s,ir}var sr={},nc;function dy(){if(nc)return sr;nc=1,Object.defineProperty(sr,"__esModule",{value:!0});const t=ne(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const i=n==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${i} than ${s} items`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:s,data:i,schemaCode:o}=n,a=s==="maxItems"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`${i}.length ${a} ${o}`)}};return sr.default=r,sr}var ar={},or={},ic;function Es(){if(ic)return or;ic=1,Object.defineProperty(or,"__esModule",{value:!0});const t=Gc();return t.code='require("ajv/dist/runtime/equal").default',or.default=t,or}var sc;function fy(){if(sc)return ar;sc=1,Object.defineProperty(ar,"__esModule",{value:!0});const t=Mr(),e=ne(),r=oe(),n=Es(),i={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:o,j:a}})=>(0,e.str)`must NOT have duplicate items (items ## ${a} and ${o} are identical)`,params:({params:{i:o,j:a}})=>(0,e._)`{i: ${o}, j: ${a}}`},code(o){const{gen:a,data:c,$data:u,schema:l,parentSchema:h,schemaCode:p,it:g}=o;if(!u&&!l)return;const _=a.let("valid"),v=h.items?(0,t.getSchemaTypes)(h.items):[];o.block$data(_,m,(0,e._)`${p} === false`),o.ok(_);function m(){const b=a.let("i",(0,e._)`${c}.length`),$=a.let("j");o.setParams({i:b,j:$}),a.assign(_,!0),a.if((0,e._)`${b} > 1`,()=>(d()?f:y)(b,$))}function d(){return v.length>0&&!v.some(b=>b==="object"||b==="array")}function f(b,$){const w=a.name("item"),S=(0,t.checkDataTypes)(v,w,g.opts.strictNumbers,t.DataType.Wrong),I=a.const("indices",(0,e._)`{}`);a.for((0,e._)`;${b}--;`,()=>{a.let(w,(0,e._)`${c}[${b}]`),a.if(S,(0,e._)`continue`),v.length>1&&a.if((0,e._)`typeof ${w} == "string"`,(0,e._)`${w} += "_"`),a.if((0,e._)`typeof ${I}[${w}] == "number"`,()=>{a.assign($,(0,e._)`${I}[${w}]`),o.error(),a.assign(_,!1).break()}).code((0,e._)`${I}[${w}] = ${b}`)})}function y(b,$){const w=(0,r.useFunc)(a,n.default),S=a.name("outer");a.label(S).for((0,e._)`;${b}--;`,()=>a.for((0,e._)`${$} = ${b}; ${$}--;`,()=>a.if((0,e._)`${w}(${c}[${b}], ${c}[${$}])`,()=>{o.error(),a.assign(_,!1).break(S)})))}}};return ar.default=i,ar}var cr={},ac;function hy(){if(ac)return cr;ac=1,Object.defineProperty(cr,"__esModule",{value:!0});const t=ne(),e=oe(),r=Es(),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:i})=>(0,t._)`{allowedValue: ${i}}`},code(i){const{gen:o,data:a,$data:c,schemaCode:u,schema:l}=i;c||l&&typeof l=="object"?i.fail$data((0,t._)`!${(0,e.useFunc)(o,r.default)}(${a}, ${u})`):i.fail((0,t._)`${l} !== ${a}`)}};return cr.default=s,cr}var ur={},oc;function my(){if(oc)return ur;oc=1,Object.defineProperty(ur,"__esModule",{value:!0});const t=ne(),e=oe(),r=Es(),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:i})=>(0,t._)`{allowedValues: ${i}}`},code(i){const{gen:o,data:a,$data:c,schema:u,schemaCode:l,it:h}=i;if(!c&&u.length===0)throw new Error("enum must have non-empty array");const p=u.length>=h.opts.loopEnum;let g;const _=()=>g??(g=(0,e.useFunc)(o,r.default));let v;if(p||c)v=o.let("valid"),i.block$data(v,m);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const f=o.const("vSchema",l);v=(0,t.or)(...u.map((y,b)=>d(f,b)))}i.pass(v);function m(){o.assign(v,!1),o.forOf("v",l,f=>o.if((0,t._)`${_()}(${a}, ${f})`,()=>o.assign(v,!0).break()))}function d(f,y){const b=u[y];return typeof b=="object"&&b!==null?(0,t._)`${_()}(${a}, ${f}[${y}])`:(0,t._)`${a} === ${b}`}}};return ur.default=s,ur}var cc;function py(){if(cc)return Zt;cc=1,Object.defineProperty(Zt,"__esModule",{value:!0});const t=iy(),e=sy(),r=oy(),n=cy(),s=uy(),i=ly(),o=dy(),a=fy(),c=hy(),u=my(),l=[t.default,e.default,r.default,n.default,s.default,i.default,o.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,u.default];return Zt.default=l,Zt}var lr={},dt={},uc;function rl(){if(uc)return dt;uc=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.validateAdditionalItems=void 0;const t=ne(),e=oe(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,t.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,t._)`{limit: ${i}}`},code(i){const{parentSchema:o,it:a}=i,{items:c}=o;if(!Array.isArray(c)){(0,e.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}s(i,c)}};function s(i,o){const{gen:a,schema:c,data:u,keyword:l,it:h}=i;h.items=!0;const p=a.const("len",(0,t._)`${u}.length`);if(c===!1)i.setParams({len:o.length}),i.pass((0,t._)`${p} <= ${o.length}`);else if(typeof c=="object"&&!(0,e.alwaysValidSchema)(h,c)){const _=a.var("valid",(0,t._)`${p} <= ${o.length}`);a.if((0,t.not)(_),()=>g(_)),i.ok(_)}function g(_){a.forRange("i",o.length,p,v=>{i.subschema({keyword:l,dataProp:v,dataPropType:e.Type.Num},_),h.allErrors||a.if((0,t.not)(_),()=>a.break())})}}return dt.validateAdditionalItems=s,dt.default=n,dt}var dr={},ft={},lc;function nl(){if(lc)return ft;lc=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.validateTuple=void 0;const t=ne(),e=oe(),r=Te(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(i){const{schema:o,it:a}=i;if(Array.isArray(o))return s(i,"additionalItems",o);a.items=!0,!(0,e.alwaysValidSchema)(a,o)&&i.ok((0,r.validateArray)(i))}};function s(i,o,a=i.schema){const{gen:c,parentSchema:u,data:l,keyword:h,it:p}=i;v(u),p.opts.unevaluated&&a.length&&p.items!==!0&&(p.items=e.mergeEvaluated.items(c,a.length,p.items));const g=c.name("valid"),_=c.const("len",(0,t._)`${l}.length`);a.forEach((m,d)=>{(0,e.alwaysValidSchema)(p,m)||(c.if((0,t._)`${_} > ${d}`,()=>i.subschema({keyword:h,schemaProp:d,dataProp:d},g)),i.ok(g))});function v(m){const{opts:d,errSchemaPath:f}=p,y=a.length,b=y===m.minItems&&(y===m.maxItems||m[o]===!1);if(d.strictTuples&&!b){const $=`"${h}" is ${y}-tuple, but minItems or maxItems/${o} are not specified or different at path "${f}"`;(0,e.checkStrictMode)(p,$,d.strictTuples)}}}return ft.validateTuple=s,ft.default=n,ft}var dc;function yy(){if(dc)return dr;dc=1,Object.defineProperty(dr,"__esModule",{value:!0});const t=nl(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,t.validateTuple)(r,"items")};return dr.default=e,dr}var fr={},fc;function gy(){if(fc)return fr;fc=1,Object.defineProperty(fr,"__esModule",{value:!0});const t=ne(),e=oe(),r=Te(),n=rl(),i={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,t.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,t._)`{limit: ${o}}`},code(o){const{schema:a,parentSchema:c,it:u}=o,{prefixItems:l}=c;u.items=!0,!(0,e.alwaysValidSchema)(u,a)&&(l?(0,n.validateAdditionalItems)(o,l):o.ok((0,r.validateArray)(o)))}};return fr.default=i,fr}var hr={},hc;function vy(){if(hc)return hr;hc=1,Object.defineProperty(hr,"__esModule",{value:!0});const t=ne(),e=oe(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:s,max:i}})=>i===void 0?(0,t.str)`must contain at least ${s} valid item(s)`:(0,t.str)`must contain at least ${s} and no more than ${i} valid item(s)`,params:({params:{min:s,max:i}})=>i===void 0?(0,t._)`{minContains: ${s}}`:(0,t._)`{minContains: ${s}, maxContains: ${i}}`},code(s){const{gen:i,schema:o,parentSchema:a,data:c,it:u}=s;let l,h;const{minContains:p,maxContains:g}=a;u.opts.next?(l=p===void 0?1:p,h=g):l=1;const _=i.const("len",(0,t._)`${c}.length`);if(s.setParams({min:l,max:h}),h===void 0&&l===0){(0,e.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&l>h){(0,e.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,e.alwaysValidSchema)(u,o)){let y=(0,t._)`${_} >= ${l}`;h!==void 0&&(y=(0,t._)`${y} && ${_} <= ${h}`),s.pass(y);return}u.items=!0;const v=i.name("valid");h===void 0&&l===1?d(v,()=>i.if(v,()=>i.break())):l===0?(i.let(v,!0),h!==void 0&&i.if((0,t._)`${c}.length > 0`,m)):(i.let(v,!1),m()),s.result(v,()=>s.reset());function m(){const y=i.name("_valid"),b=i.let("count",0);d(y,()=>i.if(y,()=>f(b)))}function d(y,b){i.forRange("i",0,_,$=>{s.subschema({keyword:"contains",dataProp:$,dataPropType:e.Type.Num,compositeRule:!0},y),b()})}function f(y){i.code((0,t._)`${y}++`),h===void 0?i.if((0,t._)`${y} >= ${l}`,()=>i.assign(v,!0).break()):(i.if((0,t._)`${y} > ${h}`,()=>i.assign(v,!1).break()),l===1?i.assign(v,!0):i.if((0,t._)`${y} >= ${l}`,()=>i.assign(v,!0)))}}};return hr.default=n,hr}var Ui={},mc;function _y(){return mc||(mc=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=ne(),r=oe(),n=Te();t.error={message:({params:{property:c,depsCount:u,deps:l}})=>{const h=u===1?"property":"properties";return(0,e.str)`must have ${h} ${l} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:l,missingProperty:h}})=>(0,e._)`{property: ${c},
25
+ || ${I} === "boolean" || ${w} === null`).assign(A,(0,n._)`[${w}]`)}}}function p({gen:f,parentData:y,parentDataProperty:b},$){f.if((0,n._)`${y} !== undefined`,()=>f.assign((0,n._)`${y}[${b}]`,$))}function g(f,y,b,$=i.Correct){const w=$===i.Correct?n.operators.EQ:n.operators.NEQ;let S;switch(f){case"null":return(0,n._)`${y} ${w} null`;case"array":S=(0,n._)`Array.isArray(${y})`;break;case"object":S=(0,n._)`${y} && typeof ${y} == "object" && !Array.isArray(${y})`;break;case"integer":S=I((0,n._)`!(${y} % 1) && !isNaN(${y})`);break;case"number":S=I();break;default:return(0,n._)`typeof ${y} ${w} ${f}`}return $===i.Correct?S:(0,n.not)(S);function I(A=n.nil){return(0,n.and)((0,n._)`typeof ${y} == "number"`,A,b?(0,n._)`isFinite(${y})`:n.nil)}}$e.checkDataType=g;function _(f,y,b,$){if(f.length===1)return g(f[0],y,b,$);let w;const S=(0,s.toHash)(f);if(S.array&&S.object){const I=(0,n._)`typeof ${y} != "object"`;w=S.null?I:(0,n._)`!${y} || ${I}`,delete S.null,delete S.array,delete S.object}else w=n.nil;S.number&&delete S.integer;for(const I in S)w=(0,n.and)(w,g(I,y,b,$));return w}$e.checkDataTypes=_;const v={message:({schema:f})=>`must be ${f}`,params:({schema:f,schemaValue:y})=>typeof f=="string"?(0,n._)`{type: ${f}}`:(0,n._)`{type: ${y}}`};function m(f){const y=d(f);(0,r.reportError)(y,v)}$e.reportTypeError=m;function d(f){const{gen:y,data:b,schema:$}=f,w=(0,s.schemaRefOrVal)(f,$,"type");return{gen:y,keyword:"type",data:b,schema:$.type,schemaCode:w,schemaValue:w,parentSchema:$,params:{},it:f}}return $e}var Ot={},ko;function Lp(){if(ko)return Ot;ko=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.assignDefaults=void 0;const t=ne(),e=oe();function r(s,i){const{properties:o,items:a}=s.schema;if(i==="object"&&o)for(const c in o)n(s,c,o[c].default);else i==="array"&&Array.isArray(a)&&a.forEach((c,u)=>n(s,u,c.default))}Ot.assignDefaults=r;function n(s,i,o){const{gen:a,compositeRule:c,data:u,opts:l}=s;if(o===void 0)return;const h=(0,t._)`${u}${(0,t.getProperty)(i)}`;if(c){(0,e.checkStrictMode)(s,`default is ignored for: ${h}`);return}let p=(0,t._)`${h} === undefined`;l.useDefaults==="empty"&&(p=(0,t._)`${p} || ${h} === null || ${h} === ""`),a.if(p,(0,t._)`${h} = ${(0,t.stringify)(o)}`)}return Ot}var qe={},de={},Fo;function Te(){if(Fo)return de;Fo=1,Object.defineProperty(de,"__esModule",{value:!0}),de.validateUnion=de.validateArray=de.usePattern=de.callValidateCode=de.schemaProperties=de.allSchemaProperties=de.noPropertyInData=de.propertyInData=de.isOwnProperty=de.hasPropFunc=de.reportMissingProp=de.checkMissingProp=de.checkReportMissingProp=void 0;const t=ne(),e=oe(),r=et(),n=oe();function s(f,y){const{gen:b,data:$,it:w}=f;b.if(l(b,$,y,w.opts.ownProperties),()=>{f.setParams({missingProperty:(0,t._)`${y}`},!0),f.error()})}de.checkReportMissingProp=s;function i({gen:f,data:y,it:{opts:b}},$,w){return(0,t.or)(...$.map(S=>(0,t.and)(l(f,y,S,b.ownProperties),(0,t._)`${w} = ${S}`)))}de.checkMissingProp=i;function o(f,y){f.setParams({missingProperty:y},!0),f.error()}de.reportMissingProp=o;function a(f){return f.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}de.hasPropFunc=a;function c(f,y,b){return(0,t._)`${a(f)}.call(${y}, ${b})`}de.isOwnProperty=c;function u(f,y,b,$){const w=(0,t._)`${y}${(0,t.getProperty)(b)} !== undefined`;return $?(0,t._)`${w} && ${c(f,y,b)}`:w}de.propertyInData=u;function l(f,y,b,$){const w=(0,t._)`${y}${(0,t.getProperty)(b)} === undefined`;return $?(0,t.or)(w,(0,t.not)(c(f,y,b))):w}de.noPropertyInData=l;function h(f){return f?Object.keys(f).filter(y=>y!=="__proto__"):[]}de.allSchemaProperties=h;function p(f,y){return h(y).filter(b=>!(0,e.alwaysValidSchema)(f,y[b]))}de.schemaProperties=p;function g({schemaCode:f,data:y,it:{gen:b,topSchemaRef:$,schemaPath:w,errorPath:S},it:I},A,q,F){const K=F?(0,t._)`${f}, ${y}, ${$}${w}`:y,C=[[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,S)],[r.default.parentData,I.parentData],[r.default.parentDataProperty,I.parentDataProperty],[r.default.rootData,r.default.rootData]];I.opts.dynamicRef&&C.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const M=(0,t._)`${K}, ${b.object(...C)}`;return q!==t.nil?(0,t._)`${A}.call(${q}, ${M})`:(0,t._)`${A}(${M})`}de.callValidateCode=g;const _=(0,t._)`new RegExp`;function v({gen:f,it:{opts:y}},b){const $=y.unicodeRegExp?"u":"",{regExp:w}=y.code,S=w(b,$);return f.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,t._)`${w.code==="new RegExp"?_:(0,n.useFunc)(f,w)}(${b}, ${$})`})}de.usePattern=v;function m(f){const{gen:y,data:b,keyword:$,it:w}=f,S=y.name("valid");if(w.allErrors){const A=y.let("valid",!0);return I(()=>y.assign(A,!1)),A}return y.var(S,!0),I(()=>y.break()),S;function I(A){const q=y.const("len",(0,t._)`${b}.length`);y.forRange("i",0,q,F=>{f.subschema({keyword:$,dataProp:F,dataPropType:e.Type.Num},S),y.if((0,t.not)(S),A)})}}de.validateArray=m;function d(f){const{gen:y,schema:b,keyword:$,it:w}=f;if(!Array.isArray(b))throw new Error("ajv implementation error");if(b.some(q=>(0,e.alwaysValidSchema)(w,q))&&!w.opts.unevaluated)return;const I=y.let("valid",!1),A=y.name("_valid");y.block(()=>b.forEach((q,F)=>{const K=f.subschema({keyword:$,schemaProp:F,compositeRule:!0},A);y.assign(I,(0,t._)`${I} || ${A}`),f.mergeValidEvaluated(K,A)||y.if((0,t.not)(I))})),f.result(I,()=>f.reset(),()=>f.error(!0))}return de.validateUnion=d,de}var Do;function Kp(){if(Do)return qe;Do=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.validateKeywordUsage=qe.validSchemaType=qe.funcKeywordCode=qe.macroKeywordCode=void 0;const t=ne(),e=et(),r=Te(),n=Gr();function s(p,g){const{gen:_,keyword:v,schema:m,parentSchema:d,it:f}=p,y=g.macro.call(f.self,m,d,f),b=u(_,v,y);f.opts.validateSchema!==!1&&f.self.validateSchema(y,!0);const $=_.name("valid");p.subschema({schema:y,schemaPath:t.nil,errSchemaPath:`${f.errSchemaPath}/${v}`,topSchemaRef:b,compositeRule:!0},$),p.pass($,()=>p.error(!0))}qe.macroKeywordCode=s;function i(p,g){var _;const{gen:v,keyword:m,schema:d,parentSchema:f,$data:y,it:b}=p;c(b,g);const $=!y&&g.compile?g.compile.call(b.self,d,f,b):g.validate,w=u(v,m,$),S=v.let("valid");p.block$data(S,I),p.ok((_=g.valid)!==null&&_!==void 0?_:S);function I(){if(g.errors===!1)F(),g.modifying&&o(p),K(()=>p.error());else{const C=g.async?A():q();g.modifying&&o(p),K(()=>a(p,C))}}function A(){const C=v.let("ruleErrs",null);return v.try(()=>F((0,t._)`await `),M=>v.assign(S,!1).if((0,t._)`${M} instanceof ${b.ValidationError}`,()=>v.assign(C,(0,t._)`${M}.errors`),()=>v.throw(M))),C}function q(){const C=(0,t._)`${w}.errors`;return v.assign(C,null),F(t.nil),C}function F(C=g.async?(0,t._)`await `:t.nil){const M=b.opts.passContext?e.default.this:e.default.self,U=!("compile"in g&&!y||g.schema===!1);v.assign(S,(0,t._)`${C}${(0,r.callValidateCode)(p,w,M,U)}`,g.modifying)}function K(C){var M;v.if((0,t.not)((M=g.valid)!==null&&M!==void 0?M:S),C)}}qe.funcKeywordCode=i;function o(p){const{gen:g,data:_,it:v}=p;g.if(v.parentData,()=>g.assign(_,(0,t._)`${v.parentData}[${v.parentDataProperty}]`))}function a(p,g){const{gen:_}=p;_.if((0,t._)`Array.isArray(${g})`,()=>{_.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${g} : ${e.default.vErrors}.concat(${g})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,n.extendErrors)(p)},()=>p.error())}function c({schemaEnv:p},g){if(g.async&&!p.$async)throw new Error("async keyword in sync schema")}function u(p,g,_){if(_===void 0)throw new Error(`keyword "${g}" failed to compile`);return p.scopeValue("keyword",typeof _=="function"?{ref:_}:{ref:_,code:(0,t.stringify)(_)})}function l(p,g,_=!1){return!g.length||g.some(v=>v==="array"?Array.isArray(p):v==="object"?p&&typeof p=="object"&&!Array.isArray(p):typeof p==v||_&&typeof p>"u")}qe.validSchemaType=l;function h({schema:p,opts:g,self:_,errSchemaPath:v},m,d){if(Array.isArray(m.keyword)?!m.keyword.includes(d):m.keyword!==d)throw new Error("ajv implementation error");const f=m.dependencies;if(f?.some(y=>!Object.prototype.hasOwnProperty.call(p,y)))throw new Error(`parent schema must have dependencies of ${d}: ${f.join(",")}`);if(m.validateSchema&&!m.validateSchema(p[d])){const b=`keyword "${d}" value is invalid at path "${v}": `+_.errorsText(m.validateSchema.errors);if(g.validateSchema==="log")_.logger.error(b);else throw new Error(b)}}return qe.validateKeywordUsage=h,qe}var Ve={},Mo;function zp(){if(Mo)return Ve;Mo=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.extendSubschemaMode=Ve.extendSubschemaData=Ve.getSubschema=void 0;const t=ne(),e=oe();function r(i,{keyword:o,schemaProp:a,schema:c,schemaPath:u,errSchemaPath:l,topSchemaRef:h}){if(o!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const p=i.schema[o];return a===void 0?{schema:p,schemaPath:(0,t._)`${i.schemaPath}${(0,t.getProperty)(o)}`,errSchemaPath:`${i.errSchemaPath}/${o}`}:{schema:p[a],schemaPath:(0,t._)`${i.schemaPath}${(0,t.getProperty)(o)}${(0,t.getProperty)(a)}`,errSchemaPath:`${i.errSchemaPath}/${o}/${(0,e.escapeFragment)(a)}`}}if(c!==void 0){if(u===void 0||l===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:u,topSchemaRef:h,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}Ve.getSubschema=r;function n(i,o,{dataProp:a,dataPropType:c,data:u,dataTypes:l,propertyName:h}){if(u!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=o;if(a!==void 0){const{errorPath:_,dataPathArr:v,opts:m}=o,d=p.let("data",(0,t._)`${o.data}${(0,t.getProperty)(a)}`,!0);g(d),i.errorPath=(0,t.str)`${_}${(0,e.getErrorPath)(a,c,m.jsPropertySyntax)}`,i.parentDataProperty=(0,t._)`${a}`,i.dataPathArr=[...v,i.parentDataProperty]}if(u!==void 0){const _=u instanceof t.Name?u:p.let("data",u,!0);g(_),h!==void 0&&(i.propertyName=h)}l&&(i.dataTypes=l);function g(_){i.data=_,i.dataLevel=o.dataLevel+1,i.dataTypes=[],o.definedProperties=new Set,i.parentData=o.data,i.dataNames=[...o.dataNames,_]}}Ve.extendSubschemaData=n;function s(i,{jtdDiscriminator:o,jtdMetadata:a,compositeRule:c,createErrors:u,allErrors:l}){c!==void 0&&(i.compositeRule=c),u!==void 0&&(i.createErrors=u),l!==void 0&&(i.allErrors=l),i.jtdDiscriminator=o,i.jtdMetadata=a}return Ve.extendSubschemaMode=s,Ve}var Se={},xi={exports:{}},xo;function Bp(){if(xo)return xi.exports;xo=1;var t=xi.exports=function(n,s,i){typeof s=="function"&&(i=s,s={}),i=s.cb||i;var o=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};e(s,o,a,n,"",n)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.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 e(n,s,i,o,a,c,u,l,h,p){if(o&&typeof o=="object"&&!Array.isArray(o)){s(o,a,c,u,l,h,p);for(var g in o){var _=o[g];if(Array.isArray(_)){if(g in t.arrayKeywords)for(var v=0;v<_.length;v++)e(n,s,i,_[v],a+"/"+g+"/"+v,c,a,g,o,v)}else if(g in t.propsKeywords){if(_&&typeof _=="object")for(var m in _)e(n,s,i,_[m],a+"/"+g+"/"+r(m),c,a,g,o,m)}else(g in t.keywords||n.allKeys&&!(g in t.skipKeywords))&&e(n,s,i,_,a+"/"+g,c,a,g,o)}i(o,a,c,u,l,h,p)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return xi.exports}var Uo;function Hr(){if(Uo)return Se;Uo=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.getSchemaRefs=Se.resolveUrl=Se.normalizeId=Se._getFullPath=Se.getFullPath=Se.inlineRef=void 0;const t=oe(),e=Gc(),r=Bp(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function s(v,m=!0){return typeof v=="boolean"?!0:m===!0?!o(v):m?a(v)<=m:!1}Se.inlineRef=s;const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(v){for(const m in v){if(i.has(m))return!0;const d=v[m];if(Array.isArray(d)&&d.some(o)||typeof d=="object"&&o(d))return!0}return!1}function a(v){let m=0;for(const d in v){if(d==="$ref")return 1/0;if(m++,!n.has(d)&&(typeof v[d]=="object"&&(0,t.eachItem)(v[d],f=>m+=a(f)),m===1/0))return 1/0}return m}function c(v,m="",d){d!==!1&&(m=h(m));const f=v.parse(m);return u(v,f)}Se.getFullPath=c;function u(v,m){return v.serialize(m).split("#")[0]+"#"}Se._getFullPath=u;const l=/#\/?$/;function h(v){return v?v.replace(l,""):""}Se.normalizeId=h;function p(v,m,d){return d=h(d),v.resolve(m,d)}Se.resolveUrl=p;const g=/^[a-z_][-a-z0-9._]*$/i;function _(v,m){if(typeof v=="boolean")return{};const{schemaId:d,uriResolver:f}=this.opts,y=h(v[d]||m),b={"":y},$=c(f,y,!1),w={},S=new Set;return r(v,{allKeys:!0},(q,F,K,C)=>{if(C===void 0)return;const M=$+F;let U=b[C];typeof q[d]=="string"&&(U=H.call(this,q[d])),ee.call(this,q.$anchor),ee.call(this,q.$dynamicAnchor),b[F]=U;function H(W){const Q=this.opts.uriResolver.resolve;if(W=h(U?Q(U,W):W),S.has(W))throw A(W);S.add(W);let V=this.refs[W];return typeof V=="string"&&(V=this.refs[V]),typeof V=="object"?I(q,V.schema,W):W!==h(M)&&(W[0]==="#"?(I(q,w[W],W),w[W]=q):this.refs[W]=M),W}function ee(W){if(typeof W=="string"){if(!g.test(W))throw new Error(`invalid anchor "${W}"`);H.call(this,`#${W}`)}}}),w;function I(q,F,K){if(F!==void 0&&!e(q,F))throw A(K)}function A(q){return new Error(`reference "${q}" resolves to more than one schema`)}}return Se.getSchemaRefs=_,Se}var Vo;function Yr(){if(Vo)return xe;Vo=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.getData=xe.KeywordCxt=xe.validateFunctionCode=void 0;const t=Vp(),e=Mr(),r=tl(),n=Mr(),s=Lp(),i=Kp(),o=zp(),a=ne(),c=et(),u=Hr(),l=oe(),h=Gr();function p(P){if($(P)&&(S(P),b(P))){m(P);return}g(P,()=>(0,t.topBoolOrEmptySchema)(P))}xe.validateFunctionCode=p;function g({gen:P,validateName:R,schema:D,schemaEnv:z,opts:G},Z){G.code.es5?P.func(R,(0,a._)`${c.default.data}, ${c.default.valCxt}`,z.$async,()=>{P.code((0,a._)`"use strict"; ${f(D,G)}`),v(P,G),P.code(Z)}):P.func(R,(0,a._)`${c.default.data}, ${_(G)}`,z.$async,()=>P.code(f(D,G)).code(Z))}function _(P){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${P.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}}={}`}function v(P,R){P.if(c.default.valCxt,()=>{P.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),P.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),P.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),P.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),R.dynamicRef&&P.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{P.var(c.default.instancePath,(0,a._)`""`),P.var(c.default.parentData,(0,a._)`undefined`),P.var(c.default.parentDataProperty,(0,a._)`undefined`),P.var(c.default.rootData,c.default.data),R.dynamicRef&&P.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function m(P){const{schema:R,opts:D,gen:z}=P;g(P,()=>{D.$comment&&R.$comment&&C(P),q(P),z.let(c.default.vErrors,null),z.let(c.default.errors,0),D.unevaluated&&d(P),I(P),M(P)})}function d(P){const{gen:R,validateName:D}=P;P.evaluated=R.const("evaluated",(0,a._)`${D}.evaluated`),R.if((0,a._)`${P.evaluated}.dynamicProps`,()=>R.assign((0,a._)`${P.evaluated}.props`,(0,a._)`undefined`)),R.if((0,a._)`${P.evaluated}.dynamicItems`,()=>R.assign((0,a._)`${P.evaluated}.items`,(0,a._)`undefined`))}function f(P,R){const D=typeof P=="object"&&P[R.schemaId];return D&&(R.code.source||R.code.process)?(0,a._)`/*# sourceURL=${D} */`:a.nil}function y(P,R){if($(P)&&(S(P),b(P))){w(P,R);return}(0,t.boolOrEmptySchema)(P,R)}function b({schema:P,self:R}){if(typeof P=="boolean")return!P;for(const D in P)if(R.RULES.all[D])return!0;return!1}function $(P){return typeof P.schema!="boolean"}function w(P,R){const{schema:D,gen:z,opts:G}=P;G.$comment&&D.$comment&&C(P),F(P),K(P);const Z=z.const("_errs",c.default.errors);I(P,Z),z.var(R,(0,a._)`${Z} === ${c.default.errors}`)}function S(P){(0,l.checkUnknownRules)(P),A(P)}function I(P,R){if(P.opts.jtd)return H(P,[],!1,R);const D=(0,e.getSchemaTypes)(P.schema),z=(0,e.coerceAndCheckDataType)(P,D);H(P,D,!z,R)}function A(P){const{schema:R,errSchemaPath:D,opts:z,self:G}=P;R.$ref&&z.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(R,G.RULES)&&G.logger.warn(`$ref: keywords ignored in schema at path "${D}"`)}function q(P){const{schema:R,opts:D}=P;R.default!==void 0&&D.useDefaults&&D.strictSchema&&(0,l.checkStrictMode)(P,"default is ignored in the schema root")}function F(P){const R=P.schema[P.opts.schemaId];R&&(P.baseId=(0,u.resolveUrl)(P.opts.uriResolver,P.baseId,R))}function K(P){if(P.schema.$async&&!P.schemaEnv.$async)throw new Error("async schema in sync schema")}function C({gen:P,schemaEnv:R,schema:D,errSchemaPath:z,opts:G}){const Z=D.$comment;if(G.$comment===!0)P.code((0,a._)`${c.default.self}.logger.log(${Z})`);else if(typeof G.$comment=="function"){const le=(0,a.str)`${z}/$comment`,ge=P.scopeValue("root",{ref:R.root});P.code((0,a._)`${c.default.self}.opts.$comment(${Z}, ${le}, ${ge}.schema)`)}}function M(P){const{gen:R,schemaEnv:D,validateName:z,ValidationError:G,opts:Z}=P;D.$async?R.if((0,a._)`${c.default.errors} === 0`,()=>R.return(c.default.data),()=>R.throw((0,a._)`new ${G}(${c.default.vErrors})`)):(R.assign((0,a._)`${z}.errors`,c.default.vErrors),Z.unevaluated&&U(P),R.return((0,a._)`${c.default.errors} === 0`))}function U({gen:P,evaluated:R,props:D,items:z}){D instanceof a.Name&&P.assign((0,a._)`${R}.props`,D),z instanceof a.Name&&P.assign((0,a._)`${R}.items`,z)}function H(P,R,D,z){const{gen:G,schema:Z,data:le,allErrors:ge,opts:fe,self:ye}=P,{RULES:me}=ye;if(Z.$ref&&(fe.ignoreKeywordsWithRef||!(0,l.schemaHasRulesButRef)(Z,me))){G.block(()=>Y(P,"$ref",me.all.$ref.definition));return}fe.jtd||W(P,R),G.block(()=>{for(const _e of me.rules)ie(_e);ie(me.post)});function ie(_e){(0,r.shouldUseGroup)(Z,_e)&&(_e.type?(G.if((0,n.checkDataType)(_e.type,le,fe.strictNumbers)),ee(P,_e),R.length===1&&R[0]===_e.type&&D&&(G.else(),(0,n.reportTypeError)(P)),G.endIf()):ee(P,_e),ge||G.if((0,a._)`${c.default.errors} === ${z||0}`))}}function ee(P,R){const{gen:D,schema:z,opts:{useDefaults:G}}=P;G&&(0,s.assignDefaults)(P,R.type),D.block(()=>{for(const Z of R.rules)(0,r.shouldUseRule)(z,Z)&&Y(P,Z.keyword,Z.definition,R.type)})}function W(P,R){P.schemaEnv.meta||!P.opts.strictTypes||(Q(P,R),P.opts.allowUnionTypes||V(P,R),N(P,P.dataTypes))}function Q(P,R){if(R.length){if(!P.dataTypes.length){P.dataTypes=R;return}R.forEach(D=>{T(P.dataTypes,D)||O(P,`type "${D}" not allowed by context "${P.dataTypes.join(",")}"`)}),E(P,R)}}function V(P,R){R.length>1&&!(R.length===2&&R.includes("null"))&&O(P,"use allowUnionTypes to allow union type keyword")}function N(P,R){const D=P.self.RULES.all;for(const z in D){const G=D[z];if(typeof G=="object"&&(0,r.shouldUseRule)(P.schema,G)){const{type:Z}=G.definition;Z.length&&!Z.some(le=>x(R,le))&&O(P,`missing type "${Z.join(",")}" for keyword "${z}"`)}}}function x(P,R){return P.includes(R)||R==="number"&&P.includes("integer")}function T(P,R){return P.includes(R)||R==="integer"&&P.includes("number")}function E(P,R){const D=[];for(const z of P.dataTypes)T(R,z)?D.push(z):R.includes("integer")&&z==="number"&&D.push("integer");P.dataTypes=D}function O(P,R){const D=P.schemaEnv.baseId+P.errSchemaPath;R+=` at "${D}" (strictTypes)`,(0,l.checkStrictMode)(P,R,P.opts.strictTypes)}class k{constructor(R,D,z){if((0,i.validateKeywordUsage)(R,D,z),this.gen=R.gen,this.allErrors=R.allErrors,this.keyword=z,this.data=R.data,this.schema=R.schema[z],this.$data=D.$data&&R.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,l.schemaRefOrVal)(R,this.schema,z,this.$data),this.schemaType=D.schemaType,this.parentSchema=R.schema,this.params={},this.it=R,this.def=D,this.$data)this.schemaCode=R.gen.const("vSchema",B(this.$data,R));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,D.schemaType,D.allowUndefined))throw new Error(`${z} value must be ${JSON.stringify(D.schemaType)}`);("code"in D?D.trackErrors:D.errors!==!1)&&(this.errsCount=R.gen.const("_errs",c.default.errors))}result(R,D,z){this.failResult((0,a.not)(R),D,z)}failResult(R,D,z){this.gen.if(R),z?z():this.error(),D?(this.gen.else(),D(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(R,D){this.failResult((0,a.not)(R),void 0,D)}fail(R){if(R===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(R),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(R){if(!this.$data)return this.fail(R);const{schemaCode:D}=this;this.fail((0,a._)`${D} !== undefined && (${(0,a.or)(this.invalid$data(),R)})`)}error(R,D,z){if(D){this.setParams(D),this._error(R,z),this.setParams({});return}this._error(R,z)}_error(R,D){(R?h.reportExtraError:h.reportError)(this,this.def.error,D)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(R){this.allErrors||this.gen.if(R)}setParams(R,D){D?Object.assign(this.params,R):this.params=R}block$data(R,D,z=a.nil){this.gen.block(()=>{this.check$data(R,z),D()})}check$data(R=a.nil,D=a.nil){if(!this.$data)return;const{gen:z,schemaCode:G,schemaType:Z,def:le}=this;z.if((0,a.or)((0,a._)`${G} === undefined`,D)),R!==a.nil&&z.assign(R,!0),(Z.length||le.validateSchema)&&(z.elseIf(this.invalid$data()),this.$dataError(),R!==a.nil&&z.assign(R,!1)),z.else()}invalid$data(){const{gen:R,schemaCode:D,schemaType:z,def:G,it:Z}=this;return(0,a.or)(le(),ge());function le(){if(z.length){if(!(D instanceof a.Name))throw new Error("ajv implementation error");const fe=Array.isArray(z)?z:[z];return(0,a._)`${(0,n.checkDataTypes)(fe,D,Z.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function ge(){if(G.validateSchema){const fe=R.scopeValue("validate$data",{ref:G.validateSchema});return(0,a._)`!${fe}(${D})`}return a.nil}}subschema(R,D){const z=(0,o.getSubschema)(this.it,R);(0,o.extendSubschemaData)(z,this.it,R),(0,o.extendSubschemaMode)(z,R);const G={...this.it,...z,items:void 0,props:void 0};return y(G,D),G}mergeEvaluated(R,D){const{it:z,gen:G}=this;z.opts.unevaluated&&(z.props!==!0&&R.props!==void 0&&(z.props=l.mergeEvaluated.props(G,R.props,z.props,D)),z.items!==!0&&R.items!==void 0&&(z.items=l.mergeEvaluated.items(G,R.items,z.items,D)))}mergeValidEvaluated(R,D){const{it:z,gen:G}=this;if(z.opts.unevaluated&&(z.props!==!0||z.items!==!0))return G.if(D,()=>this.mergeEvaluated(R,a.Name)),!0}}xe.KeywordCxt=k;function Y(P,R,D,z){const G=new k(P,D,R);"code"in D?D.code(G,z):G.$data&&D.validate?(0,i.funcKeywordCode)(G,D):"macro"in D?(0,i.macroKeywordCode)(G,D):(D.compile||D.validate)&&(0,i.funcKeywordCode)(G,D)}const J=/^\/(?:[^~]|~0|~1)*$/,L=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function B(P,{dataLevel:R,dataNames:D,dataPathArr:z}){let G,Z;if(P==="")return c.default.rootData;if(P[0]==="/"){if(!J.test(P))throw new Error(`Invalid JSON-pointer: ${P}`);G=P,Z=c.default.rootData}else{const ye=L.exec(P);if(!ye)throw new Error(`Invalid JSON-pointer: ${P}`);const me=+ye[1];if(G=ye[2],G==="#"){if(me>=R)throw new Error(fe("property/index",me));return z[R-me]}if(me>R)throw new Error(fe("data",me));if(Z=D[R-me],!G)return Z}let le=Z;const ge=G.split("/");for(const ye of ge)ye&&(Z=(0,a._)`${Z}${(0,a.getProperty)((0,l.unescapeJsonPointer)(ye))}`,le=(0,a._)`${le} && ${Z}`);return le;function fe(ye,me){return`Cannot access ${ye} ${me} levels up, current level is ${R}`}}return xe.getData=B,xe}var Bt={},Lo;function ws(){if(Lo)return Bt;Lo=1,Object.defineProperty(Bt,"__esModule",{value:!0});class t extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Bt.default=t,Bt}var Wt={},Ko;function Jr(){if(Ko)return Wt;Ko=1,Object.defineProperty(Wt,"__esModule",{value:!0});const t=Hr();class e extends Error{constructor(n,s,i,o){super(o||`can't resolve reference ${i} from id ${s}`),this.missingRef=(0,t.resolveUrl)(n,s,i),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(n,this.missingRef))}}return Wt.default=e,Wt}var Pe={},zo;function Ss(){if(zo)return Pe;zo=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.resolveSchema=Pe.getCompilingSchema=Pe.resolveRef=Pe.compileSchema=Pe.SchemaEnv=void 0;const t=ne(),e=ws(),r=et(),n=Hr(),s=oe(),i=Yr();class o{constructor(d){var f;this.refs={},this.dynamicAnchors={};let y;typeof d.schema=="object"&&(y=d.schema),this.schema=d.schema,this.schemaId=d.schemaId,this.root=d.root||this,this.baseId=(f=d.baseId)!==null&&f!==void 0?f:(0,n.normalizeId)(y?.[d.schemaId||"$id"]),this.schemaPath=d.schemaPath,this.localRefs=d.localRefs,this.meta=d.meta,this.$async=y?.$async,this.refs={}}}Pe.SchemaEnv=o;function a(m){const d=l.call(this,m);if(d)return d;const f=(0,n.getFullPath)(this.opts.uriResolver,m.root.baseId),{es5:y,lines:b}=this.opts.code,{ownProperties:$}=this.opts,w=new t.CodeGen(this.scope,{es5:y,lines:b,ownProperties:$});let S;m.$async&&(S=w.scopeValue("Error",{ref:e.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const I=w.scopeName("validate");m.validateName=I;const A={gen:w,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:w.scopeValue("schema",this.opts.code.source===!0?{ref:m.schema,code:(0,t.stringify)(m.schema)}:{ref:m.schema}),validateName:I,ValidationError:S,schema:m.schema,schemaEnv:m,rootId:f,baseId:m.baseId||f,schemaPath:t.nil,errSchemaPath:m.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let q;try{this._compilations.add(m),(0,i.validateFunctionCode)(A),w.optimize(this.opts.code.optimize);const F=w.toString();q=`${w.scopeRefs(r.default.scope)}return ${F}`,this.opts.code.process&&(q=this.opts.code.process(q,m));const C=new Function(`${r.default.self}`,`${r.default.scope}`,q)(this,this.scope.get());if(this.scope.value(I,{ref:C}),C.errors=null,C.schema=m.schema,C.schemaEnv=m,m.$async&&(C.$async=!0),this.opts.code.source===!0&&(C.source={validateName:I,validateCode:F,scopeValues:w._values}),this.opts.unevaluated){const{props:M,items:U}=A;C.evaluated={props:M instanceof t.Name?void 0:M,items:U instanceof t.Name?void 0:U,dynamicProps:M instanceof t.Name,dynamicItems:U instanceof t.Name},C.source&&(C.source.evaluated=(0,t.stringify)(C.evaluated))}return m.validate=C,m}catch(F){throw delete m.validate,delete m.validateName,q&&this.logger.error("Error compiling schema, function code:",q),F}finally{this._compilations.delete(m)}}Pe.compileSchema=a;function c(m,d,f){var y;f=(0,n.resolveUrl)(this.opts.uriResolver,d,f);const b=m.refs[f];if(b)return b;let $=p.call(this,m,f);if($===void 0){const w=(y=m.localRefs)===null||y===void 0?void 0:y[f],{schemaId:S}=this.opts;w&&($=new o({schema:w,schemaId:S,root:m,baseId:d}))}if($!==void 0)return m.refs[f]=u.call(this,$)}Pe.resolveRef=c;function u(m){return(0,n.inlineRef)(m.schema,this.opts.inlineRefs)?m.schema:m.validate?m:a.call(this,m)}function l(m){for(const d of this._compilations)if(h(d,m))return d}Pe.getCompilingSchema=l;function h(m,d){return m.schema===d.schema&&m.root===d.root&&m.baseId===d.baseId}function p(m,d){let f;for(;typeof(f=this.refs[d])=="string";)d=f;return f||this.schemas[d]||g.call(this,m,d)}function g(m,d){const f=this.opts.uriResolver.parse(d),y=(0,n._getFullPath)(this.opts.uriResolver,f);let b=(0,n.getFullPath)(this.opts.uriResolver,m.baseId,void 0);if(Object.keys(m.schema).length>0&&y===b)return v.call(this,f,m);const $=(0,n.normalizeId)(y),w=this.refs[$]||this.schemas[$];if(typeof w=="string"){const S=g.call(this,m,w);return typeof S?.schema!="object"?void 0:v.call(this,f,S)}if(typeof w?.schema=="object"){if(w.validate||a.call(this,w),$===(0,n.normalizeId)(d)){const{schema:S}=w,{schemaId:I}=this.opts,A=S[I];return A&&(b=(0,n.resolveUrl)(this.opts.uriResolver,b,A)),new o({schema:S,schemaId:I,root:m,baseId:b})}return v.call(this,f,w)}}Pe.resolveSchema=g;const _=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function v(m,{baseId:d,schema:f,root:y}){var b;if(((b=m.fragment)===null||b===void 0?void 0:b[0])!=="/")return;for(const S of m.fragment.slice(1).split("/")){if(typeof f=="boolean")return;const I=f[(0,s.unescapeFragment)(S)];if(I===void 0)return;f=I;const A=typeof f=="object"&&f[this.opts.schemaId];!_.has(S)&&A&&(d=(0,n.resolveUrl)(this.opts.uriResolver,d,A))}let $;if(typeof f!="boolean"&&f.$ref&&!(0,s.schemaHasRulesButRef)(f,this.RULES)){const S=(0,n.resolveUrl)(this.opts.uriResolver,d,f.$ref);$=g.call(this,y,S)}const{schemaId:w}=this.opts;if($=$||new o({schema:f,schemaId:w,root:y,baseId:d}),$.schema!==$.root.schema)return $}return Pe}const Wp="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Gp="Meta-schema for $data reference (JSON AnySchema extension proposal)",Hp="object",Yp=["$data"],Jp={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Zp=!1,Xp={$id:Wp,description:Gp,type:Hp,required:Yp,properties:Jp,additionalProperties:Zp};var Gt={},Bo;function Qp(){if(Bo)return Gt;Bo=1,Object.defineProperty(Gt,"__esModule",{value:!0});const t=$l();return t.code='require("ajv/dist/runtime/uri").default',Gt.default=t,Gt}var Wo;function ey(){return Wo||(Wo=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=Yr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var r=ne();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=ws(),s=Jr(),i=el(),o=Ss(),a=ne(),c=Hr(),u=Mr(),l=oe(),h=Xp,p=Qp(),g=(V,N)=>new RegExp(V,N);g.code="new RegExp";const _=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m={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."},d={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},f=200;function y(V){var N,x,T,E,O,k,Y,J,L,B,P,R,D,z,G,Z,le,ge,fe,ye,me,ie,_e,Oe,Ne;const tt=V.strict,bt=(N=V.code)===null||N===void 0?void 0:N.optimize,Vt=bt===!0||bt===void 0?1:bt||0,Os=(T=(x=V.code)===null||x===void 0?void 0:x.regExp)!==null&&T!==void 0?T:g,al=(E=V.uriResolver)!==null&&E!==void 0?E:p.default;return{strictSchema:(k=(O=V.strictSchema)!==null&&O!==void 0?O:tt)!==null&&k!==void 0?k:!0,strictNumbers:(J=(Y=V.strictNumbers)!==null&&Y!==void 0?Y:tt)!==null&&J!==void 0?J:!0,strictTypes:(B=(L=V.strictTypes)!==null&&L!==void 0?L:tt)!==null&&B!==void 0?B:"log",strictTuples:(R=(P=V.strictTuples)!==null&&P!==void 0?P:tt)!==null&&R!==void 0?R:"log",strictRequired:(z=(D=V.strictRequired)!==null&&D!==void 0?D:tt)!==null&&z!==void 0?z:!1,code:V.code?{...V.code,optimize:Vt,regExp:Os}:{optimize:Vt,regExp:Os},loopRequired:(G=V.loopRequired)!==null&&G!==void 0?G:f,loopEnum:(Z=V.loopEnum)!==null&&Z!==void 0?Z:f,meta:(le=V.meta)!==null&&le!==void 0?le:!0,messages:(ge=V.messages)!==null&&ge!==void 0?ge:!0,inlineRefs:(fe=V.inlineRefs)!==null&&fe!==void 0?fe:!0,schemaId:(ye=V.schemaId)!==null&&ye!==void 0?ye:"$id",addUsedSchema:(me=V.addUsedSchema)!==null&&me!==void 0?me:!0,validateSchema:(ie=V.validateSchema)!==null&&ie!==void 0?ie:!0,validateFormats:(_e=V.validateFormats)!==null&&_e!==void 0?_e:!0,unicodeRegExp:(Oe=V.unicodeRegExp)!==null&&Oe!==void 0?Oe:!0,int32range:(Ne=V.int32range)!==null&&Ne!==void 0?Ne:!0,uriResolver:al}}class b{constructor(N={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts={...N,...y(N)};const{es5:x,lines:T}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:v,es5:x,lines:T}),this.logger=K(N.logger);const E=N.validateFormats;N.validateFormats=!1,this.RULES=(0,i.getRules)(),$.call(this,m,N,"NOT SUPPORTED"),$.call(this,d,N,"DEPRECATED","warn"),this._metaOpts=q.call(this),N.formats&&I.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&A.call(this,N.keywords),typeof N.meta=="object"&&this.addMetaSchema(N.meta),S.call(this),N.validateFormats=E}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:N,meta:x,schemaId:T}=this.opts;let E=h;T==="id"&&(E={...h},E.id=E.$id,delete E.$id),x&&N&&this.addMetaSchema(E,E[T],!1)}defaultMeta(){const{meta:N,schemaId:x}=this.opts;return this.opts.defaultMeta=typeof N=="object"?N[x]||N:void 0}validate(N,x){let T;if(typeof N=="string"){if(T=this.getSchema(N),!T)throw new Error(`no schema with key or ref "${N}"`)}else T=this.compile(N);const E=T(x);return"$async"in T||(this.errors=T.errors),E}compile(N,x){const T=this._addSchema(N,x);return T.validate||this._compileSchemaEnv(T)}compileAsync(N,x){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:T}=this.opts;return E.call(this,N,x);async function E(B,P){await O.call(this,B.$schema);const R=this._addSchema(B,P);return R.validate||k.call(this,R)}async function O(B){B&&!this.getSchema(B)&&await E.call(this,{$ref:B},!0)}async function k(B){try{return this._compileSchemaEnv(B)}catch(P){if(!(P instanceof s.default))throw P;return Y.call(this,P),await J.call(this,P.missingSchema),k.call(this,B)}}function Y({missingSchema:B,missingRef:P}){if(this.refs[B])throw new Error(`AnySchema ${B} is loaded but ${P} cannot be resolved`)}async function J(B){const P=await L.call(this,B);this.refs[B]||await O.call(this,P.$schema),this.refs[B]||this.addSchema(P,B,x)}async function L(B){const P=this._loading[B];if(P)return P;try{return await(this._loading[B]=T(B))}finally{delete this._loading[B]}}}addSchema(N,x,T,E=this.opts.validateSchema){if(Array.isArray(N)){for(const k of N)this.addSchema(k,void 0,T,E);return this}let O;if(typeof N=="object"){const{schemaId:k}=this.opts;if(O=N[k],O!==void 0&&typeof O!="string")throw new Error(`schema ${k} must be string`)}return x=(0,c.normalizeId)(x||O),this._checkUnique(x),this.schemas[x]=this._addSchema(N,T,x,E,!0),this}addMetaSchema(N,x,T=this.opts.validateSchema){return this.addSchema(N,x,!0,T),this}validateSchema(N,x){if(typeof N=="boolean")return!0;let T;if(T=N.$schema,T!==void 0&&typeof T!="string")throw new Error("$schema must be a string");if(T=T||this.opts.defaultMeta||this.defaultMeta(),!T)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const E=this.validate(T,N);if(!E&&x){const O="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(O);else throw new Error(O)}return E}getSchema(N){let x;for(;typeof(x=w.call(this,N))=="string";)N=x;if(x===void 0){const{schemaId:T}=this.opts,E=new o.SchemaEnv({schema:{},schemaId:T});if(x=o.resolveSchema.call(this,E,N),!x)return;this.refs[N]=x}return x.validate||this._compileSchemaEnv(x)}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":{const x=w.call(this,N);return typeof x=="object"&&this._cache.delete(x.schema),delete this.schemas[N],delete this.refs[N],this}case"object":{const x=N;this._cache.delete(x);let T=N[this.opts.schemaId];return T&&(T=(0,c.normalizeId)(T),delete this.schemas[T],delete this.refs[T]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(N){for(const x of N)this.addKeyword(x);return this}addKeyword(N,x){let T;if(typeof N=="string")T=N,typeof x=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),x.keyword=T);else if(typeof N=="object"&&x===void 0){if(x=N,T=x.keyword,Array.isArray(T)&&!T.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(M.call(this,T,x),!x)return(0,l.eachItem)(T,O=>U.call(this,O)),this;ee.call(this,x);const E={...x,type:(0,u.getJSONTypes)(x.type),schemaType:(0,u.getJSONTypes)(x.schemaType)};return(0,l.eachItem)(T,E.type.length===0?O=>U.call(this,O,E):O=>E.type.forEach(k=>U.call(this,O,E,k))),this}getKeyword(N){const x=this.RULES.all[N];return typeof x=="object"?x.definition:!!x}removeKeyword(N){const{RULES:x}=this;delete x.keywords[N],delete x.all[N];for(const T of x.rules){const E=T.rules.findIndex(O=>O.keyword===N);E>=0&&T.rules.splice(E,1)}return this}addFormat(N,x){return typeof x=="string"&&(x=new RegExp(x)),this.formats[N]=x,this}errorsText(N=this.errors,{separator:x=", ",dataVar:T="data"}={}){return!N||N.length===0?"No errors":N.map(E=>`${T}${E.instancePath} ${E.message}`).reduce((E,O)=>E+x+O)}$dataMetaSchema(N,x){const T=this.RULES.all;N=JSON.parse(JSON.stringify(N));for(const E of x){const O=E.split("/").slice(1);let k=N;for(const Y of O)k=k[Y];for(const Y in T){const J=T[Y];if(typeof J!="object")continue;const{$data:L}=J.definition,B=k[Y];L&&B&&(k[Y]=Q(B))}}return N}_removeAllSchemas(N,x){for(const T in N){const E=N[T];(!x||x.test(T))&&(typeof E=="string"?delete N[T]:E&&!E.meta&&(this._cache.delete(E.schema),delete N[T]))}}_addSchema(N,x,T,E=this.opts.validateSchema,O=this.opts.addUsedSchema){let k;const{schemaId:Y}=this.opts;if(typeof N=="object")k=N[Y];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 J=this._cache.get(N);if(J!==void 0)return J;T=(0,c.normalizeId)(k||T);const L=c.getSchemaRefs.call(this,N,T);return J=new o.SchemaEnv({schema:N,schemaId:Y,meta:x,baseId:T,localRefs:L}),this._cache.set(J.schema,J),O&&!T.startsWith("#")&&(T&&this._checkUnique(T),this.refs[T]=J),E&&this.validateSchema(N,!0),J}_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):o.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}_compileMetaSchema(N){const x=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,N)}finally{this.opts=x}}}b.ValidationError=n.default,b.MissingRefError=s.default,t.default=b;function $(V,N,x,T="error"){for(const E in V){const O=E;O in N&&this.logger[T](`${x}: option ${E}. ${V[O]}`)}}function w(V){return V=(0,c.normalizeId)(V),this.schemas[V]||this.refs[V]}function S(){const V=this.opts.schemas;if(V)if(Array.isArray(V))this.addSchema(V);else for(const N in V)this.addSchema(V[N],N)}function I(){for(const V in this.opts.formats){const N=this.opts.formats[V];N&&this.addFormat(V,N)}}function A(V){if(Array.isArray(V)){this.addVocabulary(V);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const N in V){const x=V[N];x.keyword||(x.keyword=N),this.addKeyword(x)}}function q(){const V={...this.opts};for(const N of _)delete V[N];return V}const F={log(){},warn(){},error(){}};function K(V){if(V===!1)return F;if(V===void 0)return console;if(V.log&&V.warn&&V.error)return V;throw new Error("logger must implement log, warn and error methods")}const C=/^[a-z_$][a-z0-9_$:-]*$/i;function M(V,N){const{RULES:x}=this;if((0,l.eachItem)(V,T=>{if(x.keywords[T])throw new Error(`Keyword ${T} is already defined`);if(!C.test(T))throw new Error(`Keyword ${T} has invalid name`)}),!!N&&N.$data&&!("code"in N||"validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function U(V,N,x){var T;const E=N?.post;if(x&&E)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:O}=this;let k=E?O.post:O.rules.find(({type:J})=>J===x);if(k||(k={type:x,rules:[]},O.rules.push(k)),O.keywords[V]=!0,!N)return;const Y={keyword:V,definition:{...N,type:(0,u.getJSONTypes)(N.type),schemaType:(0,u.getJSONTypes)(N.schemaType)}};N.before?H.call(this,k,Y,N.before):k.rules.push(Y),O.all[V]=Y,(T=N.implements)===null||T===void 0||T.forEach(J=>this.addKeyword(J))}function H(V,N,x){const T=V.rules.findIndex(E=>E.keyword===x);T>=0?V.rules.splice(T,0,N):(V.rules.push(N),this.logger.warn(`rule ${x} is not defined`))}function ee(V){let{metaSchema:N}=V;N!==void 0&&(V.$data&&this.opts.$data&&(N=Q(N)),V.validateSchema=this.compile(N,!0))}const W={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Q(V){return{anyOf:[V,W]}}})(Ti)),Ti}var Ht={},Yt={},Jt={},Go;function ty(){if(Go)return Jt;Go=1,Object.defineProperty(Jt,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Jt.default=t,Jt}var He={},Ho;function ry(){if(Ho)return He;Ho=1,Object.defineProperty(He,"__esModule",{value:!0}),He.callRef=He.getValidate=void 0;const t=Jr(),e=Te(),r=ne(),n=et(),s=Ss(),i=oe(),o={keyword:"$ref",schemaType:"string",code(u){const{gen:l,schema:h,it:p}=u,{baseId:g,schemaEnv:_,validateName:v,opts:m,self:d}=p,{root:f}=_;if((h==="#"||h==="#/")&&g===f.baseId)return b();const y=s.resolveRef.call(d,f,g,h);if(y===void 0)throw new t.default(p.opts.uriResolver,g,h);if(y instanceof s.SchemaEnv)return $(y);return w(y);function b(){if(_===f)return c(u,v,_,_.$async);const S=l.scopeValue("root",{ref:f});return c(u,(0,r._)`${S}.validate`,f,f.$async)}function $(S){const I=a(u,S);c(u,I,S,S.$async)}function w(S){const I=l.scopeValue("schema",m.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),A=l.name("valid"),q=u.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:I,errSchemaPath:h},A);u.mergeEvaluated(q),u.ok(A)}}};function a(u,l){const{gen:h}=u;return l.validate?h.scopeValue("validate",{ref:l.validate}):(0,r._)`${h.scopeValue("wrapper",{ref:l})}.validate`}He.getValidate=a;function c(u,l,h,p){const{gen:g,it:_}=u,{allErrors:v,schemaEnv:m,opts:d}=_,f=d.passContext?n.default.this:r.nil;p?y():b();function y(){if(!m.$async)throw new Error("async schema referenced by sync schema");const S=g.let("valid");g.try(()=>{g.code((0,r._)`await ${(0,e.callValidateCode)(u,l,f)}`),w(l),v||g.assign(S,!0)},I=>{g.if((0,r._)`!(${I} instanceof ${_.ValidationError})`,()=>g.throw(I)),$(I),v||g.assign(S,!1)}),u.ok(S)}function b(){u.result((0,e.callValidateCode)(u,l,f),()=>w(l),()=>$(l))}function $(S){const I=(0,r._)`${S}.errors`;g.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${I} : ${n.default.vErrors}.concat(${I})`),g.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function w(S){var I;if(!_.opts.unevaluated)return;const A=(I=h?.validate)===null||I===void 0?void 0:I.evaluated;if(_.props!==!0)if(A&&!A.dynamicProps)A.props!==void 0&&(_.props=i.mergeEvaluated.props(g,A.props,_.props));else{const q=g.var("props",(0,r._)`${S}.evaluated.props`);_.props=i.mergeEvaluated.props(g,q,_.props,r.Name)}if(_.items!==!0)if(A&&!A.dynamicItems)A.items!==void 0&&(_.items=i.mergeEvaluated.items(g,A.items,_.items));else{const q=g.var("items",(0,r._)`${S}.evaluated.items`);_.items=i.mergeEvaluated.items(g,q,_.items,r.Name)}}}return He.callRef=c,He.default=o,He}var Yo;function ny(){if(Yo)return Yt;Yo=1,Object.defineProperty(Yt,"__esModule",{value:!0});const t=ty(),e=ry(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return Yt.default=r,Yt}var Zt={},Xt={},Jo;function iy(){if(Jo)return Xt;Jo=1,Object.defineProperty(Xt,"__esModule",{value:!0});const t=ne(),e=t.operators,r={maximum:{okStr:"<=",ok:e.LTE,fail:e.GT},minimum:{okStr:">=",ok:e.GTE,fail:e.LT},exclusiveMaximum:{okStr:"<",ok:e.LT,fail:e.GTE},exclusiveMinimum:{okStr:">",ok:e.GT,fail:e.LTE}},n={message:({keyword:i,schemaCode:o})=>(0,t.str)`must be ${r[i].okStr} ${o}`,params:({keyword:i,schemaCode:o})=>(0,t._)`{comparison: ${r[i].okStr}, limit: ${o}}`},s={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(i){const{keyword:o,data:a,schemaCode:c}=i;i.fail$data((0,t._)`${a} ${r[o].fail} ${c} || isNaN(${a})`)}};return Xt.default=s,Xt}var Qt={},Zo;function sy(){if(Zo)return Qt;Zo=1,Object.defineProperty(Qt,"__esModule",{value:!0});const t=ne(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,t._)`{multipleOf: ${n}}`},code(n){const{gen:s,data:i,schemaCode:o,it:a}=n,c=a.opts.multipleOfPrecision,u=s.let("res"),l=c?(0,t._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}`:(0,t._)`${u} !== parseInt(${u})`;n.fail$data((0,t._)`(${o} === 0 || (${u} = ${i}/${o}, ${l}))`)}};return Qt.default=r,Qt}var er={},tr={},Xo;function ay(){if(Xo)return tr;Xo=1,Object.defineProperty(tr,"__esModule",{value:!0});function t(e){const r=e.length;let n=0,s=0,i;for(;s<r;)n++,i=e.charCodeAt(s++),i>=55296&&i<=56319&&s<r&&(i=e.charCodeAt(s),(i&64512)===56320&&s++);return n}return tr.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',tr}var Qo;function oy(){if(Qo)return er;Qo=1,Object.defineProperty(er,"__esModule",{value:!0});const t=ne(),e=oe(),r=ay(),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:o}){const a=i==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${a} than ${o} characters`},params:({schemaCode:i})=>(0,t._)`{limit: ${i}}`},code(i){const{keyword:o,data:a,schemaCode:c,it:u}=i,l=o==="maxLength"?t.operators.GT:t.operators.LT,h=u.opts.unicode===!1?(0,t._)`${a}.length`:(0,t._)`${(0,e.useFunc)(i.gen,r.default)}(${a})`;i.fail$data((0,t._)`${h} ${l} ${c}`)}};return er.default=s,er}var rr={},ec;function cy(){if(ec)return rr;ec=1,Object.defineProperty(rr,"__esModule",{value:!0});const t=Te(),e=oe(),r=ne(),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,r.str)`must match pattern "${i}"`,params:({schemaCode:i})=>(0,r._)`{pattern: ${i}}`},code(i){const{gen:o,data:a,$data:c,schema:u,schemaCode:l,it:h}=i,p=h.opts.unicodeRegExp?"u":"";if(c){const{regExp:g}=h.opts.code,_=g.code==="new RegExp"?(0,r._)`new RegExp`:(0,e.useFunc)(o,g),v=o.let("valid");o.try(()=>o.assign(v,(0,r._)`${_}(${l}, ${p}).test(${a})`),()=>o.assign(v,!1)),i.fail$data((0,r._)`!${v}`)}else{const g=(0,t.usePattern)(i,u);i.fail$data((0,r._)`!${g}.test(${a})`)}}};return rr.default=s,rr}var nr={},tc;function uy(){if(tc)return nr;tc=1,Object.defineProperty(nr,"__esModule",{value:!0});const t=ne(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const i=n==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${i} than ${s} properties`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:s,data:i,schemaCode:o}=n,a=s==="maxProperties"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`Object.keys(${i}).length ${a} ${o}`)}};return nr.default=r,nr}var ir={},rc;function ly(){if(rc)return ir;rc=1,Object.defineProperty(ir,"__esModule",{value:!0});const t=Te(),e=ne(),r=oe(),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:i}})=>(0,e.str)`must have required property '${i}'`,params:({params:{missingProperty:i}})=>(0,e._)`{missingProperty: ${i}}`},code(i){const{gen:o,schema:a,schemaCode:c,data:u,$data:l,it:h}=i,{opts:p}=h;if(!l&&a.length===0)return;const g=a.length>=p.loopRequired;if(h.allErrors?_():v(),p.strictRequired){const f=i.parentSchema.properties,{definedProperties:y}=i.it;for(const b of a)if(f?.[b]===void 0&&!y.has(b)){const $=h.schemaEnv.baseId+h.errSchemaPath,w=`required property "${b}" is not defined at "${$}" (strictRequired)`;(0,r.checkStrictMode)(h,w,h.opts.strictRequired)}}function _(){if(g||l)i.block$data(e.nil,m);else for(const f of a)(0,t.checkReportMissingProp)(i,f)}function v(){const f=o.let("missing");if(g||l){const y=o.let("valid",!0);i.block$data(y,()=>d(f,y)),i.ok(y)}else o.if((0,t.checkMissingProp)(i,a,f)),(0,t.reportMissingProp)(i,f),o.else()}function m(){o.forOf("prop",c,f=>{i.setParams({missingProperty:f}),o.if((0,t.noPropertyInData)(o,u,f,p.ownProperties),()=>i.error())})}function d(f,y){i.setParams({missingProperty:f}),o.forOf(f,c,()=>{o.assign(y,(0,t.propertyInData)(o,u,f,p.ownProperties)),o.if((0,e.not)(y),()=>{i.error(),o.break()})},e.nil)}}};return ir.default=s,ir}var sr={},nc;function dy(){if(nc)return sr;nc=1,Object.defineProperty(sr,"__esModule",{value:!0});const t=ne(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const i=n==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${i} than ${s} items`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:s,data:i,schemaCode:o}=n,a=s==="maxItems"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`${i}.length ${a} ${o}`)}};return sr.default=r,sr}var ar={},or={},ic;function Es(){if(ic)return or;ic=1,Object.defineProperty(or,"__esModule",{value:!0});const t=Gc();return t.code='require("ajv/dist/runtime/equal").default',or.default=t,or}var sc;function fy(){if(sc)return ar;sc=1,Object.defineProperty(ar,"__esModule",{value:!0});const t=Mr(),e=ne(),r=oe(),n=Es(),i={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:o,j:a}})=>(0,e.str)`must NOT have duplicate items (items ## ${a} and ${o} are identical)`,params:({params:{i:o,j:a}})=>(0,e._)`{i: ${o}, j: ${a}}`},code(o){const{gen:a,data:c,$data:u,schema:l,parentSchema:h,schemaCode:p,it:g}=o;if(!u&&!l)return;const _=a.let("valid"),v=h.items?(0,t.getSchemaTypes)(h.items):[];o.block$data(_,m,(0,e._)`${p} === false`),o.ok(_);function m(){const b=a.let("i",(0,e._)`${c}.length`),$=a.let("j");o.setParams({i:b,j:$}),a.assign(_,!0),a.if((0,e._)`${b} > 1`,()=>(d()?f:y)(b,$))}function d(){return v.length>0&&!v.some(b=>b==="object"||b==="array")}function f(b,$){const w=a.name("item"),S=(0,t.checkDataTypes)(v,w,g.opts.strictNumbers,t.DataType.Wrong),I=a.const("indices",(0,e._)`{}`);a.for((0,e._)`;${b}--;`,()=>{a.let(w,(0,e._)`${c}[${b}]`),a.if(S,(0,e._)`continue`),v.length>1&&a.if((0,e._)`typeof ${w} == "string"`,(0,e._)`${w} += "_"`),a.if((0,e._)`typeof ${I}[${w}] == "number"`,()=>{a.assign($,(0,e._)`${I}[${w}]`),o.error(),a.assign(_,!1).break()}).code((0,e._)`${I}[${w}] = ${b}`)})}function y(b,$){const w=(0,r.useFunc)(a,n.default),S=a.name("outer");a.label(S).for((0,e._)`;${b}--;`,()=>a.for((0,e._)`${$} = ${b}; ${$}--;`,()=>a.if((0,e._)`${w}(${c}[${b}], ${c}[${$}])`,()=>{o.error(),a.assign(_,!1).break(S)})))}}};return ar.default=i,ar}var cr={},ac;function hy(){if(ac)return cr;ac=1,Object.defineProperty(cr,"__esModule",{value:!0});const t=ne(),e=oe(),r=Es(),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:i})=>(0,t._)`{allowedValue: ${i}}`},code(i){const{gen:o,data:a,$data:c,schemaCode:u,schema:l}=i;c||l&&typeof l=="object"?i.fail$data((0,t._)`!${(0,e.useFunc)(o,r.default)}(${a}, ${u})`):i.fail((0,t._)`${l} !== ${a}`)}};return cr.default=s,cr}var ur={},oc;function my(){if(oc)return ur;oc=1,Object.defineProperty(ur,"__esModule",{value:!0});const t=ne(),e=oe(),r=Es(),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:i})=>(0,t._)`{allowedValues: ${i}}`},code(i){const{gen:o,data:a,$data:c,schema:u,schemaCode:l,it:h}=i;if(!c&&u.length===0)throw new Error("enum must have non-empty array");const p=u.length>=h.opts.loopEnum;let g;const _=()=>g??(g=(0,e.useFunc)(o,r.default));let v;if(p||c)v=o.let("valid"),i.block$data(v,m);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const f=o.const("vSchema",l);v=(0,t.or)(...u.map((y,b)=>d(f,b)))}i.pass(v);function m(){o.assign(v,!1),o.forOf("v",l,f=>o.if((0,t._)`${_()}(${a}, ${f})`,()=>o.assign(v,!0).break()))}function d(f,y){const b=u[y];return typeof b=="object"&&b!==null?(0,t._)`${_()}(${a}, ${f}[${y}])`:(0,t._)`${a} === ${b}`}}};return ur.default=s,ur}var cc;function py(){if(cc)return Zt;cc=1,Object.defineProperty(Zt,"__esModule",{value:!0});const t=iy(),e=sy(),r=oy(),n=cy(),s=uy(),i=ly(),o=dy(),a=fy(),c=hy(),u=my(),l=[t.default,e.default,r.default,n.default,s.default,i.default,o.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,u.default];return Zt.default=l,Zt}var lr={},dt={},uc;function rl(){if(uc)return dt;uc=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.validateAdditionalItems=void 0;const t=ne(),e=oe(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,t.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,t._)`{limit: ${i}}`},code(i){const{parentSchema:o,it:a}=i,{items:c}=o;if(!Array.isArray(c)){(0,e.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}s(i,c)}};function s(i,o){const{gen:a,schema:c,data:u,keyword:l,it:h}=i;h.items=!0;const p=a.const("len",(0,t._)`${u}.length`);if(c===!1)i.setParams({len:o.length}),i.pass((0,t._)`${p} <= ${o.length}`);else if(typeof c=="object"&&!(0,e.alwaysValidSchema)(h,c)){const _=a.var("valid",(0,t._)`${p} <= ${o.length}`);a.if((0,t.not)(_),()=>g(_)),i.ok(_)}function g(_){a.forRange("i",o.length,p,v=>{i.subschema({keyword:l,dataProp:v,dataPropType:e.Type.Num},_),h.allErrors||a.if((0,t.not)(_),()=>a.break())})}}return dt.validateAdditionalItems=s,dt.default=n,dt}var dr={},ft={},lc;function nl(){if(lc)return ft;lc=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.validateTuple=void 0;const t=ne(),e=oe(),r=Te(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(i){const{schema:o,it:a}=i;if(Array.isArray(o))return s(i,"additionalItems",o);a.items=!0,!(0,e.alwaysValidSchema)(a,o)&&i.ok((0,r.validateArray)(i))}};function s(i,o,a=i.schema){const{gen:c,parentSchema:u,data:l,keyword:h,it:p}=i;v(u),p.opts.unevaluated&&a.length&&p.items!==!0&&(p.items=e.mergeEvaluated.items(c,a.length,p.items));const g=c.name("valid"),_=c.const("len",(0,t._)`${l}.length`);a.forEach((m,d)=>{(0,e.alwaysValidSchema)(p,m)||(c.if((0,t._)`${_} > ${d}`,()=>i.subschema({keyword:h,schemaProp:d,dataProp:d},g)),i.ok(g))});function v(m){const{opts:d,errSchemaPath:f}=p,y=a.length,b=y===m.minItems&&(y===m.maxItems||m[o]===!1);if(d.strictTuples&&!b){const $=`"${h}" is ${y}-tuple, but minItems or maxItems/${o} are not specified or different at path "${f}"`;(0,e.checkStrictMode)(p,$,d.strictTuples)}}}return ft.validateTuple=s,ft.default=n,ft}var dc;function yy(){if(dc)return dr;dc=1,Object.defineProperty(dr,"__esModule",{value:!0});const t=nl(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,t.validateTuple)(r,"items")};return dr.default=e,dr}var fr={},fc;function gy(){if(fc)return fr;fc=1,Object.defineProperty(fr,"__esModule",{value:!0});const t=ne(),e=oe(),r=Te(),n=rl(),i={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,t.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,t._)`{limit: ${o}}`},code(o){const{schema:a,parentSchema:c,it:u}=o,{prefixItems:l}=c;u.items=!0,!(0,e.alwaysValidSchema)(u,a)&&(l?(0,n.validateAdditionalItems)(o,l):o.ok((0,r.validateArray)(o)))}};return fr.default=i,fr}var hr={},hc;function vy(){if(hc)return hr;hc=1,Object.defineProperty(hr,"__esModule",{value:!0});const t=ne(),e=oe(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:s,max:i}})=>i===void 0?(0,t.str)`must contain at least ${s} valid item(s)`:(0,t.str)`must contain at least ${s} and no more than ${i} valid item(s)`,params:({params:{min:s,max:i}})=>i===void 0?(0,t._)`{minContains: ${s}}`:(0,t._)`{minContains: ${s}, maxContains: ${i}}`},code(s){const{gen:i,schema:o,parentSchema:a,data:c,it:u}=s;let l,h;const{minContains:p,maxContains:g}=a;u.opts.next?(l=p===void 0?1:p,h=g):l=1;const _=i.const("len",(0,t._)`${c}.length`);if(s.setParams({min:l,max:h}),h===void 0&&l===0){(0,e.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&l>h){(0,e.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,e.alwaysValidSchema)(u,o)){let y=(0,t._)`${_} >= ${l}`;h!==void 0&&(y=(0,t._)`${y} && ${_} <= ${h}`),s.pass(y);return}u.items=!0;const v=i.name("valid");h===void 0&&l===1?d(v,()=>i.if(v,()=>i.break())):l===0?(i.let(v,!0),h!==void 0&&i.if((0,t._)`${c}.length > 0`,m)):(i.let(v,!1),m()),s.result(v,()=>s.reset());function m(){const y=i.name("_valid"),b=i.let("count",0);d(y,()=>i.if(y,()=>f(b)))}function d(y,b){i.forRange("i",0,_,$=>{s.subschema({keyword:"contains",dataProp:$,dataPropType:e.Type.Num,compositeRule:!0},y),b()})}function f(y){i.code((0,t._)`${y}++`),h===void 0?i.if((0,t._)`${y} >= ${l}`,()=>i.assign(v,!0).break()):(i.if((0,t._)`${y} > ${h}`,()=>i.assign(v,!1).break()),l===1?i.assign(v,!0):i.if((0,t._)`${y} >= ${l}`,()=>i.assign(v,!0)))}}};return hr.default=n,hr}var Ui={},mc;function _y(){return mc||(mc=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=ne(),r=oe(),n=Te();t.error={message:({params:{property:c,depsCount:u,deps:l}})=>{const h=u===1?"property":"properties";return(0,e.str)`must have ${h} ${l} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:l,missingProperty:h}})=>(0,e._)`{property: ${c},
26
26
  missingProperty: ${h},
27
27
  depsCount: ${u},
28
- deps: ${l}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(c){const[u,l]=i(c);o(c,u),a(c,l)}};function i({schema:c}){const u={},l={};for(const h in c){if(h==="__proto__")continue;const p=Array.isArray(c[h])?u:l;p[h]=c[h]}return[u,l]}function o(c,u=c.schema){const{gen:l,data:h,it:p}=c;if(Object.keys(u).length===0)return;const g=l.let("missing");for(const _ in u){const v=u[_];if(v.length===0)continue;const m=(0,n.propertyInData)(l,h,_,p.opts.ownProperties);c.setParams({property:_,depsCount:v.length,deps:v.join(", ")}),p.allErrors?l.if(m,()=>{for(const d of v)(0,n.checkReportMissingProp)(c,d)}):(l.if((0,e._)`${m} && (${(0,n.checkMissingProp)(c,v,g)})`),(0,n.reportMissingProp)(c,g),l.else())}}t.validatePropertyDeps=o;function a(c,u=c.schema){const{gen:l,data:h,keyword:p,it:g}=c,_=l.name("valid");for(const v in u)(0,r.alwaysValidSchema)(g,u[v])||(l.if((0,n.propertyInData)(l,h,v,g.opts.ownProperties),()=>{const m=c.subschema({keyword:p,schemaProp:v},_);c.mergeValidEvaluated(m,_)},()=>l.var(_,!0)),c.ok(_))}t.validateSchemaDeps=a,t.default=s})(Ui)),Ui}var mr={},pc;function by(){if(pc)return mr;pc=1,Object.defineProperty(mr,"__esModule",{value:!0});const t=ne(),e=oe(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:s})=>(0,t._)`{propertyName: ${s.propertyName}}`},code(s){const{gen:i,schema:o,data:a,it:c}=s;if((0,e.alwaysValidSchema)(c,o))return;const u=i.name("valid");i.forIn("key",a,l=>{s.setParams({propertyName:l}),s.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},u),i.if((0,t.not)(u),()=>{s.error(!0),c.allErrors||i.break()})}),s.ok(u)}};return mr.default=n,mr}var pr={},yc;function il(){if(yc)return pr;yc=1,Object.defineProperty(pr,"__esModule",{value:!0});const t=Te(),e=ne(),r=et(),n=oe(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:o})=>(0,e._)`{additionalProperty: ${o.additionalProperty}}`},code(o){const{gen:a,schema:c,parentSchema:u,data:l,errsCount:h,it:p}=o;if(!h)throw new Error("ajv implementation error");const{allErrors:g,opts:_}=p;if(p.props=!0,_.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(p,c))return;const v=(0,t.allSchemaProperties)(u.properties),m=(0,t.allSchemaProperties)(u.patternProperties);d(),o.ok((0,e._)`${h} === ${r.default.errors}`);function d(){a.forIn("key",l,w=>{!v.length&&!m.length?b(w):a.if(f(w),()=>b(w))})}function f(w){let S;if(v.length>8){const I=(0,n.schemaRefOrVal)(p,u.properties,"properties");S=(0,t.isOwnProperty)(a,I,w)}else v.length?S=(0,e.or)(...v.map(I=>(0,e._)`${w} === ${I}`)):S=e.nil;return m.length&&(S=(0,e.or)(S,...m.map(I=>(0,e._)`${(0,t.usePattern)(o,I)}.test(${w})`))),(0,e.not)(S)}function y(w){a.code((0,e._)`delete ${l}[${w}]`)}function b(w){if(_.removeAdditional==="all"||_.removeAdditional&&c===!1){y(w);return}if(c===!1){o.setParams({additionalProperty:w}),o.error(),g||a.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(p,c)){const S=a.name("valid");_.removeAdditional==="failing"?($(w,S,!1),a.if((0,e.not)(S),()=>{o.reset(),y(w)})):($(w,S),g||a.if((0,e.not)(S),()=>a.break()))}}function $(w,S,I){const A={keyword:"additionalProperties",dataProp:w,dataPropType:n.Type.Str};I===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(A,S)}}};return pr.default=i,pr}var yr={},gc;function $y(){if(gc)return yr;gc=1,Object.defineProperty(yr,"__esModule",{value:!0});const t=Jr(),e=Te(),r=oe(),n=il(),s={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:o,schema:a,parentSchema:c,data:u,it:l}=i;l.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&n.default.code(new t.KeywordCxt(l,n.default,"additionalProperties"));const h=(0,e.allSchemaProperties)(a);for(const m of h)l.definedProperties.add(m);l.opts.unevaluated&&h.length&&l.props!==!0&&(l.props=r.mergeEvaluated.props(o,(0,r.toHash)(h),l.props));const p=h.filter(m=>!(0,r.alwaysValidSchema)(l,a[m]));if(p.length===0)return;const g=o.name("valid");for(const m of p)_(m)?v(m):(o.if((0,e.propertyInData)(o,u,m,l.opts.ownProperties)),v(m),l.allErrors||o.else().var(g,!0),o.endIf()),i.it.definedProperties.add(m),i.ok(g);function _(m){return l.opts.useDefaults&&!l.compositeRule&&a[m].default!==void 0}function v(m){i.subschema({keyword:"properties",schemaProp:m,dataProp:m},g)}}};return yr.default=s,yr}var gr={},vc;function wy(){if(vc)return gr;vc=1,Object.defineProperty(gr,"__esModule",{value:!0});const t=Te(),e=ne(),r=oe(),n=oe(),s={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:o,schema:a,data:c,parentSchema:u,it:l}=i,{opts:h}=l,p=(0,t.allSchemaProperties)(a),g=p.filter(b=>(0,r.alwaysValidSchema)(l,a[b]));if(p.length===0||g.length===p.length&&(!l.opts.unevaluated||l.props===!0))return;const _=h.strictSchema&&!h.allowMatchingProperties&&u.properties,v=o.name("valid");l.props!==!0&&!(l.props instanceof e.Name)&&(l.props=(0,n.evaluatedPropsToName)(o,l.props));const{props:m}=l;d();function d(){for(const b of p)_&&f(b),l.allErrors?y(b):(o.var(v,!0),y(b),o.if(v))}function f(b){for(const $ in _)new RegExp(b).test($)&&(0,r.checkStrictMode)(l,`property ${$} matches pattern ${b} (use allowMatchingProperties)`)}function y(b){o.forIn("key",c,$=>{o.if((0,e._)`${(0,t.usePattern)(i,b)}.test(${$})`,()=>{const w=g.includes(b);w||i.subschema({keyword:"patternProperties",schemaProp:b,dataProp:$,dataPropType:n.Type.Str},v),l.opts.unevaluated&&m!==!0?o.assign((0,e._)`${m}[${$}]`,!0):!w&&!l.allErrors&&o.if((0,e.not)(v),()=>o.break())})})}}};return gr.default=s,gr}var vr={},_c;function Sy(){if(_c)return vr;_c=1,Object.defineProperty(vr,"__esModule",{value:!0});const t=oe(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:s,it:i}=r;if((0,t.alwaysValidSchema)(i,s)){r.fail();return}const o=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return vr.default=e,vr}var _r={},bc;function Ey(){if(bc)return _r;bc=1,Object.defineProperty(_r,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Te().validateUnion,error:{message:"must match a schema in anyOf"}};return _r.default=e,_r}var br={},$c;function Oy(){if($c)return br;$c=1,Object.defineProperty(br,"__esModule",{value:!0});const t=ne(),e=oe(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:s})=>(0,t._)`{passingSchemas: ${s.passing}}`},code(s){const{gen:i,schema:o,parentSchema:a,it:c}=s;if(!Array.isArray(o))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const u=o,l=i.let("valid",!1),h=i.let("passing",null),p=i.name("_valid");s.setParams({passing:h}),i.block(g),s.result(l,()=>s.reset(),()=>s.error(!0));function g(){u.forEach((_,v)=>{let m;(0,e.alwaysValidSchema)(c,_)?i.var(p,!0):m=s.subschema({keyword:"oneOf",schemaProp:v,compositeRule:!0},p),v>0&&i.if((0,t._)`${p} && ${l}`).assign(l,!1).assign(h,(0,t._)`[${h}, ${v}]`).else(),i.if(p,()=>{i.assign(l,!0),i.assign(h,v),m&&s.mergeEvaluated(m,t.Name)})})}}};return br.default=n,br}var $r={},wc;function Py(){if(wc)return $r;wc=1,Object.defineProperty($r,"__esModule",{value:!0});const t=oe(),e={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:s,it:i}=r;if(!Array.isArray(s))throw new Error("ajv implementation error");const o=n.name("valid");s.forEach((a,c)=>{if((0,t.alwaysValidSchema)(i,a))return;const u=r.subschema({keyword:"allOf",schemaProp:c},o);r.ok(o),r.mergeEvaluated(u)})}};return $r.default=e,$r}var wr={},Sc;function Ay(){if(Sc)return wr;Sc=1,Object.defineProperty(wr,"__esModule",{value:!0});const t=ne(),e=oe(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:i})=>(0,t.str)`must match "${i.ifClause}" schema`,params:({params:i})=>(0,t._)`{failingKeyword: ${i.ifClause}}`},code(i){const{gen:o,parentSchema:a,it:c}=i;a.then===void 0&&a.else===void 0&&(0,e.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const u=s(c,"then"),l=s(c,"else");if(!u&&!l)return;const h=o.let("valid",!0),p=o.name("_valid");if(g(),i.reset(),u&&l){const v=o.let("ifClause");i.setParams({ifClause:v}),o.if(p,_("then",v),_("else",v))}else u?o.if(p,_("then")):o.if((0,t.not)(p),_("else"));i.pass(h,()=>i.error(!0));function g(){const v=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},p);i.mergeEvaluated(v)}function _(v,m){return()=>{const d=i.subschema({keyword:v},p);o.assign(h,p),i.mergeValidEvaluated(d,h),m?o.assign(m,(0,t._)`${v}`):i.setParams({ifClause:v})}}}};function s(i,o){const a=i.schema[o];return a!==void 0&&!(0,e.alwaysValidSchema)(i,a)}return wr.default=n,wr}var Sr={},Ec;function Iy(){if(Ec)return Sr;Ec=1,Object.defineProperty(Sr,"__esModule",{value:!0});const t=oe(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:s}){n.if===void 0&&(0,t.checkStrictMode)(s,`"${r}" without "if" is ignored`)}};return Sr.default=e,Sr}var Oc;function Cy(){if(Oc)return lr;Oc=1,Object.defineProperty(lr,"__esModule",{value:!0});const t=rl(),e=yy(),r=nl(),n=gy(),s=vy(),i=_y(),o=by(),a=il(),c=$y(),u=wy(),l=Sy(),h=Ey(),p=Oy(),g=Py(),_=Ay(),v=Iy();function m(d=!1){const f=[l.default,h.default,p.default,g.default,_.default,v.default,o.default,a.default,i.default,c.default,u.default];return d?f.push(e.default,n.default):f.push(t.default,r.default),f.push(s.default),f}return lr.default=m,lr}var Er={},Or={},Pc;function Ry(){if(Pc)return Or;Pc=1,Object.defineProperty(Or,"__esModule",{value:!0});const t=ne(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,t._)`{format: ${n}}`},code(n,s){const{gen:i,data:o,$data:a,schema:c,schemaCode:u,it:l}=n,{opts:h,errSchemaPath:p,schemaEnv:g,self:_}=l;if(!h.validateFormats)return;a?v():m();function v(){const d=i.scopeValue("formats",{ref:_.formats,code:h.code.formats}),f=i.const("fDef",(0,t._)`${d}[${u}]`),y=i.let("fType"),b=i.let("format");i.if((0,t._)`typeof ${f} == "object" && !(${f} instanceof RegExp)`,()=>i.assign(y,(0,t._)`${f}.type || "string"`).assign(b,(0,t._)`${f}.validate`),()=>i.assign(y,(0,t._)`"string"`).assign(b,f)),n.fail$data((0,t.or)($(),w()));function $(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${b}`}function w(){const S=g.$async?(0,t._)`(${f}.async ? await ${b}(${o}) : ${b}(${o}))`:(0,t._)`${b}(${o})`,I=(0,t._)`(typeof ${b} == "function" ? ${S} : ${b}.test(${o}))`;return(0,t._)`${b} && ${b} !== true && ${y} === ${s} && !${I}`}}function m(){const d=_.formats[c];if(!d){$();return}if(d===!0)return;const[f,y,b]=w(d);f===s&&n.pass(S());function $(){if(h.strictSchema===!1){_.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${c}" ignored in schema at path "${p}"`}}function w(I){const A=I instanceof RegExp?(0,t.regexpCode)(I):h.code.formats?(0,t._)`${h.code.formats}${(0,t.getProperty)(c)}`:void 0,q=i.scopeValue("formats",{key:c,ref:I,code:A});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,t._)`${q}.validate`]:["string",I,q]}function S(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!g.$async)throw new Error("async format in sync schema");return(0,t._)`await ${b}(${o})`}return typeof y=="function"?(0,t._)`${b}(${o})`:(0,t._)`${b}.test(${o})`}}}};return Or.default=r,Or}var Ac;function Ny(){if(Ac)return Er;Ac=1,Object.defineProperty(Er,"__esModule",{value:!0});const e=[Ry().default];return Er.default=e,Er}var st={},Ic;function qy(){return Ic||(Ic=1,Object.defineProperty(st,"__esModule",{value:!0}),st.contentVocabulary=st.metadataVocabulary=void 0,st.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],st.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),st}var Cc;function jy(){if(Cc)return Ht;Cc=1,Object.defineProperty(Ht,"__esModule",{value:!0});const t=ny(),e=py(),r=Cy(),n=Ny(),s=qy(),i=[t.default,e.default,(0,r.default)(),n.default,s.metadataVocabulary,s.contentVocabulary];return Ht.default=i,Ht}var Pr={},Pt={},Rc;function Ty(){if(Rc)return Pt;Rc=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(Pt.DiscrError=t={})),Pt}var Nc;function ky(){if(Nc)return Pr;Nc=1,Object.defineProperty(Pr,"__esModule",{value:!0});const t=ne(),e=Ty(),r=Ss(),n=Yr(),s=oe(),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:c}})=>a===e.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:a,tag:c,tagName:u}})=>(0,t._)`{error: ${a}, tag: ${u}, tagValue: ${c}}`},code(a){const{gen:c,data:u,schema:l,parentSchema:h,it:p}=a,{oneOf:g}=h;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const _=l.propertyName;if(typeof _!="string")throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!g)throw new Error("discriminator: requires oneOf keyword");const v=c.let("valid",!1),m=c.const("tag",(0,t._)`${u}${(0,t.getProperty)(_)}`);c.if((0,t._)`typeof ${m} == "string"`,()=>d(),()=>a.error(!1,{discrError:e.DiscrError.Tag,tag:m,tagName:_})),a.ok(v);function d(){const b=y();c.if(!1);for(const $ in b)c.elseIf((0,t._)`${m} === ${$}`),c.assign(v,f(b[$]));c.else(),a.error(!1,{discrError:e.DiscrError.Mapping,tag:m,tagName:_}),c.endIf()}function f(b){const $=c.name("valid"),w=a.subschema({keyword:"oneOf",schemaProp:b},$);return a.mergeEvaluated(w,t.Name),$}function y(){var b;const $={},w=I(h);let S=!0;for(let F=0;F<g.length;F++){let K=g[F];if(K?.$ref&&!(0,s.schemaHasRulesButRef)(K,p.self.RULES)){const M=K.$ref;if(K=r.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,M),K instanceof r.SchemaEnv&&(K=K.schema),K===void 0)throw new n.default(p.opts.uriResolver,p.baseId,M)}const C=(b=K?.properties)===null||b===void 0?void 0:b[_];if(typeof C!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${_}"`);S=S&&(w||I(K)),A(C,F)}if(!S)throw new Error(`discriminator: "${_}" must be required`);return $;function I({required:F}){return Array.isArray(F)&&F.includes(_)}function A(F,K){if(F.const)q(F.const,K);else if(F.enum)for(const C of F.enum)q(C,K);else throw new Error(`discriminator: "properties/${_}" must have "const" or "enum"`)}function q(F,K){if(typeof F!="string"||F in $)throw new Error(`discriminator: "${_}" values must be unique strings`);$[F]=K}}}};return Pr.default=o,Pr}const Fy="http://json-schema.org/draft-07/schema#",Dy="http://json-schema.org/draft-07/schema#",My="Core schema meta-schema",xy={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:[]}},Uy=["object","boolean"],Vy={$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:"#"}},Ly={$schema:Fy,$id:Dy,title:My,definitions:xy,type:Uy,properties:Vy,default:!0};var qc;function sl(){return qc||(qc=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const r=ey(),n=jy(),s=ky(),i=Ly,o=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(_=>this.addVocabulary(_)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const _=this.opts.$data?this.$dataMetaSchema(i,o):i;this.addMetaSchema(_,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.Ajv=c,t.exports=e=c,t.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var u=Jr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var l=ne();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var h=ws();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var p=Yr();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(Kt,Kt.exports)),Kt.exports}var Ky=sl();const zy=Ft(Ky);var Ar={exports:{}},Vi={},jc;function By(){return jc||(jc=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(A,q){return{validate:A,compare:q}}t.fullFormats={date:e(i,o),time:e(c,u),"date-time":e(h,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"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|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\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:I,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:d,int32:{type:"number",validate:b},int64:{type:"number",validate:$},float:{type:"number",validate:w},double:{type:"number",validate:w},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"date-time":e(/^\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,p),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},t.formatNames=Object.keys(t.fullFormats);function r(A){return A%4===0&&(A%100!==0||A%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,s=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(A){const q=n.exec(A);if(!q)return!1;const F=+q[1],K=+q[2],C=+q[3];return K>=1&&K<=12&&C>=1&&C<=(K===2&&r(F)?29:s[K])}function o(A,q){if(A&&q)return A>q?1:A<q?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(A,q){const F=a.exec(A);if(!F)return!1;const K=+F[1],C=+F[2],M=+F[3],U=F[5];return(K<=23&&C<=59&&M<=59||K===23&&C===59&&M===60)&&(!q||U!=="")}function u(A,q){if(!(A&&q))return;const F=a.exec(A),K=a.exec(q);if(F&&K)return A=F[1]+F[2]+F[3]+(F[4]||""),q=K[1]+K[2]+K[3]+(K[4]||""),A>q?1:A<q?-1:0}const l=/t|\s/i;function h(A){const q=A.split(l);return q.length===2&&i(q[0])&&c(q[1],!0)}function p(A,q){if(!(A&&q))return;const[F,K]=A.split(l),[C,M]=q.split(l),U=o(F,C);if(U!==void 0)return U||u(K,M)}const g=/\/|:/,_=/^(?:[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 v(A){return g.test(A)&&_.test(A)}const m=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function d(A){return m.lastIndex=0,m.test(A)}const f=-2147483648,y=2**31-1;function b(A){return Number.isInteger(A)&&A<=y&&A>=f}function $(A){return Number.isInteger(A)}function w(){return!0}const S=/[^\\]\\Z/;function I(A){if(S.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}})(Vi)),Vi}var Li={},Tc;function Wy(){return Tc||(Tc=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=sl(),r=ne(),n=r.operators,s={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},i={message:({keyword:a,schemaCode:c})=>r.str`should be ${s[a].okStr} ${c}`,params:({keyword:a,schemaCode:c})=>r._`{comparison: ${s[a].okStr}, limit: ${c}}`};t.formatLimitDefinition={keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:i,code(a){const{gen:c,data:u,schemaCode:l,keyword:h,it:p}=a,{opts:g,self:_}=p;if(!g.validateFormats)return;const v=new e.KeywordCxt(p,_.RULES.all.format.definition,"format");v.$data?m():d();function m(){const y=c.scopeValue("formats",{ref:_.formats,code:g.code.formats}),b=c.const("fmt",r._`${y}[${v.schemaCode}]`);a.fail$data(r.or(r._`typeof ${b} != "object"`,r._`${b} instanceof RegExp`,r._`typeof ${b}.compare != "function"`,f(b)))}function d(){const y=v.schema,b=_.formats[y];if(!b||b===!0)return;if(typeof b!="object"||b instanceof RegExp||typeof b.compare!="function")throw new Error(`"${h}": format "${y}" does not define "compare" function`);const $=c.scopeValue("formats",{key:y,ref:b,code:g.code.formats?r._`${g.code.formats}${r.getProperty(y)}`:void 0});a.fail$data(f($))}function f(y){return r._`${y}.compare(${u}, ${l}) ${s[h].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(t.formatLimitDefinition),a);t.default=o})(Li)),Li}var kc;function Gy(){return kc||(kc=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=By(),n=Wy(),s=ne(),i=new s.Name("fullFormats"),o=new s.Name("fastFormats"),a=(u,l={keywords:!0})=>{if(Array.isArray(l))return c(u,l,r.fullFormats,i),u;const[h,p]=l.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,i],g=l.formats||r.formatNames;return c(u,g,h,p),l.keywords&&n.default(u),u};a.get=(u,l="full")=>{const p=(l==="fast"?r.fastFormats:r.fullFormats)[u];if(!p)throw new Error(`Unknown format "${u}"`);return p};function c(u,l,h,p){var g,_;(g=(_=u.opts.code).formats)!==null&&g!==void 0||(_.formats=s._`require("ajv-formats/dist/formats").${p}`);for(const v of l)u.addFormat(v,h[v])}t.exports=e=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a})(Ar,Ar.exports)),Ar.exports}var Hy=Gy();const Fc=Ft(Hy),Jy={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},Yy=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,Zy=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Xy(t,e,r={},n,s=zy){const i=new s({...Jy,...r});return n?Fc(i,n):n!==!1&&Fc(i),i.addFormat("data-url",Zy),i.addFormat("color",Yy),i.addKeyword(Dt),i.addKeyword(rs),Array.isArray(t)&&i.addMetaSchema(t),Ie(e)&&Object.keys(e).forEach(o=>{i.addFormat(o,e[o])}),i}function Qy(t=[],e){return t.map(r=>{var n;const{instancePath:s,keyword:i,params:o,schemaPath:a,parentSchema:c,...u}=r;let{message:l=""}=u,h=s.replace(/\//g,"."),p=`${h} ${l}`.trim();const g=[...((n=o.deps)===null||n===void 0?void 0:n.split(", "))||[],o.missingProperty,o.property].filter(_=>_);if(g.length>0)g.forEach(_=>{const v=h?`${h}.${_}`:_;let m=se(X(e,`${v.replace(/^\./,"")}`)).title;if(m===void 0){const d=a.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([_]);m=se(X(e,d)).title}if(m)l=l.replace(`'${_}'`,`'${m}'`);else{const d=X(c,[ve,_,"title"]);d&&(l=l.replace(`'${_}'`,`'${d}'`))}}),p=l;else{const _=se(X(e,`${h.replace(/^\./,"")}`)).title;if(_)p=`'${_}' ${l}`.trim();else{const v=c?.title;v&&(p=`'${v}' ${l}`.trim())}}return"missingProperty"in o&&(h=h?`${h}.${o.missingProperty}`:o.missingProperty),{name:i,property:h,message:l,params:o,stack:p,schemaPath:a}})}function eg(t,e,r,n,s,i,o){const{validationError:a}=e;let c=Qy(e.errors,o);a&&(c=[...c,{stack:a.message}]),typeof i=="function"&&(c=i(c,o));let u=ph(c);if(a&&(u={...u,$schema:{__errors:[a.message]}}),typeof s!="function")return{errors:c,errorSchema:u};const l=ku(t,n,r,n,!0),h=s(l,kr(l),o),p=vs(h);return Nr({errors:c,errorSchema:u},p)}class tg{constructor(e,r){const{additionalMetaSchemas:n,customFormats:s,ajvOptionsOverrides:i,ajvFormatOptions:o,AjvClass:a}=e;this.ajv=Xy(n,s,i,o,a),this.localizer=r}reset(){this.ajv.removeSchema()}toErrorList(e,r=[]){return kt(e,r)}rawValidation(e,r){var n,s;let i,o;e[Ye]&&(o=this.ajv.getSchema(e[Ye]));try{o===void 0&&(o=this.ajv.compile(e)),o(r)}catch(c){i=c}let a;return o&&(typeof this.localizer=="function"&&(((n=o.errors)!==null&&n!==void 0?n:[]).forEach(c=>{var u;["missingProperty","property"].forEach(l=>{var h;!((h=c.params)===null||h===void 0)&&h[l]&&(c.params[l]=`'${c.params[l]}'`)}),!((u=c.params)===null||u===void 0)&&u.deps&&(c.params.deps=c.params.deps.split(", ").map(l=>`'${l}'`).join(", "))}),this.localizer(o.errors),((s=o.errors)!==null&&s!==void 0?s:[]).forEach(c=>{var u;["missingProperty","property"].forEach(l=>{var h;!((h=c.params)===null||h===void 0)&&h[l]&&(c.params[l]=c.params[l].slice(1,-1))}),!((u=c.params)===null||u===void 0)&&u.deps&&(c.params.deps=c.params.deps.split(", ").map(l=>l.slice(1,-1)).join(", "))})),a=o.errors||void 0,o.errors=null),{errors:a,validationError:i}}validateFormData(e,r,n,s,i){const o=this.rawValidation(r,e);return eg(this,o,e,r,n,s,i)}handleSchemaUpdate(e){var r,n;const s=(r=e[Ye])!==null&&r!==void 0?r:su;this.ajv.getSchema(s)===void 0?this.ajv.addSchema(e,s):pe(e,(n=this.ajv.getSchema(s))===null||n===void 0?void 0:n.schema)||(this.ajv.removeSchema(s),this.ajv.addSchema(e,s))}isValid(e,r,n){var s;try{this.handleSchemaUpdate(n);const i=_s(e),o=(s=i[Ye])!==null&&s!==void 0?s:uh(i);let a;return a=this.ajv.getSchema(o),a===void 0&&(a=this.ajv.addSchema(i,o).getSchema(o)||this.ajv.compile(i)),a(r)}catch(i){return console.warn("Error encountered compiling schema:",i),!1}}}function rg(t={},e){return new tg(t,e)}const fg=rg();export{Dt as A,dg as F,he as T,se as a,rh as b,od as c,ut as d,Hi as e,xu as f,ue as g,Uu as h,xt as i,nh as j,gs as k,Zf as l,Jf as m,De as n,Lu as o,fh as p,Yf as q,th as r,Rr as s,Vu as t,yh as u,fg as v};
28
+ deps: ${l}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(c){const[u,l]=i(c);o(c,u),a(c,l)}};function i({schema:c}){const u={},l={};for(const h in c){if(h==="__proto__")continue;const p=Array.isArray(c[h])?u:l;p[h]=c[h]}return[u,l]}function o(c,u=c.schema){const{gen:l,data:h,it:p}=c;if(Object.keys(u).length===0)return;const g=l.let("missing");for(const _ in u){const v=u[_];if(v.length===0)continue;const m=(0,n.propertyInData)(l,h,_,p.opts.ownProperties);c.setParams({property:_,depsCount:v.length,deps:v.join(", ")}),p.allErrors?l.if(m,()=>{for(const d of v)(0,n.checkReportMissingProp)(c,d)}):(l.if((0,e._)`${m} && (${(0,n.checkMissingProp)(c,v,g)})`),(0,n.reportMissingProp)(c,g),l.else())}}t.validatePropertyDeps=o;function a(c,u=c.schema){const{gen:l,data:h,keyword:p,it:g}=c,_=l.name("valid");for(const v in u)(0,r.alwaysValidSchema)(g,u[v])||(l.if((0,n.propertyInData)(l,h,v,g.opts.ownProperties),()=>{const m=c.subschema({keyword:p,schemaProp:v},_);c.mergeValidEvaluated(m,_)},()=>l.var(_,!0)),c.ok(_))}t.validateSchemaDeps=a,t.default=s})(Ui)),Ui}var mr={},pc;function by(){if(pc)return mr;pc=1,Object.defineProperty(mr,"__esModule",{value:!0});const t=ne(),e=oe(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:s})=>(0,t._)`{propertyName: ${s.propertyName}}`},code(s){const{gen:i,schema:o,data:a,it:c}=s;if((0,e.alwaysValidSchema)(c,o))return;const u=i.name("valid");i.forIn("key",a,l=>{s.setParams({propertyName:l}),s.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},u),i.if((0,t.not)(u),()=>{s.error(!0),c.allErrors||i.break()})}),s.ok(u)}};return mr.default=n,mr}var pr={},yc;function il(){if(yc)return pr;yc=1,Object.defineProperty(pr,"__esModule",{value:!0});const t=Te(),e=ne(),r=et(),n=oe(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:o})=>(0,e._)`{additionalProperty: ${o.additionalProperty}}`},code(o){const{gen:a,schema:c,parentSchema:u,data:l,errsCount:h,it:p}=o;if(!h)throw new Error("ajv implementation error");const{allErrors:g,opts:_}=p;if(p.props=!0,_.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(p,c))return;const v=(0,t.allSchemaProperties)(u.properties),m=(0,t.allSchemaProperties)(u.patternProperties);d(),o.ok((0,e._)`${h} === ${r.default.errors}`);function d(){a.forIn("key",l,w=>{!v.length&&!m.length?b(w):a.if(f(w),()=>b(w))})}function f(w){let S;if(v.length>8){const I=(0,n.schemaRefOrVal)(p,u.properties,"properties");S=(0,t.isOwnProperty)(a,I,w)}else v.length?S=(0,e.or)(...v.map(I=>(0,e._)`${w} === ${I}`)):S=e.nil;return m.length&&(S=(0,e.or)(S,...m.map(I=>(0,e._)`${(0,t.usePattern)(o,I)}.test(${w})`))),(0,e.not)(S)}function y(w){a.code((0,e._)`delete ${l}[${w}]`)}function b(w){if(_.removeAdditional==="all"||_.removeAdditional&&c===!1){y(w);return}if(c===!1){o.setParams({additionalProperty:w}),o.error(),g||a.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(p,c)){const S=a.name("valid");_.removeAdditional==="failing"?($(w,S,!1),a.if((0,e.not)(S),()=>{o.reset(),y(w)})):($(w,S),g||a.if((0,e.not)(S),()=>a.break()))}}function $(w,S,I){const A={keyword:"additionalProperties",dataProp:w,dataPropType:n.Type.Str};I===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(A,S)}}};return pr.default=i,pr}var yr={},gc;function $y(){if(gc)return yr;gc=1,Object.defineProperty(yr,"__esModule",{value:!0});const t=Yr(),e=Te(),r=oe(),n=il(),s={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:o,schema:a,parentSchema:c,data:u,it:l}=i;l.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&n.default.code(new t.KeywordCxt(l,n.default,"additionalProperties"));const h=(0,e.allSchemaProperties)(a);for(const m of h)l.definedProperties.add(m);l.opts.unevaluated&&h.length&&l.props!==!0&&(l.props=r.mergeEvaluated.props(o,(0,r.toHash)(h),l.props));const p=h.filter(m=>!(0,r.alwaysValidSchema)(l,a[m]));if(p.length===0)return;const g=o.name("valid");for(const m of p)_(m)?v(m):(o.if((0,e.propertyInData)(o,u,m,l.opts.ownProperties)),v(m),l.allErrors||o.else().var(g,!0),o.endIf()),i.it.definedProperties.add(m),i.ok(g);function _(m){return l.opts.useDefaults&&!l.compositeRule&&a[m].default!==void 0}function v(m){i.subschema({keyword:"properties",schemaProp:m,dataProp:m},g)}}};return yr.default=s,yr}var gr={},vc;function wy(){if(vc)return gr;vc=1,Object.defineProperty(gr,"__esModule",{value:!0});const t=Te(),e=ne(),r=oe(),n=oe(),s={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:o,schema:a,data:c,parentSchema:u,it:l}=i,{opts:h}=l,p=(0,t.allSchemaProperties)(a),g=p.filter(b=>(0,r.alwaysValidSchema)(l,a[b]));if(p.length===0||g.length===p.length&&(!l.opts.unevaluated||l.props===!0))return;const _=h.strictSchema&&!h.allowMatchingProperties&&u.properties,v=o.name("valid");l.props!==!0&&!(l.props instanceof e.Name)&&(l.props=(0,n.evaluatedPropsToName)(o,l.props));const{props:m}=l;d();function d(){for(const b of p)_&&f(b),l.allErrors?y(b):(o.var(v,!0),y(b),o.if(v))}function f(b){for(const $ in _)new RegExp(b).test($)&&(0,r.checkStrictMode)(l,`property ${$} matches pattern ${b} (use allowMatchingProperties)`)}function y(b){o.forIn("key",c,$=>{o.if((0,e._)`${(0,t.usePattern)(i,b)}.test(${$})`,()=>{const w=g.includes(b);w||i.subschema({keyword:"patternProperties",schemaProp:b,dataProp:$,dataPropType:n.Type.Str},v),l.opts.unevaluated&&m!==!0?o.assign((0,e._)`${m}[${$}]`,!0):!w&&!l.allErrors&&o.if((0,e.not)(v),()=>o.break())})})}}};return gr.default=s,gr}var vr={},_c;function Sy(){if(_c)return vr;_c=1,Object.defineProperty(vr,"__esModule",{value:!0});const t=oe(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:s,it:i}=r;if((0,t.alwaysValidSchema)(i,s)){r.fail();return}const o=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return vr.default=e,vr}var _r={},bc;function Ey(){if(bc)return _r;bc=1,Object.defineProperty(_r,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Te().validateUnion,error:{message:"must match a schema in anyOf"}};return _r.default=e,_r}var br={},$c;function Oy(){if($c)return br;$c=1,Object.defineProperty(br,"__esModule",{value:!0});const t=ne(),e=oe(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:s})=>(0,t._)`{passingSchemas: ${s.passing}}`},code(s){const{gen:i,schema:o,parentSchema:a,it:c}=s;if(!Array.isArray(o))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const u=o,l=i.let("valid",!1),h=i.let("passing",null),p=i.name("_valid");s.setParams({passing:h}),i.block(g),s.result(l,()=>s.reset(),()=>s.error(!0));function g(){u.forEach((_,v)=>{let m;(0,e.alwaysValidSchema)(c,_)?i.var(p,!0):m=s.subschema({keyword:"oneOf",schemaProp:v,compositeRule:!0},p),v>0&&i.if((0,t._)`${p} && ${l}`).assign(l,!1).assign(h,(0,t._)`[${h}, ${v}]`).else(),i.if(p,()=>{i.assign(l,!0),i.assign(h,v),m&&s.mergeEvaluated(m,t.Name)})})}}};return br.default=n,br}var $r={},wc;function Py(){if(wc)return $r;wc=1,Object.defineProperty($r,"__esModule",{value:!0});const t=oe(),e={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:s,it:i}=r;if(!Array.isArray(s))throw new Error("ajv implementation error");const o=n.name("valid");s.forEach((a,c)=>{if((0,t.alwaysValidSchema)(i,a))return;const u=r.subschema({keyword:"allOf",schemaProp:c},o);r.ok(o),r.mergeEvaluated(u)})}};return $r.default=e,$r}var wr={},Sc;function Ay(){if(Sc)return wr;Sc=1,Object.defineProperty(wr,"__esModule",{value:!0});const t=ne(),e=oe(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:i})=>(0,t.str)`must match "${i.ifClause}" schema`,params:({params:i})=>(0,t._)`{failingKeyword: ${i.ifClause}}`},code(i){const{gen:o,parentSchema:a,it:c}=i;a.then===void 0&&a.else===void 0&&(0,e.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const u=s(c,"then"),l=s(c,"else");if(!u&&!l)return;const h=o.let("valid",!0),p=o.name("_valid");if(g(),i.reset(),u&&l){const v=o.let("ifClause");i.setParams({ifClause:v}),o.if(p,_("then",v),_("else",v))}else u?o.if(p,_("then")):o.if((0,t.not)(p),_("else"));i.pass(h,()=>i.error(!0));function g(){const v=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},p);i.mergeEvaluated(v)}function _(v,m){return()=>{const d=i.subschema({keyword:v},p);o.assign(h,p),i.mergeValidEvaluated(d,h),m?o.assign(m,(0,t._)`${v}`):i.setParams({ifClause:v})}}}};function s(i,o){const a=i.schema[o];return a!==void 0&&!(0,e.alwaysValidSchema)(i,a)}return wr.default=n,wr}var Sr={},Ec;function Iy(){if(Ec)return Sr;Ec=1,Object.defineProperty(Sr,"__esModule",{value:!0});const t=oe(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:s}){n.if===void 0&&(0,t.checkStrictMode)(s,`"${r}" without "if" is ignored`)}};return Sr.default=e,Sr}var Oc;function Cy(){if(Oc)return lr;Oc=1,Object.defineProperty(lr,"__esModule",{value:!0});const t=rl(),e=yy(),r=nl(),n=gy(),s=vy(),i=_y(),o=by(),a=il(),c=$y(),u=wy(),l=Sy(),h=Ey(),p=Oy(),g=Py(),_=Ay(),v=Iy();function m(d=!1){const f=[l.default,h.default,p.default,g.default,_.default,v.default,o.default,a.default,i.default,c.default,u.default];return d?f.push(e.default,n.default):f.push(t.default,r.default),f.push(s.default),f}return lr.default=m,lr}var Er={},Or={},Pc;function Ry(){if(Pc)return Or;Pc=1,Object.defineProperty(Or,"__esModule",{value:!0});const t=ne(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,t._)`{format: ${n}}`},code(n,s){const{gen:i,data:o,$data:a,schema:c,schemaCode:u,it:l}=n,{opts:h,errSchemaPath:p,schemaEnv:g,self:_}=l;if(!h.validateFormats)return;a?v():m();function v(){const d=i.scopeValue("formats",{ref:_.formats,code:h.code.formats}),f=i.const("fDef",(0,t._)`${d}[${u}]`),y=i.let("fType"),b=i.let("format");i.if((0,t._)`typeof ${f} == "object" && !(${f} instanceof RegExp)`,()=>i.assign(y,(0,t._)`${f}.type || "string"`).assign(b,(0,t._)`${f}.validate`),()=>i.assign(y,(0,t._)`"string"`).assign(b,f)),n.fail$data((0,t.or)($(),w()));function $(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${b}`}function w(){const S=g.$async?(0,t._)`(${f}.async ? await ${b}(${o}) : ${b}(${o}))`:(0,t._)`${b}(${o})`,I=(0,t._)`(typeof ${b} == "function" ? ${S} : ${b}.test(${o}))`;return(0,t._)`${b} && ${b} !== true && ${y} === ${s} && !${I}`}}function m(){const d=_.formats[c];if(!d){$();return}if(d===!0)return;const[f,y,b]=w(d);f===s&&n.pass(S());function $(){if(h.strictSchema===!1){_.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${c}" ignored in schema at path "${p}"`}}function w(I){const A=I instanceof RegExp?(0,t.regexpCode)(I):h.code.formats?(0,t._)`${h.code.formats}${(0,t.getProperty)(c)}`:void 0,q=i.scopeValue("formats",{key:c,ref:I,code:A});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,t._)`${q}.validate`]:["string",I,q]}function S(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!g.$async)throw new Error("async format in sync schema");return(0,t._)`await ${b}(${o})`}return typeof y=="function"?(0,t._)`${b}(${o})`:(0,t._)`${b}.test(${o})`}}}};return Or.default=r,Or}var Ac;function Ny(){if(Ac)return Er;Ac=1,Object.defineProperty(Er,"__esModule",{value:!0});const e=[Ry().default];return Er.default=e,Er}var st={},Ic;function qy(){return Ic||(Ic=1,Object.defineProperty(st,"__esModule",{value:!0}),st.contentVocabulary=st.metadataVocabulary=void 0,st.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],st.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),st}var Cc;function jy(){if(Cc)return Ht;Cc=1,Object.defineProperty(Ht,"__esModule",{value:!0});const t=ny(),e=py(),r=Cy(),n=Ny(),s=qy(),i=[t.default,e.default,(0,r.default)(),n.default,s.metadataVocabulary,s.contentVocabulary];return Ht.default=i,Ht}var Pr={},Pt={},Rc;function Ty(){if(Rc)return Pt;Rc=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(Pt.DiscrError=t={})),Pt}var Nc;function ky(){if(Nc)return Pr;Nc=1,Object.defineProperty(Pr,"__esModule",{value:!0});const t=ne(),e=Ty(),r=Ss(),n=Jr(),s=oe(),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:c}})=>a===e.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:a,tag:c,tagName:u}})=>(0,t._)`{error: ${a}, tag: ${u}, tagValue: ${c}}`},code(a){const{gen:c,data:u,schema:l,parentSchema:h,it:p}=a,{oneOf:g}=h;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const _=l.propertyName;if(typeof _!="string")throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!g)throw new Error("discriminator: requires oneOf keyword");const v=c.let("valid",!1),m=c.const("tag",(0,t._)`${u}${(0,t.getProperty)(_)}`);c.if((0,t._)`typeof ${m} == "string"`,()=>d(),()=>a.error(!1,{discrError:e.DiscrError.Tag,tag:m,tagName:_})),a.ok(v);function d(){const b=y();c.if(!1);for(const $ in b)c.elseIf((0,t._)`${m} === ${$}`),c.assign(v,f(b[$]));c.else(),a.error(!1,{discrError:e.DiscrError.Mapping,tag:m,tagName:_}),c.endIf()}function f(b){const $=c.name("valid"),w=a.subschema({keyword:"oneOf",schemaProp:b},$);return a.mergeEvaluated(w,t.Name),$}function y(){var b;const $={},w=I(h);let S=!0;for(let F=0;F<g.length;F++){let K=g[F];if(K?.$ref&&!(0,s.schemaHasRulesButRef)(K,p.self.RULES)){const M=K.$ref;if(K=r.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,M),K instanceof r.SchemaEnv&&(K=K.schema),K===void 0)throw new n.default(p.opts.uriResolver,p.baseId,M)}const C=(b=K?.properties)===null||b===void 0?void 0:b[_];if(typeof C!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${_}"`);S=S&&(w||I(K)),A(C,F)}if(!S)throw new Error(`discriminator: "${_}" must be required`);return $;function I({required:F}){return Array.isArray(F)&&F.includes(_)}function A(F,K){if(F.const)q(F.const,K);else if(F.enum)for(const C of F.enum)q(C,K);else throw new Error(`discriminator: "properties/${_}" must have "const" or "enum"`)}function q(F,K){if(typeof F!="string"||F in $)throw new Error(`discriminator: "${_}" values must be unique strings`);$[F]=K}}}};return Pr.default=o,Pr}const Fy="http://json-schema.org/draft-07/schema#",Dy="http://json-schema.org/draft-07/schema#",My="Core schema meta-schema",xy={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:[]}},Uy=["object","boolean"],Vy={$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:"#"}},Ly={$schema:Fy,$id:Dy,title:My,definitions:xy,type:Uy,properties:Vy,default:!0};var qc;function sl(){return qc||(qc=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const r=ey(),n=jy(),s=ky(),i=Ly,o=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(_=>this.addVocabulary(_)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const _=this.opts.$data?this.$dataMetaSchema(i,o):i;this.addMetaSchema(_,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.Ajv=c,t.exports=e=c,t.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var u=Yr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var l=ne();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var h=ws();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var p=Jr();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(Kt,Kt.exports)),Kt.exports}var Ky=sl();const zy=Ft(Ky);var Ar={exports:{}},Vi={},jc;function By(){return jc||(jc=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(A,q){return{validate:A,compare:q}}t.fullFormats={date:e(i,o),time:e(c,u),"date-time":e(h,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"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|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\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:I,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:d,int32:{type:"number",validate:b},int64:{type:"number",validate:$},float:{type:"number",validate:w},double:{type:"number",validate:w},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"date-time":e(/^\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,p),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},t.formatNames=Object.keys(t.fullFormats);function r(A){return A%4===0&&(A%100!==0||A%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,s=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(A){const q=n.exec(A);if(!q)return!1;const F=+q[1],K=+q[2],C=+q[3];return K>=1&&K<=12&&C>=1&&C<=(K===2&&r(F)?29:s[K])}function o(A,q){if(A&&q)return A>q?1:A<q?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(A,q){const F=a.exec(A);if(!F)return!1;const K=+F[1],C=+F[2],M=+F[3],U=F[5];return(K<=23&&C<=59&&M<=59||K===23&&C===59&&M===60)&&(!q||U!=="")}function u(A,q){if(!(A&&q))return;const F=a.exec(A),K=a.exec(q);if(F&&K)return A=F[1]+F[2]+F[3]+(F[4]||""),q=K[1]+K[2]+K[3]+(K[4]||""),A>q?1:A<q?-1:0}const l=/t|\s/i;function h(A){const q=A.split(l);return q.length===2&&i(q[0])&&c(q[1],!0)}function p(A,q){if(!(A&&q))return;const[F,K]=A.split(l),[C,M]=q.split(l),U=o(F,C);if(U!==void 0)return U||u(K,M)}const g=/\/|:/,_=/^(?:[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 v(A){return g.test(A)&&_.test(A)}const m=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function d(A){return m.lastIndex=0,m.test(A)}const f=-2147483648,y=2**31-1;function b(A){return Number.isInteger(A)&&A<=y&&A>=f}function $(A){return Number.isInteger(A)}function w(){return!0}const S=/[^\\]\\Z/;function I(A){if(S.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}})(Vi)),Vi}var Li={},Tc;function Wy(){return Tc||(Tc=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=sl(),r=ne(),n=r.operators,s={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},i={message:({keyword:a,schemaCode:c})=>r.str`should be ${s[a].okStr} ${c}`,params:({keyword:a,schemaCode:c})=>r._`{comparison: ${s[a].okStr}, limit: ${c}}`};t.formatLimitDefinition={keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:i,code(a){const{gen:c,data:u,schemaCode:l,keyword:h,it:p}=a,{opts:g,self:_}=p;if(!g.validateFormats)return;const v=new e.KeywordCxt(p,_.RULES.all.format.definition,"format");v.$data?m():d();function m(){const y=c.scopeValue("formats",{ref:_.formats,code:g.code.formats}),b=c.const("fmt",r._`${y}[${v.schemaCode}]`);a.fail$data(r.or(r._`typeof ${b} != "object"`,r._`${b} instanceof RegExp`,r._`typeof ${b}.compare != "function"`,f(b)))}function d(){const y=v.schema,b=_.formats[y];if(!b||b===!0)return;if(typeof b!="object"||b instanceof RegExp||typeof b.compare!="function")throw new Error(`"${h}": format "${y}" does not define "compare" function`);const $=c.scopeValue("formats",{key:y,ref:b,code:g.code.formats?r._`${g.code.formats}${r.getProperty(y)}`:void 0});a.fail$data(f($))}function f(y){return r._`${y}.compare(${u}, ${l}) ${s[h].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(t.formatLimitDefinition),a);t.default=o})(Li)),Li}var kc;function Gy(){return kc||(kc=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=By(),n=Wy(),s=ne(),i=new s.Name("fullFormats"),o=new s.Name("fastFormats"),a=(u,l={keywords:!0})=>{if(Array.isArray(l))return c(u,l,r.fullFormats,i),u;const[h,p]=l.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,i],g=l.formats||r.formatNames;return c(u,g,h,p),l.keywords&&n.default(u),u};a.get=(u,l="full")=>{const p=(l==="fast"?r.fastFormats:r.fullFormats)[u];if(!p)throw new Error(`Unknown format "${u}"`);return p};function c(u,l,h,p){var g,_;(g=(_=u.opts.code).formats)!==null&&g!==void 0||(_.formats=s._`require("ajv-formats/dist/formats").${p}`);for(const v of l)u.addFormat(v,h[v])}t.exports=e=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a})(Ar,Ar.exports)),Ar.exports}var Hy=Gy();const Fc=Ft(Hy),Yy={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},Jy=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,Zy=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Xy(t,e,r={},n,s=zy){const i=new s({...Yy,...r});return n?Fc(i,n):n!==!1&&Fc(i),i.addFormat("data-url",Zy),i.addFormat("color",Jy),i.addKeyword(Dt),i.addKeyword(rs),Array.isArray(t)&&i.addMetaSchema(t),Ie(e)&&Object.keys(e).forEach(o=>{i.addFormat(o,e[o])}),i}function Qy(t=[],e){return t.map(r=>{var n;const{instancePath:s,keyword:i,params:o,schemaPath:a,parentSchema:c,...u}=r;let{message:l=""}=u,h=s.replace(/\//g,"."),p=`${h} ${l}`.trim();const g=[...((n=o.deps)===null||n===void 0?void 0:n.split(", "))||[],o.missingProperty,o.property].filter(_=>_);if(g.length>0)g.forEach(_=>{const v=h?`${h}.${_}`:_;let m=se(X(e,`${v.replace(/^\./,"")}`)).title;if(m===void 0){const d=a.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([_]);m=se(X(e,d)).title}if(m)l=l.replace(`'${_}'`,`'${m}'`);else{const d=X(c,[ve,_,"title"]);d&&(l=l.replace(`'${_}'`,`'${d}'`))}}),p=l;else{const _=se(X(e,`${h.replace(/^\./,"")}`)).title;if(_)p=`'${_}' ${l}`.trim();else{const v=c?.title;v&&(p=`'${v}' ${l}`.trim())}}return"missingProperty"in o&&(h=h?`${h}.${o.missingProperty}`:o.missingProperty),{name:i,property:h,message:l,params:o,stack:p,schemaPath:a}})}function eg(t,e,r,n,s,i,o){const{validationError:a}=e;let c=Qy(e.errors,o);a&&(c=[...c,{stack:a.message}]),typeof i=="function"&&(c=i(c,o));let u=ph(c);if(a&&(u={...u,$schema:{__errors:[a.message]}}),typeof s!="function")return{errors:c,errorSchema:u};const l=ku(t,n,r,n,!0),h=s(l,kr(l),o),p=vs(h);return Nr({errors:c,errorSchema:u},p)}class tg{constructor(e,r){const{additionalMetaSchemas:n,customFormats:s,ajvOptionsOverrides:i,ajvFormatOptions:o,AjvClass:a}=e;this.ajv=Xy(n,s,i,o,a),this.localizer=r}reset(){this.ajv.removeSchema()}toErrorList(e,r=[]){return kt(e,r)}rawValidation(e,r){var n,s;let i,o;e[Je]&&(o=this.ajv.getSchema(e[Je]));try{o===void 0&&(o=this.ajv.compile(e)),o(r)}catch(c){i=c}let a;return o&&(typeof this.localizer=="function"&&(((n=o.errors)!==null&&n!==void 0?n:[]).forEach(c=>{var u;["missingProperty","property"].forEach(l=>{var h;!((h=c.params)===null||h===void 0)&&h[l]&&(c.params[l]=`'${c.params[l]}'`)}),!((u=c.params)===null||u===void 0)&&u.deps&&(c.params.deps=c.params.deps.split(", ").map(l=>`'${l}'`).join(", "))}),this.localizer(o.errors),((s=o.errors)!==null&&s!==void 0?s:[]).forEach(c=>{var u;["missingProperty","property"].forEach(l=>{var h;!((h=c.params)===null||h===void 0)&&h[l]&&(c.params[l]=c.params[l].slice(1,-1))}),!((u=c.params)===null||u===void 0)&&u.deps&&(c.params.deps=c.params.deps.split(", ").map(l=>l.slice(1,-1)).join(", "))})),a=o.errors||void 0,o.errors=null),{errors:a,validationError:i}}validateFormData(e,r,n,s,i){const o=this.rawValidation(r,e);return eg(this,o,e,r,n,s,i)}handleSchemaUpdate(e){var r,n;const s=(r=e[Je])!==null&&r!==void 0?r:su;this.ajv.getSchema(s)===void 0?this.ajv.addSchema(e,s):pe(e,(n=this.ajv.getSchema(s))===null||n===void 0?void 0:n.schema)||(this.ajv.removeSchema(s),this.ajv.addSchema(e,s))}isValid(e,r,n){var s;try{this.handleSchemaUpdate(n);const i=_s(e),o=(s=i[Je])!==null&&s!==void 0?s:uh(i);let a;return a=this.ajv.getSchema(o),a===void 0&&(a=this.ajv.addSchema(i,o).getSchema(o)||this.ajv.compile(i)),a(r)}catch(i){return console.warn("Error encountered compiling schema:",i),!1}}}function rg(t={},e){return new tg(t,e)}const fg=rg();export{Dt as A,dg as F,he as T,se as a,rh as b,od as c,ut as d,Hi as e,xu as f,ue as g,Uu as h,xt as i,nh as j,gs as k,Zf as l,Yf as m,De as n,Lu as o,fh as p,Jf as q,th as r,Rr as s,Vu as t,yh as u,fg as v};