ethyca-fides 2.64.1rc0__py2.py3-none-any.whl → 2.64.2b0__py2.py3-none-any.whl

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 (270) hide show
  1. {ethyca_fides-2.64.1rc0.dist-info → ethyca_fides-2.64.2b0.dist-info}/METADATA +2 -2
  2. {ethyca_fides-2.64.1rc0.dist-info → ethyca_fides-2.64.2b0.dist-info}/RECORD +235 -235
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/6a76a1fa4f3f_add_manual_task_instance_table.py +256 -0
  5. fides/api/alembic/migrations/versions/aadfe83c5644_add_manual_task_to_connectiontype_enum.py +46 -0
  6. fides/api/db/base.py +4 -0
  7. fides/api/db/database.py +27 -2
  8. fides/api/models/attachment.py +15 -3
  9. fides/api/models/comment.py +22 -5
  10. fides/api/models/connectionconfig.py +11 -0
  11. fides/api/models/db_cache.py +1 -1
  12. fides/api/models/detection_discovery/core.py +15 -15
  13. fides/api/models/fides_user_respondent_email_verification.py +27 -2
  14. fides/api/models/manual_tasks/__init__.py +7 -1
  15. fides/api/models/manual_tasks/manual_task.py +68 -4
  16. fides/api/models/manual_tasks/manual_task_config.py +123 -12
  17. fides/api/models/manual_tasks/manual_task_instance.py +294 -0
  18. fides/api/models/manual_tasks/manual_task_log.py +48 -10
  19. fides/api/models/tcf_publisher_restrictions.py +16 -4
  20. fides/api/schemas/manual_tasks/manual_task_schemas.py +42 -0
  21. fides/api/schemas/manual_tasks/manual_task_status.py +107 -46
  22. fides/common/api/v1/urn_registry.py +4 -0
  23. fides/service/manual_tasks/manual_task_config_service.py +17 -5
  24. fides/service/manual_tasks/manual_task_instance_service.py +285 -0
  25. fides/service/manual_tasks/manual_task_service.py +66 -10
  26. fides/ui-build/static/admin/404.html +1 -1
  27. fides/ui-build/static/admin/_next/static/chunks/{1040-630c7f4284dc6f70.js → 1040-fa06cd3b94d97493.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/1169-f75d7958fbe6e136.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/1807-3beab149351d5ded.js +1 -0
  30. fides/ui-build/static/admin/_next/static/chunks/{1817-b4688ba5042ec687.js → 1817-a3813209d7a6d28d.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/{2921-aabf41bf3d7573f9.js → 2921-81a48418f77bc9a7.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/{3450-bdaeb35442d810b4.js → 3450-2bb9f1b5a23fb520.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/3615-5e2d062d684b8fa1.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/{3855-0dec3e7d9e886550.js → 3855-b85ad4e52433d519.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/{3872-ffa16c2df7ef0ab6.js → 3872-09f81435f7905d76.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/{3923-5d580fbb1dd6ae01.js → 3923-2565d952c662555c.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/{401-fceaae662cfca5a5.js → 401-8ea41700c5437d38.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{409-037cfc3f096150f0.js → 409-e0d39af1d9ce8ff2.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/4121-55f5b0bcb5ba41fb.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/{4230-1cdb7ea1be370ed3.js → 4230-b3fe52af1035dff5.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/{431-f72599f01b98f07d.js → 431-c74dab231c8ac968.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/{5309-4511df9708d5a63c.js → 5309-0e44dbd914896514.js} +1 -1
  43. fides/ui-build/static/admin/_next/static/chunks/{5574-3cd33b3a6c937899.js → 5574-917c5ff63d222308.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/570-c99f07161bd339cd.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/6084-57446e3c99078be8.js +1 -0
  46. fides/ui-build/static/admin/_next/static/chunks/6662-45b8977f48a219f5.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/{6853-a4097260e402980e.js → 6853-8d0a099f61c758d1.js} +1 -1
  48. fides/ui-build/static/admin/_next/static/chunks/{6882-3cc73d407a088d7d.js → 6882-13d6f8d95b1e404f.js} +1 -1
  49. fides/ui-build/static/admin/_next/static/chunks/{6954-13a25cef3a8fdd76.js → 6954-4e106b3f7097fe6e.js} +1 -1
  50. fides/ui-build/static/admin/_next/static/chunks/7476-b5fb1c0cf4ad8f63.js +1 -0
  51. fides/ui-build/static/admin/_next/static/chunks/7630-e3d06546f9dfeb91.js +1 -0
  52. fides/ui-build/static/admin/_next/static/chunks/787-381156db4e81dbe8.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/{79-5670e31eb65d0a53.js → 79-3f742fe4efd9893f.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/{796-9a6b13c838e25538.js → 796-83a8bbdcdb67f2ba.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/827-c6fe34fb336467ae.js +1 -0
  56. fides/ui-build/static/admin/_next/static/chunks/9014-eeae6f581158e645.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/{9046-fdf53cc7e926a8c1.js → 9046-6995482a030e323c.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/{905-742074a074be1055.js → 905-ffdbd0b14167e8bd.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/{9226-ba6587e46ec7659a.js → 9226-2be3a6efb127148f.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/{9392.25024e070026343d.js → 9392.9a948112de74781b.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/{9676.e60a53f1f5890847.js → 9676.cc515c853b8cf578.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/9767-980699a4d0f56acc.js +1 -0
  63. fides/ui-build/static/admin/_next/static/chunks/9826-303b14ef4fc7ab4a.js +1 -0
  64. fides/ui-build/static/admin/_next/static/chunks/{9951-f9ab5cac7e2c05ab.js → 9951-57c0a671463e0ebb.js} +1 -1
  65. fides/ui-build/static/admin/_next/static/chunks/pages/{404-ac2f0844e5c4b4cd.js → 404-488f8f03fe0ffbc7.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-8ec6e466f3373ac0.js → _app-5e6fbbf17a62ac76.js} +68 -65
  67. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-0a5f2310ce6b1059.js → manual-1e88ac28bc7a41b6.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-00cb904825aad7e3.js → multiple-f2c9451fffaaa529.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-40a6b572d49c2b68.js +1 -0
  70. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-fa7305b88c1afd20.js → add-vendors-b17d160147365cf3.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-f140ec9d8e8a0f7a.js → configure-8e168d78acdf0cfe.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-0edb7c92518e7d21.js → [id]-5ca2467de7986929.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-a0039f216fb3eb93.js → new-06bb3b0bf097fcdb.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-d8d926f0735a2546.js → privacy-experience-3c11fecc2797ab68.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-5c949f2e3cef2398.js → [id]-92bc6c7b82a679b4.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-130155cfb4a0bcc7.js → new-a3da3243526b7ecb.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-1135ad8924d32c36.js → privacy-notices-b7d82386e7521041.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-776855e370414beb.js → properties-20a2029b7e7fc895.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-21c23f75ff1135d9.js → reporting-0ce299131db4c3e5.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-4d5ea70a77df1bb8.js → consent-9f6a7a231bba17b7.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-c623d6f1a61c8ea9.js → [resourceUrn]-11d52f1570759c4d.js} +1 -1
  82. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-030ee304cbe5e530.js → [projectUrn]-fd705968b357e99a.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-cfac259a30641e68.js → projects-45b585deee0b2371.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-57bd5cdf784f059f.js → [resourceUrn]-b83afa5565d0c84e.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-51d99174c8006eb5.js → resources-d8db234a44a2ddf4.js} +1 -1
  86. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-7b5aec33da578745.js → data-catalog-4fd60a74c0369e3e.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-c948f93c833d4358.js → [systemId]-e861699a8866c64b.js} +1 -1
  88. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-333f53caab751428.js → [monitorId]-5dd2fbf33e228f9c.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-27205f8457a1ecb0.js → action-center-806cae6bc128cd38.js} +1 -1
  90. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-20a1043f6a06198f.js → activity-487285bd5eca2595.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-06edce289876dea1.js → [resourceUrn]-393e20924c83373e.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-faf326a6200637d0.js → detection-8733807dad4bc96e.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-64acf269256ee74f.js → [resourceUrn]-14bd7500362ff224.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-8c3e4be6d36da66d.js → discovery-9e7dfd5a6acc2e8f.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-fb50de22f83edd4a.js → datamap-c9509d72c538d22b.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-41ab27c4195cfa93.js → [...subfieldNames]-4e8a436297a055b2.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-6e2caba24b3e78c2.js → [collectionName]-6ce02295bb7f5b6d.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-904d43e31157aa55.js → [datasetId]-9eaa907437fde063.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-de5e9ccfecdf31b1.js +1 -0
  100. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-8f7d16bc5e9229c8.js → dataset-dcdec3644f05188d.js} +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-4a33dd0371dbaebc.js → [id]-81ab412e337d2888.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-e88509346b2d2851.js → new-34dfc172165dbb1c.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-cdb77886d7fd4f44.js +1 -0
  104. fides/ui-build/static/admin/_next/static/chunks/pages/{index-1adb6bcb71701ac2.js → index-de954b741cbca022.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-fdc2964fa7d1d8fd.js → [id]-dba625eddca48f69.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-40a3cd14264796e2.js +1 -0
  107. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-9b4d1d61c7c97509.js → [id]-42edcab11e8b5c3c.js} +1 -1
  108. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-f8fd4795e260887c.js → add-template-333e54ac8c3ad57a.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-aa744ae8b61e5ff2.js → messaging-8e1e6f3782983225.js} +1 -1
  110. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-3407158757fb3627.js → ant-components-25c74d51a49b2403.js} +1 -1
  111. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-47e947c02ae90fd0.js → AntForm-920338760f5a71b5.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-24f9a44512ce8827.js → FormikAntFormItem-7462fb387a9de3f8.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-e567a69f8c37fb9a.js → FormikControlled-6148fce7a4e2e9ca.js} +1 -1
  114. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-35a33f9c7def2220.js → FormikField-30efd8c937bf19e4.js} +1 -1
  115. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-780e18dde8e38099.js → forms-c44de83e0952d1e0.js} +1 -1
  116. fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-7852aa60090c8c9a.js +1 -0
  117. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-11dd6152bf6607cc.js +1 -0
  118. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-83a548813fec4f90.js +1 -0
  119. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-a087847d6cbccc65.js +1 -0
  120. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-1a1aa83a3f88844c.js → configure-1d981663e1a84166.js} +1 -1
  121. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-6a5794999a1cc0b6.js +1 -0
  122. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-19737d4f21aadbee.js → [id]-b08a69b1c460c7fe.js} +1 -1
  123. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-9ccb295110feee20.js → add-property-a5d1c65ec21df69d.js} +1 -1
  124. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-3a1037a2e036212a.js → properties-3a75c6ed8308d126.js} +1 -1
  125. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-4cdbbb8cd1d8698e.js → datamap-911996819aa16e04.js} +1 -1
  126. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/{alpha-965cc21889b25e44.js → alpha-6773158ba6ccf4b0.js} +1 -1
  127. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-0e1c381d488a7ada.js → about-2e046d177d52465c.js} +1 -1
  128. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-d0e350d2a2667883.js → [purpose_id]-a5420c3ba02fe6a5.js} +1 -1
  129. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-2a95eb36aa2b47a6.js +1 -0
  130. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-6f866bc799a5f67f.js → custom-fields-06075fbf122c98d0.js} +1 -1
  131. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-0b44b2b224077dcd.js → domain-records-2c7ecff0a8a74c42.js} +1 -1
  132. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-afed8ba5498a9f93.js +1 -0
  133. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-c1d3f3cb9c6ca463.js +1 -0
  134. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-811dadb489f23d7d.js → locations-8d4383584c72eb5a.js} +1 -1
  135. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-aae79a344a96a367.js +1 -0
  136. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-54f142bc3e4c95ba.js → regulations-29892065d99ff113.js} +1 -1
  137. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-9669fa6b20545530.js +1 -0
  138. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-6eb886e7b7e6785b.js → [id]-8fa8a2f238e08791.js} +1 -1
  139. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-7b71274334c559a4.js → systems-acdbdd3dfd21162f.js} +1 -1
  140. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-9b4d28f02df3a238.js +1 -0
  141. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-b124cc24b930c9e1.js → new-a2524414e968f862.js} +1 -1
  142. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-75d41fde668b9025.js → [id]-87ed17fa1d9f8f72.js} +1 -1
  143. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-dd43755b687c09a7.js → user-management-6b4e0764bb8816b8.js} +1 -1
  144. fides/ui-build/static/admin/_next/static/chunks/webpack-da78c536f3d86d06.js +1 -0
  145. fides/ui-build/static/admin/_next/static/css/{c693338e3bc8dcc6.css → 67ac3d00a5f134a2.css} +1 -1
  146. fides/ui-build/static/admin/_next/static/jg8bMUMFAG7KlEnEbTRct/_buildManifest.js +1 -0
  147. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  148. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  149. fides/ui-build/static/admin/add-systems.html +1 -1
  150. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  151. fides/ui-build/static/admin/consent/configure.html +1 -1
  152. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  153. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  154. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  155. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  156. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  157. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  158. fides/ui-build/static/admin/consent/properties.html +1 -1
  159. fides/ui-build/static/admin/consent/reporting.html +1 -1
  160. fides/ui-build/static/admin/consent.html +1 -1
  161. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  162. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  163. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  164. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  165. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  166. fides/ui-build/static/admin/data-catalog.html +1 -1
  167. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  168. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  169. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  170. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  171. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  172. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  173. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  174. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  175. fides/ui-build/static/admin/datamap.html +1 -1
  176. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  177. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  178. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  179. fides/ui-build/static/admin/dataset/new.html +1 -1
  180. fides/ui-build/static/admin/dataset.html +1 -1
  181. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  182. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  183. fides/ui-build/static/admin/datastore-connection.html +1 -1
  184. fides/ui-build/static/admin/index.html +1 -1
  185. fides/ui-build/static/admin/integrations/[id].html +1 -1
  186. fides/ui-build/static/admin/integrations.html +1 -1
  187. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  188. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  189. fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
  190. fides/ui-build/static/admin/lib/fides.js +2 -2
  191. fides/ui-build/static/admin/login/[provider].html +1 -1
  192. fides/ui-build/static/admin/login.html +1 -1
  193. fides/ui-build/static/admin/messaging/[id].html +1 -1
  194. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  195. fides/ui-build/static/admin/messaging.html +1 -1
  196. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  197. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  198. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  199. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  200. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  201. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  202. fides/ui-build/static/admin/poc/forms.html +1 -1
  203. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  204. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  205. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  206. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  207. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  208. fides/ui-build/static/admin/privacy-requests.html +1 -1
  209. fides/ui-build/static/admin/properties/[id].html +1 -1
  210. fides/ui-build/static/admin/properties/add-property.html +1 -1
  211. fides/ui-build/static/admin/properties.html +1 -1
  212. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  213. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  214. fides/ui-build/static/admin/settings/about.html +1 -1
  215. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  216. fides/ui-build/static/admin/settings/consent.html +1 -1
  217. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  218. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  219. fides/ui-build/static/admin/settings/domains.html +1 -1
  220. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  221. fides/ui-build/static/admin/settings/locations.html +1 -1
  222. fides/ui-build/static/admin/settings/organization.html +1 -1
  223. fides/ui-build/static/admin/settings/regulations.html +1 -1
  224. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  225. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  226. fides/ui-build/static/admin/systems.html +1 -1
  227. fides/ui-build/static/admin/taxonomy.html +1 -1
  228. fides/ui-build/static/admin/user-management/new.html +1 -1
  229. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  230. fides/ui-build/static/admin/user-management.html +1 -1
  231. fides/ui-build/static/admin/_next/static/chunks/1100-d43cb04522a6505c.js +0 -1
  232. fides/ui-build/static/admin/_next/static/chunks/2430-b480401d44c55416.js +0 -1
  233. fides/ui-build/static/admin/_next/static/chunks/3505-a79256cd851dfab4.js +0 -1
  234. fides/ui-build/static/admin/_next/static/chunks/3513-8677ee280eaef0da.js +0 -1
  235. fides/ui-build/static/admin/_next/static/chunks/3670-2abd9b2f17770872.js +0 -1
  236. fides/ui-build/static/admin/_next/static/chunks/3983-17ae9c232bddc413.js +0 -1
  237. fides/ui-build/static/admin/_next/static/chunks/4060-71cd041e5a57ca5a.js +0 -1
  238. fides/ui-build/static/admin/_next/static/chunks/4121-78a76e980acbd539.js +0 -1
  239. fides/ui-build/static/admin/_next/static/chunks/4481-f597a7cf03f8c9e1.js +0 -1
  240. fides/ui-build/static/admin/_next/static/chunks/6060-cb1ab5be7067bf7b.js +0 -4
  241. fides/ui-build/static/admin/_next/static/chunks/6277-3fb4c7fc790a6d20.js +0 -1
  242. fides/ui-build/static/admin/_next/static/chunks/6659-b2088f525bf13c17.js +0 -1
  243. fides/ui-build/static/admin/_next/static/chunks/6662-6a6b90fc8f11558f.js +0 -1
  244. fides/ui-build/static/admin/_next/static/chunks/69-6889d6674c95e7b5.js +0 -1
  245. fides/ui-build/static/admin/_next/static/chunks/7553-a95939c32d54b5b7.js +0 -1
  246. fides/ui-build/static/admin/_next/static/chunks/8433-adb1fcb29d82f1b7.js +0 -1
  247. fides/ui-build/static/admin/_next/static/chunks/9767-e49b065d03ce4e80.js +0 -1
  248. fides/ui-build/static/admin/_next/static/chunks/c78d26b1-88a3e1bacb2a03c2.js +0 -1
  249. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-587e21d14e0a5196.js +0 -1
  250. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-d4e31a1c4a58800e.js +0 -1
  251. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-8f9b8890018e1ea5.js +0 -1
  252. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-adc286ff254e7f41.js +0 -1
  253. fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-7a17dffa515e5560.js +0 -1
  254. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-91dd0039cc2b70bc.js +0 -1
  255. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-b01cbbaac34dadbc.js +0 -1
  256. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-a15410de7f1d0f84.js +0 -1
  257. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-c4e1b69fb5bab61a.js +0 -1
  258. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-7796fbf458f8f159.js +0 -1
  259. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-5d00e1155bd11178.js +0 -1
  260. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-d2cdbe770683e9df.js +0 -1
  261. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-24108f615ff5e1e7.js +0 -1
  262. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-fef247a87baeb080.js +0 -1
  263. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-18534d2a79a3850b.js +0 -1
  264. fides/ui-build/static/admin/_next/static/chunks/webpack-0a61b5bd21a41fe6.js +0 -1
  265. fides/ui-build/static/admin/_next/static/hCJxUAFBWobWrps6RkP0K/_buildManifest.js +0 -1
  266. {ethyca_fides-2.64.1rc0.dist-info → ethyca_fides-2.64.2b0.dist-info}/WHEEL +0 -0
  267. {ethyca_fides-2.64.1rc0.dist-info → ethyca_fides-2.64.2b0.dist-info}/entry_points.txt +0 -0
  268. {ethyca_fides-2.64.1rc0.dist-info → ethyca_fides-2.64.2b0.dist-info}/licenses/LICENSE +0 -0
  269. {ethyca_fides-2.64.1rc0.dist-info → ethyca_fides-2.64.2b0.dist-info}/top_level.txt +0 -0
  270. /fides/ui-build/static/admin/_next/static/{hCJxUAFBWobWrps6RkP0K → jg8bMUMFAG7KlEnEbTRct}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[570],{8335:function(t,e,n){"use strict";n.d(e,{t8:function(){return p},jD:function(){return h},QZ:function(){return y},IY:function(){return f},Ly:function(){return g},pB:function(){return m},oW:function(){return d},oC:function(){return rp},Ql:function(){return rx},FD:function(){return rw},X6:function(){return r$},Cz:function(){return rB},Z_:function(){return nU},yF:function(){return ri},OL:function(){return nP},q7:function(){return na},n3:function(){return n9},Ki:function(){return nM},wQ:function(){return e5},Qj:function(){return e1},ZB:function(){return nT},Qu:function(){return nu},lM:function(){return nV},OQ:function(){return nD},oI:function(){return nx},Zp:function(){return e7},t_:function(){return nH},JU:function(){return n3},WD:function(){return nl},xx:function(){return nW},wv:function(){return nR},J6:function(){return no},S2:function(){return nO},W0:function(){return nn},dW:function(){return n8},Rf:function(){return nN},RX:function(){return ne},f5:function(){return nr},lp:function(){return nw},OW:function(){return n2},Hm:function(){return nG},$i:function(){return nz},so:function(){return ra},k5:function(){return e2},Ky:function(){return e3},J3:function(){return e4},RY:function(){return nK},s$:function(){return nL},Q5:function(){return n$},N5:function(){return nX},Vt:function(){return e8},kE:function(){return nb},J$:function(){return n_},nb:function(){return nI},PS:function(){return nm},hO:function(){return rs},m:function(){return nk},oj:function(){return nA},_2:function(){return nE},VV:function(){return rr},be:function(){return rh},B1:function(){return rl}});var r,i,o,u,a,l,s,c,h,f,d,p,y,g,m,v={value:()=>{}};function x(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new w(r)}function w(t){this._=t}function _(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=v,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}function b(){}function M(t){return null==t?b:function(){return this.querySelector(t)}}function E(){return[]}function k(t){return null==t?E:function(){return this.querySelectorAll(t)}}function A(t){return function(){return this.matches(t)}}function z(t){return function(e){return e.matches(t)}}w.prototype=x.prototype={constructor:w,on:function(t,e){var n,r=this._,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),o=-1,u=i.length;if(arguments.length<2){for(;++o<u;)if((n=(t=i[o]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++o<u;)if(n=(t=i[o]).type)r[n]=_(r[n],t.name,e);else if(null==e)for(n in r)r[n]=_(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new w(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var $=Array.prototype.find;function S(){return this.firstElementChild}var N=Array.prototype.filter;function I(){return Array.from(this.children)}function T(t){return Array(t.length)}function P(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function B(t,e,n,r,i,o){for(var u,a=0,l=e.length,s=o.length;a<s;++a)(u=e[a])?(u.__data__=o[a],r[a]=u):n[a]=new P(t,o[a]);for(;a<l;++a)(u=e[a])&&(i[a]=u)}function H(t,e,n,r,i,o,u){var a,l,s,c=new Map,h=e.length,f=o.length,d=Array(h);for(a=0;a<h;++a)(l=e[a])&&(d[a]=s=u.call(l,l.__data__,a,e)+"",c.has(s)?i[a]=l:c.set(s,l));for(a=0;a<f;++a)s=u.call(t,o[a],a,o)+"",(l=c.get(s))?(r[a]=l,l.__data__=o[a],c.delete(s)):n[a]=new P(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(d[a])===l&&(i[a]=l)}function O(t){return t.__data__}function C(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}P.prototype={constructor:P,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var L="http://www.w3.org/1999/xhtml",X={svg:"http://www.w3.org/2000/svg",xhtml:L,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function R(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),X.hasOwnProperty(e)?{space:X[e],local:t}:t}function Y(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function V(t,e){return t.style.getPropertyValue(e)||Y(t).getComputedStyle(t,null).getPropertyValue(e)}function j(t){return t.trim().split(/^|\s+/)}function q(t){return t.classList||new D(t)}function D(t){this._node=t,this._names=j(t.getAttribute("class")||"")}function F(t,e){for(var n=q(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function W(t,e){for(var n=q(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function K(){this.textContent=""}function Z(){this.innerHTML=""}function Q(){this.nextSibling&&this.parentNode.appendChild(this)}function U(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function G(t){var e=R(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===L&&e.documentElement.namespaceURI===L?e.createElement(t):e.createElementNS(n,t)}})(e)}function J(){return null}function tt(){var t=this.parentNode;t&&t.removeChild(this)}function te(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tr(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function ti(t,e,n){return function(){var r,i=this.__on,o=function(t){e.call(this,t,this.__data__)};if(i){for(var u=0,a=i.length;u<a;++u)if((r=i[u]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function to(t,e,n){var r=Y(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}D.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tu=[null];function ta(t,e){this._groups=t,this._parents=e}function tl(){return new ta([[document.documentElement]],tu)}function ts(t){return"string"==typeof t?new ta([[document.querySelector(t)]],[document.documentElement]):new ta([[t]],tu)}function tc(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}ta.prototype=tl.prototype={constructor:ta,select:function(t){"function"!=typeof t&&(t=M(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,u,a=e[i],l=a.length,s=r[i]=Array(l),c=0;c<l;++c)(o=a[c])&&(u=t.call(o,o.__data__,c,a))&&("__data__"in o&&(u.__data__=o.__data__),s[c]=u);return new ta(r,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=k(t);for(var n=this._groups,r=n.length,i=[],o=[],u=0;u<r;++u)for(var a,l=n[u],s=l.length,c=0;c<s;++c)(a=l[c])&&(i.push(t.call(a,a.__data__,c,l)),o.push(a));return new ta(i,o)},selectChild:function(t){var e;return this.select(null==t?S:(e="function"==typeof t?t:z(t),function(){return $.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?I:(e="function"==typeof t?t:z(t),function(){return N.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=A(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,u=e[i],a=u.length,l=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&l.push(o);return new ta(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,O);var n=e?H:B,r=this._parents,i=this._groups;"function"!=typeof t&&(v=t,t=function(){return v});for(var o=i.length,u=Array(o),a=Array(o),l=Array(o),s=0;s<o;++s){var c=r[s],h=i[s],f=h.length,d="object"==typeof(m=t.call(c,c&&c.__data__,s,r))&&"length"in m?m:Array.from(m),p=d.length,y=a[s]=Array(p),g=u[s]=Array(p);n(c,h,y,g,l[s]=Array(f),d,e);for(var m,v,x,w,_=0,b=0;_<p;++_)if(x=y[_]){for(_>=b&&(b=_+1);!(w=g[b])&&++b<p;);x._next=w||null}}return(u=new ta(u,r))._enter=a,u._exit=l,u},enter:function(){return new ta(this._enter||this._groups.map(T),this._parents)},exit:function(){return new ta(this._exit||this._groups.map(T),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,u=Math.min(i,o),a=Array(i),l=0;l<u;++l)for(var s,c=n[l],h=r[l],f=c.length,d=a[l]=Array(f),p=0;p<f;++p)(s=c[p]||h[p])&&(d[p]=s);for(;l<i;++l)a[l]=n[l];return new ta(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=C);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var u,a=n[o],l=a.length,s=i[o]=Array(l),c=0;c<l;++c)(u=a[c])&&(s[c]=u);s.sort(e)}return new ta(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,e){var n=R(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):V(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=j(t+"");if(arguments.length<2){for(var r=q(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?F:W)(this,t)}}:e?function(t){return function(){F(this,t)}}:function(t){return function(){W(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?K:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Z:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(Q)},lower:function(){return this.each(U)},append:function(t){var e="function"==typeof t?t:G(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:G(t),r=null==e?J:"function"==typeof e?e:M(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(tt)},clone:function(t){return this.select(t?tn:te)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),u=o.length;if(arguments.length<2){var a=this.node().__on;if(a){for(var l,s=0,c=a.length;s<c;++s)for(r=0,l=a[s];r<u;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,a=e?ti:tr;r<u;++r)this.each(a(o[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return to(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return to(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,u=i.length;o<u;++o)(r=i[o])&&(yield r)}};let th={passive:!1},tf={capture:!0,passive:!1};function td(t){t.stopImmediatePropagation()}function tp(t){t.preventDefault(),t.stopImmediatePropagation()}function ty(t){var e=t.document.documentElement,n=ts(t).on("dragstart.drag",tp,tf);"onselectstart"in e?n.on("selectstart.drag",tp,tf):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function tg(t,e){var n=t.document.documentElement,r=ts(t).on("dragstart.drag",null);e&&(r.on("click.drag",tp,tf),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var tm=t=>()=>t;function tv(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:u,y:a,dx:l,dy:s,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:c}})}function tx(t){return!t.ctrlKey&&!t.button}function tw(){return this.parentNode}function t_(t,e){return null==e?{x:t.x,y:t.y}:e}function tb(){return navigator.maxTouchPoints||"ontouchstart"in this}function tM(){var t,e,n,r,i=tx,o=tw,u=t_,a=tb,l={},s=x("start","drag","end"),c=0,h=0;function f(t){t.on("mousedown.drag",d).filter(a).on("touchstart.drag",g).on("touchmove.drag",m,th).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(u,a){if(!r&&i.call(this,u,a)){var l=w(this,o.call(this,u,a),u,a,"mouse");l&&(ts(u.view).on("mousemove.drag",p,tf).on("mouseup.drag",y,tf),ty(u.view),td(u),n=!1,t=u.clientX,e=u.clientY,l("start",u))}}function p(r){if(tp(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>h}l.mouse("drag",r)}function y(t){ts(t.view).on("mousemove.drag mouseup.drag",null),tg(t.view,n),tp(t),l.mouse("end",t)}function g(t,e){if(i.call(this,t,e)){var n,r,u=t.changedTouches,a=o.call(this,t,e),l=u.length;for(n=0;n<l;++n)(r=w(this,a,t,e,u[n].identifier,u[n]))&&(td(t),r("start",t,u[n]))}}function m(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=l[r[e].identifier])&&(tp(t),n("drag",t,r[e]))}function v(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),e=0;e<o;++e)(n=l[i[e].identifier])&&(td(t),n("end",t,i[e]))}function w(t,e,n,r,i,o){var a,h,d,p=s.copy(),y=tc(o||n,e);if(null!=(d=u.call(t,new tv("beforestart",{sourceEvent:n,target:f,identifier:i,active:c,x:y[0],y:y[1],dx:0,dy:0,dispatch:p}),r)))return a=d.x-y[0]||0,h=d.y-y[1]||0,function n(o,u,s){var g,m=y;switch(o){case"start":l[i]=n,g=c++;break;case"end":delete l[i],--c;case"drag":y=tc(s||u,e),g=c}p.call(o,t,new tv(o,{sourceEvent:u,subject:d,target:f,identifier:i,active:g,x:y[0]+a,y:y[1]+h,dx:y[0]-m[0],dy:y[1]-m[1],dispatch:p}),r)}}return f.filter=function(t){return arguments.length?(i="function"==typeof t?t:tm(!!t),f):i},f.container=function(t){return arguments.length?(o="function"==typeof t?t:tm(t),f):o},f.subject=function(t){return arguments.length?(u="function"==typeof t?t:tm(t),f):u},f.touchable=function(t){return arguments.length?(a="function"==typeof t?t:tm(!!t),f):a},f.on=function(){var t=s.on.apply(s,arguments);return t===s?f:t},f.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,f):Math.sqrt(h)},f}function tE(t){return((t=Math.exp(t))+1/t)/2}tv.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var tk,tA,tz=function t(e,n,r){function i(t,i){var o,u,a=t[0],l=t[1],s=t[2],c=i[0],h=i[1],f=i[2],d=c-a,p=h-l,y=d*d+p*p;if(y<1e-12)u=Math.log(f/s)/e,o=function(t){return[a+t*d,l+t*p,s*Math.exp(e*t*u)]};else{var g=Math.sqrt(y),m=(f*f-s*s+r*y)/(2*s*n*g),v=(f*f-s*s-r*y)/(2*f*n*g),x=Math.log(Math.sqrt(m*m+1)-m);u=(Math.log(Math.sqrt(v*v+1)-v)-x)/e,o=function(t){var r,i,o=t*u,c=tE(x),h=s/(n*g)*(((r=Math.exp(2*(r=e*o+x)))-1)/(r+1)*c-((i=Math.exp(i=x))-1/i)/2);return[a+h*d,l+h*p,s*c/tE(e*o+x)]}}return o.duration=1e3*u*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4),t$=0,tS=0,tN=0,tI=0,tT=0,tP=0,tB="object"==typeof performance&&performance.now?performance:Date,tH="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tO(){return tT||(tH(tC),tT=tB.now()+tP)}function tC(){tT=0}function tL(){this._call=this._time=this._next=null}function tX(t,e,n){var r=new tL;return r.restart(t,e,n),r}function tR(){tT=(tI=tB.now())+tP,t$=tS=0;try{!function(){tO(),++t$;for(var t,e=tk;e;)(t=tT-e._time)>=0&&e._call.call(void 0,t),e=e._next;--t$}()}finally{t$=0,function(){for(var t,e,n=tk,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:tk=e);tA=t,tV(r)}(),tT=0}}function tY(){var t=tB.now(),e=t-tI;e>1e3&&(tP-=e,tI=t)}function tV(t){!t$&&(tS&&(tS=clearTimeout(tS)),t-tT>24?(t<1/0&&(tS=setTimeout(tR,t-tB.now()-tP)),tN&&(tN=clearInterval(tN))):(tN||(tI=tB.now(),tN=setInterval(tY,1e3)),t$=1,tH(tR)))}function tj(t,e,n){var r=new tL;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}tL.prototype=tX.prototype={constructor:tL,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?tO():+n)+(null==e?0:+e),this._next||tA===this||(tA?tA._next=this:tk=this,tA=this),this._call=t,this._time=n,tV()},stop:function(){this._call&&(this._call=null,this._time=1/0,tV())}};var tq=x("start","end","cancel","interrupt"),tD=[];function tF(t,e,n,r,i,o){var u=t.__transition;if(u){if(n in u)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(l){var s,c,h,f;if(1!==n.state)return a();for(s in i)if((f=i[s]).name===n.name){if(3===f.state)return tj(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[s]):+s<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[s])}if(tj(function(){3===n.state&&(n.state=4,n.timer.restart(u,n.delay,n.time),u(l))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(s=0,n.state=3,r=Array(h=n.tween.length),c=-1;s<h;++s)(f=n.tween[s].value.call(t,t.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function u(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=tX(function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:tq,tween:tD,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function tW(t,e){var n=tZ(t,e);if(n.state>0)throw Error("too late; already scheduled");return n}function tK(t,e){var n=tZ(t,e);if(n.state>3)throw Error("too late; already running");return n}function tZ(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}function tQ(t,e){var n,r,i,o=t.__transition,u=!0;if(o){for(i in e=null==e?null:e+"",o){if((n=o[i]).name!==e){u=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]}u&&delete t.__transition}}function tU(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var tG=180/Math.PI,tJ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function t0(t,e,n,r,i,o){var u,a,l;return(u=Math.sqrt(t*t+e*e))&&(t/=u,e/=u),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*tG,skewX:Math.atan(l)*tG,scaleX:u,scaleY:a}}function t1(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a,l,s,c,h=[],f=[];return o=t(o),u=t(u),!function(t,r,i,o,u,a){if(t!==i||r!==o){var l=u.push("translate(",null,e,null,n);a.push({i:l-4,x:tU(t,i)},{i:l-2,x:tU(r,o)})}else(i||o)&&u.push("translate("+i+e+o+n)}(o.translateX,o.translateY,u.translateX,u.translateY,h,f),(a=o.rotate)!==(l=u.rotate)?(a-l>180?l+=360:l-a>180&&(a+=360),f.push({i:h.push(i(h)+"rotate(",null,r)-2,x:tU(a,l)})):l&&h.push(i(h)+"rotate("+l+r),(s=o.skewX)!==(c=u.skewX)?f.push({i:h.push(i(h)+"skewX(",null,r)-2,x:tU(s,c)}):c&&h.push(i(h)+"skewX("+c+r),!function(t,e,n,r,o,u){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:tU(t,n)},{i:a-2,x:tU(e,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,h,f),o=u=null,function(t){for(var e,n=-1,r=f.length;++n<r;)h[(e=f[n]).i]=e.x(t);return h.join("")}}}var t2=t1(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tJ:t0(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),t5=t1(function(t){return null==t?tJ:(c||(c=document.createElementNS("http://www.w3.org/2000/svg","g")),c.setAttribute("transform",t),t=c.transform.baseVal.consolidate())?t0((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tJ},", ",")",")");function t3(t,e,n){var r=t._id;return t.each(function(){var t=tK(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return tZ(t,r).value[e]}}function t6(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function t7(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function t4(){}var t8="\\s*([+-]?\\d+)\\s*",t9="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",et="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ee=/^#([0-9a-f]{3,8})$/,en=RegExp(`^rgb\\(${t8},${t8},${t8}\\)$`),er=RegExp(`^rgb\\(${et},${et},${et}\\)$`),ei=RegExp(`^rgba\\(${t8},${t8},${t8},${t9}\\)$`),eo=RegExp(`^rgba\\(${et},${et},${et},${t9}\\)$`),eu=RegExp(`^hsl\\(${t9},${et},${et}\\)$`),ea=RegExp(`^hsla\\(${t9},${et},${et},${t9}\\)$`),el={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function es(){return this.rgb().formatHex()}function ec(){return this.rgb().formatRgb()}function eh(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ee.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ef(e):3===n?new ey(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ed(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ed(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=en.exec(t))?new ey(e[1],e[2],e[3],1):(e=er.exec(t))?new ey(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ei.exec(t))?ed(e[1],e[2],e[3],e[4]):(e=eo.exec(t))?ed(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=eu.exec(t))?e_(e[1],e[2]/100,e[3]/100,1):(e=ea.exec(t))?e_(e[1],e[2]/100,e[3]/100,e[4]):el.hasOwnProperty(t)?ef(el[t]):"transparent"===t?new ey(NaN,NaN,NaN,0):null}function ef(t){return new ey(t>>16&255,t>>8&255,255&t,1)}function ed(t,e,n,r){return r<=0&&(t=e=n=NaN),new ey(t,e,n,r)}function ep(t,e,n,r){var i;return 1==arguments.length?((i=t)instanceof t4||(i=eh(i)),i)?new ey((i=i.rgb()).r,i.g,i.b,i.opacity):new ey:new ey(t,e,n,null==r?1:r)}function ey(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function eg(){return`#${ew(this.r)}${ew(this.g)}${ew(this.b)}`}function em(){let t=ev(this.opacity);return`${1===t?"rgb(":"rgba("}${ex(this.r)}, ${ex(this.g)}, ${ex(this.b)}${1===t?")":`, ${t})`}`}function ev(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ex(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ew(t){return((t=ex(t))<16?"0":"")+t.toString(16)}function e_(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new eM(t,e,n,r)}function eb(t){if(t instanceof eM)return new eM(t.h,t.s,t.l,t.opacity);if(t instanceof t4||(t=eh(t)),!t)return new eM;if(t instanceof eM)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),u=NaN,a=o-i,l=(o+i)/2;return a?(u=e===o?(n-r)/a+(n<r)*6:n===o?(r-e)/a+2:(e-n)/a+4,a/=l<.5?o+i:2-o-i,u*=60):a=l>0&&l<1?0:u,new eM(u,a,l,t.opacity)}function eM(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function eE(t){return(t=(t||0)%360)<0?t+360:t}function ek(t){return Math.max(0,Math.min(1,t||0))}function eA(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function ez(t,e,n,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*e+(4-6*o+3*u)*n+(1+3*t+3*o-3*u)*r+u*i)/6}t6(t4,eh,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:es,formatHex:es,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eb(this).formatHsl()},formatRgb:ec,toString:ec}),t6(ey,ep,t7(t4,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new ey(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new ey(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ey(ex(this.r),ex(this.g),ex(this.b),ev(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:eg,formatHex:eg,formatHex8:function(){return`#${ew(this.r)}${ew(this.g)}${ew(this.b)}${ew((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:em,toString:em})),t6(eM,function(t,e,n,r){return 1==arguments.length?eb(t):new eM(t,e,n,null==r?1:r)},t7(t4,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new eM(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new eM(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ey(eA(t>=240?t-240:t+120,i,r),eA(t,i,r),eA(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new eM(eE(this.h),ek(this.s),ek(this.l),ev(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=ev(this.opacity);return`${1===t?"hsl(":"hsla("}${eE(this.h)}, ${100*ek(this.s)}%, ${100*ek(this.l)}%${1===t?")":`, ${t})`}`}}));var e$=t=>()=>t;function eS(t,e){var n=e-t;return n?function(e){return t+e*n}:e$(isNaN(t)?e:t)}var eN=function t(e){var n,r=1==(n=+(n=e))?eS:function(t,e){var r,i,o;return e-t?(r=t,i=e,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(t){return Math.pow(r+t*i,o)}):e$(isNaN(t)?e:t)};function i(t,e){var n=r((t=ep(t)).r,(e=ep(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),u=eS(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=u(e),t+""}}return i.gamma=t,i}(1);function eI(t){return function(e){var n,r,i=e.length,o=Array(i),u=Array(i),a=Array(i);for(n=0;n<i;++n)r=ep(e[n]),o[n]=r.r||0,u[n]=r.g||0,a[n]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}eI(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r<e-1?t[r+2]:2*o-i;return ez((n-r/e)*e,u,i,o,a)}}),eI(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],u=t[(r+1)%e],a=t[(r+2)%e];return ez((n-r/e)*e,i,o,u,a)}});var eT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eP=RegExp(eT.source,"g");function eB(t,e){var n;return("number"==typeof e?tU:e instanceof eh?eN:(n=eh(e))?(e=n,eN):function(t,e){var n,r,i,o,u,a=eT.lastIndex=eP.lastIndex=0,l=-1,s=[],c=[];for(t+="",e+="";(i=eT.exec(t))&&(o=eP.exec(e));)(u=o.index)>a&&(u=e.slice(a,u),s[l]?s[l]+=u:s[++l]=u),(i=i[0])===(o=o[0])?s[l]?s[l]+=o:s[++l]=o:(s[++l]=null,c.push({i:l,x:tU(i,o)})),a=eP.lastIndex;return a<e.length&&(u=e.slice(a),s[l]?s[l]+=u:s[++l]=u),s.length<2?c[0]?(n=c[0].x,function(t){return n(t)+""}):(r=e,function(){return r}):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})})(t,e)}var eH=tl.prototype.constructor;function eO(t){return function(){this.style.removeProperty(t)}}var eC=0;function eL(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}var eX=tl.prototype;eL.prototype=(function(t){return tl().transition(t)}).prototype={constructor:eL,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=M(t));for(var r=this._groups,i=r.length,o=Array(i),u=0;u<i;++u)for(var a,l,s=r[u],c=s.length,h=o[u]=Array(c),f=0;f<c;++f)(a=s[f])&&(l=t.call(a,a.__data__,f,s))&&("__data__"in a&&(l.__data__=a.__data__),h[f]=l,tF(h[f],e,n,f,h,tZ(a,n)));return new eL(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=k(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var l,s=r[a],c=s.length,h=0;h<c;++h)if(l=s[h]){for(var f,d=t.call(l,l.__data__,h,s),p=tZ(l,n),y=0,g=d.length;y<g;++y)(f=d[y])&&tF(f,e,n,y,d,p);o.push(d),u.push(l)}return new eL(o,u,e,n)},selectChild:eX.selectChild,selectChildren:eX.selectChildren,filter:function(t){"function"!=typeof t&&(t=A(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,u=e[i],a=u.length,l=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&l.push(o);return new eL(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),u=Array(r),a=0;a<o;++a)for(var l,s=e[a],c=n[a],h=s.length,f=u[a]=Array(h),d=0;d<h;++d)(l=s[d]||c[d])&&(f[d]=l);for(;a<r;++a)u[a]=e[a];return new eL(u,this._parents,this._name,this._id)},selection:function(){return new eH(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=++eC,r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],l=a.length,s=0;s<l;++s)if(u=a[s]){var c=tZ(u,e);tF(u,t,n,s,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new eL(r,this._parents,t,n)},call:eX.call,nodes:eX.nodes,node:eX.node,size:eX.size,empty:eX.empty,each:eX.each,on:function(t,e){var n,r,i,o=this._id;return arguments.length<2?tZ(this.node(),o).on.on(t):this.each((i=(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tW:tK,function(){var u=i(this,o),a=u.on;a!==n&&(r=(n=a).copy()).on(t,e),u.on=r}))},attr:function(t,e){var n=R(t),r="transform"===n?t5:eB;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,i,o;return function(){var u,a,l=n(this);return null==l?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:u===r&&a===i?o:(i=a,o=e(r=u,l))}}:function(t,e,n){var r,i,o;return function(){var u,a,l=n(this);return null==l?void this.removeAttribute(t):(u=this.getAttribute(t))===(a=l+"")?null:u===r&&a===i?o:(i=a,o=e(r=u,l))}})(n,r,t3(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,i,o=n+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=e(r=u,n)}}:function(t,e,n){var r,i,o=n+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=e(r=u,n)}})(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();var r=R(t);return this.tween(n,(r.local?function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttributeNS(t.space,t.local,i.call(this,e))}),n}return i._value=e,i}:function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttribute(t,i.call(this,e))}),n}return i._value=e,i})(r,e))},style:function(t,e,n){var r,i,o,u,a,l,s,c,h,f,d,p,y,g,m,v,x,w,_,b,M,E="transform"==(t+="")?t2:eB;return null==e?this.styleTween(t,(r=t,function(){var t=V(this,r),e=(this.style.removeProperty(r),V(this,r));return t===e?null:t===i&&e===o?u:u=E(i=t,o=e)})).on("end.style."+t,eO(t)):"function"==typeof e?this.styleTween(t,(a=t,l=t3(this,"style."+t,e),function(){var t=V(this,a),e=l(this),n=e+"";return null==e&&(this.style.removeProperty(a),n=e=V(this,a)),t===n?null:t===s&&n===c?h:(c=n,h=E(s=t,e))})).each((f=this._id,x="end."+(v="style."+(d=t)),function(){var t=tK(this,f),e=t.on,n=null==t.value[v]?m||(m=eO(d)):void 0;(e!==p||g!==n)&&(y=(p=e).copy()).on(x,g=n),t.on=y})):this.styleTween(t,(w=t,M=e+"",function(){var t=V(this,w);return t===M?null:t===_?b:b=E(_=t,e)}),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e){this.style.setProperty(t,o.call(this,e),n)}),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){var e,n;return this.tween("text","function"==typeof t?(e=t3(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(n=null==t?"":t+"",function(){this.textContent=n}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){this.textContent=r.call(this,t)}),e}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=tZ(this.node(),n).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var i=tK(this,t),o=i.tween;if(o!==n){r=n=o;for(var u=0,a=r.length;u<a;++u)if(r[u].name===e){(r=r.slice()).splice(u,1);break}}i.tween=r}}:function(t,e,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=tK(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:e,value:n},l=0,s=i.length;l<s;++l)if(i[l].name===e){i[l]=a;break}l===s&&i.push(a)}o.tween=i}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tW(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tW(this,t).delay=e}})(e,t)):tZ(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tK(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tK(this,t).duration=e}})(e,t)):tZ(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tK(this,t).ease=e}}(e,t)):tZ(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw Error();tK(this,e).ease=n}))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,u){var a={value:u},l={value:function(){0==--i&&o()}};n.each(function(){var n=tK(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e}),0===i&&o()})},[Symbol.iterator]:eX[Symbol.iterator]};var eR={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};tl.prototype.interrupt=function(t){return this.each(function(){tQ(this,t)})},tl.prototype.transition=function(t){var e,n;t instanceof eL?(e=t._id,t=t._name):(e=++eC,(n=eR).time=tO(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],l=a.length,s=0;s<l;++s)(u=a[s])&&tF(u,t,e,s,a,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return n}(u,e));return new eL(r,this._parents,t,e)};var eY=t=>()=>t;function eV(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function ej(t,e,n){this.k=t,this.x=e,this.y=n}ej.prototype={constructor:ej,scale:function(t){return 1===t?this:new ej(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new ej(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eq=new ej(1,0,0);function eD(t){for(;!t.__zoom;)if(!(t=t.parentNode))return eq;return t.__zoom}function eF(t){t.stopImmediatePropagation()}function eW(t){t.preventDefault(),t.stopImmediatePropagation()}function eK(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function eZ(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function eQ(){return this.__zoom||eq}function eU(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function eG(){return navigator.maxTouchPoints||"ontouchstart"in this}function eJ(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],u=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function e0(){var t,e,n,r=eK,i=eZ,o=eJ,u=eU,a=eG,l=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],c=250,h=tz,f=x("start","zoom","end"),d=0,p=10;function y(t){t.property("__zoom",eQ).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",k).filter(a).on("touchstart.zoom",A).on("touchmove.zoom",z).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new ej(e,t.x,t.y)}function m(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new ej(t.k,r,i)}function v(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function w(t,e,n,r){t.on("start.zoom",function(){_(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(r).end()}).tween("zoom",function(){var t=arguments,o=_(this,t).event(r),u=i.apply(this,t),a=null==n?v(u):"function"==typeof n?n.apply(this,t):n,l=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),s=this.__zoom,c="function"==typeof e?e.apply(this,t):e,f=h(s.invert(a).concat(l/s.k),c.invert(a).concat(l/c.k));return function(t){if(1===t)t=c;else{var e=f(t),n=l/e[2];t=new ej(n,a[0]-e[0]*n,a[1]-e[1]*n)}o.zoom(null,t)}})}function _(t,e,n){return!n&&t.__zooming||new b(t,e)}function b(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function M(t,...e){if(r.apply(this,arguments)){var n=_(this,e).event(t),i=this.__zoom,a=Math.max(l[0],Math.min(l[1],i.k*Math.pow(2,u.apply(this,arguments)))),c=tc(t);if(n.wheel)(n.mouse[0][0]!==c[0]||n.mouse[0][1]!==c[1])&&(n.mouse[1]=i.invert(n.mouse[0]=c)),clearTimeout(n.wheel);else{if(i.k===a)return;n.mouse=[c,i.invert(c)],tQ(this),n.start()}eW(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",o(m(g(i,a),n.mouse[0],n.mouse[1]),n.extent,s))}}function E(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,u=_(this,e,!0).event(t),a=ts(t.view).on("mousemove.zoom",function(t){if(eW(t),!u.moved){var e=t.clientX-c,n=t.clientY-h;u.moved=e*e+n*n>d}u.event(t).zoom("mouse",o(m(u.that.__zoom,u.mouse[0]=tc(t,i),u.mouse[1]),u.extent,s))},!0).on("mouseup.zoom",function(t){a.on("mousemove.zoom mouseup.zoom",null),tg(t.view,u.moved),eW(t),u.event(t).end()},!0),l=tc(t,i),c=t.clientX,h=t.clientY;ty(t.view),eF(t),u.mouse=[l,this.__zoom.invert(l)],tQ(this),u.start()}}function k(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,u=tc(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(u),l=n.k*(t.shiftKey?.5:2),h=o(m(g(n,l),u,a),i.apply(this,e),s);eW(t),c>0?ts(this).transition().duration(c).call(w,h,u,t):ts(this).call(y.transform,h,u,t)}}function A(n,...i){if(r.apply(this,arguments)){var o,u,a,l,s=n.touches,c=s.length,h=_(this,i,n.changedTouches.length===c).event(n);for(eF(n),u=0;u<c;++u)l=[l=tc(a=s[u],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,o=!0,h.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(h.taps<2&&(e=l[0],t=setTimeout(function(){t=null},500)),tQ(this),h.start())}}function z(t,...e){if(this.__zooming){var n,r,i,u,a=_(this,e).event(t),l=t.changedTouches,c=l.length;for(eW(t),n=0;n<c;++n)i=tc(r=l[n],this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var h=a.touch0[0],f=a.touch0[1],d=a.touch1[0],p=a.touch1[1],y=(y=d[0]-h[0])*y+(y=d[1]-h[1])*y,v=(v=p[0]-f[0])*v+(v=p[1]-f[1])*v;r=g(r,Math.sqrt(y/v)),i=[(h[0]+d[0])/2,(h[1]+d[1])/2],u=[(f[0]+p[0])/2,(f[1]+p[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],u=a.touch0[1]}a.zoom("touch",o(m(r,i,u),a.extent,s))}}function $(t,...r){if(this.__zooming){var i,o,u=_(this,r).event(t),a=t.changedTouches,l=a.length;for(eF(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<l;++i)o=a[i],u.touch0&&u.touch0[2]===o.identifier?delete u.touch0:u.touch1&&u.touch1[2]===o.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(o=tc(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<p)){var s=ts(this).on("dblclick.zoom");s&&s.apply(this,arguments)}}}return y.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",eQ),t!==i?w(t,e,n,r):i.interrupt().each(function(){_(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},y.scaleBy=function(t,e,n,r){y.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n},n,r)},y.scaleTo=function(t,e,n,r){y.transform(t,function(){var t=i.apply(this,arguments),r=this.__zoom,u=null==n?v(t):"function"==typeof n?n.apply(this,arguments):n,a=r.invert(u),l="function"==typeof e?e.apply(this,arguments):e;return o(m(g(r,l),u,a),t,s)},n,r)},y.translateBy=function(t,e,n,r){y.transform(t,function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),s)},null,r)},y.translateTo=function(t,e,n,r,u){y.transform(t,function(){var t=i.apply(this,arguments),u=this.__zoom,a=null==r?v(t):"function"==typeof r?r.apply(this,arguments):r;return o(eq.translate(a[0],a[1]).scale(u.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,s)},r,u)},b.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=ts(this.that).datum();f.call(t,this.that,new eV(t,{sourceEvent:this.sourceEvent,target:y,type:t,transform:this.that.__zoom,dispatch:f}),e)}},y.wheelDelta=function(t){return arguments.length?(u="function"==typeof t?t:eY(+t),y):u},y.filter=function(t){return arguments.length?(r="function"==typeof t?t:eY(!!t),y):r},y.touchable=function(t){return arguments.length?(a="function"==typeof t?t:eY(!!t),y):a},y.extent=function(t){return arguments.length?(i="function"==typeof t?t:eY([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),y):i},y.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],y):[l[0],l[1]]},y.translateExtent=function(t){return arguments.length?(s[0][0]=+t[0][0],s[1][0]=+t[1][0],s[0][1]=+t[0][1],s[1][1]=+t[1][1],y):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},y.constrain=function(t){return arguments.length?(o=t,y):o},y.duration=function(t){return arguments.length?(c=+t,y):c},y.interpolate=function(t){return arguments.length?(h=t,y):h},y.on=function(){var t=f.on.apply(f,arguments);return t===f?y:t},y.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,y):Math.sqrt(d)},y.tapDistance=function(t){return arguments.length?(p=+t,y):p},y}eD.prototype=ej.prototype;let e1={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:t=>`Node type "${t}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:t=>`The old edge with id=${t} does not exist.`,error009:t=>`Marker type "${t}" doesn't exist.`,error008:(t,{id:e,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${t} handle id: "${"source"===t?n:r}", edge id: ${e}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:t=>`Edge type "${t}" not found. Using fallback type "default".`,error012:t=>`Node with id "${t}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(t="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${t}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},e2=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],e5=["Enter"," ","Escape"];(r=h||(h={})).Strict="strict",r.Loose="loose",(i=f||(f={})).Free="free",i.Vertical="vertical",i.Horizontal="horizontal",(o=d||(d={})).Partial="partial",o.Full="full";let e3={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};(u=p||(p={})).Bezier="default",u.Straight="straight",u.Step="step",u.SmoothStep="smoothstep",u.SimpleBezier="simplebezier",(a=y||(y={})).Arrow="arrow",a.ArrowClosed="arrowclosed",(l=g||(g={})).Left="left",l.Top="top",l.Right="right",l.Bottom="bottom";let e6={[g.Left]:g.Right,[g.Right]:g.Left,[g.Top]:g.Bottom,[g.Bottom]:g.Top};function e7(t){return null===t?null:t?"valid":"invalid"}let e4=t=>"id"in t&&"source"in t&&"target"in t,e8=t=>"id"in t&&"position"in t&&!("source"in t)&&!("target"in t),e9=t=>"id"in t&&"internals"in t&&!("source"in t)&&!("target"in t),nt=(t,e=[0,0])=>{let{width:n,height:r}=nN(t),i=t.origin??e,o=n*i[0],u=r*i[1];return{x:t.position.x-o,y:t.position.y-u}},ne=(t,e={nodeOrigin:[0,0],nodeLookup:void 0})=>0===t.length?{x:0,y:0,width:0,height:0}:ng(t.reduce((t,n)=>{let r="string"==typeof n,i=e.nodeLookup||r?void 0:n;return e.nodeLookup&&(i=r?e.nodeLookup.get(n):e9(n)?n:e.nodeLookup.get(n.id)),np(t,i?nv(i,e.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),nn=(t,e={})=>{if(0===t.size)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return t.forEach(t=>{if(void 0===e.filter||e.filter(t)){let e=nv(t);n=np(n,e)}}),ng(n)},nr=(t,e,[n,r,i]=[0,0,1],o=!1,u=!1)=>{let a={...nk(e,[n,r,i]),width:e.width/i,height:e.height/i},l=[];for(let e of t.values()){let{measured:t,selectable:n=!0,hidden:r=!1}=e;if(u&&!n||r)continue;let i=t.width??e.width??e.initialWidth??null,s=t.height??e.height??e.initialHeight??null,c=nw(a,nm(e)),h=(i??0)*(s??0),f=o&&c>0;(!e.internals.handleBounds||f||c>=h||e.dragging)&&l.push(e)}return l},ni=(t,e)=>{let n=new Set;return t.forEach(t=>{n.add(t.id)}),e.filter(t=>n.has(t.source)||n.has(t.target))};function no(t,e){let n=new Map,r=e?.nodes?new Set(e.nodes.map(t=>t.id)):null;return t.forEach(t=>{t.measured.width&&t.measured.height&&(e?.includeHiddenNodes||!t.hidden)&&(!r||r.has(t.id))&&n.set(t.id,t)}),n}async function nu({nodes:t,width:e,height:n,panZoom:r,minZoom:i,maxZoom:o},u){if(0===t.size)return Promise.resolve(!1);let a=nz(nn(t),e,n,u?.minZoom??i,u?.maxZoom??o,u?.padding??.1);return await r.setViewport(a,{duration:u?.duration}),Promise.resolve(!0)}function na({nodeId:t,nextPosition:e,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:o}){let u=n.get(t),a=u.parentId?n.get(u.parentId):void 0,{x:l,y:s}=a?a.internals.positionAbsolute:{x:0,y:0},c=u.origin??r,h=i;if("parent"!==u.extent||u.expandParent)a&&nS(u.extent)&&(h=[[u.extent[0][0]+l,u.extent[0][1]+s],[u.extent[1][0]+l,u.extent[1][1]+s]]);else if(a){let t=a.measured.width,e=a.measured.height;t&&e&&(h=[[l,s],[l+t,s+e]])}else o?.("005",e1.error005());let f=nS(h)?nc(e,h,u.measured):e;return(void 0===u.measured.width||void 0===u.measured.height)&&o?.("015",e1.error015()),{position:{x:f.x-l+(u.measured.width??0)*c[0],y:f.y-s+(u.measured.height??0)*c[1]},positionAbsolute:f}}async function nl({nodesToRemove:t=[],edgesToRemove:e=[],nodes:n,edges:r,onBeforeDelete:i}){let o=new Set(t.map(t=>t.id)),u=[];for(let t of n){if(!1===t.deletable)continue;let e=o.has(t.id),n=!e&&t.parentId&&u.find(e=>e.id===t.parentId);(e||n)&&u.push(t)}let a=new Set(e.map(t=>t.id)),l=r.filter(t=>!1!==t.deletable),s=ni(u,l);for(let t of l)a.has(t.id)&&!s.find(e=>e.id===t.id)&&s.push(t);if(!i)return{edges:s,nodes:u};let c=await i({nodes:u,edges:s});return"boolean"==typeof c?c?{edges:s,nodes:u}:{edges:[],nodes:[]}:c}let ns=(t,e=0,n=1)=>Math.min(Math.max(t,e),n),nc=(t={x:0,y:0},e,n)=>({x:ns(t.x,e[0][0],e[1][0]-(n?.width??0)),y:ns(t.y,e[0][1],e[1][1]-(n?.height??0))});function nh(t,e,n){let{width:r,height:i}=nN(n),{x:o,y:u}=n.internals.positionAbsolute;return nc(t,[[o,u],[o+r,u+i]],e)}let nf=(t,e,n)=>t<e?ns(Math.abs(t-e),1,e)/e:t>n?-ns(Math.abs(t-n),1,e)/e:0,nd=(t,e,n=15,r=40)=>[nf(t.x,r,e.width-r)*n,nf(t.y,r,e.height-r)*n],np=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),ny=({x:t,y:e,width:n,height:r})=>({x:t,y:e,x2:t+n,y2:e+r}),ng=({x:t,y:e,x2:n,y2:r})=>({x:t,y:e,width:n-t,height:r-e}),nm=(t,e=[0,0])=>{let{x:n,y:r}=e9(t)?t.internals.positionAbsolute:nt(t,e);return{x:n,y:r,width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}},nv=(t,e=[0,0])=>{let{x:n,y:r}=e9(t)?t.internals.positionAbsolute:nt(t,e);return{x:n,y:r,x2:n+(t.measured?.width??t.width??t.initialWidth??0),y2:r+(t.measured?.height??t.height??t.initialHeight??0)}},nx=(t,e)=>ng(np(ny(t),ny(e))),nw=(t,e)=>Math.ceil(Math.max(0,Math.min(t.x+t.width,e.x+e.width)-Math.max(t.x,e.x))*Math.max(0,Math.min(t.y+t.height,e.y+e.height)-Math.max(t.y,e.y))),n_=t=>nb(t.width)&&nb(t.height)&&nb(t.x)&&nb(t.y),nb=t=>!isNaN(t)&&isFinite(t),nM=(t,e)=>{},nE=(t,e=[1,1])=>({x:e[0]*Math.round(t.x/e[0]),y:e[1]*Math.round(t.y/e[1])}),nk=({x:t,y:e},[n,r,i],o=!1,u=[1,1])=>{let a={x:(t-n)/i,y:(e-r)/i};return o?nE(a,u):a},nA=({x:t,y:e},[n,r,i])=>({x:t*i+n,y:e*i+r}),nz=(t,e,n,r,i,o)=>{let u=ns(Math.min(e/(t.width*(1+o)),n/(t.height*(1+o))),r,i);return{x:e/2-(t.x+t.width/2)*u,y:n/2-(t.y+t.height/2)*u,zoom:u}},n$=()=>"undefined"!=typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function nS(t){return void 0!==t&&"parent"!==t}function nN(t){return{width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}}function nI(t){return(t.measured?.width??t.width??t.initialWidth)!==void 0&&(t.measured?.height??t.height??t.initialHeight)!==void 0}function nT(t,e={width:0,height:0},n,r,i){let o={...t},u=r.get(n);if(u){let t=u.origin||i;o.x+=u.internals.positionAbsolute.x-(e.width??0)*t[0],o.y+=u.internals.positionAbsolute.y-(e.height??0)*t[1]}return o}function nP(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function nB(t,{snapGrid:e=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){let{x:o,y:u}=nR(t),a=nk({x:o-(i?.left??0),y:u-(i?.top??0)},r),{x:l,y:s}=n?nE(a,e):a;return{xSnapped:l,ySnapped:s,...a}}let nH=t=>({width:t.offsetWidth,height:t.offsetHeight}),nO=t=>t?.getRootNode?.()||window?.document,nC=["INPUT","SELECT","TEXTAREA"];function nL(t){let e=t.composedPath?.()?.[0]||t.target;return e?.nodeType===1&&(nC.includes(e.nodeName)||e.hasAttribute("contenteditable")||!!e.closest(".nokey"))}let nX=t=>"clientX"in t,nR=(t,e)=>{let n=nX(t),r=n?t.clientX:t.touches?.[0].clientX,i=n?t.clientY:t.touches?.[0].clientY;return{x:r-(e?.left??0),y:i-(e?.top??0)}},nY=(t,e,n,r,i)=>{let o=e.querySelectorAll(`.${t}`);return o&&o.length?Array.from(o).map(e=>{let o=e.getBoundingClientRect();return{id:e.getAttribute("data-handleid"),type:t,nodeId:i,position:e.getAttribute("data-handlepos"),x:(o.left-n.left)/r,y:(o.top-n.top)/r,...nH(e)}}):null};function nV({sourceX:t,sourceY:e,targetX:n,targetY:r,sourceControlX:i,sourceControlY:o,targetControlX:u,targetControlY:a}){let l=.125*t+.375*i+.375*u+.125*n,s=.125*e+.375*o+.375*a+.125*r;return[l,s,Math.abs(l-t),Math.abs(s-e)]}function nj(t,e){return t>=0?.5*t:25*e*Math.sqrt(-t)}function nq({pos:t,x1:e,y1:n,x2:r,y2:i,c:o}){switch(t){case g.Left:return[e-nj(e-r,o),n];case g.Right:return[e+nj(r-e,o),n];case g.Top:return[e,n-nj(n-i,o)];case g.Bottom:return[e,n+nj(i-n,o)]}}function nD({sourceX:t,sourceY:e,sourcePosition:n=g.Bottom,targetX:r,targetY:i,targetPosition:o=g.Top,curvature:u=.25}){let[a,l]=nq({pos:n,x1:t,y1:e,x2:r,y2:i,c:u}),[s,c]=nq({pos:o,x1:r,y1:i,x2:t,y2:e,c:u}),[h,f,d,p]=nV({sourceX:t,sourceY:e,targetX:r,targetY:i,sourceControlX:a,sourceControlY:l,targetControlX:s,targetControlY:c});return[`M${t},${e} C${a},${l} ${s},${c} ${r},${i}`,h,f,d,p]}function nF({sourceX:t,sourceY:e,targetX:n,targetY:r}){let i=Math.abs(n-t)/2,o=Math.abs(r-e)/2;return[n<t?n+i:n-i,r<e?r+o:r-o,i,o]}function nW({sourceNode:t,targetNode:e,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1}){if(!i)return r;let o=n||e.selected||t.selected,u=Math.max(t.internals.z||0,e.internals.z||0,1e3);return r+(o?u:0)}function nK({sourceNode:t,targetNode:e,width:n,height:r,transform:i}){let o=np(nv(t),nv(e));return o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1),nw({x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]},ng(o))>0}let nZ=({source:t,sourceHandle:e,target:n,targetHandle:r})=>`xy-edge__${t}${e||""}-${n}${r||""}`,nQ=(t,e)=>e.some(e=>e.source===t.source&&e.target===t.target&&(e.sourceHandle===t.sourceHandle||!e.sourceHandle&&!t.sourceHandle)&&(e.targetHandle===t.targetHandle||!e.targetHandle&&!t.targetHandle)),nU=(t,e)=>{let n;return t.source&&t.target?nQ(n=e4(t)?{...t}:{...t,id:nZ(t)},e)?e:(null===n.sourceHandle&&delete n.sourceHandle,null===n.targetHandle&&delete n.targetHandle,e.concat(n)):(nM("006",e1.error006()),e)};function nG({sourceX:t,sourceY:e,targetX:n,targetY:r}){let[i,o,u,a]=nF({sourceX:t,sourceY:e,targetX:n,targetY:r});return[`M ${t},${e}L ${n},${r}`,i,o,u,a]}let nJ={[g.Left]:{x:-1,y:0},[g.Right]:{x:1,y:0},[g.Top]:{x:0,y:-1},[g.Bottom]:{x:0,y:1}},n0=({source:t,sourcePosition:e=g.Bottom,target:n})=>e===g.Left||e===g.Right?t.x<n.x?{x:1,y:0}:{x:-1,y:0}:t.y<n.y?{x:0,y:1}:{x:0,y:-1},n1=(t,e)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));function n2({sourceX:t,sourceY:e,sourcePosition:n=g.Bottom,targetX:r,targetY:i,targetPosition:o=g.Top,borderRadius:u=5,centerX:a,centerY:l,offset:s=20}){let[c,h,f,d,p]=function({source:t,sourcePosition:e=g.Bottom,target:n,targetPosition:r=g.Top,center:i,offset:o}){let u,a;let l=nJ[e],s=nJ[r],c={x:t.x+l.x*o,y:t.y+l.y*o},h={x:n.x+s.x*o,y:n.y+s.y*o},f=n0({source:c,sourcePosition:e,target:h}),d=0!==f.x?"x":"y",p=f[d],y=[],m={x:0,y:0},v={x:0,y:0},[x,w,_,b]=nF({sourceX:t.x,sourceY:t.y,targetX:n.x,targetY:n.y});if(l[d]*s[d]==-1){u=i.x??x,a=i.y??w;let t=[{x:u,y:c.y},{x:u,y:h.y}],e=[{x:c.x,y:a},{x:h.x,y:a}];y=l[d]===p?"x"===d?t:e:"x"===d?e:t}else{let i=[{x:c.x,y:h.y}],f=[{x:h.x,y:c.y}];if(y="x"===d?l.x===p?f:i:l.y===p?i:f,e===r){let e=Math.abs(t[d]-n[d]);if(e<=o){let r=Math.min(o-1,o-e);l[d]===p?m[d]=(c[d]>t[d]?-1:1)*r:v[d]=(h[d]>n[d]?-1:1)*r}}if(e!==r){let t="x"===d?"y":"x",e=l[d]===s[t],n=c[t]>h[t],r=c[t]<h[t];(1===l[d]&&(!e&&n||e&&r)||1!==l[d]&&(!e&&r||e&&n))&&(y="x"===d?i:f)}let g={x:c.x+m.x,y:c.y+m.y},x={x:h.x+v.x,y:h.y+v.y};Math.max(Math.abs(g.x-y[0].x),Math.abs(x.x-y[0].x))>=Math.max(Math.abs(g.y-y[0].y),Math.abs(x.y-y[0].y))?(u=(g.x+x.x)/2,a=y[0].y):(u=y[0].x,a=(g.y+x.y)/2)}return[[t,{x:c.x+m.x,y:c.y+m.y},...y,{x:h.x+v.x,y:h.y+v.y},n],u,a,_,b]}({source:{x:t,y:e},sourcePosition:n,target:{x:r,y:i},targetPosition:o,center:{x:a,y:l},offset:s});return[c.reduce((t,e,n)=>t+(n>0&&n<c.length-1?function(t,e,n,r){let i=Math.min(n1(t,e)/2,n1(e,n)/2,r),{x:o,y:u}=e;if(t.x===o&&o===n.x||t.y===u&&u===n.y)return`L${o} ${u}`;if(t.y===u){let e=t.x<n.x?-1:1,r=t.y<n.y?1:-1;return`L ${o+i*e},${u}Q ${o},${u} ${o},${u+i*r}`}let a=t.x<n.x?1:-1,l=t.y<n.y?-1:1;return`L ${o},${u+i*l}Q ${o},${u} ${o+i*a},${u}`}(c[n-1],e,c[n+1],u):`${0===n?"M":"L"}${e.x} ${e.y}`),""),h,f,d,p]}function n5(t){return t&&!!(t.internals.handleBounds||t.handles?.length)&&!!(t.measured.width||t.width||t.initialWidth)}function n3(t){let{sourceNode:e,targetNode:n}=t;if(!n5(e)||!n5(n))return null;let r=e.internals.handleBounds||n6(e.handles),i=n.internals.handleBounds||n6(n.handles),o=n4(r?.source??[],t.sourceHandle),u=n4(t.connectionMode===h.Strict?i?.target??[]:(i?.target??[]).concat(i?.source??[]),t.targetHandle);if(!o||!u)return t.onError?.("008",e1.error008(o?"target":"source",{id:t.id,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle})),null;let a=o?.position||g.Bottom,l=u?.position||g.Top,s=n7(e,o,a),c=n7(n,u,l);return{sourceX:s.x,sourceY:s.y,targetX:c.x,targetY:c.y,sourcePosition:a,targetPosition:l}}function n6(t){if(!t)return null;let e=[],n=[];for(let r of t)r.width=r.width??1,r.height=r.height??1,"source"===r.type?e.push(r):"target"===r.type&&n.push(r);return{source:e,target:n}}function n7(t,e,n=g.Left,r=!1){let i=(e?.x??0)+t.internals.positionAbsolute.x,o=(e?.y??0)+t.internals.positionAbsolute.y,{width:u,height:a}=e??nN(t);if(r)return{x:i+u/2,y:o+a/2};switch(e?.position??n){case g.Top:return{x:i+u/2,y:o};case g.Right:return{x:i+u,y:o+a/2};case g.Bottom:return{x:i+u/2,y:o+a};case g.Left:return{x:i,y:o+a/2}}}function n4(t,e){return t&&(e?t.find(t=>t.id===e):t[0])||null}function n8(t,e){if(!t)return"";if("string"==typeof t)return t;let n=e?`${e}__`:"";return`${n}${Object.keys(t).sort().map(e=>`${e}=${t[e]}`).join("&")}`}function n9(t,{id:e,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){let o=new Set;return t.reduce((t,u)=>([u.markerStart||r,u.markerEnd||i].forEach(r=>{if(r&&"object"==typeof r){let i=n8(r,e);o.has(i)||(t.push({id:i,color:r.color||n,...r}),o.add(i))}}),t),[]).sort((t,e)=>t.id.localeCompare(e.id))}let rt={nodeOrigin:[0,0],nodeExtent:e2,elevateNodesOnSelect:!0,defaults:{}},re={...rt,checkEquality:!0};function rn(t,e){let n={...t};for(let t in e)void 0!==e[t]&&(n[t]=e[t]);return n}function rr(t,e,n){let r=rn(rt,n);for(let n of t.values())if(n.parentId)ro(n,t,e,r);else{let t=nc(nt(n,r.nodeOrigin),nS(n.extent)?n.extent:r.nodeExtent,nN(n));n.internals.positionAbsolute=t}}function ri(t,e,n,r){let i=rn(re,r),o=new Map(e),u=i?.elevateNodesOnSelect?1e3:0;for(let a of(e.clear(),n.clear(),t)){let t=o.get(a.id);if(i.checkEquality&&a===t?.internals.userNode)e.set(a.id,t);else{let n=nc(nt(a,i.nodeOrigin),nS(a.extent)?a.extent:i.nodeExtent,nN(a));t={...i.defaults,...a,measured:{width:a.measured?.width,height:a.measured?.height},internals:{positionAbsolute:n,handleBounds:a.measured?t?.internals.handleBounds:void 0,z:ru(a,u),userNode:a}},e.set(a.id,t)}a.parentId&&ro(t,e,n,r)}}function ro(t,e,n,r){let{elevateNodesOnSelect:i,nodeOrigin:o,nodeExtent:u}=rn(rt,r),a=t.parentId,l=e.get(a);if(!l){console.warn(`Parent node ${a} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}!function(t,e){if(!t.parentId)return;let n=e.get(t.parentId);n?n.set(t.id,t):e.set(t.parentId,new Map([[t.id,t]]))}(t,n);let{x:s,y:c,z:h}=function(t,e,n,r,i){let{x:o,y:u}=e.internals.positionAbsolute,a=nN(t),l=nt(t,n),s=nS(t.extent)?nc(l,t.extent,a):l,c=nc({x:o+s.x,y:u+s.y},r,a);"parent"===t.extent&&(c=nh(c,a,e));let h=ru(t,i),f=e.internals.z??0;return{x:c.x,y:c.y,z:f>h?f:h}}(t,l,o,u,i?1e3:0),{positionAbsolute:f}=t.internals,d=s!==f.x||c!==f.y;(d||h!==t.internals.z)&&e.set(t.id,{...t,internals:{...t.internals,positionAbsolute:d?{x:s,y:c}:f,z:h}})}function ru(t,e){return(nb(t.zIndex)?t.zIndex:0)+(t.selected?e:0)}function ra(t,e,n,r=[0,0]){let i=[],o=new Map;for(let n of t){let t=e.get(n.parentId);if(!t)continue;let r=nx(o.get(n.parentId)?.expandedRect??nm(t),n.rect);o.set(n.parentId,{expandedRect:r,parent:t})}return o.size>0&&o.forEach(({expandedRect:e,parent:o},u)=>{let a=o.internals.positionAbsolute,l=nN(o),s=o.origin??r,c=e.x<a.x?Math.round(Math.abs(a.x-e.x)):0,h=e.y<a.y?Math.round(Math.abs(a.y-e.y)):0,f=Math.max(l.width,Math.round(e.width)),d=Math.max(l.height,Math.round(e.height)),p=(f-l.width)*s[0],y=(d-l.height)*s[1];(c>0||h>0||p||y)&&(i.push({id:u,type:"position",position:{x:o.position.x-c+p,y:o.position.y-h+y}}),n.get(u)?.forEach(e=>{t.some(t=>t.id===e.id)||i.push({id:e.id,type:"position",position:{x:e.position.x+c,y:e.position.y+h}})})),(l.width<e.width||l.height<e.height||c||h)&&i.push({id:u,type:"dimensions",setAttributes:!0,dimensions:{width:f+(c?s[0]*c-p:0),height:d+(h?s[1]*h-y:0)}})}),i}function rl(t,e,n,r,i,o){let u=r?.querySelector(".xyflow__viewport"),a=!1;if(!u)return{changes:[],updatedInternals:a};let l=[],s=window.getComputedStyle(u),{m22:c}=new window.DOMMatrixReadOnly(s.transform),h=[];for(let r of t.values()){let t=e.get(r.id);if(!t)continue;if(t.hidden){e.set(t.id,{...t,internals:{...t.internals,handleBounds:void 0}}),a=!0;continue}let u=nH(r.nodeElement),s=t.measured.width!==u.width||t.measured.height!==u.height;if(u.width&&u.height&&(s||!t.internals.handleBounds||r.force)){let f=r.nodeElement.getBoundingClientRect(),d=nS(t.extent)?t.extent:o,{positionAbsolute:p}=t.internals;t.parentId&&"parent"===t.extent?p=nh(p,u,e.get(t.parentId)):d&&(p=nc(p,d,u));let y={...t,measured:u,internals:{...t.internals,positionAbsolute:p,handleBounds:{source:nY("source",r.nodeElement,f,c,t.id),target:nY("target",r.nodeElement,f,c,t.id)}}};e.set(t.id,y),t.parentId&&ro(y,e,n,{nodeOrigin:i}),a=!0,s&&(l.push({id:t.id,type:"dimensions",dimensions:u}),t.expandParent&&t.parentId&&h.push({id:t.id,parentId:t.parentId,rect:nm(y,i)}))}}if(h.length>0){let t=ra(h,e,n,i);l.push(...t)}return{changes:l,updatedInternals:a}}async function rs({delta:t,panZoom:e,transform:n,translateExtent:r,width:i,height:o}){if(!e||!t.x&&!t.y)return Promise.resolve(!1);let u=await e.setViewportConstrained({x:n[0]+t.x,y:n[1]+t.y,zoom:n[2]},[[0,0],[i,o]],r);return Promise.resolve(!!u&&(u.x!==n[0]||u.y!==n[1]||u.k!==n[2]))}function rc(t,e,n,r,i,o){let u=i,a=r.get(u)||new Map;r.set(u,a.set(n,e)),u=`${i}-${t}`;let l=r.get(u)||new Map;if(r.set(u,l.set(n,e)),o){u=`${i}-${t}-${o}`;let a=r.get(u)||new Map;r.set(u,a.set(n,e))}}function rh(t,e,n){for(let r of(t.clear(),e.clear(),n)){let{source:n,target:i,sourceHandle:o=null,targetHandle:u=null}=r,a={edgeId:r.id,source:n,target:i,sourceHandle:o,targetHandle:u},l=`${n}-${o}--${i}-${u}`;rc("source",a,`${i}-${u}--${n}-${o}`,t,n,o),rc("target",a,l,t,i,u),e.set(r.id,r)}}function rf(t,e,n){let r=t;do{if(r?.matches?.(e))return!0;if(r===n)break;r=r?.parentElement}while(r);return!1}function rd({nodeId:t,dragItems:e,nodeLookup:n,dragging:r=!0}){let i=[];for(let[t,o]of e){let e=n.get(t)?.internals.userNode;e&&i.push({...e,position:o.position,dragging:r})}if(!t)return[i[0],i];let o=n.get(t)?.internals.userNode;return[o?{...o,position:e.get(t)?.position||o.position,dragging:r}:i[0],i]}function rp({onNodeMouseDown:t,getStoreItems:e,onDragStart:n,onDrag:r,onDragStop:i}){let o={x:null,y:null},u=0,a=new Map,l=!1,s={x:0,y:0},c=null,h=!1,f=null,d=!1;return{update:function({noDragClassName:p,handleSelector:y,domNode:g,isSelectable:m,nodeId:v,nodeClickDistance:x=0}){function w({x:t,y:n},i){let{nodeLookup:u,nodeExtent:l,snapGrid:s,snapToGrid:c,nodeOrigin:h,onNodeDrag:f,onSelectionDrag:d,onError:p,updateNodePositions:y}=e();o={x:t,y:n};let g=!1,m={x:0,y:0,x2:0,y2:0};for(let[e,r]of(a.size>1&&l&&(m=ny(nn(a))),a)){if(!u.has(e))continue;let i={x:t-r.distance.x,y:n-r.distance.y};c&&(i=nE(i,s));let o=[[l[0][0],l[0][1]],[l[1][0],l[1][1]]];if(a.size>1&&l&&!r.extent){let{positionAbsolute:t}=r.internals,e=t.x-m.x+l[0][0],n=t.x+r.measured.width-m.x2+l[1][0];o=[[e,t.y-m.y+l[0][1]],[n,t.y+r.measured.height-m.y2+l[1][1]]]}let{position:f,positionAbsolute:d}=na({nodeId:e,nextPosition:i,nodeLookup:u,nodeExtent:o,nodeOrigin:h,onError:p});g=g||r.position.x!==f.x||r.position.y!==f.y,r.position=f,r.internals.positionAbsolute=d}if(g&&(y(a,!0),i&&(r||f||!v&&d))){let[t,e]=rd({nodeId:v,dragItems:a,nodeLookup:u});r?.(i,a,t,e),f?.(i,t,e),v||d?.(i,e)}}async function _(){if(!c)return;let{transform:t,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:i}=e();if(!i){l=!1,cancelAnimationFrame(u);return}let[a,h]=nd(s,c,r);(0!==a||0!==h)&&(o.x=(o.x??0)-a/t[2],o.y=(o.y??0)-h/t[2],await n({x:a,y:h})&&w(o,null)),u=requestAnimationFrame(_)}function b(r){let{nodeLookup:i,multiSelectionActive:u,nodesDraggable:l,transform:s,snapGrid:f,snapToGrid:d,selectNodesOnDrag:p,onNodeDragStart:y,onSelectionDragStart:g,unselectNodesAndEdges:x}=e();h=!0,p&&m||u||!v||i.get(v)?.selected||x(),m&&p&&v&&t?.(v);let w=nB(r.sourceEvent,{transform:s,snapGrid:f,snapToGrid:d,containerBounds:c});if(o=w,(a=function(t,e,n,r){let i=new Map;for(let[o,u]of t)if((u.selected||u.id===r)&&(!u.parentId||!function t(e,n){if(!e.parentId)return!1;let r=n.get(e.parentId);return!!r&&(!!r.selected||t(r,n))}(u,t))&&(u.draggable||e&&void 0===u.draggable)){let e=t.get(o);e&&i.set(o,{id:o,position:e.position||{x:0,y:0},distance:{x:n.x-e.internals.positionAbsolute.x,y:n.y-e.internals.positionAbsolute.y},extent:e.extent,parentId:e.parentId,origin:e.origin,expandParent:e.expandParent,internals:{positionAbsolute:e.internals.positionAbsolute||{x:0,y:0}},measured:{width:e.measured.width??0,height:e.measured.height??0}})}return i}(i,l,w,v)).size>0&&(n||y||!v&&g)){let[t,e]=rd({nodeId:v,dragItems:a,nodeLookup:i});n?.(r.sourceEvent,a,t,e),y?.(r.sourceEvent,t,e),v||g?.(r.sourceEvent,e)}}f=ts(g);let M=tM().clickDistance(x).on("start",t=>{let{domNode:n,nodeDragThreshold:r,transform:i,snapGrid:u,snapToGrid:a}=e();c=n?.getBoundingClientRect()||null,d=!1,0===r&&b(t),o=nB(t.sourceEvent,{transform:i,snapGrid:u,snapToGrid:a,containerBounds:c}),s=nR(t.sourceEvent,c)}).on("drag",t=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:i,snapToGrid:u,nodeDragThreshold:f,nodeLookup:p}=e(),y=nB(t.sourceEvent,{transform:r,snapGrid:i,snapToGrid:u,containerBounds:c});if(("touchmove"===t.sourceEvent.type&&t.sourceEvent.touches.length>1||v&&!p.has(v))&&(d=!0),!d){if(!l&&n&&h&&(l=!0,_()),!h){let e=y.xSnapped-(o.x??0),n=y.ySnapped-(o.y??0);Math.sqrt(e*e+n*n)>f&&b(t)}(o.x!==y.xSnapped||o.y!==y.ySnapped)&&a&&h&&(s=nR(t.sourceEvent,c),w(y,t.sourceEvent))}}).on("end",t=>{if(h&&!d&&(l=!1,h=!1,cancelAnimationFrame(u),a.size>0)){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:o,onSelectionDragStop:u}=e();if(r(a,!1),i||o||!v&&u){let[e,r]=rd({nodeId:v,dragItems:a,nodeLookup:n,dragging:!1});i?.(t.sourceEvent,a,e,r),o?.(t.sourceEvent,e,r),v||u?.(t.sourceEvent,r)}}}).filter(t=>{let e=t.target;return!t.button&&(!p||!rf(e,`.${p}`,g))&&(!y||rf(e,y,g))});f.call(M)},destroy:function(){f?.on(".drag",null)}}}function ry(t,e,n,r,i,o=!1){let u=r.get(t);if(!u)return null;let a="strict"===i?u.internals.handleBounds?.[e]:[...u.internals.handleBounds?.source??[],...u.internals.handleBounds?.target??[]],l=(n?a?.find(t=>t.id===n):a?.[0])??null;return l&&o?{...l,...n7(u,l,l.position,!0)}:l}function rg(t,e){return t||(e?.classList.contains("target")?"target":e?.classList.contains("source")?"source":null)}let rm=()=>!0;function rv(t,{handle:e,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:o,doc:u,lib:a,flowId:l,isValidConnection:s=rm,nodeLookup:c}){let f="target"===o,d=e?u.querySelector(`.${a}-flow__handle[data-id="${l}-${e?.nodeId}-${e?.id}-${e?.type}"]`):null,{x:p,y}=nR(t),g=u.elementFromPoint(p,y),m=g?.classList.contains(`${a}-flow__handle`)?g:d,v={handleDomNode:m,isValid:!1,connection:null,toHandle:null};if(m){let t=rg(void 0,m),e=m.getAttribute("data-nodeid"),o=m.getAttribute("data-handleid"),u=m.classList.contains("connectable"),a=m.classList.contains("connectableend");if(!e||!t)return v;let l={source:f?e:r,sourceHandle:f?o:i,target:f?r:e,targetHandle:f?i:o};v.connection=l;let d=u&&a&&(n===h.Strict?f&&"source"===t||!f&&"target"===t:e!==r||o!==i);v.isValid=d&&s(l),v.toHandle=ry(e,t,o,c,n,!1)}return v}let rx={onPointerDown:function(t,{connectionMode:e,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:o,isTarget:u,domNode:a,nodeLookup:l,lib:s,autoPanOnConnect:c,flowId:h,panBy:f,cancelConnection:d,onConnectStart:p,onConnect:y,onConnectEnd:m,isValidConnection:v=rm,onReconnectEnd:x,updateConnection:w,getTransform:_,getFromHandle:b,autoPanSpeed:M}){let E;let k=nO(t.target),A=0,{x:z,y:$}=nR(t),S=rg(o,k?.elementFromPoint(z,$)),N=a?.getBoundingClientRect();if(!N||!S)return;let I=ry(i,S,r,l,e);if(!I)return;let T=nR(t,N),P=!1,B=null,H=!1,O=null,C={...I,nodeId:i,type:S,position:I.position},L=l.get(i),X={inProgress:!0,isValid:null,from:n7(L,C,g.Left,!0),fromHandle:C,fromPosition:C.position,fromNode:L,to:T,toHandle:null,toPosition:e6[C.position],toNode:null};w(X);let R=X;function Y(t){var o,a;let d;if(!b()||!C){V(t);return}let p=_();E=function(t,e,n,r){let i=[],o=1/0;for(let u of function(t,e,n){let r=[],i={x:t.x-n,y:t.y-n,width:2*n,height:2*n};for(let t of e.values())nw(i,nm(t))>0&&r.push(t);return r}(t,n,e+250))for(let n of[...u.internals.handleBounds?.source??[],...u.internals.handleBounds?.target??[]]){if(r.nodeId===n.nodeId&&r.type===n.type&&r.id===n.id)continue;let{x:a,y:l}=n7(u,n,n.position,!0),s=Math.sqrt(Math.pow(a-t.x,2)+Math.pow(l-t.y,2));s>e||(s<o?(i=[{...n,x:a,y:l}],o=s):s===o&&i.push({...n,x:a,y:l}))}if(!i.length)return null;if(i.length>1){let t="source"===r.type?"target":"source";return i.find(e=>e.type===t)??i[0]}return i[0]}(nk(T=nR(t,N),p,!1,[1,1]),n,l,C),P||(function t(){if(!c||!N)return;let[e,n]=nd(T,N,M);f({x:e,y:n}),A=requestAnimationFrame(t)}(),P=!0);let y=rv(t,{handle:E,connectionMode:e,fromNodeId:i,fromHandleId:r,fromType:u?"target":"source",isValidConnection:v,doc:k,lib:s,flowId:h,nodeLookup:l});O=y.handleDomNode,B=y.connection,o=!!E,a=y.isValid,d=null,a?d=!0:o&&!a&&(d=!1),H=d;let g={...R,isValid:H,to:E&&H?nA({x:E.x,y:E.y},p):T,toHandle:y.toHandle,toPosition:H&&y.toHandle?y.toHandle.position:e6[C.position],toNode:y.toHandle?l.get(y.toHandle.nodeId):null};H&&E&&R.toHandle&&g.toHandle&&R.toHandle.type===g.toHandle.type&&R.toHandle.nodeId===g.toHandle.nodeId&&R.toHandle.id===g.toHandle.id&&R.to.x===g.to.x&&R.to.y===g.to.y||(w(g),R=g)}function V(t){(E||O)&&B&&H&&y?.(B);let{inProgress:e,...n}=R,r={...n,toPosition:R.toHandle?R.toPosition:null};m?.(t,r),o&&x?.(t,r),d(),cancelAnimationFrame(A),P=!1,H=!1,B=null,O=null,k.removeEventListener("mousemove",Y),k.removeEventListener("mouseup",V),k.removeEventListener("touchmove",Y),k.removeEventListener("touchend",V)}p?.(t,{nodeId:i,handleId:r,handleType:S}),k.addEventListener("mousemove",Y),k.addEventListener("mouseup",V),k.addEventListener("touchmove",Y),k.addEventListener("touchend",V)},isValid:rv};function rw({domNode:t,panZoom:e,getTransform:n,getViewScale:r}){let i=ts(t);return{update:function({translateExtent:t,width:o,height:u,zoomStep:a=10,pannable:l=!0,zoomable:s=!0,inversePan:c=!1}){let h=[0,0],f=e0().on("start",t=>{("mousedown"===t.sourceEvent.type||"touchstart"===t.sourceEvent.type)&&(h=[t.sourceEvent.clientX??t.sourceEvent.touches[0].clientX,t.sourceEvent.clientY??t.sourceEvent.touches[0].clientY])}).on("zoom",l?i=>{let a=n();if("mousemove"!==i.sourceEvent.type&&"touchmove"!==i.sourceEvent.type||!e)return;let l=[i.sourceEvent.clientX??i.sourceEvent.touches[0].clientX,i.sourceEvent.clientY??i.sourceEvent.touches[0].clientY],s=[l[0]-h[0],l[1]-h[1]];h=l;let f=r()*Math.max(a[2],Math.log(a[2]))*(c?-1:1),d={x:a[0]-s[0]*f,y:a[1]-s[1]*f};e.setViewportConstrained({x:d.x,y:d.y,zoom:a[2]},[[0,0],[o,u]],t)}:null).on("zoom.wheel",s?t=>{let r=n();if("wheel"!==t.sourceEvent.type||!e)return;let i=-t.sourceEvent.deltaY*(1===t.sourceEvent.deltaMode?.05:t.sourceEvent.deltaMode?1:.002)*a,o=r[2]*Math.pow(2,i);e.scaleTo(o)}:null);i.call(f,{})},destroy:function(){i.on("zoom",null)},pointer:tc}}let r_=(t,e)=>t.x!==e.x||t.y!==e.y||t.zoom!==e.k,rb=t=>({x:t.x,y:t.y,zoom:t.k}),rM=({x:t,y:e,zoom:n})=>eq.translate(t,e).scale(n),rE=(t,e)=>t.target.closest(`.${e}`),rk=(t,e)=>2===e&&Array.isArray(t)&&t.includes(2),rA=(t,e=0,n=()=>{})=>{let r="number"==typeof e&&e>0;return r||n(),r?t.transition().duration(e).on("end",n):t},rz=t=>{let e=t.ctrlKey&&n$()?10:1;return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*e};function r$({domNode:t,minZoom:e,maxZoom:n,paneClickDistance:r,translateExtent:i,viewport:o,onPanZoom:u,onPanZoomStart:a,onPanZoomEnd:l,onDraggingChange:s}){let c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=t.getBoundingClientRect(),d=e0().clickDistance(!nb(r)||r<0?0:r).scaleExtent([e,n]).translateExtent(i),p=ts(t).call(d);x({x:o.x,y:o.y,zoom:ns(o.zoom,e,n)},[[0,0],[h.width,h.height]],i);let y=p.on("wheel.zoom"),g=p.on("dblclick.zoom");function m(t,e){return p?new Promise(n=>{d?.transform(rA(p,e?.duration,()=>n(!0)),t)}):Promise.resolve(!1)}function v(){d.on("zoom",null)}async function x(t,e,n){let r=rM(t),i=d?.constrain()(r,e,n);return i&&await m(i),new Promise(t=>t(i))}return d.wheelDelta(rz),{update:function({noWheelClassName:t,noPanClassName:e,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:i,panOnDrag:o,panOnScrollMode:h,panOnScrollSpeed:m,preventScrolling:x,zoomOnPinch:w,zoomOnScroll:_,zoomOnDoubleClick:b,zoomActivationKeyPressed:M,lib:E,onTransformChange:k}){r&&!c.isZoomingOrPanning&&v();let A=!i||M||r?function({noWheelClassName:t,preventScrolling:e,d3ZoomHandler:n}){return function(r,i){if(!e&&"wheel"===r.type&&!r.ctrlKey||rE(r,t))return null;r.preventDefault(),n.call(this,r,i)}}({noWheelClassName:t,preventScrolling:x,d3ZoomHandler:y}):function({zoomPanValues:t,noWheelClassName:e,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:o,zoomOnPinch:u,onPanZoomStart:a,onPanZoom:l,onPanZoomEnd:s}){return c=>{if(rE(c,e))return!1;c.preventDefault(),c.stopImmediatePropagation();let h=n.property("__zoom").k||1;if(c.ctrlKey&&u){let t=tc(c),e=rz(c);r.scaleTo(n,h*Math.pow(2,e),t,c);return}let d=1===c.deltaMode?20:1,p=i===f.Vertical?0:c.deltaX*d,y=i===f.Horizontal?0:c.deltaY*d;!n$()&&c.shiftKey&&i!==f.Vertical&&(p=c.deltaY*d,y=0),r.translateBy(n,-(p/h)*o,-(y/h)*o,{internal:!0});let g=rb(n.property("__zoom"));clearTimeout(t.panScrollTimeout),t.isPanScrolling||(t.isPanScrolling=!0,a?.(c,g)),t.isPanScrolling&&(l?.(c,g),t.panScrollTimeout=setTimeout(()=>{s?.(c,g),t.isPanScrolling=!1},150))}}({zoomPanValues:c,noWheelClassName:t,d3Selection:p,d3Zoom:d,panOnScrollMode:h,panOnScrollSpeed:m,zoomOnPinch:w,onPanZoomStart:a,onPanZoom:u,onPanZoomEnd:l});if(p.on("wheel.zoom",A,{passive:!1}),!r){let t=function({zoomPanValues:t,onDraggingChange:e,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let i=rb(r.transform);t.mouseButton=r.sourceEvent?.button||0,t.isZoomingOrPanning=!0,t.prevViewport=i,r.sourceEvent?.type==="mousedown"&&e(!0),n&&n?.(r.sourceEvent,i)}}({zoomPanValues:c,onDraggingChange:s,onPanZoomStart:a});d.on("start",t);let e=function({zoomPanValues:t,panOnDrag:e,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return o=>{t.usedRightMouseButton=!!(n&&rk(e,t.mouseButton??0)),o.sourceEvent?.sync||r([o.transform.x,o.transform.y,o.transform.k]),i&&!o.sourceEvent?.internal&&i?.(o.sourceEvent,rb(o.transform))}}({zoomPanValues:c,panOnDrag:o,onPaneContextMenu:!!n,onPanZoom:u,onTransformChange:k});d.on("zoom",e);let r=function({zoomPanValues:t,panOnDrag:e,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:o}){return u=>{if(!u.sourceEvent?.internal&&(t.isZoomingOrPanning=!1,o&&rk(e,t.mouseButton??0)&&!t.usedRightMouseButton&&u.sourceEvent&&o(u.sourceEvent),t.usedRightMouseButton=!1,r(!1),i&&r_(t.prevViewport,u.transform))){let e=rb(u.transform);t.prevViewport=e,clearTimeout(t.timerId),t.timerId=setTimeout(()=>{i?.(u.sourceEvent,e)},n?150:0)}}}({zoomPanValues:c,panOnDrag:o,panOnScroll:i,onPaneContextMenu:n,onPanZoomEnd:l,onDraggingChange:s});d.on("end",r)}let z=function({zoomActivationKeyPressed:t,zoomOnScroll:e,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:o,userSelectionActive:u,noWheelClassName:a,noPanClassName:l,lib:s}){return c=>{let h=t||e,f=n&&c.ctrlKey;if(1===c.button&&"mousedown"===c.type&&(rE(c,`${s}-flow__node`)||rE(c,`${s}-flow__edge`)))return!0;if(!r&&!h&&!i&&!o&&!n||u||rE(c,a)&&"wheel"===c.type||rE(c,l)&&("wheel"!==c.type||i&&"wheel"===c.type&&!t)||!n&&c.ctrlKey&&"wheel"===c.type)return!1;if(!n&&"touchstart"===c.type&&c.touches?.length>1)return c.preventDefault(),!1;if(!h&&!i&&!f&&"wheel"===c.type||!r&&("mousedown"===c.type||"touchstart"===c.type)||Array.isArray(r)&&!r.includes(c.button)&&"mousedown"===c.type)return!1;let d=Array.isArray(r)&&r.includes(c.button)||!c.button||c.button<=1;return(!c.ctrlKey||"wheel"===c.type)&&d}}({zoomActivationKeyPressed:M,panOnDrag:o,zoomOnScroll:_,panOnScroll:i,zoomOnDoubleClick:b,zoomOnPinch:w,userSelectionActive:r,noPanClassName:e,noWheelClassName:t,lib:E});d.filter(z),b?p.on("dblclick.zoom",g):p.on("dblclick.zoom",null)},destroy:v,setViewport:async function(t,e){let n=rM(t);return await m(n,e),new Promise(t=>t(n))},setViewportConstrained:x,getViewport:function(){let t=p?eD(p.node()):{x:0,y:0,k:1};return{x:t.x,y:t.y,zoom:t.k}},scaleTo:function(t,e){return p?new Promise(n=>{d?.scaleTo(rA(p,e?.duration,()=>n(!0)),t)}):Promise.resolve(!1)},scaleBy:function(t,e){return p?new Promise(n=>{d?.scaleBy(rA(p,e?.duration,()=>n(!0)),t)}):Promise.resolve(!1)},setScaleExtent:function(t){d?.scaleExtent(t)},setTranslateExtent:function(t){d?.translateExtent(t)},syncViewport:function(t){if(p){let e=rM(t),n=p.property("__zoom");(n.k!==t.zoom||n.x!==t.x||n.y!==t.y)&&d?.transform(p,e,null,{sync:!0})}},setClickDistance:function(t){let e=!nb(t)||t<0?0:t;d?.clickDistance(e)}}}function rS(t,e){return Math.max(0,e-t)}function rN(t,e){return Math.max(0,t-e)}function rI(t,e,n){return Math.max(0,e-t,t-n)}(s=m||(m={})).Line="line",s.Handle="handle";let rT={width:0,height:0,x:0,y:0},rP={...rT,pointerX:0,pointerY:0,aspectRatio:1};function rB({domNode:t,nodeId:e,getStoreItems:n,onChange:r,onEnd:i}){let o=ts(t);return{update:function({controlPosition:t,boundaries:u,keepAspectRatio:a,onResizeStart:l,onResize:s,onResizeEnd:c,shouldResize:h}){let f,d,p,y,g={...rT},m={...rP},v=function(t){let e=t.includes("right")||t.includes("left");return{isHorizontal:e,isVertical:t.includes("bottom")||t.includes("top"),affectsX:t.includes("left"),affectsY:t.includes("top")}}(t),x=null,w=[],_=tM().on("start",t=>{let{nodeLookup:r,transform:i,snapGrid:o,snapToGrid:u,nodeOrigin:a,paneDomNode:s}=n();if(!(f=r.get(e)))return;x=s?.getBoundingClientRect()??null;let{xSnapped:c,ySnapped:h}=nB(t.sourceEvent,{transform:i,snapGrid:o,snapToGrid:u,containerBounds:x});if(m={...g={width:f.measured.width??0,height:f.measured.height??0,x:f.position.x??0,y:f.position.y??0},pointerX:c,pointerY:h,aspectRatio:g.width/g.height},d=void 0,f.parentId&&("parent"===f.extent||f.expandParent)){var v;p=(d=r.get(f.parentId))&&"parent"===f.extent?[[0,0],[(v=d).measured.width,v.measured.height]]:void 0}for(let[t,n]of(w=[],y=void 0,r))if(n.parentId===e&&(w.push({id:t,position:{...n.position},extent:n.extent}),"parent"===n.extent||n.expandParent)){let t=function(t,e,n){let r=e.position.x+t.position.x,i=e.position.y+t.position.y,o=t.measured.width??0,u=t.measured.height??0,a=n[0]*o,l=n[1]*u;return[[r-a,i-l],[r+o-a,i+u-l]]}(n,f,n.origin??a);y=y?[[Math.min(t[0][0],y[0][0]),Math.min(t[0][1],y[0][1])],[Math.max(t[1][0],y[1][0]),Math.max(t[1][1],y[1][1])]]:t}l?.(t,{...g})}).on("drag",t=>{let{transform:e,snapGrid:i,snapToGrid:o,nodeOrigin:l}=n(),c=nB(t.sourceEvent,{transform:e,snapGrid:i,snapToGrid:o,containerBounds:x}),_=[];if(!f)return;let{x:b,y:M,width:E,height:k}=g,A={},z=f.origin??l,{width:$,height:S,x:N,y:I}=function(t,e,n,r,i,o,u,a){let{affectsX:l,affectsY:s}=e,{isHorizontal:c,isVertical:h}=e,f=c&&h,{xSnapped:d,ySnapped:p}=n,{minWidth:y,maxWidth:g,minHeight:m,maxHeight:v}=r,{x:x,y:w,width:_,height:b,aspectRatio:M}=t,E=Math.floor(c?d-t.pointerX:0),k=Math.floor(h?p-t.pointerY:0),A=_+(l?-E:E),z=b+(s?-k:k),$=-o[0]*_,S=-o[1]*b,N=rI(A,y,g),I=rI(z,m,v);if(u){let t=0,e=0;l&&E<0?t=rS(x+E+$,u[0][0]):!l&&E>0&&(t=rN(x+A+$,u[1][0])),s&&k<0?e=rS(w+k+S,u[0][1]):!s&&k>0&&(e=rN(w+z+S,u[1][1])),N=Math.max(N,t),I=Math.max(I,e)}if(a){let t=0,e=0;l&&E>0?t=rN(x+E,a[0][0]):!l&&E<0&&(t=rS(x+A,a[1][0])),s&&k>0?e=rN(w+k,a[0][1]):!s&&k<0&&(e=rS(w+z,a[1][1])),N=Math.max(N,t),I=Math.max(I,e)}if(i&&(c&&(N=Math.max(N,rI(A/M,m,v)*M),u&&(N=Math.max(N,(l||s)&&(!l||s||!f)?rS(w+S+(l?E:-E)/M,u[0][1])*M:rN(w+S+A/M,u[1][1])*M)),a&&(N=Math.max(N,(l||s)&&(!l||s||!f)?rN(w+(l?E:-E)/M,a[0][1])*M:rS(w+A/M,a[1][1])*M))),h&&(I=Math.max(I,rI(z*M,y,g)/M),u&&(I=Math.max(I,(l||s)&&(!s||l||!f)?rS(x+(s?k:-k)*M+$,u[0][0])/M:rN(x+z*M+$,u[1][0])/M)),a&&(I=Math.max(I,(l||s)&&(!s||l||!f)?rN(x+(s?k:-k)*M,a[0][0])/M:rS(x+z*M,a[1][0])/M)))),k+=k<0?I:-I,E+=E<0?N:-N,i){if(f){var T,P,B,H;A>z*M?k=((T=l,P=s,T?!P:P)?-E:E)/M:E=((B=l,H=s,B?!H:H)?-k:k)*M}else c?(k=E/M,s=l):(E=k*M,l=s)}let O=l?x+E:x,C=s?w+k:w;return{width:_+(l?-E:E),height:b+(s?-k:k),x:o[0]*E*(l?-1:1)+O,y:o[1]*k*(s?-1:1)+C}}(m,v,c,u,a,z,p,y),T=$!==E,P=S!==k,B=N!==b&&T,H=I!==M&&P;if(!B&&!H&&!T&&!P)return;if((B||H||1===z[0]||1===z[1])&&(A.x=B?N:g.x,A.y=H?I:g.y,g.x=A.x,g.y=A.y,w.length>0)){let t=N-b,e=I-M;for(let n of w)n.position={x:n.position.x-t+z[0]*($-E),y:n.position.y-e+z[1]*(S-k)},_.push(n)}if((T||P)&&(A.width=T?$:g.width,A.height=P?S:g.height,g.width=A.width,g.height=A.height),d&&f.expandParent){let t=z[0]*(A.width??0);A.x&&A.x<t&&(g.x=t,m.x=m.x-(A.x-t));let e=z[1]*(A.height??0);A.y&&A.y<e&&(g.y=e,m.y=m.y-(A.y-e))}let O=function({width:t,prevWidth:e,height:n,prevHeight:r,affectsX:i,affectsY:o}){let u=t-e,a=n-r,l=[u>0?1:u<0?-1:0,a>0?1:a<0?-1:0];return u&&i&&(l[0]=-1*l[0]),a&&o&&(l[1]=-1*l[1]),l}({width:g.width,prevWidth:E,height:g.height,prevHeight:k,affectsX:v.affectsX,affectsY:v.affectsY}),C={...g,direction:O};!1!==h?.(t,C)&&(s?.(t,C),r(A,_))}).on("end",t=>{c?.(t,{...g}),i?.()});o.call(_)},destroy:function(){o.on(".drag",null)}}}},52033:function(t,e,n){var r=n(26194),i=n(26789)(r);t.exports=i},98129:function(t,e,n){var r=n(52033);t.exports=function(t,e){var n=[];return r(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}},49819:function(t,e,n){var r=n(18911)();t.exports=r},26194:function(t,e,n){var r=n(49819),i=n(50098);t.exports=function(t,e){return t&&r(t,e,i)}},75733:function(t){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},70830:function(t,e,n){var r=n(76747),i=n(31159),o=n(64373),u=n(37948);t.exports=function(t,e){return e=r(e,t),null==(t=o(t,e))||delete t[u(i(e))]}},26789:function(t,e,n){var r=n(80068);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,u=e?o:-1,a=Object(n);(e?u--:++u<o)&&!1!==i(a[u],u,a););return n}}},18911:function(t){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),u=r(e),a=u.length;a--;){var l=u[t?a:++i];if(!1===n(o[l],l,o))break}return e}}},64373:function(t,e,n){var r=n(79867),i=n(75733);t.exports=function(t,e){return e.length<2?t:r(t,i(e,0,-1))}},69238:function(t,e,n){var r=n(10263),i=n(98129),o=n(89278),u=n(19785);t.exports=function(t,e){return(u(t)?r:i)(t,o(e,3))}},90104:function(t,e,n){var r=n(20186),i=n(3533),o=n(2900),u=n(19785),a=n(80068),l=n(43854),s=n(56016),c=n(48519),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(u(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||c(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(s(t))return!r(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},31159:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},43551:function(t,e,n){var r=n(70830);t.exports=function(t,e){return null==t||r(t,e)}},51901:function(){},33834:function(t,e,n){"use strict";var r=n(27378),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=r.useState,u=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!i(t,n)}catch(t){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),i=r[0].inst,c=r[1];return a(function(){i.value=n,i.getSnapshot=e,s(i)&&c({inst:i})},[t,n,e]),u(function(){return s(i)&&c({inst:i}),t(function(){s(i)&&c({inst:i})})},[t]),l(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},92959:function(t,e,n){"use strict";var r=n(27378),i=n(70644),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},u=i.useSyncExternalStore,a=r.useRef,l=r.useEffect,s=r.useMemo,c=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var h=a(null);if(null===h.current){var f={hasValue:!1,value:null};h.current=f}else f=h.current;var d=u(t,(h=s(function(){function t(t){if(!l){if(l=!0,u=t,t=r(t),void 0!==i&&f.hasValue){var e=f.value;if(i(e,t))return a=e}return a=t}if(e=a,o(u,t))return e;var n=r(t);return void 0!==i&&i(e,n)?(u=t,e):(u=t,a=n)}var u,a,l=!1,s=void 0===n?null:n;return[function(){return t(e())},null===s?void 0:function(){return t(s())}]},[e,n,r,i]))[0],h[1]);return l(function(){f.hasValue=!0,f.value=d},[d]),c(d),d}},70644:function(t,e,n){"use strict";t.exports=n(33834)},60626:function(t,e,n){"use strict";t.exports=n(92959)},7008:function(t,e,n){"use strict";n.d(e,{Z:function(){return function t(e){if("string"==typeof e||"number"==typeof e)return""+e;let n="";if(Array.isArray(e))for(let r=0,i;r<e.length;r++)""!==(i=t(e[r]))&&(n+=(n&&" ")+i);else for(let t in e)e[t]&&(n+=(n&&" ")+t);return n}}})},42139:function(t,e,n){"use strict";function r(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function i(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=u)):void 0===e&&(e=o);for(var n,r,i,a,c,h=new s(t),f=[h];n=f.pop();)if((i=e(n.data))&&(c=(i=Array.from(i)).length))for(n.children=i,a=c-1;a>=0;--a)f.push(r=i[a]=new s(i[a])),r.parent=n,r.depth=n.depth+1;return h.eachBefore(l)}function o(t){return t.children}function u(t){return Array.isArray(t)?t[1]:null}function a(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function l(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function s(t){this.data=t,this.depth=this.height=0,this.parent=null}n.d(e,{NB:function(){return s},le:function(){return l}}),s.prototype=i.prototype={constructor:s,count:function(){return this.eachAfter(r)},each:function(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,u=[o],a=[],l=-1;o=u.pop();)if(a.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)u.push(n[r]);for(;o=a.pop();)t.call(e,o,++l,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],u=-1;i=o.pop();)if(t.call(e,i,++u,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(let r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return i(this).eachBefore(a)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n]);while(o.length)}}},79658:function(t,e,n){"use strict";function r(t){return null==t?null:function(t){if("function"!=typeof t)throw Error();return t}(t)}n.d(e,{Z:function(){return c}});var i=n(42139),o={depth:-1},u={},a={};function l(t){return t.id}function s(t){return t.parentId}function c(){var t,e=l,n=s;function c(r){var l,s,c,d,p,y,g,m,v=Array.from(r),x=e,w=n,_=new Map;if(null!=t){let e=v.map((e,n)=>{var i;let o;return i=t(e,n,r),o=(i=`${i}`).length,f(i,o-1)&&!f(i,o-2)&&(i=i.slice(0,-1)),"/"===i[0]?i:`/${i}`}),n=e.map(h),i=new Set(e).add("");for(let t of n)i.has(t)||(i.add(t),e.push(t),n.push(h(t)),v.push(a));x=(t,n)=>e[n],w=(t,e)=>n[e]}for(c=0,l=v.length;c<l;++c)s=v[c],y=v[c]=new i.NB(s),null!=(g=x(s,c,r))&&(g+="")&&(m=y.id=g,_.set(m,_.has(m)?u:y)),null!=(g=w(s,c,r))&&(g+="")&&(y.parent=g);for(c=0;c<l;++c)if(g=(y=v[c]).parent){if(!(p=_.get(g)))throw Error("missing: "+g);if(p===u)throw Error("ambiguous: "+g);p.children?p.children.push(y):p.children=[y],y.parent=p}else{if(d)throw Error("multiple roots");d=y}if(!d)throw Error("no root");if(null!=t){for(;d.data===a&&1===d.children.length;)d=d.children[0],--l;for(let t=v.length-1;t>=0&&(y=v[t]).data===a;--t)y.data=null}if(d.parent=o,d.eachBefore(function(t){t.depth=t.parent.depth+1,--l}).eachBefore(i.le),d.parent=null,l>0)throw Error("cycle");return d}return c.id=function(t){return arguments.length?(e=r(t),c):e},c.parentId=function(t){return arguments.length?(n=r(t),c):n},c.path=function(e){return arguments.length?(t=r(e),c):t},c}function h(t){let e=t.length;if(e<2)return"";for(;--e>1&&!f(t,e););return t.slice(0,e)}function f(t,e){if("/"===t[e]){let n=0;for(;e>0&&"\\"===t[--e];)++n;if((1&n)==0)return!0}return!1}},62266:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(42139);function i(t,e){return t.parent===e.parent?1:2}function o(t){var e=t.children;return e?e[0]:t.t}function u(t){var e=t.children;return e?e[e.length-1]:t.t}function a(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function l(){var t=i,e=1,n=1,r=null;function l(i){var o=function(t){for(var e,n,r,i,o,u=new a(t,0),l=[u];e=l.pop();)if(r=e._.children)for(e.children=Array(o=r.length),i=o-1;i>=0;--i)l.push(n=e.children[i]=new a(r[i],i)),n.parent=e;return(u.parent=new a(null,0)).children=[u],u}(i);if(o.eachAfter(s),o.parent.m=-o.z,o.eachBefore(c),r)i.eachBefore(h);else{var u=i,l=i,f=i;i.eachBefore(function(t){t.x<u.x&&(u=t),t.x>l.x&&(l=t),t.depth>f.depth&&(f=t)});var d=u===l?1:t(u,l)/2,p=d-u.x,y=e/(l.x+d+p),g=n/(f.depth||1);i.eachBefore(function(t){t.x=(t.x+p)*y,t.y=t.depth*g})}return i}function s(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)e=i[o],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a,l,s=e,c=e,h=n,f=s.parent.children[0],d=s.m,p=c.m,y=h.m,g=f.m;h=u(h),s=o(s),h&&s;)f=o(f),(c=u(c)).a=e,(l=h.z+y-s.z-d+t(h._,s._))>0&&(function(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}((i=h,a=r,i.a.parent===e.parent?i.a:a),e,l),d+=l,p+=l),y+=h.m,d+=s.m,g+=f.m,p+=c.m;h&&!u(c)&&(c.t=h,c.m+=y-p),s&&!o(f)&&(f.t=s,f.m+=d-g,r=e)}return r}(e,i,e.parent.A||r[0])}function c(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function h(t){t.x*=e,t.y=t.depth*n}return l.separation=function(e){return arguments.length?(t=e,l):t},l.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],l):r?null:[e,n]},l.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],l):r?[e,n]:null},l}a.prototype=Object.create(r.NB.prototype)},4157:function(t,e,n){"use strict";function r(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(let[n,r]of t)if(!Object.is(r,e.get(n)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}let n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(e,r)||!Object.is(t[r],e[r]))return!1;return!0}n.d(e,{X:function(){return r}})},22353:function(t,e,n){"use strict";n.d(e,{F:function(){return f},s:function(){return c}});var r=n(27378),i=n(60626);let o=t=>{let e;let n=new Set,r=(t,r)=>{let i="function"==typeof t?t(e):t;if(!Object.is(i,e)){let t=e;e=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},e,i),n.forEach(n=>n(e,t))}},i=()=>e,o={setState:r,getState:i,getInitialState:()=>u,subscribe:t=>(n.add(t),()=>n.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=e=t(r,i,o);return o},u=t=>t?o(t):o,{useDebugValue:a}=r,{useSyncExternalStoreWithSelector:l}=i,s=t=>t;function c(t,e=s,n){let r=l(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return a(r),r}let h=(t,e)=>{let n=u(t),r=(t,r=e)=>c(n,t,r);return Object.assign(r,n),r},f=(t,e)=>t?h(t,e):h}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6084],{87361:function(e,a,n){var i=n(24246),t=n(38355);a.Z=e=>{let{title:a,text:n,onClose:l}=e;return(0,i.jsxs)(t.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[l&&(0,i.jsx)(t.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:l}),(0,i.jsx)(t.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(t.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(t.X6q,{fontSize:"md",children:a}),(0,i.jsx)(t.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:n})]})]})}},77213:function(e,a,n){n.d(a,{Z:function(){return u}});var i=n(24246),t=n(38355),l=n(88038),o=n.n(l),r=n(86677);n(27378);var s=n(25980),d=n(90867),c=n(77830),_=()=>{let e=(0,r.useRouter)();return(0,i.jsx)(t.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(t.xuv,{children:[(0,i.jsxs)(t.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(t.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(t.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(t.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:a,title:n,padded:l=!0,mainProps:c}=e,u=(0,s.hz)(),p=(0,r.useRouter)(),b="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,F=!(u.flags.privacyRequestsConfiguration&&b),{data:v}=(0,d.JE)(void 0,{skip:F}),{data:m}=(0,d.PW)(void 0,{skip:F}),g=u.flags.privacyRequestsConfiguration&&(!v||!m)&&b;return(0,i.jsxs)(t.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(t.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,i.jsx)(_,{}):null,a]})]})}},51472:function(e,a,n){var i=n(24246),t=n(38355),l=n(47397),o=n(7078),r=n(18397),s=n(11055),d=n(27378),c=n(40324),_=n(46238);let u=e=>{let{item:a,label:n,draggable:r,onDeleteItem:s,onEditItem:d,tooltip:c,onRowClick:u,maxH:p=10,rowTestId:b}=e,F=(0,l.o)(),v=(0,i.jsxs)(t.kCb,{direction:"row",gap:2,maxH:p,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:u?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[r&&(0,i.jsx)(t.VVU,{onPointerDown:e=>F.start(e),cursor:"grab"}),(0,i.jsxs)(t.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:u?"pointer":"auto",onClick:()=>{u&&u(a)},overflow:"clip","data-testid":b,children:[(0,i.jsx)(t.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,i.jsx)(_.b,{label:c})]}),(0,i.jsxs)(t.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[d&&(0,i.jsx)(t.wpx,{"aria-label":"Edit",onClick:()=>d(a),icon:(0,i.jsx)(t.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(b)}),s&&(0,i.jsx)(t.wpx,{"aria-label":"Delete",onClick:()=>s(a),icon:(0,i.jsx)(t.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(b)})]})]});return r?(0,i.jsx)(o.e,{value:a,dragListener:!1,dragControls:F,children:v}):v},p=e=>{let{label:a,options:n,onOptionSelected:l,baseTestId:o}=e,[r,s]=(0,d.useState)(!1),[c,_]=(0,d.useState)(void 0);return r?(0,i.jsx)(t.xuv,{w:"full",children:(0,i.jsx)(t.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,a)=>{var n;return(null!==(n=null==a?void 0:a.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:c,options:n,onChange:e=>{l(e),s(!1),_(void 0)},className:"w-full","data-testid":"select-".concat(o)})}):(0,i.jsx)(t.wpx,{onClick:()=>s(!0),"data-testid":"add-".concat(o),block:!0,icon:(0,i.jsx)(t.jBn,{boxSize:4}),iconPosition:"end",children:a})};a.Z=e=>{let{label:a,tooltip:n,draggable:l,addButtonLabel:o,allItems:d,idField:b,nameField:F=b,values:v,setValues:m,canDeleteItem:g,getTooltip:h,onRowClick:x,onEditItem:f,selectOnAdd:C,getItemLabel:y,createNewValue:j,maxHeight:S=36,baseTestId:A}=e,k=e=>e instanceof Object&&b&&b in e?e[b]:e,T=d.every(e=>"string"==typeof e)?d.filter(e=>v.every(a=>a!==e)):d.filter(e=>v.every(a=>k(a)!==k(e))),N=e=>{m(v.filter(a=>a!==e).slice())},E=null!=y?y:e=>e instanceof Object&&b&&b in e?F&&F in e?e[F]:e[b]:e,w=e=>{let a=e instanceof Object&&b&&b in e?e[b]:e;return{label:E(e),value:a}},R=e=>d.every(e=>"string"==typeof e)?e.value:d.find(a=>a[b]===e.value),I=e=>{let a=j?j(e):R(e);m([a,...v.slice()]),C&&x&&x(a),C&&f&&f(a)},O={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},M=l?(0,i.jsx)(t.xuv,{as:r.E.div,layoutScroll:!0,...O,children:(0,i.jsx)(s.M,{values:v,onReorder:e=>m(e.slice()),children:v.map(e=>{let a=k(e);return(0,i.jsx)(u,{item:e,label:E(e),onDeleteItem:!g||g&&g(e)?N:void 0,onEditItem:f,onRowClick:x,draggable:!0,maxH:S,rowTestId:"".concat(A,"-row-").concat(a),tooltip:h&&h(e)?h(e):void 0},a)})})}):(0,i.jsx)(t.xuv,{...O,children:(0,i.jsx)(t.aVo,{children:v.map(e=>{let a=k(e);return(0,i.jsx)(u,{item:e,label:E(e),onRowClick:x,onDeleteItem:N,tooltip:h&&h(e)?h(e):void 0,maxH:S,rowTestId:"".concat(A,"-row-").concat(a)},a)})})});return v.length?(0,i.jsxs)(t.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[a?(0,i.jsx)(c.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:a}):null,(0,i.jsx)(_.b,{label:n}),M,T.length?(0,i.jsx)(p,{label:null!=o?o:"Add new",options:T.map(e=>w(e)),onOptionSelected:I,baseTestId:A}):null]}):(0,i.jsx)(p,{label:null!=o?o:"Add new",options:T.map(e=>w(e)),onOptionSelected:I,baseTestId:A})}},97181:function(e,a,n){n.d(a,{d:function(){return d}});var i=n(24246),t=n(38355),l=n(34090),o=n(27378),r=n(46238),s=n(40324);let d=e=>{let{name:a,label:n,labelProps:d,tooltip:c,isRequired:_,layout:u="inline",helperText:p,...b}=e,[F,v,{setValue:m}]=(0,l.U$)(a),g=!!(v.touched&&v.error),[h,x]=(0,o.useState)("");F.value||"tags"!==b.mode&&"multiple"!==b.mode||(F.value=[]),"tags"===b.mode&&"string"==typeof F.value&&(F.value=[F.value]);let f="tags"===b.mode?(e,a)=>e?e.value!==h||F.value.includes(h)?b.optionRender?b.optionRender(e,a):e.label:'Create "'.concat(h,'"'):void 0:b.optionRender||void 0,C=e=>{x(e),b.onSearch&&b.onSearch(e)},y=(e,a)=>{m(e),b.onChange&&b.onChange(e,a)};return"inline"===u?(0,i.jsx)(t.NIc,{isInvalid:g,isRequired:_,children:(0,i.jsxs)(t.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,i.jsx)(s.__,{htmlFor:b.id||a,...d,children:n}):null,(0,i.jsxs)(t.jqI,{align:"center",children:[(0,i.jsxs)(t.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(t.WPr,{...F,id:b.id||a,"data-testid":"controlled-select-".concat(F.name),...b,optionRender:f,onSearch:"tags"===b.mode?C:void 0,onChange:y,value:F.value||void 0,status:g?"error":void 0}),p&&(0,i.jsx)(t.Q6r,{children:p}),(0,i.jsx)(s.Bc,{isInvalid:g,message:v.error,fieldName:F.name})]}),(0,i.jsx)(r.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(t.NIc,{isInvalid:g,isRequired:_,children:(0,i.jsxs)(t.gCW,{alignItems:"start",children:[(0,i.jsxs)(t.jqI,{align:"center",children:[n?(0,i.jsx)(s.__,{htmlFor:b.id||a,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,i.jsx)(r.b,{label:c})]}),(0,i.jsx)(t.WPr,{...F,id:b.id||a,"data-testid":"controlled-select-".concat(F.name),...b,optionRender:f,onSearch:"tags"===b.mode?C:void 0,onChange:y,value:F.value||void 0,status:g?"error":void 0}),p&&(0,i.jsx)(t.Q6r,{style:{marginTop:0},children:p}),(0,i.jsx)(s.Bc,{isInvalid:g,message:v.error,fieldName:F.name})]})})}},57899:function(e,a,n){var i=n(24246),t=n(38355),l=n(27378);a.Z=e=>{let{handleConfirm:a,isOpen:n,onClose:o,title:r,message:s,confirmButtonText:d="Continue",cancelButtonText:c="Cancel"}=e,_=(0,l.useRef)(null);return(0,i.jsx)(t.aRR,{isOpen:n,leastDestructiveRef:_,onClose:o,children:(0,i.jsx)(t.dhV,{children:(0,i.jsxs)(t._Tf,{alignItems:"center",textAlign:"center",children:[(0,i.jsx)(t.aNP,{marginTop:3}),(0,i.jsx)(t.fYl,{fontSize:"lg",fontWeight:"bold",children:r}),(0,i.jsx)(t.iPF,{pt:0,children:s}),(0,i.jsxs)(t.xoY,{children:[(0,i.jsx)(t.wpx,{ref:_,onClick:o,size:"large",children:c}),(0,i.jsx)(t.wpx,{onClick:()=>a(),type:"primary",size:"large",className:"ml-3","data-testid":"warning-modal-confirm-btn",children:d})]})]})})})}},90980:function(e,a,n){n.d(a,{R:function(){return s}});var i=n(24246),t=n(38355),l=n(79894),o=n.n(l),r=n(63662);let s=e=>{let{onClick:a,...n}=e;return(0,i.jsxs)(t.kCb,{alignItems:"center",mt:-4,mb:3,onClick:a,cursor:"pointer",...n,children:[(0,i.jsx)(t.wpx,{"aria-label":"Back",icon:(0,i.jsx)(t.Rpv,{}),className:"mr-2",size:"small"}),(0,i.jsx)(t.xvT,{as:"a",fontSize:"sm",fontWeight:"500",children:"Back"})]})};a.Z=e=>{let{backPath:a,...n}=e,l=(0,r.useRouter)();return(0,i.jsxs)(t.kCb,{alignItems:"center",mb:6,...n,children:[(0,i.jsx)(t.wpx,{onClick:()=>l.push(a),"aria-label":"Back",icon:(0,i.jsx)(t.Rpv,{}),className:"mr-2",size:"small"}),(0,i.jsx)(t.xvT,{as:o(),href:a,fontSize:"sm",fontWeight:"500",children:"Back"})]})}},8411:function(e,a,n){n.d(a,{NA:function(){return l},Z8:function(){return t}});var i=n(46420);let t={[i._F.ER]:"Eritrea",[i._F.DJ]:"Djibouti",[i._F.MR]:"Mauritania",[i._F.NA]:"Namibia",[i._F.GH]:"Ghana",[i._F.SS]:"South Sudan",[i._F.SC]:"Seychelles",[i._F.IO]:"British Indian Ocean Territory",[i._F.GQ]:"Equatorial Guinea",[i._F.AO]:"Angola",[i._F.CG]:"Republic of the Congo",[i._F.BW]:"Botswana",[i._F.BI]:"Burundi",[i._F.DZ]:"Algeria",[i._F.TD]:"Chad",[i._F.NG]:"Nigeria",[i._F.TZ]:"Tanzania",[i._F.EH]:"Western Sahara",[i._F.SN]:"Senegal",[i._F.LR]:"Liberia",[i._F.ZA]:"South Africa",[i._F.CV]:"Cape Verde",[i._F.GM]:"Gambia",[i._F.SD]:"Sudan",[i._F.KM]:"Comoros",[i._F.SZ]:"Eswatini",[i._F.UG]:"Uganda",[i._F.MG]:"Madagascar",[i._F.RW]:"Rwanda",[i._F.CD]:"DR Congo",[i._F.CM]:"Cameroon",[i._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[i._F.TG]:"Togo",[i._F.MU]:"Mauritius",[i._F.NE]:"Niger",[i._F.BJ]:"Benin",[i._F.EG]:"Egypt",[i._F.LS]:"Lesotho",[i._F.ET]:"Ethiopia",[i._F.MA]:"Morocco",[i._F.YT]:"Mayotte",[i._F.BF]:"Burkina Faso",[i._F.RE]:"R\xe9union",[i._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[i._F.CF]:"Central African Republic",[i._F.MZ]:"Mozambique",[i._F.MW]:"Malawi",[i._F.ML]:"Mali",[i._F.ZM]:"Zambia",[i._F.LY]:"Libya",[i._F.GW]:"Guinea-Bissau",[i._F.SO]:"Somalia",[i._F.KE]:"Kenya",[i._F.GN]:"Guinea",[i._F.ZW]:"Zimbabwe",[i._F.TN]:"Tunisia",[i._F.SL]:"Sierra Leone",[i._F.GA]:"Gabon",[i._F.CI]:"Ivory Coast",[i._F.JO]:"Jordan",[i._F.PK]:"Pakistan",[i._F.KP]:"North Korea",[i._F.MO]:"Macau",[i._F.AM]:"Armenia",[i._F.SY]:"Syria",[i._F.TJ]:"Tajikistan",[i._F.SA]:"Saudi Arabia",[i._F.KR]:"South Korea",[i._F.NP]:"Nepal",[i._F.PH]:"Philippines",[i._F.IQ]:"Iraq",[i._F.LB]:"Lebanon",[i._F.MN]:"Mongolia",[i._F.PS]:"Palestine",[i._F.YE]:"Yemen",[i._F.JP]:"Japan",[i._F.KZ]:"Kazakhstan",[i._F.LK]:"Sri Lanka",[i._F.MM]:"Myanmar",[i._F.KG]:"Kyrgyzstan",[i._F.CN]:"China",[i._F.AF]:"Afghanistan",[i._F.OM]:"Oman",[i._F.IN]:"India",[i._F.LA]:"Laos",[i._F.UZ]:"Uzbekistan",[i._F.MV]:"Maldives",[i._F.ID]:"Indonesia",[i._F.VN]:"Vietnam",[i._F.MY]:"Malaysia",[i._F.TW]:"Taiwan",[i._F.KH]:"Cambodia",[i._F.AE]:"United Arab Emirates",[i._F.HK]:"Hong Kong",[i._F.GE]:"Georgia (Country)",[i._F.BD]:"Bangladesh",[i._F.KW]:"Kuwait",[i._F.TM]:"Turkmenistan",[i._F.QA]:"Qatar",[i._F.BH]:"Bahrain",[i._F.BN]:"Brunei",[i._F.TH]:"Thailand",[i._F.BT]:"Bhutan",[i._F.SG]:"Singapore",[i._F.IL]:"Israel",[i._F.AZ]:"Azerbaijan",[i._F.TL]:"Timor-Leste",[i._F.IR]:"Iran",[i._F.TR]:"Turkey",[i._F.MK]:"North Macedonia",[i._F.IE]:"Ireland",[i._F.DK]:"Denmark",[i._F.SK]:"Slovakia",[i._F.MD]:"Moldova",[i._F.AX]:"\xc5land Islands",[i._F.PL]:"Poland",[i._F.BA]:"Bosnia and Herzegovina",[i._F.SM]:"San Marino",[i._F.CZ]:"Czechia",[i._F.EE]:"Estonia",[i._F.XK]:"Kosovo",[i._F.FO]:"Faroe Islands",[i._F.SJ]:"Svalbard and Jan Mayen",[i._F.GG]:"Guernsey",[i._F.FR]:"France",[i._F.NL]:"Netherlands",[i._F.FI]:"Finland",[i._F.PT]:"Portugal",[i._F.DE]:"Germany",[i._F.MT]:"Malta",[i._F.JE]:"Jersey",[i._F.IS]:"Iceland",[i._F.ES]:"Spain",[i._F.GI]:"Gibraltar",[i._F.NO]:"Norway",[i._F.CY]:"Cyprus",[i._F.RS]:"Serbia",[i._F.LT]:"Lithuania",[i._F.MC]:"Monaco",[i._F.LU]:"Luxembourg",[i._F.UA]:"Ukraine",[i._F.IM]:"Isle of Man",[i._F.RO]:"Romania",[i._F.BE]:"Belgium",[i._F.SE]:"Sweden",[i._F.ME]:"Montenegro",[i._F.LV]:"Latvia",[i._F.VA]:"Vatican City",[i._F.AT]:"Austria",[i._F.AL]:"Albania",[i._F.LI]:"Liechtenstein",[i._F.GR]:"Greece",[i._F.IT]:"Italy",[i._F.AD]:"Andorra",[i._F.GB]:"United Kingdom",[i._F.RU]:"Russia",[i._F.SI]:"Slovenia",[i._F.BY]:"Belarus",[i._F.CH]:"Switzerland",[i._F.HU]:"Hungary",[i._F.BG]:"Bulgaria",[i._F.HR]:"Croatia",[i._F.TC]:"Turks and Caicos Islands",[i._F.CW]:"Cura\xe7ao",[i._F.GP]:"Guadeloupe",[i._F.UM]:"United States Minor Outlying Islands",[i._F.GT]:"Guatemala",[i._F.PM]:"Saint Pierre and Miquelon",[i._F.BQ]:"Caribbean Netherlands",[i._F.GL]:"Greenland",[i._F.SX]:"Sint Maarten",[i._F.PA]:"Panama",[i._F.AW]:"Aruba",[i._F.MQ]:"Martinique",[i._F.AG]:"Antigua and Barbuda",[i._F.BM]:"Bermuda",[i._F.CU]:"Cuba",[i._F.GD]:"Grenada",[i._F.NI]:"Nicaragua",[i._F.LC]:"Saint Lucia",[i._F.KN]:"Saint Kitts and Nevis",[i._F.DO]:"Dominican Republic",[i._F.VC]:"Saint Vincent and the Grenadines",[i._F.BZ]:"Belize",[i._F.HT]:"Haiti",[i._F.JM]:"Jamaica",[i._F.BS]:"Bahamas",[i._F.MX]:"Mexico",[i._F.MF]:"Saint Martin",[i._F.SV]:"El Salvador",[i._F.BL]:"Saint Barth\xe9lemy",[i._F.AI]:"Anguilla",[i._F.MS]:"Montserrat",[i._F.VG]:"British Virgin Islands",[i._F.BB]:"Barbados",[i._F.HN]:"Honduras",[i._F.KY]:"Cayman Islands",[i._F.DM]:"Dominica",[i._F.TT]:"Trinidad and Tobago",[i._F.CR]:"Costa Rica",[i._F.SR]:"Suriname",[i._F.CX]:"Christmas Island",[i._F.WS]:"Samoa",[i._F.PF]:"French Polynesia",[i._F.AS]:"American Samoa",[i._F.NC]:"New Caledonia",[i._F.TK]:"Tokelau",[i._F.PW]:"Palau",[i._F.KI]:"Kiribati",[i._F.VU]:"Vanuatu",[i._F.PN]:"Pitcairn Islands",[i._F.CK]:"Cook Islands",[i._F.FJ]:"Fiji",[i._F.PG]:"Papua New Guinea",[i._F.MP]:"Northern Mariana Islands",[i._F.NU]:"Niue",[i._F.TV]:"Tuvalu",[i._F.NF]:"Norfolk Island",[i._F.TO]:"Tonga",[i._F.FM]:"Micronesia",[i._F.SB]:"Solomon Islands",[i._F.NR]:"Nauru",[i._F.WF]:"Wallis and Futuna",[i._F.GU]:"Guam",[i._F.AU]:"Australia",[i._F.NZ]:"New Zealand",[i._F.MH]:"Marshall Islands",[i._F.CC]:"Cocos (Keeling) Islands",[i._F.VE]:"Venezuela",[i._F.PY]:"Paraguay",[i._F.BR]:"Brazil",[i._F.CO]:"Colombia",[i._F.PE]:"Peru",[i._F.CL]:"Chile",[i._F.UY]:"Uruguay",[i._F.AR]:"Argentina",[i._F.GY]:"Guyana",[i._F.BO]:"Bolivia",[i._F.GF]:"French Guiana",[i._F.EC]:"Ecuador",[i._F.FK]:"Falkland Islands",[i._F.US_AL]:"Alabama",[i._F.US_AK]:"Alaska",[i._F.US_AZ]:"Arizona",[i._F.US_AR]:"Arkansas",[i._F.US_CA]:"California",[i._F.US_CO]:"Colorado",[i._F.US_CT]:"Connecticut",[i._F.US_DE]:"Delaware",[i._F.US_DC]:"District of Columbia (DC)",[i._F.US_FL]:"Florida",[i._F.US_GA]:"Georgia",[i._F.US_HI]:"Hawaii",[i._F.US_ID]:"Idaho",[i._F.US_IL]:"Illinois",[i._F.US_IN]:"Indiana",[i._F.US_IA]:"Iowa",[i._F.US_KS]:"Kansas",[i._F.US_KY]:"Kentucky",[i._F.US_LA]:"Louisiana",[i._F.US_ME]:"Maine",[i._F.US_MD]:"Maryland",[i._F.US_MA]:"Massachusetts",[i._F.US_MI]:"Michigan",[i._F.US_MN]:"Minnesota",[i._F.US_MS]:"Mississippi",[i._F.US_MO]:"Missouri",[i._F.US_MT]:"Montana",[i._F.US_NE]:"Nebraska",[i._F.US_NV]:"Nevada",[i._F.US_NH]:"New Hampshire",[i._F.US_NJ]:"New Jersey",[i._F.US_NM]:"New Mexico",[i._F.US_NY]:"New York",[i._F.US_NC]:"North Carolina",[i._F.US_ND]:"North Dakota",[i._F.US_OH]:"Ohio",[i._F.US_OK]:"Oklahoma",[i._F.US_OR]:"Oregon",[i._F.US_PA]:"Pennsylvania",[i._F.US_PR]:"Puerto Rico",[i._F.US_RI]:"Rhode Island",[i._F.US_SC]:"South Carolina",[i._F.US_SD]:"South Dakota",[i._F.US_TN]:"Tennessee",[i._F.US_TX]:"Texas",[i._F.US_UT]:"Utah",[i._F.US_VA]:"Virginia",[i._F.US_VI]:"United States Virgin Islands",[i._F.US_VT]:"Vermont",[i._F.US_WA]:"Washington",[i._F.US_WV]:"West Virginia",[i._F.US_WI]:"Wisconsin",[i._F.US_WY]:"Wyoming",[i._F.CA_AB]:"Alberta",[i._F.CA_BC]:"British Columbia",[i._F.CA_MB]:"Manitoba",[i._F.CA_NB]:"New Brunswick",[i._F.CA_NL]:"Newfoundland and Labrador",[i._F.CA_NS]:"Nova Scotia",[i._F.CA_ON]:"Ontario",[i._F.CA_PE]:"Prince Edward Island",[i._F.CA_QC]:"Quebec",[i._F.CA_SK]:"Saskatchewan",[i._F.CA_NT]:"Northwest Territories",[i._F.CA_NU]:"Nunavut",[i._F.CA_YT]:"Yukon",[i._F.CA]:"Canada",[i._F.US]:"United States",[i._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[i._F.CARIBBEAN]:"Caribbean",[i._F.EEA]:"European Economic Area (EEA)",[i._F.NON_EEA]:"Non European Economic Area",[i._F.GLOBAL]:"Global"},l=new Map(Object.entries(t));Object.entries(t).map(e=>({value:e[0],label:e[1]}))},5331:function(e,a,n){n.d(a,{RN:function(){return R},d0:function(){return O}});var i=n(24246),t=n(38355),l=n(34090),o=n(86677),r=n(27378),s=n(16134),d=n(40324),c=n(90980),_=n(77830),u=n(8411),p=n(51472),b=n(64781),F=n(32885),v=n(60325),m=n(34334),g=n(71922),h=n(98795),x=n(46420),f=n(25980),C=n(97181),y=n(7426),j=n(52955);let S=e=>{let{overridesEnabled:a}=e,n=(0,s.C)(j.dv),{data:l}=(0,j.LS)(n),o=(0,r.useMemo)(()=>{var e;return null!==(e=null==l?void 0:l.items.map(e=>({label:e.name,value:e.id})))&&void 0!==e?e:[]},[l]);return(0,i.jsx)(t.esZ,{title:a?(null==o?void 0:o.length)?void 0:"No TCF configurations found. Please create a TCF configuration in 'Consent settings' to select one.":"You must enable the Override vendor purposes setting in consent settings to select a TCF configuration.",children:(0,i.jsx)("div",{children:(0,i.jsx)(C.d,{name:"tcf_configuration_id",id:"tcf_configuration_id",label:"TCF Configuration",options:o,layout:"stacked",disabled:!(null==o?void 0:o.length)||!a,tooltip:'Select a TCF configuration. Configurations are defined in "Consent settings" and apply to TCF privacy experiences.',allowClear:!0})})})},A=[{label:"Banner and modal",value:x.re.BANNER_AND_MODAL},{label:"Modal",value:x.re.MODAL},{label:"Privacy center",value:x.re.PRIVACY_CENTER},{label:"Headless",value:x.re.HEADLESS}],k={label:"TCF overlay",value:x.re.TCF_OVERLAY},T=[{label:"Reject all",value:x.tb.REJECT_ALL},{label:"Reject consent only",value:x.tb.REJECT_CONSENT_ONLY}],N=[{label:"Banner and modal",value:x.Of.OPT_IN_OPT_OUT},{label:"Modal only",value:x.Of.OPT_IN_ONLY}],E=[{label:"Opt in/Opt out",value:x.Of.OPT_IN_OPT_OUT},{label:"Acknowledge",value:x.Of.ACKNOWLEDGE}],w="tcf_purposes_placeholder",R=e=>{let{buttonPanel:a,children:n}=e;return(0,i.jsxs)(t.kCb,{direction:"column",minH:"full",w:"25%",borderRight:"1px solid #DEE5EE",children:[(0,i.jsx)(t.kCb,{direction:"column",h:"full",overflowY:"auto",px:4,children:(0,i.jsx)(t.kCb,{direction:"column",gap:4,w:"full",pb:4,children:n})}),a]})},I=e=>{if(!e.privacy_notice_ids)return[w];let a=e.privacy_notice_ids;return a.includes(w)||a.push(w),a},O=e=>{var a,n,j,O,M,L,U,P;let{allPrivacyNotices:B,translationsEnabled:D,onSelectTranslation:q,onCreateTranslation:G}=e,V=(0,o.useRouter)(),Y=null===(n=(0,f.hz)())||void 0===n?void 0:null===(a=n.flags)||void 0===a?void 0:a.publisherRestrictions,K=(0,s.C)(F.Mx),{values:z,setFieldValue:Z,dirty:W,isValid:H,isSubmitting:J,initialValues:X,setValues:Q}=(0,l.u6)(),$=(0,s.C)(g.Zp),ee=(0,s.C)(g.G1);(0,g.J6)({page:$,size:ee});let{data:ea}=(0,y.tB)({api_set:!0}),en=(0,r.useMemo)(()=>{let e=[...B];return e.some(e=>e.id===w)||e.push({name:"TCF Purposes",id:w,notice_key:w,data_uses:[],consent_mechanism:x.J7.NOTICE_ONLY,disabled:!1}),e},[B]),ei=e=>{var a;let n=en.find(a=>a.id===e);return null!==(a=null==n?void 0:n.name)&&void 0!==a?a:e};(0,b.QM)();let et=(0,s.C)(b.P8),el=[...(0,v.TK)(et.locations),...(0,v.TK)(et.location_groups)],eo=(0,s.C)(m.fJ),er=(0,s.C)(h.Zp),es=(0,s.C)(h.G1);(0,h.gz)({page:er,size:es});let ed=(0,s.C)(h.YO),ec=(0,i.jsxs)("div",{className:"flex justify-between border-t border-[#DEE5EE] p-4",children:[(0,i.jsx)(t.wpx,{onClick:()=>V.push(_.w0),children:"Cancel"}),(0,i.jsx)(t.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",disabled:J||!W||!H,loading:J,children:"Save"})]});return(0,i.jsxs)(R,{buttonPanel:ec,children:[(0,i.jsx)(c.Z,{backPath:_.w0,mt:4}),(0,i.jsx)(t.X6q,{fontSize:"md",fontWeight:"semibold",children:"Configure experience"}),(0,i.jsx)(d.j0,{name:"name",id:"name",label:"Name (internal admin use only)",isRequired:!0,variant:"stacked"}),(0,i.jsx)(C.d,{name:"component",id:"component",options:(0,r.useMemo)(()=>{var e;return(null==K?void 0:null===(e=K.tcf)||void 0===e?void 0:e.enabled)?[A[0],k,...A.slice(1)]:A},[K]),label:"Experience type",layout:"stacked",disabled:!!X.component,onChange:e=>{if(!z.component)return;let a={tcf_configuration_id:void 0,layer1_button_options:void 0,show_layer1_notices:!1};if(e!==x.re.TCF_OVERLAY){var n;a.reject_all_mechanism=void 0,(null===(n=z.privacy_notice_ids)||void 0===n?void 0:n.includes(w))&&(a.privacy_notice_ids=z.privacy_notice_ids.filter(e=>e!==w))}else a.privacy_notice_ids=[w];switch(e){case x.re.PRIVACY_CENTER:case x.re.HEADLESS:a.dismissable=void 0,a.layer1_button_options=void 0,a.show_layer1_notices=void 0;break;case x.re.BANNER_AND_MODAL:a.layer1_button_options=x.Of.OPT_IN_OPT_OUT;break;case x.re.TCF_OVERLAY:a.layer1_button_options=x.Of.OPT_IN_OPT_OUT,a.reject_all_mechanism=x.tb.REJECT_ALL;break;case x.re.MODAL:a.layer1_button_options=void 0,a.show_layer1_notices=void 0}Q({...z,...a}),Z("component",e)},isRequired:!0}),(0,i.jsx)(t.UO1,{in:z.component===x.re.TCF_OVERLAY&&Y,animateOpacity:!0,children:z.component===x.re.TCF_OVERLAY&&Y&&(0,i.jsx)(S,{overridesEnabled:null==ea?void 0:null===(j=ea.consent)||void 0===j?void 0:j.override_vendor_purposes})}),(0,i.jsx)(t.UO1,{in:z.component===x.re.TCF_OVERLAY,animateOpacity:!0,children:z.component===x.re.TCF_OVERLAY&&(0,i.jsx)(C.d,{name:"reject_all_mechanism",id:"reject_all_mechanism",options:T,defaultValue:x.tb.REJECT_ALL,label:"Reject all behavior",layout:"stacked",tooltip:"Reject all: Blocks both consent and legitimate interest data processing across all purposes, features, and vendors. Reject consent-only: Blocks only consent-based processing, but allows legitimate interest processing to continue, requiring separate objection."})}),(0,i.jsx)(t.UO1,{in:z.component===x.re.BANNER_AND_MODAL||z.component===x.re.TCF_OVERLAY,animateOpacity:!0,children:(z.component===x.re.BANNER_AND_MODAL||z.component===x.re.TCF_OVERLAY)&&(0,i.jsx)(C.d,{name:"layer1_button_options",id:"layer1_button_options",defaultValue:x.Of.OPT_IN_OPT_OUT,options:z.component===x.re.TCF_OVERLAY?N:E,label:z.component===x.re.TCF_OVERLAY?"Reject all visibility":"Banner options",layout:"stacked"})}),(0,i.jsx)(t.UO1,{in:z.component!==x.re.PRIVACY_CENTER&&z.component!==x.re.HEADLESS,animateOpacity:!0,children:(0,i.jsx)(t.xuv,{p:"1px",children:(0,i.jsx)(d.w8,{name:"dismissable",id:"dismissable",label:"Allow user to dismiss",variant:"stacked"})})}),(0,i.jsx)(t.izJ,{}),(0,i.jsx)(t.X6q,{fontSize:"md",fontWeight:"semibold",children:"Privacy notices"}),z.component===x.re.TCF_OVERLAY?(0,i.jsx)(p.Z,{addButtonLabel:"Add privacy notice",allItems:en.map(e=>e.id),values:I(z),setValues:e=>Z("privacy_notice_ids",e),canDeleteItem:e=>e!==w,getTooltip:e=>{if(e===w)return"TCF Purposes are required by the framework and cannot be deleted."},getItemLabel:ei,draggable:!1,baseTestId:"privacy-notice"}):(0,i.jsx)(p.Z,{addButtonLabel:"Add privacy notice",allItems:(e=>{var a;let n=e.map(e=>{var a;return null===(a=e.children)||void 0===a?void 0:a.map(e=>e.id)}).flat();return null!==(a=B.filter(e=>!n.includes(e.id)))&&void 0!==a?a:[]})(B).map(e=>e.id),values:null!==(M=z.privacy_notice_ids)&&void 0!==M?M:[],setValues:e=>Z("privacy_notice_ids",e),getItemLabel:ei,draggable:!1,baseTestId:"privacy-notice"}),(0,i.jsx)(t.UO1,{in:z.component===x.re.BANNER_AND_MODAL&&!!(null===(O=z.privacy_notice_ids)||void 0===O?void 0:O.length),animateOpacity:!0,children:z.component===x.re.BANNER_AND_MODAL&&(0,i.jsx)(t.xuv,{p:"1px",children:(0,i.jsx)(d.w8,{name:"show_layer1_notices",id:"show_layer1_notices",label:"Add privacy notices to banner",variant:"stacked"})})}),(0,i.jsx)(t.izJ,{}),(0,i.jsx)(t.xvT,{as:"h2",fontWeight:"600",children:"Locations & Languages"}),(0,i.jsx)(p.Z,{label:"Locations for this experience",addButtonLabel:"Add location",allItems:el,values:null!==(L=z.regions)&&void 0!==L?L:[],setValues:e=>Z("regions",e),getItemLabel:e=>u.Z8[e],draggable:!0,baseTestId:"location"}),D?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.Z,{label:"Languages for this experience",addButtonLabel:"Add language",values:null!==(U=z.translations)&&void 0!==U?U:[],setValues:e=>Z("translations",e),idField:"language",canDeleteItem:e=>!e.is_default,allItems:eo.slice().sort((e,a)=>e.name.localeCompare(a.name)).map(e=>({language:e.id,is_default:!1})),getItemLabel:e=>{let a=eo.find(a=>a.id===e.language),n=a?a.name:e.language;return"".concat(n).concat(e.is_default?" (Default)":"")},createNewValue:e=>G(e.value),onEditItem:q,selectOnAdd:!0,draggable:!0,baseTestId:"language"}),(0,i.jsx)(d.w8,{name:"auto_detect_language",id:"auto_detect_language",label:"Auto detect language",variant:"stacked"})]}):(0,i.jsx)(t.wpx,{icon:(0,i.jsx)(t.mrv,{}),iconPosition:"end",onClick:()=>q(z.translations[0]),"data-testid":"edit-experience-btn",children:"Edit experience text"}),(0,i.jsx)(t.izJ,{}),(0,i.jsx)(t.X6q,{fontSize:"md",fontWeight:"semibold",children:"Properties"}),(0,i.jsx)(p.Z,{label:"Associated properties",addButtonLabel:"Add property",idField:"id",nameField:"name",allItems:ed.map(e=>({id:e.id,name:e.name})),values:null!==(P=z.properties)&&void 0!==P?P:[],setValues:e=>Z("properties",e),draggable:!0,maxHeight:100,baseTestId:"property"}),(0,i.jsx)(t.izJ,{}),(0,i.jsx)(d.w8,{name:"auto_subdomain_cookie_deletion",id:"auto_subdomain_cookie_deletion",label:"Automatically delete subdomain cookies",variant:"stacked",tooltip:"If enabled, automatically deletes cookies set on subdomains in addition to main domain where appropriate. Recommended to enable for full consent compliance."})]})}},16277:function(e,a,n){n.d(a,{f:function(){return v}});var i=n(24246),t=n(38355),l=n(34090),o=n(56141),r=n.n(o),s=n(27378),d=n(40324),c=n(87361),_=n(57899),u=n(90980),p=n(60325),b=n(5331),F=n(46420);let v=e=>{let{languageName:a}=e;return(0,i.jsx)(c.Z,{text:"This is a default translation provided by Fides. If you've modified the default English language text, these translations will not match, so verify any changes with a native ".concat(a," speaker before using."),"data-testid":"oob-translation-notice"})};a.Z=e=>{var a,n,o,c,m,g,h;let x,{translation:f,translationsEnabled:C,isOOB:y,onReturnToMainForm:j}=e,{values:S,setFieldValue:A,errors:k,touched:T,setTouched:N}=(0,l.u6)(),E=(0,s.useMemo)(()=>{let{name:e,...a}=f;return a},[f]),w=!!E.title&&!y,R=(0,p.y3)(S.component),I=S.translations.findIndex(e=>e.language===f.language),O=!r()(S.translations[I],E),{onOpen:M,isOpen:L,onClose:U}=(0,t.qY0)(),{onOpen:P,isOpen:B,onClose:D}=(0,t.qY0)(),q=()=>{O||y?M():j()},G=e=>{let a=S.translations.map((a,n)=>({...a,is_default:n===e}));a.unshift(a.splice(e,1)[0]),A("translations",a),j()},V=(0,i.jsxs)("div",{className:"flex justify-between border-t border-[#DEE5EE] p-4",children:[(0,i.jsx)(t.wpx,{onClick:q,"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(t.wpx,{onClick:()=>{S.translations[I].is_default&&!E.is_default?P():j()},type:"primary","data-testid":"save-btn",disabled:!O&&!y||!!k.translations,children:w?"Save":"Add translation"})]});return x=C?w?"You have unsaved changes to this translation. Discard changes?":"This translation has not been added to your experience. Discard translation?":"You have unsaved changes to this experience text. Discard changes?",(0,i.jsxs)(b.RN,{buttonPanel:V,children:[(0,i.jsx)(u.R,{onClick:q,mt:4}),(0,i.jsx)(_.Z,{isOpen:L,onClose:U,title:C?"Translation not saved":"Text not saved",message:(0,i.jsx)(t.xvT,{children:x}),confirmButtonText:"Discard",handleConfirm:()=>{let e=S.translations.slice();w?e[I]={...E,title:E.title,description:E.description}:e.splice(I,1),A("translations",e);let{translations:a,...n}=T;N({...n}),j()}}),(0,i.jsx)(t.X6q,{fontSize:"md",fontWeight:"semibold",children:C?"Edit ".concat(f.name," translation"):"Edit experience text"}),y?(0,i.jsx)(v,{languageName:f.name}):null,C&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.w8,{name:"translations.".concat(I,".is_default"),id:"translations.".concat(I,".is_default"),label:"Default language",isDisabled:!!E.is_default,variant:"stacked"}),(0,i.jsx)(_.Z,{isOpen:B,onClose:D,title:"Update default language",message:(0,i.jsx)(t.xvT,{children:"Are you sure you want to update the default language of this experience?"}),handleConfirm:()=>G(I)})]}),(0,i.jsx)(d.j0,{name:"translations.".concat(I,".title"),id:"translations.".concat(I,".title"),label:"Title",isRequired:!0,variant:"stacked"}),(0,i.jsx)(d.Ks,{name:"translations.".concat(I,".description"),id:"translations.".concat(I,".description"),label:"Description",isRequired:!0,variant:"stacked"}),(S.component===F.re.BANNER_AND_MODAL||S.component===F.re.TCF_OVERLAY)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.j0,{name:"translations.".concat(I,".banner_title"),id:"translations.".concat(I,".banner_title"),label:"Banner title (optional)",tooltip:"A separate title for the banner (defaults to main title)",variant:"stacked"}),(0,i.jsx)(d.Ks,{name:"translations.".concat(I,".banner_description"),id:"translations.".concat(I,".banner_description"),label:"Banner description (optional)",tooltip:"A separate description for the banner (defaults to main description)",variant:"stacked"})]}),S.component===F.re.TCF_OVERLAY&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".purpose_header"),id:"translations.".concat(I,".purpose_header"),label:"Purpose header (optional)",tooltip:"Appears above the Purpose list section of the TCF banner",variant:"stacked"}),(0,i.jsx)(d.j0,{name:"translations.".concat(I,".accept_button_label"),id:"translations.".concat(I,".accept_button_label"),label:'"Accept" button label',isRequired:!0,variant:"stacked"}),(0,i.jsx)(d.j0,{name:"translations.".concat(I,".reject_button_label"),id:"translations.".concat(I,".reject_button_label"),label:'"Reject" button label',isRequired:!0,variant:"stacked"}),(null===(a=R.privacy_preferences_link_label)||void 0===a?void 0:a.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".privacy_preferences_link_label"),id:"translations.".concat(I,".privacy_preferences_link_label"),label:'"Manage privacy preferences" button label',variant:"stacked",isRequired:null===(n=R.privacy_preferences_link_label)||void 0===n?void 0:n.required}),(null===(o=R.save_button_label)||void 0===o?void 0:o.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".save_button_label"),id:"translations.".concat(I,".save_button_label"),label:'"Save" button label',variant:"stacked",isRequired:R.save_button_label.required}),(null===(c=R.acknowledge_button_label)||void 0===c?void 0:c.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".acknowledge_button_label"),id:"translations.".concat(I,".acknowledge_button_label"),label:'"Acknowledge" button label',variant:"stacked",isRequired:R.acknowledge_button_label.required}),(null===(m=R.privacy_policy_link_label)||void 0===m?void 0:m.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".privacy_policy_link_label"),id:"translations.".concat(I,".privacy_policy_link_label"),label:"Privacy policy link label (optional)",variant:"stacked"}),(null===(g=R.privacy_policy_url)||void 0===g?void 0:g.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".privacy_policy_url"),id:"translations.".concat(I,".privacy_policy_url"),label:"Privacy policy link URL (optional)",variant:"stacked"}),(null===(h=R.modal_link_label)||void 0===h?void 0:h.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".modal_link_label"),id:"translations.".concat(I,".modal_link_label"),label:"Trigger link label (optional)",tooltip:"Include text here if you would like the Fides CMP to manage the copy of the button that is included on your site to open the CMP.",variant:"stacked"})]})}},60325:function(e,a,n){n.d(a,{DD:function(){return r},Go:function(){return s},TK:function(){return t},Uv:function(){return c},k1:function(){return l},y3:function(){return _}});var i=n(46420);let t=e=>{var a;return null!==(a=null==e?void 0:e.filter(e=>e.selected).map(e=>e.id))&&void 0!==a?a:[]},l=e=>{var a;return null!==(a=null==e?void 0:e.filter(e=>e.selected))&&void 0!==a?a:[]},o=[{language:i.eU.EN,is_default:!0,title:"Title",description:"Description",accept_button_label:"Accept",reject_button_label:"Reject",save_button_label:"Save",acknowledge_button_label:"OK",privacy_preferences_link_label:"Privacy Preferences"}],r={name:"",disabled:!1,dismissable:!0,allow_language_selection:!1,show_layer1_notices:!1,layer1_button_options:i.Of.OPT_IN_OPT_OUT,regions:[],translations:o,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0},s=(e,a)=>{let n=a.find(a=>a.id===e.language);return n?n.name:e.language},d=e=>{var a,n,i,t,l,o,r,s,d;let{language:c,is_default:_,accept_button_label:u,reject_button_label:p}=e;return{language:c,is_default:_,accept_button_label:u,reject_button_label:p,title:e.title,description:e.description,acknowledge_button_label:null!==(a=e.acknowledge_button_label)&&void 0!==a?a:void 0,banner_title:null!==(n=e.banner_title)&&void 0!==n?n:void 0,banner_description:null!==(i=e.banner_description)&&void 0!==i?i:void 0,purpose_header:null!==(t=e.purpose_header)&&void 0!==t?t:void 0,privacy_policy_link_label:null!==(l=e.privacy_policy_link_label)&&void 0!==l?l:void 0,privacy_policy_url:null!==(o=e.privacy_policy_url)&&void 0!==o?o:void 0,privacy_preferences_link_label:null!==(r=e.privacy_preferences_link_label)&&void 0!==r?r:void 0,save_button_label:null!==(s=e.save_button_label)&&void 0!==s?s:void 0,modal_link_label:null!==(d=e.modal_link_label)&&void 0!==d?d:void 0}},c=e=>{let{created_at:a,updated_at:n,privacy_notices:i,origin:t,id:l,...o}=e;return{...o,privacy_notice_ids:i?i.map(e=>e.id):[],translations:e.translations?e.translations.map(e=>d(e)):[]}},_=e=>e===i.re.PRIVACY_CENTER?{title:{included:!0,required:!0},description:{included:!0,required:!0},save_button_label:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},modal_link_label:{included:!0}}:e===i.re.MODAL?{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0},modal_link_label:{included:!0}}:e===i.re.BANNER_AND_MODAL?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:e===i.re.TCF_OVERLAY?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},purpose_header:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6662],{18225:function(e,t,s){"use strict";var i=s(24246),n=s(38355);t.Z=e=>{let{alignment:t="center",...s}=e;return(0,i.jsx)(n.kCb,{boxSize:"full",align:"center",justify:t,children:(0,i.jsx)(n.$jN,{color:"primary",...s})})}},77213:function(e,t,s){"use strict";s.d(t,{Z:function(){return h}});var i=s(24246),n=s(38355),a=s(88038),r=s.n(a),o=s(86677);s(27378);var c=s(25980),l=s(90867),d=s(77830),u=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(n.xuv,{children:[(0,i.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(n.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,i.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:s,padded:a=!0,mainProps:d}=e,h=(0,c.hz)(),m=(0,o.useRouter)(),x="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,p=!(h.flags.privacyRequestsConfiguration&&x),{data:j}=(0,l.JE)(void 0,{skip:p}),{data:g}=(0,l.PW)(void 0,{skip:p}),y=h.flags.privacyRequestsConfiguration&&(!j||!g)&&x;return(0,i.jsxs)(n.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[y?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,s){"use strict";var i=s(24246),n=s(38355),a=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:o,rightContent:c,style:l,...d}=e;return(0,i.jsxs)("div",{...d,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...l}:{paddingBottom:"24px",...l},children:[(0,i.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(n.lQT,{className:s||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,c&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!s&&(0,i.jsx)(a.m,{className:o?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),o]})}},79789:function(e,t,s){"use strict";s.d(t,{Hn:function(){return o},XU:function(){return r},Z5:function(){return c},aG:function(){return u},cB:function(){return a},hX:function(){return d},vQ:function(){return l}});var i=s(24246),n=s(38355);let a=e=>{let{text:t,...s}=e;return(0,i.jsx)(n.X6q,{fontSize:"sm",mt:4,mb:1,...s,children:t})},r=e=>{let{children:t}=e;return(0,i.jsx)(n.xvT,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t,href:s}=e;return(0,i.jsx)(n.rUS,{href:s,textDecoration:"underline",isExternal:!0,children:t})},c=e=>{let{children:t}=e;return(0,i.jsx)(n.QI$,{fontSize:"14px",mb:4,children:t})},l=e=>{let{children:t}=e;return(0,i.jsx)(n.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},d=e=>{let{children:t}=e;return(0,i.jsx)(n.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,i.jsxs)(n.iA_,{fontSize:"14px",children:[(0,i.jsx)(n.hrZ,{children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"Permission"}),(0,i.jsx)(n.Th,{children:"Description"})]})}),(0,i.jsx)(n.p3B,{children:t.map(e=>(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.Vp9,{children:e.permission})}),(0,i.jsx)(n.Td,{children:e.description})]},e.permission))})]})}},12627:function(e,t,s){"use strict";var i=s(24246),n=s(79283),a=s(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:s=!1,...r}=e,{getDataCategoryDisplayNameProps:o,getDataCategories:c}=(0,a.Z)(),l=(s?c():c().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:s}=o(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,i.jsx)(n.l,{options:l,...r})}},79283:function(e,t,s){"use strict";s.d(t,{l:function(){return c}});var i=s(24246),n=s(38355),a=s(72707),r=s.n(a);let o=e=>{let{data:t}=e;return(0,i.jsxs)(n.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,i.jsx)("em",{children:t.description})]})},c=e=>{let{options:t,...s}=e,a=null==t?void 0:t.map(e=>({...e,className:r().option}));return(0,i.jsx)(n.WPr,{options:a,autoFocus:!0,variant:"borderless",optionRender:o,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...s})}},97181:function(e,t,s){"use strict";s.d(t,{d:function(){return l}});var i=s(24246),n=s(38355),a=s(34090),r=s(27378),o=s(46238),c=s(40324);let l=e=>{let{name:t,label:s,labelProps:l,tooltip:d,isRequired:u,layout:h="inline",helperText:m,...x}=e,[p,j,{setValue:g}]=(0,a.U$)(t),y=!!(j.touched&&j.error),[v,f]=(0,r.useState)("");p.value||"tags"!==x.mode&&"multiple"!==x.mode||(p.value=[]),"tags"===x.mode&&"string"==typeof p.value&&(p.value=[p.value]);let C="tags"===x.mode?(e,t)=>e?e.value!==v||p.value.includes(v)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(v,'"'):void 0:x.optionRender||void 0,S=e=>{f(e),x.onSearch&&x.onSearch(e)},A=(e,t)=>{g(e),x.onChange&&x.onChange(e,t)};return"inline"===h?(0,i.jsx)(n.NIc,{isInvalid:y,isRequired:u,children:(0,i.jsxs)(n.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,i.jsx)(c.__,{htmlFor:x.id||t,...l,children:s}):null,(0,i.jsxs)(n.jqI,{align:"center",children:[(0,i.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(n.WPr,{...p,id:x.id||t,"data-testid":"controlled-select-".concat(p.name),...x,optionRender:C,onSearch:"tags"===x.mode?S:void 0,onChange:A,value:p.value||void 0,status:y?"error":void 0}),m&&(0,i.jsx)(n.Q6r,{children:m}),(0,i.jsx)(c.Bc,{isInvalid:y,message:j.error,fieldName:p.name})]}),(0,i.jsx)(o.b,{label:d,className:y?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(n.NIc,{isInvalid:y,isRequired:u,children:(0,i.jsxs)(n.gCW,{alignItems:"start",children:[(0,i.jsxs)(n.jqI,{align:"center",children:[s?(0,i.jsx)(c.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...l,children:s}):null,(0,i.jsx)(o.b,{label:d})]}),(0,i.jsx)(n.WPr,{...p,id:x.id||t,"data-testid":"controlled-select-".concat(p.name),...x,optionRender:C,onSearch:"tags"===x.mode?S:void 0,onChange:A,value:p.value||void 0,status:y?"error":void 0}),m&&(0,i.jsx)(n.Q6r,{style:{marginTop:0},children:m}),(0,i.jsx)(c.Bc,{isInvalid:y,message:j.error,fieldName:p.name})]})})}},71248:function(e,t,s){"use strict";s.d(t,{A:function(){return c}});var i=s(24246),n=s(34090),a=s(46782),r=s(97181),o=s(40324);let c=e=>{var t,s;let{name:c,fieldSchema:l,isRequired:d,layout:u="stacked",secretsSchema:h,validate:m}=e,x=(null===(s=l.allOf)||void 0===s?void 0:null===(t=s[0])||void 0===t?void 0:t.$ref)&&l.allOf[0].$ref!==a.j?null==h?void 0:h.definitions[l.allOf[0].$ref.replace("#/definitions/","")]:void 0,p=!!(null==x?void 0:x.enum)||l.options,j="boolean"===l.type,g="integer"===l.type,y=()=>{var e;if((null===(e=l.allOf)||void 0===e?void 0:e[0].$ref)===a.j)return"Enter dataset.collection.field"};return(0,i.jsx)(n.gN,{id:c,name:c,validate:m,children:e=>{let{field:t}=e;if(p){var s,n,a;let e=null!==(a=null==x?void 0:null===(s=x.enum)||void 0===s?void 0:s.map(e=>({label:e,value:e})))&&void 0!==a?a:null===(n=l.options)||void 0===n?void 0:n.map(e=>({label:e,value:e}));return(0,i.jsx)(r.d,{name:t.name,id:t.name,label:l.title,isRequired:d,tooltip:l.description,layout:u,options:e,mode:l.multiselect?"multiple":void 0},t.name)}return j?(0,i.jsx)(r.d,{name:t.name,id:t.name,label:l.title,isRequired:d,tooltip:l.description,layout:u,options:[{label:"False",value:"false"},{label:"True",value:"true"}]},t.name):g?(0,i.jsx)(o.aJ,{...t,label:l.title,tooltip:l.description,isRequired:d,placeholder:y(),variant:u}):(0,i.jsx)(o.j0,{...t,label:l.title,tooltip:l.description,isRequired:d,type:l.sensitive?"password":"text",placeholder:y(),autoComplete:"off",color:"gray.700",variant:u})}},c)}},46782:function(e,t,s){"use strict";s.d(t,{j:function(){return a},l:function(){return r}});var i=s(30454),n=s.n(i);let a="#/definitions/FidesDatasetReference",r=e=>{let t=(e,t,s)=>{let i;return(void 0===t||""===t||void 0===t)&&(i="".concat(e," is required")),s===a&&((null==t?void 0:t.includes("."))?t.split(".").length<3&&(i="Dataset reference must include at least three parts"):i="Dataset reference must be dot delimited"),i},s=t=>{var s,i;return(null==e?void 0:null===(s=e.required)||void 0===s?void 0:s.includes(t))||(null==e?void 0:null===(i=e.properties)||void 0===i?void 0:i[t])!==void 0&&"default"in e.properties[t]};return{validateField:t,isRequiredField:s,getFieldValidation:(e,i)=>{if(s(e)||"integer"===i.type)return e=>{var s;return t(i.title,e,null===(s=i.allOf)||void 0===s?void 0:s[0].$ref)}},preprocessValues:t=>{let s=n()(t);return e&&Object.keys(e.properties).forEach(t=>{var i,n;if((null===(i=e.properties[t].allOf)||void 0===i?void 0:i[0].$ref)===a){let e=null===(n=s.secrets[t])||void 0===n?void 0:n.split(".");e&&(s.secrets[t]={dataset:e.shift(),field:e.join("."),direction:"from"})}"WebsiteSchema"!==e.title||"URL"!==e.properties[t].title||s.secrets[t].startsWith("http://")||s.secrets[t].startsWith("https://")||(s.secrets[t]="https://".concat(s.secrets[t]))}),s}}}},14047:function(e,t,s){"use strict";s.d(t,{H:function(){return a},V:function(){return i.V}});var i=s(84306),n=s(812);let a=()=>{let{errorAlert:e}=(0,i.V)();return{handleError:t=>{let s="An unexpected error occurred. Please try again.";(0,n.Ot)(t)?s=t.data.detail:(0,n.tB)(t)&&(s=t.data.detail[0].msg),e(s)}}}},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return a}});var i=s(24246),n=s(38355);let a=()=>{let e=(0,n.pmc)();return{errorAlert:(t,s,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,i.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(n.zMQ,{}),(0,i.jsxs)(n.xuv,{children:[s&&(0,i.jsx)(n.CdC,{children:s}),(0,i.jsx)(n.XaZ,{children:t})]}),(0,i.jsx)(n.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)},successAlert:(t,s,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,i.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(n.zMQ,{}),(0,i.jsxs)(n.xuv,{children:[s&&(0,i.jsx)(n.CdC,{children:s}),(0,i.jsx)(n.XaZ,{children:t})]}),(0,i.jsx)(n.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)}}}},34929:function(e,t,s){"use strict";var i=s(24246),n=s(64925),a=s.n(n),r=s(27378),o=s(16134),c=s(30002),l=s(28079),d=s(57072);let u=()=>{let{isLoading:e}=(0,l.fd)(),t=(0,o.C)(l.U3),{isLoading:s}=(0,d.MO)(),i=(0,o.C)(d.qb),{isLoading:n}=(0,c.te)();return{dataUses:t,dataSubjects:(0,o.C)(c.ZL),dataCategories:i,isLoading:e||s||n}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:s,isLoading:n}=u(),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},c=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=t(e);if(!i)return{};let n=t(o(e,s)),a=!!i.parent_key;return{name:i.name||void 0,primaryName:a&&(null==n?void 0:n.name)!==i.name&&(null==n?void 0:n.name)||void 0}},l=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:n,primaryName:a}=c(e,t,s);return n?a?(0,i.jsxs)(r.Fragment,{children:[(0,i.jsxs)("strong",{children:[a,":"]})," ",n]},e):(0,i.jsx)("strong",{children:n},e):e},d=t=>a()(e,{fides_key:t}),h=e=>a()(t,{fides_key:e}),m=e=>a()(s,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>l(e,d,1),getDataUseDisplayNameProps:e=>c(e,d,1),getDataCategories:()=>t,getDataCategoryByKey:h,getDataCategoryDisplayName:e=>l(e,h,2),getDataCategoryDisplayNameProps:e=>c(e,h,2),getDataSubjects:()=>s,getDataSubjectByKey:m,getDataSubjectDisplayName:e=>{let t=m(e);return t?t.name:e},getPrimaryKey:o,isLoading:n}}},8133:function(e,t,s){"use strict";var i=s(24246),n=s(38355);t.Z=e=>{let{title:t,children:s,isOpen:a,onClose:r,showCloseButton:o=!1,modalContentProps:c,footer:l,...d}=e;return(0,i.jsxs)(n.u_l,{isOpen:a,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...d,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...c,children:[o&&(0,i.jsx)(n.olH,{}),(0,i.jsx)(n.xBx,{p:0,children:(0,i.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,i.jsx)(n.X6q,{as:"h3",size:"sm",children:t})})}),(0,i.jsx)(n.fef,{pb:4,overflow:"auto",children:s}),l&&(0,i.jsx)(n.mzw,{children:l})]})]})}},90980:function(e,t,s){"use strict";s.d(t,{R:function(){return c}});var i=s(24246),n=s(38355),a=s(79894),r=s.n(a),o=s(63662);let c=e=>{let{onClick:t,...s}=e;return(0,i.jsxs)(n.kCb,{alignItems:"center",mt:-4,mb:3,onClick:t,cursor:"pointer",...s,children:[(0,i.jsx)(n.wpx,{"aria-label":"Back",icon:(0,i.jsx)(n.Rpv,{}),className:"mr-2",size:"small"}),(0,i.jsx)(n.xvT,{as:"a",fontSize:"sm",fontWeight:"500",children:"Back"})]})};t.Z=e=>{let{backPath:t,...s}=e,a=(0,o.useRouter)();return(0,i.jsxs)(n.kCb,{alignItems:"center",mb:6,...s,children:[(0,i.jsx)(n.wpx,{onClick:()=>a.push(t),"aria-label":"Back",icon:(0,i.jsx)(n.Rpv,{}),className:"mr-2",size:"small"}),(0,i.jsx)(n.xvT,{as:r(),href:t,fontSize:"sm",fontWeight:"500",children:"Back"})]})}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return l}});var i=s(24246),n=s(38355),a=s(79894),r=s.n(a),o=s(27378);let{Text:c}=n.AntTypography,l=e=>{let{items:t,...s}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let a=s===t.length-1,o={...e},l=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(c,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:o.title})),l)?o.title=(0,i.jsx)(n.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(n.zrq,{items:a,...s})}},41337:function(e,t,s){"use strict";var i=s(24246),n=s(38355);s(27378);var a=s(88337),r=s(16394),o=s(14746);let c=o.Ny+o.iW.get(a.R.WEBSITE),l=e=>void 0!==e.connection_type,d=e=>void 0!==e.encoded_icon,u=e=>(null==e?void 0:e.connection_type)===a.R.WEBSITE,h=e=>(null==e?void 0:e.connection_type)===a.R.SAAS;t.Z=e=>{let{data:t,...s}=e;return(0,i.jsx)(n.Eep,{boxSize:"32px",objectFit:"cover",src:(()=>{var e,s;let i;if(d(t)&&t.encoded_icon)return"data:image/svg+xml;base64,".concat(t.encoded_icon);if(u(t)){let s=null===(e=t.secrets)||void 0===e?void 0:e.url;if(!s)return c;let i=(0,r.ge)(s);return(0,r.tl)(i,100)}if(l(t)){if(h(t)&&(null===(s=t.saas_config)||void 0===s?void 0:s.type)){let e=t.saas_config.type,s=o.LN.get(e);return s?o.Ny+s:o.Ny+o.iW.get(a.R.SAAS)}i=[...o.iW].find(e=>{let[s]=e;return t.connection_type.toString()===s.toString()})}else if(d(t)){let{identifier:e}=t;i=[...o.iW].find(t=>{let[s]=t;return s.toLowerCase()===e.toLowerCase()})}return i?o.Ny+i[1]:o.VD})(),fallbackSrc:u(t)?c:o.VD,alt:(()=>{if(l(t)){var e;return null!==(e=t.name)&&void 0!==e?e:t.key}return d(t)?t.human_readable:t})(),...s})}},15872:function(e,t,s){"use strict";var i=s(24246),n=s(38355),a=s(86677);s(27378);var r=s(77830),o=s(14207);t.Z=e=>{let{connection_key:t,showMenu:s}=e,{isOpen:c,onOpen:l,onClose:d}=(0,n.qY0)(),[u,h]=(0,o.R5)(),m=(0,a.useRouter)(),x=()=>{h.isLoading||d()};return(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)(n.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:l,children:(0,i.jsx)(n.xvT,{fontSize:"sm",children:"Delete"})}),!s&&(0,i.jsx)(n.wpx,{onClick:l,children:"Delete integration"}),(0,i.jsxs)(n.u_l,{isCentered:!0,isOpen:c,onClose:x,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{children:[(0,i.jsx)(n.xBx,{children:"Delete integration"}),(0,i.jsx)(n.olH,{}),(0,i.jsx)(n.fef,{pb:6,children:(0,i.jsx)(n.Kqy,{direction:"column",spacing:"15px",children:(0,i.jsx)(n.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:"Deleting an integration may impact any privacy request that is currently in progress. Do you wish to proceed?"})})}),(0,i.jsxs)(n.mzw,{className:"flex gap-4",children:[(0,i.jsx)(n.wpx,{onClick:x,className:"w-1/2",children:"Cancel"}),(0,i.jsx)(n.wpx,{onClick:()=>{t&&(u(t),s||m.push(r.KH))},loading:h.isLoading,type:"primary",className:"w-1/2",children:"Delete integration"})]})]})]})]})}},19812:function(e,t,s){"use strict";s.d(t,{t:function(){return o}});var i=s(14047),n=s(14207),a=s(27378),r=s(41966);let o=e=>{var t,s,o;let{connectionConfig:c}=e,[l]=(0,n.S6)(),{data:d}=(0,n.Eg)(null!==(s=null==c?void 0:c.key)&&void 0!==s?s:""),u=null!==(o=null==d?void 0:null===(t=d.items)||void 0===t?void 0:t.map(e=>e.fides_key))&&void 0!==o?o:[],h=u.map(e=>({label:e,value:e})),{data:m}=(0,r.LH)({onlyUnlinkedDatasets:!0}),x=(0,a.useMemo)(()=>{var e;return null!==(e=null==m?void 0:m.map(e=>({value:e.fides_key,label:"".concat(e.name," (").concat(e.fides_key,")")||0})))&&void 0!==e?e:[]},[m]),{errorAlert:p,successAlert:j}=(0,i.V)();return{dropdownOptions:[...h,...x],initialDatasets:u,patchConnectionDatasetConfig:async function(e,t){var s,i,n;let{showSuccessAlert:a=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null!==(n=null===(s=e.dataset)||void 0===s?void 0:s.map(e=>({fides_key:e,ctl_dataset_fides_key:e})))&&void 0!==n?n:[],o=await l({connection_key:t,dataset_pairs:r}).unwrap();(null===(i=o.failed)||void 0===i?void 0:i.length)>0?p(o.failed[0].message):a&&j("Dataset successfully updated!")}}}},33335:function(e,t,s){"use strict";s.d(t,{E:function(){return i}});let i=e=>e.toLowerCase().replace(/[ .]/g,"_").replace(/[^a-zA-Z0-9_<>-]/g,"")},45216:function(e,t,s){"use strict";var i=s(38355),n=s(812),a=s(16394),r=s(14207);t.Z=e=>{let[t,{data:s,fulfilledTimeStamp:o,isLoading:c,isFetching:l}]=(0,r.h2)(),d=(0,i.pmc)();return{testConnection:async()=>{var s,i,a,r;if(!e)return;let o=await t(e.key);if(o.isError)d({status:"error",description:(0,n.e$)(o.error,"Unable to test connection. Please try again.")});else if((null===(s=o.data)||void 0===s?void 0:s.test_status)==="succeeded")d({status:"success",description:"Connected successfully"});else if((null===(i=o.data)||void 0===i?void 0:i.test_status)==="failed"){let e="Connection test failed.";(null===(a=o.data)||void 0===a?void 0:a.failure_reason)&&(e+=" ".concat(null===(r=o.data)||void 0===r?void 0:r.failure_reason)),d({status:"warning",description:e})}},isLoading:c||l,testData:{timestamp:o?(0,a.p6)(o):null==e?void 0:e.last_test_timestamp,succeeded:s?"succeeded"===s.test_status:!!(null==e?void 0:e.last_test_succeeded),authorized:!!(null==e?void 0:e.authorized),connectionKey:null==e?void 0:e.key}}}},41553:function(e,t,s){"use strict";var i=s(24246),n=s(38355),a=s(16394);t.Z=e=>{let{testData:t,connectionOption:s}=e;if((null==s?void 0:s.authorization_required)&&!t.authorized)return(0,i.jsx)(n.kCb,{align:"center","data-testid":"connection-status",children:(0,i.jsx)(n.xvT,{color:"error-text.900",children:"Authorization required"})});if(!t.timestamp)return(0,i.jsx)(n.xvT,{"data-testid":"connection-status",children:"Connection not tested"});let r=(0,a.p6)(t.timestamp);return t.succeeded?(0,i.jsxs)(n.kCb,{color:"success-text.900",align:"center","data-testid":"connection-status",children:[(0,i.jsx)(n.rE2,{mr:2,boxSize:4}),(0,i.jsxs)(n.xvT,{children:["Last connected ",r]})]}):(0,i.jsxs)(n.kCb,{color:"error-text.900",align:"center","data-testid":"connection-status",children:[(0,i.jsx)(n.iid,{mr:2,boxSize:4}),(0,i.jsxs)(n.xvT,{children:["Last connection failed ",r]})]})}},75595:function(e,t,s){"use strict";var i=s(24246),n=s(38355),a=s(41337),r=s(15872),o=s(45216),c=s(52352),l=s(41553),d=s(93633),u=s(80388),h=s(64176);t.Z=e=>{var t,s;let{integration:m,showTestNotice:x,otherButtons:p,showDeleteButton:j,configureButtonLabel:g="Configure",onConfigureClick:y}=e,{testConnection:v,isLoading:f,testData:C}=(0,o.Z)(m),S=(0,c.ZP)(null==m?void 0:m.connection_type,null==m?void 0:null===(t=m.saas_config)||void 0===t?void 0:t.type),A=null==m?void 0:null===(s=m.saas_config)||void 0===s?void 0:s.type,b=(0,h.Z)(null==m?void 0:m.connection_type,A&&Object.values(u.m).includes(A)?A:void 0),{handleAuthorize:D,needsAuthorization:R}=(0,d.z)({connection:m,connectionOption:b,testData:C});return(0,i.jsxs)(n.xuv,{borderWidth:1,borderColor:"gray.200",borderRadius:"lg",overflow:"hidden",padding:"12px",marginBottom:"24px","data-testid":"integration-info-".concat(null==m?void 0:m.key),children:[(0,i.jsxs)(n.kCb,{children:[(0,i.jsx)(a.Z,{data:null!=m?m:"",boxSize:"50px"}),(0,i.jsxs)(n.kCb,{direction:"column",flexGrow:1,marginLeft:"16px",children:[(0,i.jsx)(n.xvT,{color:"gray.700",fontWeight:"semibold",children:(null==m?void 0:m.name)||"(No name)"}),x?(0,i.jsx)(l.Z,{testData:C,connectionOption:b}):(0,i.jsx)(n.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"semibold",mt:1,children:S.category})]}),(0,i.jsxs)("div",{className:"flex gap-4",children:[j&&m&&(0,i.jsx)(r.Z,{showMenu:!1,connection_key:m.key}),x&&R&&(0,i.jsx)(n.wpx,{onClick:D,"data-testid":"authorize-integration-btn",children:"Authorize integration"}),x&&!R&&(0,i.jsx)(n.wpx,{onClick:v,loading:f,"data-testid":"test-connection-btn",children:"Test connection"}),p,y&&(0,i.jsx)(n.wpx,{onClick:y,"data-testid":"configure-btn",children:g})]})]}),(0,i.jsx)(n.Eq9,{marginTop:"16px",children:S.tags.map(e=>(0,i.jsx)(n.j8w,{children:e},e))})]})}},29379:function(e,t,s){"use strict";var i,n;s.d(t,{j:function(){return i}}),(n=i||(i={})).DATA_DISCOVERY="data_discovery",n.DATA_SYNC="data_sync",n.TASKS="tasks",n.WITHOUT_CONNECTION="without_connection"},40774:function(e,t,s){"use strict";s.d(t,{Z:function(){return S}});var i,n,a=s(24246),r=s(38355),o=s(27378),c=s(15412),l=s(46381),d=s(12627),u=s(812),h=s(46238),m=s(90980),x=s(46628),p=s(11013),j=s(31883);let g={rules:[{regex:void 0,dataCategory:void 0}]};var y=e=>{var t,s,i;let{config:n,onBackClick:o}=e,[y]=r.PPS.useForm(),v=(0,r.pmc)(),[f,{isLoading:C}]=(0,p.$y)(),[S,{isLoading:A}]=(0,p.ww)(),b=e=>({name:e.name,description:e.description,classify_params:{context_regex_pattern_mapping:e.rules.map(e=>{let{regex:t,dataCategory:s}=e;return[t,s]})}}),D=(e,t)=>{(0,j.D4)(e)?v((0,x.Vo)((0,u.e$)(e.error,"A problem occurred"))):(v((0,x.t5)(t?"Monitor config created successfully":"Monitor config updated successfully")),o())},R=async e=>{let t=b(e);D(n?await S({...t,id:n.id}):await f(t),!n)},w=e=>{let{file:t}=e;if(!t)return;let s=new FileReader;s.onload=e=>{try{var t;let s=null===(t=e.target)||void 0===t?void 0:t.result,{data:i}=(0,l.parse)(s,{skipEmptyLines:!0,header:!1}),n=i.map(e=>{let[t,s]=e;return{regex:t,dataCategory:s}});y.setFieldValue("rules",n),v((0,x.t5)("CSV patterns imported successfully"))}catch(e){v((0,x.Vo)("Failed to parse CSV file"))}},s.readAsText(t)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.R,{onClick:o,className:"pt-3"}),(0,a.jsx)(c.ZT.Title,{level:2,children:n?"Edit ".concat(n.name):"Create new configuration"}),(0,a.jsx)(c.ZT.Paragraph,{className:"mt-2",children:'Match regular expressions to data categories to customize classification. Use the "shared monitor configuration" field when editing monitors to apply this configuration.'}),(0,a.jsxs)(r.PPS,{name:"monitor-template",layout:"vertical",form:y,onFinish:R,className:"mt-4",initialValues:n?{...n,rules:null!==(i=null==n?void 0:null===(s=n.classify_params)||void 0===s?void 0:null===(t=s.context_regex_pattern_mapping)||void 0===t?void 0:t.map(e=>{let[t,s]=e;return{regex:t,dataCategory:s}}))&&void 0!==i?i:[]}:g,validateTrigger:["onBlur","onChange"],children:[(0,a.jsx)(r.bue,{children:(0,a.jsxs)(r.JGx,{span:24,children:[(0,a.jsx)(r.PPS.Item,{label:"Configuration name",name:"name",rules:[{required:!0,message:"Config name is required"}],"data-testid":"form-item-name",children:(0,a.jsx)(r.uFc,{autoFocus:!0,"data-testid":"input-name"})}),(0,a.jsx)(r.PPS.Item,{label:"Description",name:"description","data-testid":"form-item-description",children:(0,a.jsx)(r.uFc.TextArea,{"data-testid":"input-description"})})]})}),(0,a.jsx)(r.PPS.List,{name:"rules",rules:[{validator:(e,t)=>0===t.length?Promise.reject(Error("Please input at least one pattern")):Promise.resolve()}],children:(e,t,s)=>{let{add:i,remove:l}=t,{errors:u}=s;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.jqI,{justify:"space-between",children:[(0,a.jsx)(c.ZT.Title,{level:3,className:"pb-5",children:"Regex patterns"}),!n&&(0,a.jsxs)(r.jqI,{gap:8,align:"center",children:[(0,a.jsx)(h.b,{label:"Upload a CSV to map regex patterns to data categories. Format: regex,data_category",placement:"left"}),(0,a.jsx)(r.pMK,{accept:".csv",showUploadList:!1,beforeUpload:()=>!1,onChange:w,children:(0,a.jsx)(r.wpx,{icon:(0,a.jsx)(r.PJP.gqx,{}),iconPosition:"end",size:"small","data-testid":"upload-csv-btn",children:"Upload CSV"})})]})]}),e.map((t,s)=>{let{key:n,name:o,...c}=t;return(0,a.jsxs)(r.bue,{align:"middle",children:[(0,a.jsx)(r.JGx,{span:11,children:(0,a.jsx)(r.PPS.Item,{label:"On match",...c,name:[o,"regex"],rules:[{required:!0,message:"Regex is required"}],"data-testid":"form-item-rules.".concat(o,".regex"),children:(0,a.jsx)(r.uFc,{placeholder:"Enter a regular expression","data-testid":"input-rules.".concat(o,".regex")})})}),(0,a.jsx)(r.JGx,{span:1,className:"flex justify-center pt-[5px]",children:"->"}),(0,a.jsx)(r.JGx,{span:11,className:"pr-2",children:(0,a.jsx)(r.PPS.Item,{label:"Assign",...c,name:[o,"dataCategory"],rules:[{required:!0,message:"Data category is required"}],"data-testid":"form-item-rules.".concat(o,".dataCategory"),children:(0,a.jsx)(d.Z,{selectedTaxonomies:[],variant:"outlined",placeholder:"Select a data category",autoFocus:!1,allowClear:!0,"data-testid":"input-rules.".concat(o,".dataCategory")})})}),(0,a.jsx)(r.JGx,{span:1,className:"mt-[7.25px]",children:s===e.length-1?(0,a.jsx)(r.wpx,{onClick:()=>i(),icon:(0,a.jsx)(r.PJP.mm_,{}),"aria-label":"Add new rule","data-testid":"add-rule-btn"}):(0,a.jsx)(r.wpx,{onClick:()=>l(o),icon:(0,a.jsx)(r.PJP.ZNm,{}),"aria-label":"Remove rule","data-testid":"remove-rule-".concat(o)})})]},n)}),(0,a.jsx)(r.PPS.ErrorList,{errors:u}),(0,a.jsx)(r.PPS.Item,{label:null,className:"mb-0",children:(0,a.jsxs)(r.jqI,{justify:"end",gap:8,children:[(0,a.jsx)(r.wpx,{onClick:o,children:"Cancel"}),(0,a.jsx)(r.wpx,{type:"primary",htmlType:"submit",loading:C||A,"data-testid":"save-btn",children:"Save"})]})})]})}})]})]})},v=s(85422),f=e=>{let{onEditClick:t}=e,[s]=(0,p.m5)(),i=(0,r.pmc)(),n=async e=>{let t=await s({id:e});(0,j.D4)(t)?i((0,x.Vo)((0,u.e$)(t.error,"A problem occurred deleting this config"))):i((0,x.t5)("Monitor config deleted successfully"))};return[{title:"Name",dataIndex:"name",key:"name"},{title:"Description",dataIndex:"description",key:"description"},{title:"Actions",key:"actions",render:(e,s)=>(0,a.jsxs)(r.jqI,{className:"gap-2",children:[(0,a.jsx)(r.wpx,{size:"small",onClick:()=>t(s),icon:(0,a.jsx)(r.PJP.I8b,{}),"data-testid":"edit-btn"}),(0,a.jsx)(r.wpx,{size:"small",onClick:()=>n(s.id),icon:(0,a.jsx)(r.PJP.ZNm,{})})]})}]},C=e=>{let{onNewClick:t,onRowClick:s}=e,{onPreviousPageClick:i,isPreviousPageDisabled:n,onNextPageClick:o,isNextPageDisabled:l,pageSize:d,setPageSize:u,PAGE_SIZES:h,startRange:m,endRange:x,pageIndex:j}=(0,v.oi)(),{data:g,isLoading:y,isFetching:C}=(0,p.eV)({page:j,size:d}),S=f({onEditClick:s});return y||C?(0,a.jsx)(r.ZJQ,{size:"large",className:"flex h-full items-center justify-center"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.ZT.Title,{level:2,children:"Shared monitor configurations"}),(0,a.jsx)(c.ZT.Paragraph,{className:"mb-2 mt-4",children:"Shared monitor configurations can be applied to monitors to customize classification."}),(0,a.jsx)(r.wpx,{type:"primary",onClick:t,"data-testid":"create-new-btn",className:"mb-3",children:"Create new"}),(0,a.jsx)(r.V5H,{columns:S,dataSource:null==g?void 0:g.items,pagination:!1,onRow:e=>({"data-testid":"config-".concat(e.id)}),locale:{emptyText:(0,a.jsx)(c.ZT.Paragraph,{className:"py-8",children:"No shared monitor configs found"})}}),(0,a.jsx)(r.jqI,{justify:"space-between",className:"mt-4",children:(0,a.jsx)(v.s8,{totalRows:(null==g?void 0:g.total)||0,pageSizes:h,setPageSize:u,onPreviousPageClick:i,isPreviousPageDisabled:n,onNextPageClick:o,isNextPageDisabled:l,startRange:m,endRange:x})})]})};(i=n||(n={})).MAIN_VIEW="main",i.FORM_VIEW="form";var S=()=>{let[e,t]=(0,o.useState)(!1),[s,i]=(0,o.useState)(void 0),[n,c]=(0,o.useState)("main"),l=()=>{c("main"),i(void 0)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.wpx,{icon:(0,a.jsx)(r.PJP.Zrf,{}),iconPosition:"end",onClick:()=>t(!0),"data-testid":"configurations-btn",children:"Shared configs"}),(0,a.jsxs)(r.$zI,{open:e,onCancel:()=>{l(),t(!1)},destroyOnClose:!0,centered:!0,width:768,footer:null,children:["form"===n&&(0,a.jsx)(y,{config:s,onBackClick:l}),"main"===n&&(0,a.jsx)(C,{onNewClick:()=>c("form"),onRowClick:e=>{i(e),c("form"),t(!0)}})]})]})}},15987:function(e,t,s){"use strict";var i=s(24246),n=s(38355),a=s(34090),r=s(90104),o=s.n(r),c=s(92465),l=s.n(c),d=s(25389),u=s.n(d),h=s(15539),m=s.n(h),x=s(27378),p=s(18225),j=s(97181),g=s(71248),y=s(40324),v=s(46782),f=s(812),C=s(20682),S=s(41966),A=s(94725),b=s(19812),D=s(33335),R=s(1315),w=s(46420),_=s(31883);let E=e=>{let{dirty:t,isValid:s,submitForm:i,loading:n,onFormStateChange:a}=e;return(0,x.useEffect)(()=>{a&&a({dirty:t,isValid:s,submitForm:i,loading:n})},[t,s,i,n,a]),null};t.Z=e=>{var t,s;let{connection:r,connectionOption:c,onCancel:d,description:h,onFormStateChange:x}=e,[T,{isLoading:H}]=(0,A.Pp)(),[k,{isLoading:F}]=(0,A.pH)(),[I,{isLoading:B}]=(0,R.qd)(),[O]=(0,A.pL)(),L=c.identifier!==w.Rj.MANUAL_WEBHOOK,{data:P,isLoading:N}=(0,C.n3)(c.identifier,{skip:!L}),{data:M}=(0,R.K3)(),U=null==M?void 0:M.map(e=>{var t;return{label:null!==(t=e.name)&&void 0!==t?t:e.fides_key,value:e.fides_key}}),{data:q}=(0,S.LH)({minimal:!0,connection_type:w.Rj.BIGQUERY}),z=null==q?void 0:q.map(e=>{var t;return{label:null!==(t=e.name)&&void 0!==t?t:e.fides_key,value:e.fides_key}}),{patchConnectionDatasetConfig:Z,initialDatasets:Q}=(0,b.t)({connectionConfig:r}),{getFieldValidation:W,preprocessValues:G}=(0,v.l)(P),X={name:null!==(t=null==r?void 0:r.name)&&void 0!==t?t:"",description:null!==(s=null==r?void 0:r.description)&&void 0!==s?s:"",...L&&{secrets:u()(null==P?void 0:P.properties,(e,t)=>{var s,i,n;return null!==(n=null!==(i=null==r?void 0:null===(s=r.secrets)||void 0===s?void 0:s[t])&&void 0!==i?i:e.default)&&void 0!==n?n:""})},dataset:Q},V=(0,n.pmc)(),Y=!!r,K=c.type===w.Zi.SAAS,J=e=>m()(u()(e,(e,t)=>{var s,i;return(null!==(i=null==r?void 0:null===(s=r.secrets)||void 0===s?void 0:s[t])&&void 0!==i?i:"")===e?void 0:e}),l()),$=async e=>{var t;let s;let i=G(e),n=L?J(i.secrets):{},a=Y?{...r,disabled:null!==(t=r.disabled)&&void 0!==t&&t,name:e.name,description:e.description,secrets:void 0}:{name:e.name,key:(0,D.E)(e.name),connection_type:c.identifier,access:w.uv.READ,disabled:!1,description:e.description,secrets:i.secrets,dataset:e.dataset};if(s=e.system_fides_key?await I({systemFidesKey:e.system_fides_key,connectionConfigs:[a]}):K&&!Y?await O({...a,instance_key:(0,D.E)(e.name),saas_connector_type:c.identifier,secrets:e.secrets||{}}):await k(a),(0,_.D4)(s)){V({status:"error",description:(0,f.e$)(s.error,"A problem occurred while ".concat(Y?"updating":"creating"," this integration. Please try again."))});return}if(!L||!e.secrets){V({status:"success",description:"Integration ".concat(Y?"updated":"created"," successfully")}),d();return}if(!o()(n)){let e=await T({connection_key:a.key,secrets:n});if((0,_.D4)(e)){V({status:"error",description:(0,f.e$)(e.error,"An error occurred while ".concat(Y?"updating":"creating"," this integration's secret. Please try again."))});return}}V({status:"success",description:"Integration secret ".concat(Y?"updated":"created"," successfully")}),d(),a&&e.dataset&&c.identifier===w.Rj.DATAHUB&&await Z(e,a.key,{showSuccessAlert:!1})},ee=H||F||B;if(N)return(0,i.jsx)(p.Z,{});let et=e=>Object.entries(e.properties).map(t=>{let[s,n]=t,a="secrets.".concat(s);return(0,i.jsx)(g.A,{name:a,fieldSchema:n,isRequired:e.required.includes(s),secretsSchema:e,validate:W(s,n)},a)});return(0,i.jsxs)(i.Fragment,{children:[h&&(0,i.jsx)(n.xuv,{padding:"20px 24px",backgroundColor:"gray.50",borderRadius:"md",border:"1px solid",borderColor:"gray.200",fontSize:"sm",marginTop:"16px",children:h}),(0,i.jsx)(a.J9,{initialValues:X,enableReinitialize:!0,onSubmit:$,children:e=>{let{dirty:t,isValid:s,submitForm:r}=e;return(0,i.jsxs)(a.l0,{children:[(0,i.jsxs)(n.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,i.jsx)(y.j0,{id:"name",name:"name",label:"Name",variant:"stacked",isRequired:!0}),(0,i.jsx)(y.j0,{id:"description",name:"description",label:"Description",variant:"stacked"}),L&&P&&et(P),!Y&&!K&&(0,i.jsx)(j.d,{id:"system_fides_key",name:"system_fides_key",options:null!=U?U:[],label:"System",tooltip:"The system to associate with the integration",layout:"stacked"}),c.identifier===w.Rj.DATAHUB&&(0,i.jsx)(j.d,{id:"dataset",name:"dataset",options:null!=z?z:[],label:"Datasets",tooltip:"Only BigQuery datasets are supported. Selected datasets will sync with matching DataHub datasets. If none are selected, all datasets will be included by default.",layout:"stacked",mode:"multiple"})]}),(0,i.jsx)(E,{dirty:t,isValid:s,submitForm:r,loading:ee,onFormStateChange:x})]})}})]})}},52352:function(e,t,s){"use strict";s.d(t,{FO:function(){return M},jq:function(){return U},ZP:function(){return z}}),(i=n||(n={})).DATA_CATALOG="Data Catalog",i.DATA_WAREHOUSE="Data Warehouse",i.DATABASE="Database",i.IDENTITY_PROVIDER="Identity Provider",i.WEBSITE="Website",i.CRM="CRM",i.MANUAL="Manual";var i,n,a=s(24246),r=s(38355),o=s(79789),c=e=>{let{children:t}=e,{isOpen:s,onToggle:i}=(0,r.qY0)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.UO1,{in:s,children:t}),(0,a.jsx)(r.xvT,{fontSize:"sm",cursor:"pointer",textDecoration:"underline",onClick:i,children:s?"Show less":"Show more"})]})},l=s(29379),d=s(46420);let u={name:"Google BigQuery",key:"bq_placeholder",connection_type:d.Rj.BIGQUERY,access:d.uv.READ,created_at:""},h=[{permission:"bigquery.jobs.create",description:"Run jobs (e.g. queries) within the project. This is only needed for the Fides Project where the Fides service account is located."},{permission:"bigquery.jobs.list",description:"Manage the queries that the service account performs. This is only needed for the Fides Project where the Fides service account is located."},{permission:"bigquery.routines.get",description:"Allow the service account to retrieve custom routines (e.g. queries) on associated datasets and tables."},{permission:"bigquery.routines.list",description:"Allow the service account to manage the custom routines (e.g. queries) that run on associated datasets and tables."}],m=[{permission:"bigquery.datasets.get",description:"Retrieve metadata and list tables for the specified project."},{permission:"bigquery.tables.get",description:"Retrieve metadata for the specified table."},{permission:"bigquery.tables.getData",description:"Read data in the specified table."},{permission:"bigquery.tables.list",description:"List all tables in the specified dataset."},{permission:"resourcemanager.projects.get",description:"Retrieve metadata for the specified project."}],x={placeholder:u,category:n.DATA_WAREHOUSE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Continuously monitor BigQuery to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Data Warehouse"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Cloud provider"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"}),(0,a.jsx)(r.HCh,{children:"Consent orchestration"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detection and discovery, Fides requires a read-only BigQuery service account with limited permissions. If you intend to automate governance for DSR or Consent, Fides requires a read-and-write BigQuery service account to any project you would like Fides to govern."}),(0,a.jsx)(o.XU,{children:"A BigQuery administrator can create the necessary role for Fides using BigQuery's roles guide and assign this to a service account using BigQuery's service account guide."}),(0,a.jsx)(o.XU,{children:"The permissions allow Fides to read the schema of, and data stored in projects, datasets and tables as well write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"bigquery.jobs.create"}),(0,a.jsx)(r.HCh,{children:"bigquery.jobs.list"}),(0,a.jsx)(r.HCh,{children:"bigquery.routines.get"}),(0,a.jsx)(r.HCh,{children:"bigquery.routines.list"}),(0,a.jsx)(r.HCh,{children:"bigquery.datasets.get"}),(0,a.jsx)(r.HCh,{children:"bigquery.tables.get"}),(0,a.jsx)(r.HCh,{children:"bigquery.tables.getData"}),(0,a.jsx)(r.HCh,{children:"bigquery.tables.list"}),(0,a.jsx)(r.HCh,{children:"bigquery.tables.updateData"}),(0,a.jsx)(r.HCh,{children:"resourcemanager.projects.get"})]})]})]}),{}),instructions:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Configuring a Fides -> BigQuery Integration"}),(0,a.jsx)(o.cB,{text:"Step 1: Create a Fides project"}),(0,a.jsxs)(o.XU,{children:["Create a Fides Project using"," ",(0,a.jsx)(o.Hn,{href:"https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project",children:"BigQuery's project creation guide"}),"."]}),(0,a.jsx)(o.cB,{text:"Step 2: Create a Fides role in GCP"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsxs)(r.HCh,{children:["Create a custom role for Fides using BigQuery's"," ",(0,a.jsx)(o.Hn,{href:"https://cloud.google.com/iam/docs/creating-custom-roles#creating_a_custom_role",children:"roles guide"}),"."]}),(0,a.jsx)(r.HCh,{children:"Follow the sections below to grant permissions to this role for the Fides project and any project you would like Fides to manage."})]}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Step 3: Assign permissions to the Fides project"}),(0,a.jsx)(o.XU,{children:"Assign the following permissions to the Fides Project that will be used by your Fides service account to run queries:"}),(0,a.jsx)(o.aG,{data:h}),(0,a.jsx)(o.cB,{text:"Step 4: Assign permissions to any project you'd like Fides to monitor"}),(0,a.jsx)(o.XU,{children:"Grant the following permissions to the Fides service account in every project where you would like Fides detection and discovery monitoring."}),(0,a.jsx)(o.aG,{data:m}),(0,a.jsx)(o.cB,{text:"Step 5: Create a Fides service account in the Fides Project"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsxs)(r.HCh,{children:["Create a service account for Fides using BigQuery's"," ",(0,a.jsx)(o.Hn,{href:"https://cloud.google.com/iam/docs/service-accounts-create",children:"service account guide"}),"."]}),(0,a.jsx)(r.HCh,{children:"Assign the previously created role to this service account."}),(0,a.jsxs)(r.HCh,{children:["Download the service account JSON keyfile."," ",(0,a.jsx)("strong",{children:"Note: this is sensitive information that should not be shared."})," ","An example of this is below:"]})]}),(0,a.jsx)(o.hX,{children:'{\n "type": "service_account",\n "project_id": "project-id-123456",\n "private_key_id": "0123456789abcdef0123456789abcdef01234567",\n "private_key": "-----BEGIN PRIVATE KEY-----\\nMIIyourkey-----\\nEND PRIVATE KEY-----\\n",\n "client_email": "test@project-id-123456.iam.gserviceaccount.com",\n "client_id": "012345678901234567890",\n "auth_uri": "https://accounts.google.com/o/oauth2/auth",\n "token_uri": "https://oauth2.googleapis.com/token",\n "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",\n "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test%40project-id-123456.iam.gserviceaccount.com"\n}'}),(0,a.jsx)(o.cB,{text:"Step 6: Use the JSON key to authenticate your integration"}),(0,a.jsx)(o.XU,{children:"Provide the JSON key to your Fides instance to securely connect Fides."})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[l.j.DATA_DISCOVERY]},p={name:"Datahub",key:"datahub_placeholder",connection_type:d.Rj.DATAHUB,access:d.uv.READ,created_at:""},j=(0,a.jsx)(a.Fragment,{children:"Set up a connection to your DataHub instance by providing a name, server URL, and access token. You can also select the BigQuery datasets you'd like to sync—these will be matched with corresponding datasets in DataHub. If no datasets are selected, all available BigQuery datasets will be included by default."}),g={placeholder:p,category:n.DATA_CATALOG,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"DataHub is a metadata platform designed to help organizations manage and govern their data. It acts as a centralized repository for tracking and discovering data assets across an organization, helping data teams understand where their data resides, how it's used, and how it flows through various systems."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsx)(o.Z5,{children:(0,a.jsx)(r.HCh,{children:"Data Catalog"})}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.Z5,{children:(0,a.jsx)(r.HCh,{children:"The related user to the access token must have at least the Editor role on DataHub."})})]})]}),{}),tags:["Sync"],description:j,enabledFeatures:[l.j.DATA_SYNC]},y={name:"DynamoDB",key:"dynamo_placeholder",connection_type:d.Rj.DYNAMODB,access:d.uv.READ,created_at:""},v=[{permission:"AmazonDynamoDBReadOnlyAccess",description:"Provides read-only access to Amazon DynamoDB via the AWS Management Console."},{permission:"AmazonDynamoDBFullAccess",description:"Provides full access to Amazon DynamoDB via the AWS Management Console. Only needed if automating governance for DSR or Consent."}],f={placeholder:y,category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Continuously monitor DynamoDB to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"NoSQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Cloud provider"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions and Policies"}),(0,a.jsxs)(o.XU,{children:["For detection and discovery, Fides requires an IAM user with read-only DynamoDB permissions in order to detect, discover, and classify sensitive data. The AWS-managed"," ",(0,a.jsx)(r.EKh,{children:"AmazonDynamoDBReadOnlyAccess"})," policy can be used to assign these permissions. If you intend to automate governance for DSR or Consent, Fides requires an IAM user with read-and-write DynamoDB permissions. The AWS-managed",(0,a.jsx)(r.EKh,{children:"AmazonDynamoDBFullAccess"})," policy can be used to assign these permissions. An IAM administrator can create the necessary principal for Fides using the AWS IAM guides, and assign the appropriate permissions policy to the IAM user."]}),(0,a.jsx)(o.XU,{children:"The permissions allow Fides to read the schema of, and data stored in, DynamoDB tables. This data is inspected only for the purpose of detecting sensitive data risks and no data is stored by Fides. As part of DSR or Consent orchestration, Fides will only write restricted updates to the tables specified by your Fides policy configuration."}),(0,a.jsx)(o.cB,{text:"Policy List"}),(0,a.jsx)(o.XU,{children:"The following AWS-managed policies provide the necessary permissions for Fides:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"AmazonDynamoDBReadOnlyAccess"}),(0,a.jsx)(r.HCh,{children:"AmazonDynamoDBFullAccess (only needed if automating governance for DSR or Consent)"})]})]})]}),{}),instructions:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Configuring a Fides -> DynamoDB Integration"}),(0,a.jsx)(o.cB,{text:"Step 1: Create an IAM user in AWS"}),(0,a.jsxs)(o.XU,{children:["Create an IAM user for Fides' DynamoDB access following the"," ",(0,a.jsx)(o.Hn,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started.html#getting-started-iam-user",children:"AWS IAM user guide"}),"."]}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Step 2: Assign policies to the IAM user"}),(0,a.jsx)(o.XU,{children:"Grant the necessary permissions to the IAM user by attaching directly the appropriate AWS-managed policy for your use case:"}),(0,a.jsx)(o.aG,{data:v}),(0,a.jsx)(o.cB,{text:"Step 3: Create an access key for the IAM user"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsxs)(r.HCh,{children:["Create an access key for the IAM user under"," ",(0,a.jsx)("strong",{children:"Security credentials"})]}),(0,a.jsx)(r.HCh,{children:"Select the Other use case"}),(0,a.jsx)(r.HCh,{children:"Copy the Access Key ID and Secret Access Key"})]}),(0,a.jsx)(o.cB,{text:"Use the Credentials to Authenticate Your Integration"}),(0,a.jsx)(o.XU,{children:"Provide the credentials to your Fides instance to securely connect Fides."})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[l.j.DATA_DISCOVERY]},C={placeholder:{name:"Cloud SQL - MySQL",key:"google_cloud_sql_for_mysql_placeholder",connection_type:d.Rj.GOOGLE_CLOUD_SQL_MYSQL,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Google Cloud SQL for MySQL is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of MySQL databases. Connect Fides to your Google Cloud SQL for MySQL to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on the database. If you intend to automate governance for DSR or Consent, Fides requires a user with the SELECT, UPDATE, and DELETE The permissions allow Fides to read the schema of, and data stored in tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration. For a complete list of permissions view the Google Cloud SQL for MySQL DB documentation."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"GRANT SELECT"}),(0,a.jsx)(r.HCh,{children:"GRANT UPDATE"}),(0,a.jsx)(r.HCh,{children:"GRANT DELETE"})]})]})]}),{}),tags:["Discovery","Detection"],enabledFeatures:[l.j.DATA_DISCOVERY]},S={placeholder:{name:"Cloud SQL - Postgres",key:"google_cloud_sql_for_postgres_placeholder",connection_type:d.Rj.GOOGLE_CLOUD_SQL_POSTGRES,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Google Cloud SQL for Postgres is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of Postgres databases. Connect Fides to your Google Cloud SQL for Postgres to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on the database. If you intend to automate governance for DSR or Consent, Fides requires a user with the SELECT, UPDATE, and DELETE permission. The permissions allow Fides to read the schema of, and data stored in tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and orchestration. For a complete list of permissions view the Google Cloud SQL for Postgres DB documentation."}),(0,a.jsx)(o.XU,{children:"The following GCP service account permissions are needed when setting up Google Cloud SQL for Postgres."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"cloudsql.instances.connect"}),(0,a.jsx)(r.HCh,{children:"cloudsql.instances.get"}),(0,a.jsx)(r.HCh,{children:"cloudsql.instances.login"})]})]})]}),{}),tags:["Discovery","Detection"],enabledFeatures:[l.j.DATA_DISCOVERY]},A={placeholder:{name:"Manual",key:"manual_placeholder",connection_type:d.Rj.MANUAL_WEBHOOK,access:d.uv.READ,created_at:""},category:n.MANUAL,tags:["DSR","Manual tasks"],overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"A Manual Integration provides a simple way for data to be manually uploaded for access and erasure requests."}),(0,a.jsxs)(o.XU,{children:["If you have manual integrations defined, privacy request execution will exit early and remain in a state of ",(0,a.jsx)("em",{children:"Requires input"}),". Once data has been manually uploaded for all the manual integrations, then the privacy request can be resumed. Data uploaded for manual integrations is passed on directly to the data subject alongside the data package."]})]}),{}),enabledFeatures:[l.j.TASKS,l.j.WITHOUT_CONNECTION]},b={placeholder:{name:"Microsoft SQL Server",key:"microsoft_sql_server_placeholder",connection_type:d.Rj.MSSQL,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Microsoft SQL Server, is a relational database management system (RDBMS) developed by Microsoft. It is designed to store, manage, and retrieve data as requested by other software applications, which may run either on the same computer or across a network."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detecting databases, Fides requires a user with the following permissions/role:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE LOGIN username WITH PASSWORD = 'password';"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT, INSERT, UPDATE TO username;"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[l.j.DATA_DISCOVERY]},D={placeholder:{name:"MySQL",key:"mysql_placeholder",connection_type:d.Rj.MYSQL,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Continuously monitor MySQL databases to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detecting databases, Fides requires a user with the following permissions/role:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE USER 'username' IDENTIFIED WITH authentication_plugin BY 'password';"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT, INSERT ON database.* TO 'username'@'%';"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[l.j.DATA_DISCOVERY]},R={name:"Okta",key:"okta_placeholder",connection_type:d.Rj.OKTA,access:d.uv.READ,created_at:""},w=(0,a.jsx)(a.Fragment,{children:"SSO providers manage user authentication and can help identify systems within your infrastructure. Adding an SSO provider as a data source allows you to detect connected systems, monitor access patterns, and enhance your data map for better visibility and control."}),_={placeholder:R,category:n.IDENTITY_PROVIDER,tags:["Discovery","Inventory"],overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"SSO providers manage user authentication and can help identify systems within your infrastructure. Adding an SSO provider as a data source allows you to detect connected systems, monitor access patterns, and enhance your data map for better visibility and control."})]}),{}),description:w,enabledFeatures:[l.j.DATA_DISCOVERY]},E={placeholder:{name:"Postgres",key:"postgres_placeholder",connection_type:d.Rj.POSTGRES,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Postgres is a relational database. Connect Fides to your Postgres Datbase to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.XU,{children:"For each database, Fides requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the name of the database you want to connect to."}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE USER username WITH LOGIN;"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA public TO username;"}),(0,a.jsx)(r.HCh,{children:"GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO username;"})]})]})]}),{}),tags:["Detection","Discovery"],enabledFeatures:[l.j.DATA_DISCOVERY]},T={placeholder:{name:"Amazon RDS MySQL",key:"rds_mysql_placeholder",connection_type:d.Rj.RDS_MYSQL,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Amazon RDS MySQL is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of MySQL databases. Connect Fides to your Amazon RDS MySQL to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detecting database RDS instances and clusters, Fides requires an IAM user with the following permissions/role:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"rds:DescribeDBClusters"}),(0,a.jsx)(r.HCh,{children:"rds:DescribeDBInstances"}),(0,a.jsx)(r.HCh,{children:"rds-db:connect"})]}),(0,a.jsx)(o.XU,{children:"And per database instance and database it requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the database name, you want to connect to."}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE USER 'username' IDENTIFIED WITH AWSAuthenticationPlugin AS 'RDS';"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT, INSERT ON database.* TO 'username'@'%';"})]})]})]}),{}),tags:["Discovery","Detection"],enabledFeatures:[l.j.DATA_DISCOVERY]},H={placeholder:{name:"Amazon RDS Postgres",key:"rds_postgres_placeholder",connection_type:d.Rj.RDS_POSTGRES,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Amazon RDS Postgres is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of Postgres databases. Connect Fides to your Amazon RDS Postgres to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detecting database RDS instances and clusters, Fides requires an IAM user with the following permissions/role:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"rds:DescribeDBClusters"}),(0,a.jsx)(r.HCh,{children:"rds:DescribeDBInstances"}),(0,a.jsx)(r.HCh,{children:"rds-db:connect"})]}),(0,a.jsx)(o.XU,{children:"For each database instance and database, Fides requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the name of the database you want to connect to."}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE USER username WITH LOGIN;"}),(0,a.jsx)(r.HCh,{children:"GRANT rds_iam TO username;"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA public TO username;"}),(0,a.jsx)(r.HCh,{children:"GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO username;"})]})]})]}),{}),tags:["Discovery","Detection"],enabledFeatures:[l.j.DATA_DISCOVERY]},k={placeholder:{name:"Amazon S3",key:"s3_placeholder",connection_type:d.Rj.S3,access:d.uv.READ,created_at:""},category:n.DATA_WAREHOUSE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Continuously monitor S3 to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Object storage"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Cloud provider"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"Fides requires an IAM principal with read-only S3 permissions in order to detect, discover, and classify sensitive data. The AWS-managed AmazonS3ReadOnlyAccess policy can be used to assign these permissions. An IAM administrator can create the necessary principal for Fides using the AWS IAM guides, and assign the appropriate permissions policy to the IAM principal."}),(0,a.jsx)(o.XU,{children:"The permissions allow Fides to list buckets and read object data data stored in those buckets. This data is inspected only for the purpose of detecting sensitive data risks and no data is stored by Fides."}),(0,a.jsx)(o.XU,{children:"Ethyca recommends creating an IAM role with the appropriate permissions, which will be assumed by Fides at runtime, with ephemeral credentials. There must also be an IAM user with fixed credentials that Fides uses strictly for assuming the IAM role with the appropriate permissions. If desired, Fides also supports authenticating directly as an IAM user with the appropriate permissions, but this is considered a less secure option."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsx)(o.Z5,{children:(0,a.jsx)(r.HCh,{children:"AmazonS3ReadOnlyAccess"})})]})]}),{}),instructions:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Configuring a Fides -> Amazon S3 Integration"}),(0,a.jsx)(o.cB,{text:"Step 1: Create an IAM role in AWS"}),(0,a.jsx)(o.XU,{children:"Create an IAM role for Fides' S3 access following the AWS IAM roles guide. This role will be referred to below as the Fides S3 Access Role."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Step 2: Assign policies to the IAM role"}),(0,a.jsx)(o.XU,{children:"Grant the necessary permissions to the IAM role by attaching the following AWS-managed policy:"}),(0,a.jsx)(o.aG,{data:[{permission:"AmazonS3ReadOnlyAccess",description:"Provides read-only access to all buckets via the AWS Management Console."}]}),(0,a.jsx)(o.cB,{text:"Step 3: Create an IAM user for assuming a role"}),(0,a.jsxs)(o.XU,{children:["Follow the ",(0,a.jsx)(o.Hn,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started.html#getting-started-iam-user",children:"AWS guide"})," for creating an IAM user to create an IAM user that Fides will authenticate as in order to assume the Fides S3 Access Role created above, and retrieve ephemeral credentials."]}),(0,a.jsx)(o.cB,{text:"Step 4: Grant the IAM user permission to assume the Fides S3 Access Role"}),(0,a.jsx)(o.XU,{children:"Navigate to the IAM user's Permissions page and add a permission by creating an inline policy. This permission should grant the IAM user permission to assume the Fides S3 Access Role created above (you'll need to retrieve the role ARN). The inline policy should look similar to this:"}),(0,a.jsx)(o.hX,{children:'{\n "Version": "2012-10-17",\n "Statement": [\n {\n "Sid": "VisualEditor0",\n "Effect": "Allow",\n "Action": "sts:AssumeRole",\n "Resource": "arn:aws:iam::[AWS ACCOUNT NUMBER]:role/[Fides S3 Access Role ARN]"\n }\n ]\n}'}),(0,a.jsx)(o.cB,{text:"Step 5: Create an access key for the IAM user"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsxs)(r.HCh,{children:["Create an access key for the IAM user under"," ",(0,a.jsx)("strong",{children:"Security credentials"}),"."]}),(0,a.jsx)(r.HCh,{children:"Select the Other use case"}),(0,a.jsx)(r.HCh,{children:"Copy the Access Key ID and Secret Access Key"})]}),(0,a.jsx)(o.cB,{text:"Step 6: Use the credentials to authenticate your integration"}),(0,a.jsxs)(o.XU,{children:["Provide the credentials to your Fides instance to securely connect Fides. For the Assume Role ARN, provide the ARN for the Fides S3 Access Role created in step 1."," "]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[l.j.DATA_DISCOVERY]};var F=s(80388);let I={placeholder:{name:"Salesforce",key:"salesforce_placeholder",connection_type:s(88337).R.SAAS,saas_config:{fides_key:"salesforce",name:"Salesforce",type:F.m.SALESFORCE},access:d.uv.WRITE,created_at:""},category:n.CRM,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Salesforce is a cloud-based customer relationship management (CRM) platform that helps businesses manage sales, marketing, and customer service interactions in a unified system. Connect Fides to your Salesforce instance to automatically discover and track data across both standard and custom objects, detect sensitive information, and automate DSR fulfillment."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"What this integration does"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Discover personal data in standard Salesforce objects"}),(0,a.jsx)(r.HCh,{children:"Detect sensitive information across your Salesforce instance"}),(0,a.jsx)(r.HCh,{children:"Automate data subject access requests including data retrieval, updates, and deletions"}),(0,a.jsx)(r.HCh,{children:"Map Salesforce data to your organization's data map"}),(0,a.jsx)(r.HCh,{children:"Discover and map custom Salesforce objects (requires setting up a monitor)"})]}),(0,a.jsx)(o.XU,{children:"Once integrated, the system will automatically map sensitive personal data for standard Salesforce objects. By setting up a monitor, you can also detect and map custom objects in your Salesforce instance."}),(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CRM System"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"})]}),(0,a.jsx)(o.cB,{text:"Prerequisites"}),(0,a.jsx)(o.XU,{children:"To integrate with Salesforce, you need to create a Connected App in your Salesforce instance. This ensures exclusive data control and enhances security by reducing unauthorized access risks."}),(0,a.jsx)(o.cB,{text:"Setup instructions"}),(0,a.jsx)(o.XU,{children:"Follow these steps to set up your Salesforce integration:"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsx)(r.HCh,{children:"Create a Connected App in Salesforce by following the Salesforce guide"}),(0,a.jsx)(r.HCh,{children:"Configure Basic Connected App Settings"}),(0,a.jsx)(r.HCh,{children:'Uncheck "Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows"'}),(0,a.jsx)(r.HCh,{children:"Enable OAuth Settings for API Integration with the required scopes"}),(0,a.jsx)(r.HCh,{children:"Enter your Fides Redirect URL (typically https://fides-host.com/api/v1/oauth/callback)"})]}),(0,a.jsx)(o.cB,{text:"Required information"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Domain: Your Salesforce URL"}),(0,a.jsx)(r.HCh,{children:"Consumer Key: Your OAuth client ID"}),(0,a.jsx)(r.HCh,{children:"Consumer Secret: Your OAuth client secret"}),(0,a.jsx)(r.HCh,{children:"Redirect URL: The Fides URL for OAuth callback"}),(0,a.jsx)(r.HCh,{children:"Token Refresh URL: The Salesforce URL for refresh tokens"})]}),(0,a.jsx)(o.cB,{text:"Required OAuth scopes"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Manage user data via APIs (api)"}),(0,a.jsx)(r.HCh,{children:"Perform requests at any time (refresh_token, offline_access)"})]}),(0,a.jsx)(o.cB,{text:"Supported objects"}),(0,a.jsx)(o.XU,{children:"Fides supports both standard and custom Salesforce objects. The integration includes built-in support for common objects such as:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Contacts"}),(0,a.jsx)(r.HCh,{children:"Cases"}),(0,a.jsx)(r.HCh,{children:"Leads"}),(0,a.jsx)(r.HCh,{children:"Accounts"}),(0,a.jsx)(r.HCh,{children:"Campaign Members"}),(0,a.jsx)(r.HCh,{children:"Custom Objects"})]})]})]}),{}),tags:["API","DSR Automation","Discovery","Detection"],enabledFeatures:[l.j.DATA_DISCOVERY]},B={placeholder:{name:"Scylla",key:"scylla_placeholder",connection_type:d.Rj.SCYLLA,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"ScyllaDB is an open-sources distributed NoSQL data store designed to be compatible with Apache Cassandra. Connect Fides to your ScyllaDB to detect and track changes in keyspaces and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"NoSQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on all keyspaces. If you intend to automate governance for DSR or Consent, Fides requires the role to to be granted SELECT and MODIFY on all keyspaces. The permissions allow Fides to read the schema of, and data stored in keyspaces, tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration. For a complete list of permissions view the Scylla DB documentation."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"SELECT ALL KEYSPACES"}),(0,a.jsx)(r.HCh,{children:"MODIFY ALL KEYSPACES"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[l.j.DATA_DISCOVERY]},O={placeholder:{name:"Snowflake",key:"snowflake_placeholder",connection_type:d.Rj.SNOWFLAKE,access:d.uv.READ,created_at:""},category:n.DATA_WAREHOUSE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Snowflake is a cloud-based data warehousing platform designed for handling large-scale data storage and analytics. It enables organizations to store, manage, and analyze massive amounts of data efficiently, offering features like scalability, performance, and flexibility."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE ROLE my_monitor_role;"}),(0,a.jsx)(r.HCh,{children:"GRANT USAGE ON DATABASE DATABASE_1 TO ROLE my_monitor_role;"}),(0,a.jsx)(r.HCh,{children:"GRANT USAGE ON SCHEMA DATABASE_1.TEST_SCHEMA TO ROLE my_monitor_role;"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA DATABASE_1.TEST_SCHEMA TO ROLE my_monitor_role;"}),(0,a.jsx)(r.HCh,{children:"CREATE USER test_user PASSWORD='***';"}),(0,a.jsx)(r.HCh,{children:"GRANT ROLE my_monitor_role TO USER test_user;"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[l.j.DATA_DISCOVERY]},L={placeholder:{name:"Website",key:"website_placeholder",connection_type:d.Rj.WEBSITE,access:d.uv.READ,created_at:""},category:n.WEBSITE,tags:["Consent","Discovery","Detection"],overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:'Websites, or "properties", often process user data. Adding a website as an integration lets you configure a Consent Management Platform (CMP), a site-specific privacy center, and Cross-Origin requests via Fides. You can configure the various security settings, styling, and user experience settings for the privacy center and CMP on a per-website basis.'})]}),{}),enabledFeatures:[l.j.DATA_DISCOVERY]},P=[I],N={[d.Rj.BIGQUERY]:x,[d.Rj.DATAHUB]:g,[d.Rj.DYNAMODB]:f,[d.Rj.GOOGLE_CLOUD_SQL_MYSQL]:C,[d.Rj.GOOGLE_CLOUD_SQL_POSTGRES]:S,[d.Rj.MSSQL]:b,[d.Rj.OKTA]:_,[d.Rj.RDS_MYSQL]:T,[d.Rj.RDS_POSTGRES]:H,[d.Rj.S3]:k,[d.Rj.SCYLLA]:B,[d.Rj.SNOWFLAKE]:O,[d.Rj.MYSQL]:D,[d.Rj.WEBSITE]:L,[d.Rj.POSTGRES]:E,[d.Rj.MANUAL_WEBHOOK]:A},M=[...Object.values(N),...P],U=[...Object.keys(N)],q={placeholder:{name:"",key:"placeholder",connection_type:d.Rj.MANUAL,access:d.uv.READ,created_at:""},category:n.DATA_WAREHOUSE,tags:[],enabledFeatures:[]};var z=(e,t)=>{if(!e)return q;if(e===d.Rj.SAAS&&t){let e=P.find(e=>{var s;return(null===(s=e.placeholder.saas_config)||void 0===s?void 0:s.type)===t});if(e)return e}if(e!==d.Rj.SAAS){let t=N[e];if(t)return t}return q}},93633:function(e,t,s){"use strict";s.d(t,{z:function(){return r}});var i=s(14047),n=s(38355),a=s(14207);let r=e=>{let{connection:t,connectionOption:s,testData:r}=e,[o]=(0,a.rO)(),{handleError:c}=(0,i.H)();return{handleAuthorize:async()=>{if(!(null==t?void 0:t.key)){n.Pg3.error("Authorization failed: connection key not found");return}try{let e=await o(t.key).unwrap();window.location.href=e}catch(e){c(e)}},needsAuthorization:!!(null==s?void 0:s.authorization_required)&&!r.authorized}}},64176:function(e,t,s){"use strict";var i=s(27378),n=s(20682),a=s(88337);t.Z=(e,t)=>{let{data:s}=(0,n.$I)({});return(0,i.useMemo)(()=>e===a.R.SAAS?null==s?void 0:s.items.find(e=>e.identifier===t):null==s?void 0:s.items.find(t=>t.identifier===e),[s,e,t])}},11013:function(e,t,s){"use strict";s.d(t,{$y:function(){return a},eV:function(){return i},m5:function(){return o},ww:function(){return r}});let{useGetSharedMonitorConfigsQuery:i,useGetSharedMonitorConfigByIdQuery:n,useCreateSharedMonitorConfigMutation:a,useUpdateSharedMonitorConfigMutation:r,useDeleteSharedMonitorConfigMutation:o}=s(78780).u.injectEndpoints({endpoints:e=>({getSharedMonitorConfigs:e.query({query:e=>({method:"GET",url:"/plus/shared-monitor-config",params:e}),providesTags:["Shared Monitor Configs"]}),getSharedMonitorConfigById:e.query({query:e=>{let{id:t}=e;return{method:"GET",url:"/plus/shared-monitor-config/".concat(t)}},providesTags:["Shared Monitor Configs"]}),createSharedMonitorConfig:e.mutation({query:e=>({method:"POST",url:"/plus/shared-monitor-config",body:e}),invalidatesTags:["Shared Monitor Configs"]}),updateSharedMonitorConfig:e.mutation({query:e=>({method:"PUT",url:"/plus/shared-monitor-config/".concat(e.id),body:e}),invalidatesTags:["Shared Monitor Configs"]}),deleteSharedMonitorConfig:e.mutation({query:e=>{let{id:t}=e;return{method:"DELETE",url:"/plus/shared-monitor-config/".concat(t)}},invalidatesTags:["Shared Monitor Configs"]})})})},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}}]);